@charset "UTF-8";
/* ==================================================================
 *  TOPページ（front-page.php）専用CSS
 * ================================================================== */

/* --- FV --- */
.fv { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.top_main { position: absolute; inset: 0; }
.slider { position: absolute; inset: 0; }
.slick-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.slick-img.on { opacity: 1; }
.slick-img .ph { width: 100%; height: 100%; background-size: cover; background-position: center; transform: scale(1); transition: transform 6s ease; }
.slick-img.on .ph { transform: scale(1.08); }
/* プレースホルダのグラデは background-image で指定（background ショートハンドだと background-size:cover が消えて画像が原寸表示になるため） */
.slick-img.s1 .ph { background-image: linear-gradient(155deg,#2a2a2e,#141416); }
.slick-img.s2 .ph { background-image: linear-gradient(155deg,#242428,#101012); }
.slick-img.s3 .ph { background-image: linear-gradient(200deg,#2e2e33,#18181b); }
.fv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom,rgba(16,16,18,.5),rgba(16,16,18,.2) 40%,rgba(16,16,18,.55)); z-index: 1; }

#top_text_contents { position: absolute; left: 0; bottom: 16%; z-index: 2; padding: 0 48px; }
#top_text01 { font-family: var(--serif); color: var(--paper); font-size: clamp(34px,4.4vw,60px); font-weight: 700; letter-spacing: .12em; text-shadow: 1px 2px 10px rgba(0,0,0,.4); overflow: hidden; }
#top_text01 span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s cubic-bezier(.16,.8,.26,1) 1.5s forwards; }
@keyframes lineUp { to { transform: translateY(0); } }
#top_text02 { color: #e0e0e3; font-size: 15px; letter-spacing: .12em; line-height: 2; max-width: 34em; margin-top: 16px; text-shadow: 0 1px 10px rgba(0,0,0,.55); opacity: 0; animation: fadeUp 1s ease 2.1s forwards; }
.fv-scroll { position: absolute; bottom: 34px; right: 48px; z-index: 2; font-family: var(--en); font-size: 10px; letter-spacing: .4em; color: var(--gray-l); writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; }
.fv-scroll::after { content: ''; width: 1px; height: 56px; background: linear-gradient(var(--gray-l),transparent); animation: scr 2s ease infinite; }
@keyframes scr { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* --- ご挨拶 --- */
#greeting { background: var(--ink); padding: 110px 48px; }
#greeting_text_eria { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
#greeting_text_left h1 { font-family: var(--serif); color: var(--paper); font-size: clamp(26px,3vw,38px); font-weight: 700; letter-spacing: .1em; line-height: 1.7; position: relative; padding-bottom: 26px; }
#greeting_text_left h1::after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 1px; background: var(--gray); }
#greeting_text_left > p { color: #d6d6d9; font-size: 15px; line-height: 1.95; margin-top: 26px; }
#greeting_text_right p { color: #d6d6d9; font-size: 15px; line-height: 2.0; letter-spacing: .06em; }
#top_greeting_img { max-width: 1200px; margin: 70px auto 0; display: flex; flex-direction: column; align-items: center; }
.gr-scene { --u: 46px; }
.greeting_note { text-align: center; font-family: var(--en); font-size: 10px; letter-spacing: .4em; color: var(--gray); margin-top: 34px; }

/* --- Business --- */
#top_biz { background: #fff; padding: 120px 48px; }
#top_biz_text_eria { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 60px; }
#top_biz_text_left h1 { font-family: var(--en); font-size: 30px; font-weight: 500; letter-spacing: .08em; color: var(--ink); }
#top_biz_text_left p { font-size: 12px; letter-spacing: .3em; color: #6f6f74; margin-top: 8px; }
.biz-cubes { display: flex; gap: 8px; margin-bottom: 22px; }
.biz-cubes span { width: 20px; height: 20px; border-radius: 4px; background: linear-gradient(145deg,#2c2c31,#18181b); border: 1px solid rgba(0,0,0,.06); animation: cubeRoll 4.6s infinite ease-in-out; }
.biz-cubes span:nth-child(1) { animation-delay: 0s; }
.biz-cubes span:nth-child(2) { animation-delay: .45s; background: linear-gradient(145deg,#f4f4f1,#d6d6d9); }
.biz-cubes span:nth-child(3) { animation-delay: .9s; }
.biz-cubes span:nth-child(4) { animation-delay: 1.35s; background: linear-gradient(145deg,#f4f4f1,#d6d6d9); }
/* @keyframes cubeRoll は base.css で定義（下層の .sec-cubes と共有） */
#top_biz_text_right h2 { font-family: var(--serif); font-size: clamp(20px,2.2vw,28px); font-weight: 700; color: var(--ink); letter-spacing: .08em; line-height: 1.7; }
#top_biz_text_right h3 { font-family: var(--en); font-size: 14px; letter-spacing: .14em; color: #999; margin: 12px 0 26px; font-weight: 400; }
#top_biz_text_right > p { font-size: 15px; line-height: 2.0; color: #2b2b30; max-width: 640px; }
.biz-tiles { max-width: 1160px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--line-d); border: 1px solid var(--line-d); }
.biz-tile { background: #fff; padding: 40px 30px; transition: background .4s; position: relative; }
.biz-tile:hover { background: #f0f0ee; }
.biz-tile .n { font-family: var(--en); font-size: 12px; letter-spacing: .3em; color: #aaa; }
.biz-tile h4 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); margin: 14px 0 4px; letter-spacing: .06em; line-height: 1.5; }
.biz-tile .e { font-family: var(--en); font-size: 10.5px; letter-spacing: .24em; color: #aaa; text-transform: uppercase; }
.biz-tile > p { font-size: 13.5px; line-height: 2.05; color: #35353b; margin-top: 16px; }
.biz-tile .sq { position: absolute; top: 40px; right: 30px; width: 11px; height: 11px; background: var(--ink); transition: transform .4s; }
.biz-tile:hover .sq { transform: rotate(90deg); }
.biz-note { max-width: 1160px; margin: 22px auto 0; font-size: 12.5px; color: #6f6f74; letter-spacing: .06em; text-align: right; }

/* --- バナー2枚 --- */
#flex_contents { padding: 0; }
.flex_contents ul { display: grid; grid-template-columns: repeat(2,1fr); }
.flex_contents li { position: relative; }
.flex_contents a { display: block; position: relative; height: 340px; overflow: hidden; }
.link_img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s ease; }
.flex_contents a:hover .link_img { transform: scale(1.06); }
.flex_contents li:nth-child(1) .link_img { background-image: linear-gradient(160deg,#2c2c31,#161619); }
.flex_contents li:nth-child(2) .link_img { background-image: linear-gradient(160deg,#26262b,#0f0f12); }
.flex_contents a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(16,16,18,.85),rgba(16,16,18,.15)); transition: background .4s; }
.flex_contents a:hover::after { background: linear-gradient(to top,rgba(16,16,18,.9),rgba(16,16,18,.3)); }
.link_title { position: absolute; left: 36px; bottom: 44px; z-index: 2; }
.link_title h2 { font-family: var(--en); color: var(--paper); font-size: 30px; font-weight: 500; letter-spacing: .06em; }
.link_title h3 { color: var(--gray-l); font-size: 13px; letter-spacing: .16em; margin-top: 4px; }
.link_btn { position: absolute; right: 36px; bottom: 44px; z-index: 2; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--paper); transition: background .4s, color .4s; }
.flex_contents a:hover .link_btn { background: var(--paper); color: var(--ink); }

/* --- コンセプト（タイポ演出） --- */
#top_align { background: #fff; padding: 130px 48px; overflow: hidden; }
.align-inner2 { max-width: 1000px; margin: 0 auto; text-align: center; }
.align-en { justify-content: center; display: flex; align-items: center; gap: 16px; font-family: var(--en); font-size: 12px; letter-spacing: .5em; color: #999; text-transform: uppercase; margin-bottom: 34px; }
.align-en::before, .align-en::after { content: ''; width: 36px; height: 1px; background: #bbb; }
.typo-line { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: clamp(26px,4.4vw,52px); letter-spacing: .06em; line-height: 1.5; display: flex; flex-wrap: wrap; justify-content: center; }
.typo-line .brk { flex-basis: 100%; height: 0; }
.typo-line .tw { display: inline-block; opacity: 0; transform: translate(var(--dx,0), var(--dy,0)) rotate(var(--dr,0)) scale(.6); transition: opacity 1.3s ease, transform 1.8s cubic-bezier(.22,.7,.24,1); }
.typo-line.aligned .tw { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
.align-lead { max-width: 34em; margin: 44px auto 0; font-size: 15px; line-height: 2.05; color: #35353b; }

/* --- 採用（簡易） --- */
/* 最終セクション。フッターのContactカードが translateY(-50%) で上に重なるぶん、下に余白を確保する */
#top_recruit { position: relative; background: linear-gradient(160deg,#1d1d21 0,#101012 100%); padding: 110px 48px 200px; overflow: hidden; }
.recruit-bg { position: absolute; top: 50%; right: -40px; transform: translateY(-50%); font-family: var(--en); font-size: clamp(120px,20vw,300px); font-weight: 300; color: rgba(255,255,255,.03); letter-spacing: .04em; line-height: 1; pointer-events: none; white-space: nowrap; }
.recruit-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: center; }
.recruit-l .badge { display: inline-block; font-family: var(--en); font-size: 11px; letter-spacing: .3em; border: 1px solid var(--line); padding: 8px 20px; color: var(--gray-l); margin-bottom: 24px; }
.recruit-l h2 { font-family: var(--serif); color: var(--paper); font-size: clamp(24px,3vw,38px); font-weight: 700; letter-spacing: .1em; line-height: 1.85; }
.recruit-l p { color: #d6d6d9; font-size: 15px; line-height: 2.0; margin: 24px auto 0; max-width: 32em; }
.recruit-tel { margin-top: 38px; }
.recruit-tel .lbl { display: block; font-size: 11px; letter-spacing: .2em; color: var(--gray); }
.recruit-tel .num { font-family: var(--en); font-size: 28px; letter-spacing: .06em; color: var(--paper); margin-top: 8px; display: inline-flex; align-items: center; gap: 12px; }
/* 電話をかけるボタン */
.recruit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; background: var(--paper); color: var(--ink); padding: 16px 42px; border-radius: 4px; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; transition: opacity .3s, transform .3s; }
.recruit-btn i { font-size: 14px; }
.recruit-btn:hover { opacity: .85; }
.recruit-btn:active { transform: translateY(1px); }

/* --- TOP レスポンシブ --- */
@media (max-width: 1024px) {
  #greeting, #top_biz, #top_align, #top_recruit { padding-left: 32px; padding-right: 32px; }
  #top_text_contents, .fv-scroll { padding-left: 32px; }
  #greeting_text_eria { grid-template-columns: 1fr; gap: 44px; }
  #top_biz_text_eria { grid-template-columns: 1fr; gap: 36px; }
  .biz-tiles, .flex_contents ul { grid-template-columns: 1fr; }
  .flex_contents a { height: 280px; }
}
@media (max-width: 768px) {
  .fv { height: 100svh; min-height: 540px; }
  #top_text_contents { padding: 0 20px; bottom: 13%; right: 20px; }
  #top_text01 { font-size: clamp(27px,8.6vw,34px); letter-spacing: .08em; line-height: 1.6; }
  #top_text02 { font-size: 13.5px; line-height: 2.05; margin-top: 14px; letter-spacing: .08em; }
  .fv-scroll { right: 20px; bottom: 22px; }
  #greeting, #top_biz { padding: 76px 20px; }
  #greeting_text_eria { gap: 34px; }
  #greeting_text_left h1 { font-size: 24px; line-height: 1.8; }
  #top_greeting_img { margin-top: 46px; }
  .gr-scene { transform: scale(.8); }
  .greeting_note { margin-top: 22px; }
  #top_biz_text_left h1 { font-size: 26px; }
  .biz-tile { padding: 30px 22px; }
  .biz-note { font-size: 11px; text-align: left; margin-top: 18px; }
  .flex_contents a { height: 200px; }
  .link_title { left: 22px; bottom: 26px; }
  .link_title h2 { font-size: 24px; }
  .link_btn { right: 22px; bottom: 26px; width: 38px; height: 38px; }
  #top_align { padding: 72px 20px; }
  .typo-line { font-size: clamp(22px,7vw,30px); line-height: 1.6; }
  .align-lead { font-size: 14px; line-height: 2.0; margin-top: 32px; }
  #top_recruit { padding: 72px 20px 170px; }
  .recruit-l h2 { font-size: 23px; line-height: 1.8; }
  .recruit-tel .num { font-size: 24px; }
  .recruit-btn { display: flex; width: 100%; max-width: 320px; margin: 20px auto 0; padding: 16px 20px; }
}
