/* デザイン B案の下層ページ（お問い合わせ・送信完了・プライバシーポリシー・404）で共通の見た目。
   色・書体・ヘッダーはトップ（index.html）に合わせ、紙面の調子は余白を広く・文字を小さく・細い線で区切る落ち着いた組み方にする */
:root {
  --ink: #26333D;
  --ink-soft: #5B6873;
  --ink-mute: #8B969F;
  --line: rgba(38,51,61,.14);
  --wuuzy-blue: #0080C8; /* WUUZY のロゴの SVG の値 */
  --error: #C8402F;
  --slate: #4F5C68;      /* フッターの地 */
  --latin: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ja: "YakuHanJP", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --white-type: 0 1px 2px rgba(38,51,61,.14), 0 6px 14px rgba(38,51,61,.10), 0 18px 50px rgba(38,51,61,.12);
  --gutter: 4.5vw;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
body { min-width: 320px; color: var(--ink); font-family: var(--ja); -webkit-font-smoothing: antialiased; background: #EEF0F2; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wuuzy-blue); outline-offset: 4px; border-radius: 2px; }

/* 背景：トップと同じ淡いグレー（青は混ぜない） */
.bg { position: fixed; inset: 0; z-index: 0; background: radial-gradient(90% 70% at 30% 20%, #F7F8F9 0%, rgba(247,248,249,0) 70%), linear-gradient(180deg, #ECEEF0 0%, #F4F5F6 60%, #EEF0F2 100%); }


main { position: relative; z-index: 2; }
/* 横にはみ出す飾り（回る立体の canvas・流れる文字など）があると、スマホでは body の overflow-x: hidden が効かず、ページ全体が縮んで表示される。
   中身の箱で横だけ切る（clip はスクロールの箱を作らないので、position: sticky の演出はそのまま動く） */
main, .bt { overflow-x: clip; }

/* パンくず：ヘッダーの下、左寄せ。たどれる階層は灰色、今いるページは青（Figma 下層FV 案6） */
.bc { position: relative; z-index: 3; padding: 24px var(--gutter) 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #41A0DD; }
.bc ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; }
.bc li { display: flex; align-items: center; }
.bc li + li::before { content: "/"; margin: 0 12px; color: var(--ink-soft); }
.bc a { color: var(--ink-soft); }   /* ホバーはヘッダー・フッターの文字のリンクと同じ（data-roll・header.css の .roll） */

/* ページの頭（Figma 下層FV 案6）：左寄せ・高さを詰めた形。後ろに薄い文字の壁が3行流れ、
   その上に立体の頭文字＋白い大きな英字、下に説明。パンくずから英字までは 75px、英字から説明までは 42px */
.page-head { position: relative; padding: 75px var(--gutter) 140px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.page-head .head-row { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 42px; }
/* 大きな英字（ファーストビュー）の下端から本文（セカンドビュー）の始まりまでは、どのページ・どの画面幅でも 140px（page-head の下の余白）。各ページの最初の段は上に余白を持たない */
/* 英字の大きさはどのページも同じ。いちばん長い語（--n 文字。lib/page-head.ts が入れる）が画面の幅からはみ出すときだけ、収まるまで小さくする */
.page-head .big { font-family: var(--latin); font-weight: 700; font-size: min(clamp(64px, 10.4vw, 180px), calc((100vw - 2 * var(--gutter)) / (var(--n, 8) * .74))); line-height: .92; letter-spacing: -.01em; color: #fff; text-shadow: var(--white-type); white-space: nowrap; word-spacing: .18em; }
/* 背後を流れる薄い文字の壁：英字のコピー・日本語のコピー・社名の3行。パンくずの下から英字の後ろにかけて敷く */
.page-head .wall { position: absolute; z-index: 0; left: 0; right: 0; top: -90px; bottom: 0; overflow: hidden; pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.page-head .wall p { display: flex; width: max-content; font-family: var(--latin); font-weight: 700; font-size: 6.25vw; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; color: rgba(38,51,61,.06); animation: wall-l 160s linear infinite; }
.page-head .wall p.ja { font-family: var(--ja); font-weight: 700; animation-direction: reverse; }
.page-head .wall p.rev { animation-direction: reverse; }
.page-head .wall span { padding-right: .5em; }
@keyframes wall-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* 1 文字目はトップの W と同じく青、残りは白。立体で描ける環境では letter3d.js が 1 文字ずつ立体に差し替える */
.page-head .big .first { color: var(--wuuzy-blue); }
.page-head .big .bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; } /* ベースラインの位置を測る目印 */
.stage-letter { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }   /* ページの頭の中に敷く（画面に固定しない） */
.page-head .desc { width: 100%; max-width: 560px; margin: 0; text-align: left; font-size: 15px; font-weight: 500; line-height: 2; color: var(--ink-soft); }

/* まだ中身を作っていないページの、段ごとの薄い四角（文字は入れない。中身が決まったら差し替える） */
.wip { position: relative; z-index: 2; display: grid; gap: 120px; padding: 0 var(--gutter); }
.wsec { display: grid; gap: 28px; }
.wb { border-radius: 14px; background: rgba(38,51,61,.06); }
.wb.h { width: min(320px, 50%); height: 26px; border-radius: 6px; background: rgba(38,51,61,.1); }
.wb.bar { height: 12px; border-radius: 4px; }
.wb.bar.m { width: 82%; } .wb.bar.s { width: 58%; } .wb.bar.xl { width: 60%; height: 22px; } .wb.bar.n { width: 50%; height: 28px; } .wb.bar.th { width: 30%; }
.wb.pill { width: 220px; height: 52px; border-radius: 999px; }
.wbars { display: grid; gap: 14px; align-content: center; }
.wrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wgrid { display: grid; gap: 24px; } .wgrid.g2 { grid-template-columns: repeat(2, 1fr); } .wgrid.g3 { grid-template-columns: repeat(3, 1fr); } .wgrid.g4 { grid-template-columns: repeat(4, 1fr); }
.wcard { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.55); }
.wcard.tile { padding: 28px 24px; }
.wcard.row { grid-template-columns: 160px 1fr; align-items: center; }
.wtable { display: grid; gap: 0; } .wtr { display: grid; grid-template-columns: 30% 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid rgba(38,51,61,.08); } .wtr .bar.th { width: 70%; }
.wline { display: grid; gap: 24px; max-width: 760px; margin: 0 auto; width: 100%; }
@media (max-width: 820px) { .wip { gap: 80px; } .wrow2, .wgrid.g3, .wgrid.g4 { grid-template-columns: 1fr; } .wgrid.g2 { grid-template-columns: 1fr; } }

/* 本文の小見出し：小さな字と細い線 */
.label { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.label .en { display: block; margin-bottom: 4px; font-family: var(--latin); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--wuuzy-blue); }

/* ボタン：右下のお問い合わせ・お知らせのカテゴリと同じ立体の丸いボタン。白い立体（主のボタンも同じ）。乗せると少しふくらむ */
.btn { display: inline-flex; gap: 14px; align-items: center; justify-content: center; padding: 18px 30px; border: 0; border-radius: 999px; color: var(--ink); font: 700 14px/1 var(--ja); letter-spacing: .06em; cursor: pointer; background: #F7F9FB; box-shadow: inset 0 2px 1px rgba(255,255,255,1), inset 0 -2px 2px rgba(38,51,61,.12), inset 2px 0 2px rgba(38,51,61,.04); transition: transform .3s cubic-bezier(.2,.7,.1,1), color .25s; }
.btn:hover, .btn:focus-visible { transform: scale(var(--hv-scale)); color: var(--hv-color); }   /* ホバーの決まりは header.css の --hv-* */
/* 矢印のあるボタンは、トップの「〜を見る」と同じ形：白い立体の丸いボタンの右端に、青い立体の丸の矢印。主のボタンも同じ白（青い丸で目立たせる） */
.btn:has(.arw) { justify-content: space-between; padding: 8px 8px 8px 26px; }
.btn:has(.arw.lead), .btn:has(.arw.left) { padding: 8px 26px 8px 8px; }   /* 矢印が左にあるボタン（修正する・〜へ戻る）。戻るボタンは .left（.lead はページの説明文の class と名前がかぶるため） */
.btn .arw { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-family: var(--latin); font-size: 14px; font-weight: 500; background: #0080C8; box-shadow: inset 0 2px 1px rgba(183,209,234,.95), inset 0 -2px 2px rgba(40,90,150,.45), inset 2px 0 2px rgba(40,90,150,.18); transition: transform .5s cubic-bezier(.23,1,.32,1); }
.btn:hover .arw, .btn:focus-visible .arw { transform: translateX(var(--hv-arrow)); }
.btn:hover .arw.lead, .btn:focus-visible .arw.lead, .btn:hover .arw.left, .btn:focus-visible .arw.left { transform: translateX(calc(var(--hv-arrow) * -1)); }

/* フッター前の案内のカード（footer.css）との間をあける */
.bt { margin-top: 150px; }

/* フッター：同じ地のまま、リンクの段と、最後にミッションで締める */

/* 画面に入ったら、下からふわっと現れる */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.1,1); }
.rv.in { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { position: fixed; z-index: 10; left: var(--gutter); bottom: 18px; font-size: 11px; color: #97A1A9; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .page-head .wall p { animation: none; } }

@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .bc { padding-top: 16px; }
  .page-head { padding-top: 16px; }   /* スマホはタイトルを上に寄せる（2026-10-30） */
  .page-head .head-row { gap: 24px; }
  /* 幅に比例して小さくし、820px で PC（10.4vw）とつながる。8 文字より短い語も 8 文字の語（BUSINESS）と同じ大きさにし、それより長い語（RECRUITMENT）だけ収まるまで小さくする */
  .page-head .big { font-size: min(calc(6.75vw + 29.5px), calc((100vw - 2 * var(--gutter)) / (max(var(--n, 8), 8) * .74))); white-space: normal; }   /* 2 語の名前（ABOUT US）は語の切れ目で折り返す */
  .page-head .wall p { font-size: 11vw; }
  .bt { margin-top: 100px; }
  .note { display: none; }
}
/* 320px でも、いちばん長いパンくず（HOME / カスタマーハラスメントに対する基本方針）を 12px のまま 1 行に収める */
@media (max-width: 374px) { .bc { letter-spacing: 0; } .bc li + li::before { margin: 0 5px; } }
