/* ============================================================
   キタキャリ 求職者向けLP ワイヤーフレーム
   グレースケールのみ：#fff / #f5f5f5 / #e0e0e0 / #999 / #333
   色相・影・グラデ・Webフォント・アイコンフォントは使わない。
   骨格（箱・枠線・プレースホルダ）の確認用。
   ============================================================ */

/* ---------- リセット／基本 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, sans-serif; /* Webフォント不使用：OS標準のみ */
  color: #333;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* SP固定CTAバー分の余白は、バーを表示するSP幅でのみ付与（下記 media）。
     PCではバー非表示なのでフッター下に余白を作らない（白い帯の正体はこれだった）。 */
}

img { max-width: 100%; display: block; }

a { color: #333; }

/* 行ブロック：br を使わず「1文＝1行」を表現するためのブロック要素。
   見出し・リード等で2〜3文を改行して見せたい箇所に使う。 */
.ln { display: block; }

/* ---------- レイアウト共通 ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section { padding: 56px 0; border-top: 1px solid #e0e0e0; }

.section-title {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  display: inline-block;
}

/* リード等の行長は絶対値pxで縛らず、文字数単位（ch）＋balanceで制御 */
.lead {
  margin-bottom: 24px;
  color: #333;
  /* max-width は撤去。リードは .ln で改行を手動指定しており（worries/reasons/cases）、
     measure 制御は不要。54ch が手動行を1字オーバーで再折返しさせ「頑張り」分断を起こしていた。
     素テキストの advisor リードは design.css 側で max-width:none 上書き済み。 */
  text-wrap: balance;
}

.note {
  font-size: 12px;
  color: #999;
  margin-top: 14px;
}

/* ---------- プレースホルダ（写真・ロゴ） ---------- */
.ph {
  background: #f5f5f5;
  border: 1px dashed #999;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
}
.ph-logo {
  width: 96px; height: 36px;
  font-size: 12px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: #333;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ============================================================
   Header（sticky）
   ============================================================ */
.site-header {
  /* 追従しない（スクロールで流す）。CTAはスクロール後のフロート帯に集約する。 */
  position: relative;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.global-nav { margin-left: auto; }
.global-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
}
.global-nav a {
  font-size: 13px;
  text-decoration: none;
  color: #333;
}
.global-nav a:hover { text-decoration: underline; }
.header-cta { flex-shrink: 0; }

/* ============================================================
   ボタン（CTA）— 色は付けず、線種・塗りの濃淡だけで階層を示す
   ============================================================ */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 12px 22px;
  font-size: 15px;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.3;
}
.btn-primary { background: #333; color: #fff; }            /* 主CTA（=LINE）：濃 */
.btn-line { background: #f5f5f5; color: #333; border-style: dashed; } /* ご家族の補助CTA等：破線で区別（色は後工程） */
.btn-lg { padding: 16px 32px; font-size: 17px; width: 100%; max-width: 360px; }

.header-cta { padding: 8px 14px; font-size: 13px; }

/* CTAグループ */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.cta-group--center { justify-content: center; }
.cta-group--stack { flex-direction: column; align-items: center; }
/* 主CTA＋補助テキストを縦に組む */
.cta-group--lead { flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-group--lead.cta-group--center { align-items: center; }
.cta-subtext { font-size: 13px; color: #999; margin: 0; }

/* ============================================================
   チップ（FVの年収・職種・不安払拭）
   ============================================================ */
.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.chip {
  border: 1px solid #999;
  background: #fff;
  padding: 5px 12px;
  font-size: 13px;
  border-radius: 16px;
}
.chip--assure { font-size: 12px; border-style: dashed; color: #333; }

/* ============================================================
   S1. FV（働くシーン画像スライダー＋H1オーバーレイ → 下にコンテンツ帯）
   ============================================================ */
.fv { background: #f5f5f5; }

/* --- 全幅スライダー --- */
.hero-slider {
  position: relative;
  width: 100%;
  background: #333;
  overflow: hidden;
}
.slides { list-style: none; }
.slide {
  /* ヒーロー高さはビューポート基準で大きく（約84vh）。横幅(vw)基準にしない＝ワイドで巨大化しない */
  position: relative;
  height: clamp(560px, 84vh, 900px);
}
.slide[hidden] { display: none; }
.slide-img {
  position: relative;
  width: 100%;
  height: 100%;
  background: #d4d4d4;
  border: none;
  padding: 0;
  display: block;
}
/* スライドごとにトーンを変えて「切り替わっている」のが分かるようにする（本番は写真に差し替え） */
.slide-img--1 { background: #d9d9d9; }
.slide-img--2 { background: #cccccc; }
.slide-img--3 { background: #c1c1c1; }
.slide-img--4 { background: #d2d2d2; }
/* 画像スロットであることが分かる大きめの番号（中央・薄い） */
.slide-no {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;     /* 左のコピーパネルと重ならないよう右側に寄せる */
  padding-right: 6%;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: bold;
  color: rgba(0, 0, 0, 0.22);
  letter-spacing: .04em;
}
/* 画像の説明ラベルは「左上の小さなキャプション・チップ」に固定（コピーパネルと重ねない） */
.slide-img-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: min(70%, 44ch);
  background: #fff;
  border: 1px solid #999;
  color: #333;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  padding: 5px 9px;
}
/* コピーは画像上の「縦中央・左」に置いたパネル。左下に置かない。
   パネル自体に背景を持たせて可読性を担保（全面スクリムは使わない） */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;          /* 縦中央 */
  /* 下端に重なる求人例帯（約200〜240px）ぶんを下余白として確保し、
     コピー＋CTAが「帯を除いた上側」で中央寄せされるようにする。
     これがないと縦の短いFHD等でLINEボタンが帯に隠れる。 */
  padding: 0 0 clamp(180px, 22vh, 240px);
  pointer-events: none;         /* 背面のスライダーボタンを押せるように */
}
.hero-overlay-inner { width: 100%; max-width: 1200px; } /* 他セクション(.container=1200px)と左端を揃える */
.hero-copy {
  background: rgba(0, 0, 0, 0.58);
  padding: clamp(20px, 2.6vw, 30px);
  /* 見出しが各文1行で読める幅に。狭い箱で細切れにしない */
  max-width: 720px;
  pointer-events: auto;         /* テキストを選択できるようにする（オーバーレイのnoneを打ち消す） */
}
/* 数字レンジ（300万〜600万円台）は途中で割れないようにする（局所nowrap・keep-allは使わない） */
.nb { white-space: nowrap; }
.hero-overlay .fv-label {
  color: #fff;
  background: transparent;
  border-color: #fff;
  margin-bottom: 14px;
}
.hero-overlay .fv-h1 {
  color: #fff;
  margin-bottom: 0;
  max-width: none;
  /* 各文が1行で収まるサイズに（幅720pxのパネルに21文字が1行で入る） */
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.5;
}
/* 前/次ボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* 一時停止ボタン（自動送りを入れる場合用） */
.slider-pause {
  position: absolute;
  top: 12px; right: 12px;
  transform: none;
  z-index: 3;
  width: auto; height: auto;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
}
/* ドットインジケータ（重ねた求人例バンドに隠れないよう、その上に配置） */
.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: clamp(116px, 14vh, 156px);
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.dot.is-active { background: #fff; }
.dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* 動きを減らす設定では自動送りを止める（実装側で参照）。
   CSSアニメは使っていないが、将来のJS自動送りはこのメディアで停止すること */
@media (prefers-reduced-motion: reduce) {
  .slides, .slide { transition: none !important; animation: none !important; }
}

/* --- スライダー下のコンテンツ帯 --- */
.fv-inner {
  /* 求人例バンドをヒーロー下端に重ねて、最初の画面に「働くシーン＋見出し＋求人例」を見せる */
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(-104px, -9vh, -64px); /* 上に引き上げてヒーローに重ねる */
  padding-top: 0;
  padding-bottom: 52px;
}
.fv-label {
  font-size: 12px;
  color: #333;
  background: #fff;
  border: 1px solid #999;
  display: inline-block;
  padding: 3px 10px;
  margin-bottom: 18px;
}
.fv-h1 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 22px;
  text-wrap: balance;
}

/* 年収数字バンド＝ビジュアルの核。薄トーンのFV上で白カードにして数字を浮き立たせる */
.salary-band {
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.salary-band-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: flex-end;
}
/* 職種×年収のペア。職種を小さく上に、年収を大きく主役に */
.salary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.salary-job {
  font-size: 13px;
  color: #333;
  line-height: 1.3;
}
.salary-amount {
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: -0.01em;
}
.salary-unit {
  font-size: 14px;
  font-weight: normal;
  margin-left: 2px;
}

.fv-note { margin-top: 4px; }
.fv-sub { margin: 18px 0; max-width: 54ch; text-wrap: balance; }

/* ============================================================
   S2. こんな悩み（2列カード）
   ============================================================ */
.worry-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.worry-card {
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
  padding: 16px 18px;
  position: relative;
  padding-left: 38px;
}
.worry-card::before {
  content: "□";              /* チェックボックス風（色なし） */
  position: absolute;
  left: 14px; top: 14px;
  color: #999;
}
.closing-line {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-top: 8px;
}

/* ============================================================
   S3. 選ばれる理由（番号付き横帯：3つ）
   ============================================================ */
.reason-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
/* 各強み＝テキスト＋画像の2カラム。画像は左右交互（ジグザグ）で量産感を避ける。
   番号装飾・片側太ボーダーは使わず、背景トーン差で各項目を区切る。 */
.reason-row {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #f5f5f5;
  padding: 28px 32px;
}
.reason-textcol { flex: 1 1 54%; }
.reason-img {
  flex: 0 0 42%;
  aspect-ratio: 4 / 3;
  background: #e0e0e0;
  border: none;
  padding: 16px;
}
/* 偶数行は画像を左に（ジグザグ配置） */
.reason-row:nth-child(even) .reason-img { order: -1; }
.reason-img-label { font-size: 12px; color: #333; line-height: 1.5; text-wrap: balance; }
.reason-label { margin-bottom: 12px; }
.reason-kicker { font-size: 13px; color: #555; font-weight: bold; line-height: 1.5; letter-spacing: .02em; margin-bottom: 6px; }
/* text-wrap:balance は和文を語の途中（全部/ちょっと等）で割るため不使用。改行は .ln で手動指定。 */
.reason-title { font-size: 20px; line-height: 1.45; }
.reason-text { font-size: 14.5px; line-height: 1.85; }

/* ============================================================
   S4. 転職成功事例（現実感のため中サイズ人物画像＋声主役。SP横スクロール／PC 2列）
   階層：人物画像（中・上）→ Before→After（大）→ 声（主役・最大面積）→ 属性・配慮（小）
   ============================================================ */
.scroll-hint { display: none; font-size: 12px; color: #999; margin-bottom: 8px; }
/* 事例カードのレイアウトは design.css の「事例：単一flex定義」に集約（重複防止）。
   ここでは最小の体裁（リストマーカー除去・本人の声/属性/配慮の基本タイポ）だけ持つ。 */
.case-list { list-style: none; }
.case-photo-label { font-size: 12px; color: #333; max-width: 26ch; text-wrap: balance; }
.case-ba-arrow { color: #999; }
.case-voice { font-size: 15px; line-height: 1.85; color: #333; }
.case-attr { font-size: 12px; color: #999; }
.case-care {
  font-size: 12px;
  color: #333;
  background: #f5f5f5;
  padding: 8px 10px;
}
.care-label {
  font-size: 11px;
  color: #999;
  border: 1px solid #999;
  padding: 1px 6px;
  margin-right: 6px;
}
.bridge {
  text-align: center;
  font-size: 16px;
  margin: 24px auto 4px;
  max-width: 56ch;
  text-wrap: balance;
}

/* ============================================================
   S5. 数字で見るキタキャリ（4バッジ横並び）
   ============================================================ */
.number-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.number-badge {
  border: 1px solid #333;
  padding: 24px 14px;
  text-align: center;
}
.number-big {
  display: block;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 10px;
}
.number-desc { display: block; font-size: 12px; color: #333; }

/* ============================================================
   S5b. アドバイザー紹介（顔写真＋専門＋一言の3名）
   均一3列でAIっぽくしないよう、写真比率と余白で素っ気なくしない
   ============================================================ */
.advisor-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 6px;
}
.advisor-card {
  border: 1px solid #e0e0e0;
  background: #fff;
  padding: 0 0 20px;
  overflow: hidden;
}
/* ポートレート（縦長）。顔がしっかり見える比率に */
.advisor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: #e0e0e0;
  padding: 12px;
  margin-bottom: 16px;
}
.advisor-photo-label { font-size: 12px; color: #333; }
.advisor-name {
  font-size: 17px;
  font-weight: bold;
  margin: 0 20px 10px;
}
.advisor-role {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: #999;
  margin-top: 2px;
}
.advisor-spec {
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 20px 12px;
}
.advisor-voice {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 20px;
  background: #f5f5f5;
  padding: 10px 12px;
}

/* ============================================================
   S8b. 代表メッセージ（顔写真＋本文＋氏名・落ち着いた語りかけ）
   ============================================================ */
.section--ceo { background: #f5f5f5; }
.ceo-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
}
.ceo-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: none;
  background: #e0e0e0;
  padding: 12px;
}
.ceo-photo-label { font-size: 12px; color: #333; text-wrap: balance; }
.ceo-message {
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 16px;
}
.ceo-name { font-size: 14px; color: #555; }

/* ============================================================
   S6. FAQ（アコーディオン details/summary）
   ============================================================ */
.faq-list { list-style: none; }
.faq-item {
  border: 1px solid #e0e0e0;
  border-bottom: none;
}
.faq-list li:last-child .faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-q {
  cursor: pointer;
  padding: 16px 44px 16px 16px;
  position: relative;
  font-weight: bold;
  background: #f5f5f5;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "＋";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: #999;
}
.faq-item[open] .faq-q { background: #e0e0e0; }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a { padding: 14px 16px; font-size: 14px; background: #fff; }

/* ============================================================
   S7. ご家族の方へ
   ============================================================ */
.section--family { background: #f5f5f5; }
.family-text { margin-bottom: 8px; }

/* ============================================================
   S8. クロージング
   ============================================================ */
.section--closing { text-align: center; background: #f5f5f5; }
.section--closing .section-title { border-bottom-width: 2px; }
.closing-text { margin-bottom: 24px; }
.reassure { font-size: 13px; color: #999; margin-top: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid #333;
  background: #fff;
  padding: 40px 0 32px;
}
.footer-name { font-weight: bold; margin-bottom: 8px; }
.footer-address { font-style: normal; font-size: 13px; color: #333; margin-bottom: 20px; }
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
}
.footer-nav a { font-size: 13px; }
.footer-legal {
  list-style: none;
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-legal a { font-size: 13px; color: #999; }
.footer-copy { font-size: 12px; color: #999; }

/* ============================================================
   SP固定CTAバー（LINE単一・全幅。PCでは非表示）
   ============================================================ */
.sp-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  border-top: 1px solid #333;
  background: #fff;
}
.sp-cta {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 16px 8px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}
.sp-cta--primary { background: #333; color: #fff; }

/* ============================================================
   レスポンシブ：タブレット
   ============================================================ */
@media (max-width: 900px) {
  .number-list { grid-template-columns: repeat(2, 1fr); }
  .global-nav { display: none; }   /* 中間幅はナビ簡略化（CTAは残す） */
  .slide { height: clamp(520px, 78vh, 760px); }
  .case-list { grid-template-columns: 1fr; } /* 中間幅は事例1列で声を読ませる */
}

/* ============================================================
   レスポンシブ：スマホ（SP最優先・375px基準）
   ============================================================ */
@media (max-width: 720px) {
  /* フロートCTA帯はスクロールで出てクロージングで隠れる＝下部余白の予約は不要 */

  .section { padding: 40px 0; }
  .section-title { font-size: 19px; }

  /* FVスライダー：SPは縦に高さを確保（H1が乗っても潰れない） */
  .slide { height: clamp(560px, 74vh, 720px); }
  .hero-overlay { padding-inline: 44px; }  /* 左右の矢印ボタンにコピーがかぶらないよう内側に寄せる */
  .hero-overlay .fv-h1 { max-width: none; }
  .hero-copy { max-width: none; }   /* SPはコンテナ幅いっぱいにパネルを使う */
  .slider-pause { font-size: 11px; padding: 5px 9px; }
  .fv-inner { max-width: none; padding-top: 28px; }
  .fv-h1 { font-size: 24px; }
  .salary-amount { font-size: 22px; }   /* SPは帯が主張しすぎないよう一段小さく */
  .salary-band-list { gap: 12px 20px; }

  /* CTAはSPで全幅・縦並び */
  .cta-group .btn { width: 100%; }
  .cta-group { flex-direction: column; }
  .cta-group--lead { align-items: stretch; }
  .cta-subtext { text-align: center; }
  .header-cta { display: none; } /* SPは固定バーに集約 */

  /* 悩みカード：1列 */
  .worry-list { grid-template-columns: 1fr; }
  .closing-line { font-size: 16px; }

  /* 選ばれる理由：余白を詰める（基本構成は縦積みのまま） */
  /* 選ばれる理由：SPはテキスト→画像の縦積み（ジグザグ解除） */
  .reason-row { flex-direction: column; gap: 16px; padding: 20px; align-items: stretch; }
  .reason-textcol { flex-basis: auto; }
  .reason-img { flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; order: 0; }
  .reason-row:nth-child(even) .reason-img { order: 0; }

  /* 事例のSPレイアウト（縦積み）は design.css の単一flex定義側で対応。ここでは何もしない。 */

  /* 数字：SPは1列（4つ縦積み） */
  .number-list { grid-template-columns: 1fr; }
  .number-big { font-size: 26px; }

  /* アドバイザー：1列縦積み */
  .advisor-list { grid-template-columns: 1fr; gap: 16px; }
  .advisor-photo { aspect-ratio: 16 / 10; max-height: 240px; }

  /* 代表メッセージ：写真を上、本文を下に縦積み */
  .ceo-block { grid-template-columns: 1fr; gap: 16px; }
  .ceo-photo { aspect-ratio: 16 / 10; max-width: 220px; }

  .btn-lg { max-width: none; }

  /* SP固定CTAバー表示 */
  .sp-cta-bar { display: flex; }
}

/* ============================================================
   極小幅（〜375px）保険
   ============================================================ */
@media (max-width: 375px) {
  body { font-size: 15px; }
  .fv-h1 { font-size: 22px; }
  .salary-amount { font-size: 20px; }
  .chip { font-size: 12px; padding: 4px 10px; }
}
