/* トップの見本（top_v2.html）の区画の CSS を、下層ページと共有する（2026-11-21）。トップ専用の FV の人形の動きは除く */

/* 区画は WACUL ∪ LANY ∪ 今の見本（31 の区画表・2026-11-20）。目立たせる所はミッションの暗い帯の1か所 */
.fv { position: relative; background: var(--fv-ground) url(../img/fv.jpg) right center / auto 100% no-repeat; } /* 画像の縦を枠の高さに合わせる（横に広げても上下が切れない）。地は画像の背景色（--fv-ground） */
.fv .w { padding-top: 72px; padding-bottom: 88px; }
.fv__co { font-size: var(--t-s); color: var(--ink-2); margin: 0 0 32px; }
.fv h1 { font-size: var(--t-xxl); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 24px; }
.fv__sub { font-family: var(--f-head); font-size: var(--t-l); font-weight: 500; margin: 0 0 20px; }
.fv__lead { max-width: 30em; margin: 0 0 36px; }
.fv__act { display: flex; gap: 12px; flex-wrap: wrap; }

.mission { background: var(--structure); color: var(--on-dark); padding: 112px 0; margin-bottom: 120px; }
.mission :focus-visible { outline-color: var(--on-dark); }
.mission .w { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; }
.mission__label { grid-column: 1 / 4; font-size: 15px; font-family: var(--f-head); font-weight: 700; margin: 0; }
.mission__body { grid-column: 4 / 13; }
.mission__text { font-family: var(--f-head); font-weight: 700; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.4; letter-spacing: -0.02em; margin: 0 0 32px; text-wrap: balance; }
.mission__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--rule-dark); padding-top: 24px; }
.mission__cols h3 { font-size: 16px; margin-bottom: 8px; }
.mission__cols p { margin: 0; font-size: 15px; color: var(--on-dark-2); }
p, li, dd { text-wrap: pretty; }
.mission__lead { margin: 0; font-size: 17px; line-height: 1.9; color: var(--on-dark-2); max-width: 34em; }

.svc4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc4 article { padding: 24px 32px 28px 0; border-bottom: 1px solid var(--rule); }
.svc4 article:nth-child(2n) { border-left: 1px solid var(--rule); padding-left: 32px; padding-right: 0; }
.svc-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.svc-cta h3 { margin-bottom: 0; }
.svc4 h3 { font-size: 22px; line-height: 1.4; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.tags li { font-size: 13px; padding: 4px 12px; background: var(--surface); }

.nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--structure); margin-bottom: 40px; }
.nums div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); }
.nums div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.nums b { display: block; white-space: nowrap; font-family: var(--f-num, var(--f-head)); font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nums b small { font-size: 14px; white-space: nowrap; margin-left: 2px; }
.nums span { display: block; font-size: 14px; margin-top: 8px; }
.nums__note { font-size: 12px; color: var(--ink-2); margin: -28px 0 40px; }
.nums em { font-style: normal; font-size: 12px; color: var(--ink-2); display: block; margin-top: 4px; }
.logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); /* 16社を2行（2026-11-29 原田さん） */ gap: 20px 24px; padding: 8px 0 40px; border-bottom: 1px solid var(--rule); margin-bottom: 40px; }
.logos { align-items: center; justify-items: center; }
.logos img { display: block; width: auto; max-width: 100%; height: var(--h, 40px); object-fit: contain; } /* ロゴごとに余白を除き、見た目の面積がそろう高さ（--h）で表示（2026-11-26 原田さん「ロゴの大きさがそろっていない。→揃える」） */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--rule); margin-bottom: 16px; }
.card__kind { font-size: 12px; color: var(--ink-2); margin: 0 0 8px; }
.card h3 { font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.card p { margin: 0 0 12px; font-size: 14px; }
.card .res { font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.foot { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.foot .more { margin-left: auto; }

.rep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 32px; }
.rep img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); margin-bottom: 12px; }
.rep__kind { font-size: 12px; color: var(--ink-2); margin: 0 0 8px; }
.rep h3 { font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.rep p { margin: 0; font-size: 14px; }
.rep .txt { border-top: 2px solid var(--structure); padding-top: 16px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li:first-child { padding-top: 0; }
.list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.list time { font-family: var(--f-num, inherit); font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.list b { font-weight: 500; }
.list span { display: block; font-size: 13px; color: var(--ink-2); }

.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.why div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { margin: 0; font-size: 14px; }
.tentative { font-size: 12px; color: var(--ink-2); border: 1px dashed var(--rule); padding: 2px 8px; display: inline-block; margin-bottom: 12px; }

.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: var(--t-s); color: var(--ink-2); }
.facts dd { margin: 0; }

.band { background: var(--surface); padding: 72px 0; }
.band .w { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; }
.band__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.band__head h2 { margin-bottom: 0 !important; }
.band__head h2 { font-size: var(--t-xl); line-height: 1.3; margin-bottom: 24px; }
.band__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.band__lead { margin: 12px 0 0; color: var(--ink-2); }
.band__lead span { display: inline-block; } /* スマホでは「…ご請求を／受け付けています。」の位置で改行（2026-11-26 画面確認: balance で1行目が幅の半分で切れていた） */
.band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.band__steps { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--structure); }
.band__steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.band__steps b { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.band__steps span { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; }

.ftr { border-top: 2px solid var(--structure); padding: 56px 0 32px; font-size: 14px; }
/* フッター（2026-11-26 原田さん「フッターのサービスの詳細ページがこんな配置でいいとは思わない」）: 参考 WACUL（ロゴ・会社名と住所／下の線の下に © と規程類）・LANY（親のリンクの下に子のページを並べる） */
.ftr .w { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; column-gap: 72px; row-gap: 0; }
.ftr__logo { display: inline-block; margin-bottom: 20px; } .ftr__logo img { display: block; height: 18px; width: auto; }
.ftr__co b { display: block; font-size: 15px; margin-bottom: 6px; }
.ftr__co p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr__col > li + li { margin-top: 12px; }
.ftr__top { font-weight: 700; }
.ftr__sub { margin-top: 12px !important; }
.ftr__sub li + li { margin-top: 12px; }
.ftr__sub a { color: var(--ink-2); }
.ftr__sub a::before { content: "– "; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-2); }
.ftr__bottom a { color: var(--ink-2); }

@media (max-width: 900px) {
  .fv { background: none; }
  .fv::before { content: ""; display: block; aspect-ratio: 16 / 9; background: url(../img/fv.jpg) center / cover no-repeat; }
  .fv .w { padding-top: 24px; padding-bottom: 56px; }
  .fv__act .btn { white-space: normal; }
  .mission .w, .band .w, .ftr .w { grid-template-columns: minmax(0, 1fr); }
  .mission__label, .mission__body, .band__head, .band__steps { grid-column: auto; }
  .mission__label { margin-bottom: 24px; }
  .mission__cols, .svc4, .cards, .rep, .why, .nums { grid-template-columns: minmax(0, 1fr); }
  .mission__cols > div + div { margin-top: 20px; }
  .svc4 article:nth-child(n) { border-left: 0; padding: 20px 0; }
  .nums div + div { padding-left: 0; border-left: 0; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .facts div { grid-template-columns: minmax(0, 1fr); }
  .band__steps { margin-top: 32px; }
  .ftr .w { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; } .ftr__co, .ftr nav[aria-label="サービス"], .ftr__bottom { grid-column: 1 / -1; } .ftr .w > * { margin-top: 32px; } .ftr .w > .ftr__co { margin-top: 0; } .ftr__bottom { flex-direction: column-reverse; gap: 12px; }
  .foot .more { margin-left: 0; }
}

/* ナビは6項目あるため、1180px 未満ではメニューに畳む（sloplint --render 49a: 1024px で2行に折り返し） */
.nav a { white-space: nowrap; }
@media (max-width: 1180px) { .nav, .hdr .btn:not(.btn--primary) { display: none; } }
/* 375px で主ボタンが3px はみ出す（34）: 狭い画面ではボタンの文字を折り返し可に */
@media (max-width: 420px) { .hdr .btn { padding: 0 12px; font-size: 13px; } .hdr .btn .long { display: none; } }
.sns a { display: inline-flex; color: var(--ink); margin-top: 8px; }
.sns a:hover { color: var(--accent); }

/* ===== 動き（2026-11-21・WACUL ∪ LANY の動きを足し合わせた案。削るのは原田さんが実ページで見たあと） =====
   M1 FV の要素を読み込み時に順に表示（LANY）  M2 区画とまとまりをスクロールで表示 0.8s・遅れ0.4s（WACUL）
   M3 ループする文字の帯（LANY）  M4 FV の「Scroll」の合図（LANY）  M5 ボタン・リンクの hover 0.3s と下線が伸びる（WACUL・LANY）
   動きを減らす設定の端末では、すべて止める */
:root { --ease: cubic-bezier(0.4, 0.4, 0, 1); }
/* 2026-11-26 原田さん「1、2、4採用」: ①文字は最初から表示（薄い状態から現れる動きをやめる）②見出しの上の線をスクロールで左から引く ④画像のあるカードだけ、見えたまま下から少し上がる（参考: Holum Studio の下線・Designit の Work highlights） */
.js-motion .part__head.ln { border-top-color: transparent; position: relative; }
.js-motion .part__head.ln::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--structure); transform: scaleX(0); transform-origin: left center; transition: transform .6s var(--ease); }
.js-motion .part__head.ln.in::before { transform: scaleX(1); }
.js-motion .rise { transform: translateY(48px); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js-motion .rise.in { transform: none; }
.fv__scroll { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.fv__scroll::after { content: ""; width: 1px; height: 28px; background: var(--ink-2); transform-origin: top; animation: scrollcue 1.8s var(--ease) infinite; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.loop { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0; margin: 0 0 120px; }
.loop__track { display: flex; width: max-content; animation: loop 40s linear infinite; }
.loop__track span { font-family: var(--f-head); font-weight: 700; font-size: clamp(28px, 4vw, 48px); color: var(--structure); padding-right: 64px; white-space: nowrap; }
@keyframes loop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.btn { transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.more { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); text-decoration: none; border-bottom: 1px solid var(--rule); }
.more:hover { background-size: 100% 1px; }
.fv__scroll:hover::after, .fv__scroll:focus::after, .loop:hover .loop__track { animation-play-state: paused; }
@media (max-width: 900px) { .fv__scroll { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js-motion .rise { transform: none !important; transition: none !important; } .js-motion .part__head.ln { border-top-color: var(--structure); } .js-motion .part__head.ln::before { display: none; }
  .fv__scroll::after, .loop__track { animation: none !important; }
}


/* カード全体のリンク（LANY の事例一覧と同じ挙動。2026-11-23） */
a.card { display: block; color: inherit; text-decoration: none; }
a.card .card__fig { margin: 0 0 16px; overflow: clip; border: 1px solid var(--rule); }
a.card .card__fig img { border: 0; margin: 0; transition: scale .3s cubic-bezier(0, 0, 0.4, 1); }
a.card h3 { transition: color .3s cubic-bezier(0, 0, 0.4, 1); }
a.card:hover .card__fig img { scale: 1.1; }
a.card:hover h3 { color: var(--accent); }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { a.card .card__fig img, a.card h3 { transition: none; } }

/* 項目名＋文の行の並び: 最後の行の下罫線は付けない（2026-11-23 原田さん「最下部は下の罫線不要」「他のページもです」） */
.facts > div:last-child, .sum > div:last-child, .ginfo > div:last-child { border-bottom: 0; }

/* 事例カードのサービス名のラベル・業種（トップ・事例一覧と同じ。2026-11-23） */
.card .tags { gap: 6px; margin: 0 0 10px; }
.card .tags li { font-family: var(--f-head); font-weight: 700; font-size: 12px; line-height: 1.4; padding: 3px 8px; background: var(--structure); color: var(--paper); }
.card .card__ind { font-size: 12px; color: var(--ink-2); margin: 0 0 12px; }
/* 表・行の並び: 最後の行の下罫線は付けない（2026-11-23 原田さん「下の罫線は不要、他のページもです」） */
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td, .keys li:last-child, .pairs li:last-child, .steps li:last-child, .list li:last-child, .talks li:last-child, .toc5 li:last-child, .band__steps li:last-child, .svcl > li:last-child { border-bottom: 0; }

/* 区画の線と、一覧の上の太線が重なる場合は、区画の線を外す（2026-11-23 原田さん「上の罫線が2重なので解消する」） */
.part__body:has(> .talks:first-child, > .keys:first-child, > .track:first-child, > .nums:first-child, > .band__steps:first-child, > .tk:first-child) { border-top: 0; padding-top: 0; }
#docs .part__body:has(.txt) { border-top: 0; padding-top: 0; }
/* 会社の概要の表と地図（トップと同じ形。2026-11-26 原田さん「これも右側にマップを入れましょうか。他のサービスページも同様です」） */
.prof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.prof .facts div { grid-template-columns: 7em minmax(0, 1fr); gap: 12px; }
.prof__map { aspect-ratio: 600 / 395; }
@media (max-width: 900px) { .prof { grid-template-columns: minmax(0, 1fr); } }

/* CTA の組（2026-11-26 原田さん「お問い合わせの方が重要なCTAのボタンなんで、こっちの方がでかくあるべき、または同じ同格の大きさにあるべき」）:
   お問い合わせと資料ダウンロードを同じ幅・同じ高さに。トップと下層で大きさをそろえる（60px・17px）。スマホでは同じ幅で縦に並べる */
.fv__act, .cta-mid__acts, .band__btns, .phero__act, .fee .acts { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: stretch; }
.fv__act .btn, .cta-mid__acts .btn, .band__btns .btn, .phero .phero__act .btn, .fee .acts .btn { min-height: 60px; padding: 0 32px; font-size: 17px; justify-content: center; }
@media (max-width: 600px) { .fv__act, .cta-mid__acts, .band__btns, .phero__act, .fee .acts { grid-auto-flow: row; } }
.hdr .btn--sm { min-width: 10.5em; justify-content: center; }

/* 2026-11-26 デザインの再確認（原田さん「もう一回チェックし直してください」）で直したもの */
.ib { display: inline-block; }
.nw { white-space: nowrap; }
@media (max-width: 600px) { .fv__act, .cta-mid__acts, .band__acts, .band__btns, .phero__act, .fee .acts { width: 100%; } .mission__text { font-size: 30px; } .facts > div { grid-template-columns: minmax(0, 1fr) !important; gap: 2px; } }
