/* ============================================================
   CloudTech Academy 固有
   ------------------------------------------------------------
   このページにしか出ないセクション。
   前提: tokens.css → base.css を先に読んでいること。
   ============================================================ */

.cta .btn-ghost,
.band-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }

.cta .btn-ghost:hover,
.band-cta .btn-ghost:hover { border-color: #fff; }

/* ============================================================
   ヒーロー（第5版で全面改修）
   旧: container の中に収まった 1fr + 300px の2カラム。
       左右に余白が残り、第一画面のインパクトが出なかった。
   新: 画面の横幅いっぱいを使い、右カラムに人物を「全高」で置く。
       競合（RUNTEQ／侍）が共通して採用している型。
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 92% 14%, rgba(249, 115, 22, 0.18), transparent 65%),
    radial-gradient(600px 400px at 85% 82%, rgba(148, 163, 184, 0.12), transparent 60%),
    linear-gradient(165deg, #fff8f1 0%, var(--brand-tint) 44%, #fff 100%);
}

/* ヒーロー全体にかかる斜めストライプ。テキストにもかかるが
   opacity 4%なので視認性に影響しない。全幅に広がることで
   テキスト側と画像側の統一感が出る。CSS のみ・JS なし */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--brand) 0px,
      var(--brand) 2px,
      transparent 2px,
      transparent 20px
    );
  pointer-events: none;
}

/* 全幅グリッド。右カラムは人物画像が下端まで届く */

.hero-full {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
  max-width: 1480px;
  margin-inline: auto;
  min-height: 640px;
}

.hero-copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* identity を外した分、上余白を詰めてコンテンツを上に寄せる */
  padding: 48px 48px 48px clamp(24px, 4vw, 72px);
}

/* 右カラム: 人物画像＋背景装飾 */

.hero-figure-col {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding-top: 32px;
}

/* ストライプはヒーロー全体に移動した（下の .hero::after） */

.hero-figure-col img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  /* 四角形のまま四辺をぼかして背景に溶け込ませる */
  -webkit-mask-image:
    linear-gradient(to right,  transparent, black 14%, black 86%, transparent),
    linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right,  transparent, black 14%, black 86%, transparent),
    linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
  mask-composite: intersect;
}

.hero-figure-note {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 8px;
  margin: 0;
  font-size: 11px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.78);
  padding: 3px 9px;
  border-radius: 4px;
}

/* ---------- サービス名（ロゴ＋振り仮名） ---------- */

.hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
}

.hero-identity-logo { height: 52px; width: auto; display: block; }

.hero-identity-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--authority);
  letter-spacing: 0.01em;
}

.hero-identity-kana {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.laurel-value small { font-size: 15px; font-weight: 700; color: var(--ink-3); margin-inline-start: 2px; }

/* ---------- ヒーロー直下の認定バッジ帯 ---------- */

.cert-strip {
  background: var(--authority);
  padding-block: 24px;
}

.cert-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 認定ペア（上段） */

.cert-strip-certs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 720px;
}

.cert-pair {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 16px;
}

.cert-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  height: 48px;
}

.cert-logo-card img {
  height: 32px;
  width: auto;
  max-width: 136px;
  display: block;
  object-fit: contain;
}

.cert-strip-item {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.cert-strip-item small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #9fb0c0;
  letter-spacing: 0.02em;
}

/* 価格情報（下段） */

.cert-strip-price {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 16px;
  text-align: center;
}

.cert-strip-price-main {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.cert-strip-price-main span {
  text-decoration: line-through;
  opacity: 0.7;
}

.cert-strip-price-main strong {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.cert-strip-price-note {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #9fb0c0;
}

.cert-strip-price-note a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cert-strip-price-note a:hover { color: #fff; }

.cert-strip-stats-note {
  margin: 0;
  width: 100%;
  font-size: 11px;
  color: #8a9ab0;
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
  margin-top: 4px;
}

/* ---------- モバイル用画像スロット（PCでは非表示） ---------- */

.hero-figure-mobile { display: none; }

@media (max-width: 1000px) {
  .hero-full {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /*
    スマホ並び順:
    1. キャッチコピー（hero-sub-copy + h1）
    2. サービスロゴ
    3. 画像
    4. 説明（lead）
    5. 月桂樹〜以降
    hero-copy-col の中身を flex + order で並べ替える。
    画像（hero-figure-col）は order:3 でコピーの途中に入り込む。
  */
  .hero-copy-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    padding: 16px 24px 24px;
  }
  .hero-sub-copy { order: 1; text-align: center; }
  .hero-copy-col h1 { order: 2; text-align: center; word-break: keep-all; overflow-wrap: break-word; }
  .hero-copy-col .lead { order: 5; text-align: left; }
  .hero-service-logo { order: 3; align-self: center; }
  .hero-figure-mobile { order: 4; align-self: center; }
  .hero-copy-col .lead { order: 5; }
  .hero-copy-col .laurel-row { order: 6; }
  .hero-copy-col .hero-price-strip { order: 7; }
  .hero-copy-col .hero-actions { order: 8; justify-content: center; }
  /* PCの右カラム画像は非表示。モバイルスロットを使う */
  .hero-figure-col { display: none; }
  .hero-figure-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: 8px 16px;
  }
  .hero-figure-mobile img {
    width: 100%;
    max-width: 380px;
    height: auto;
    -webkit-mask-image:
      linear-gradient(to right,  transparent, black 14%, black 86%, transparent),
      linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
    -webkit-mask-composite: destination-in;
    mask-image:
      linear-gradient(to right,  transparent, black 14%, black 86%, transparent),
      linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
    mask-composite: intersect;
  }
  .hero-service-logo { width: 200px; margin-bottom: 14px; }
}

@media (max-width: 600px) {
  .hero-identity { gap: 12px; margin-bottom: 18px; padding-bottom: 16px; }
  .hero-identity-logo { height: 40px; }
  .hero-identity-name { font-size: 13.5px; }
  .hero-identity-kana { font-size: 11.5px; }
  .cert-strip-logo { height: 38px; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: center;
}

/* ---------- ヒーロー サブコピー（h1 の上） ---------- */

.hero-sub-copy {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--brand);
}

/* ---------- ヒーロー h1 ---------- */

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(26px, 2.5vw, 29px);
  line-height: 1.4;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero h1 em { font-style: normal; color: var(--brand); }

.hero-h1-line-sm {
  font-size: clamp(22px, 2.1vw, 23px);
}

.hero-h1-line-lg {
  font-size: clamp(30px, 2.9vw, 34px);
}

/*
  マーカーの形とロゴの土台は base.css が持っている。
  ここでは変数だけ差し替える。セレクタを上書きしないので重複が生まれない。
    --marker       … Academy はオレンジのマーカー
    --brand-logo-h … ロゴが「CloudTech / Academy」の2段組で縦に長い
*/
.page-academy {
  --marker: rgba(249, 115, 22, 0.32);
  --brand-logo-h: 40px;
}

/* ---------- ヒーロー内のサービスロゴ（横長） ---------- */

.hero-service-logo {
  display: block;
  height: auto;
  width: clamp(220px, 28vw, 340px);
  max-height: none;
  margin-bottom: 18px;
  object-fit: contain;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 認定カード */

.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.cert-logo { width: 200px; margin: 0 auto 18px; display: block; }

.cert-text { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

.cert-text strong { display: inline-block; margin-top: 4px; font-size: 15px; color: var(--ink); }

.cert-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- 講座概要 ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 32px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec { background: #fff; padding: 24px 20px; }

.spec dt { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.02em; }

.spec dd { margin: 6px 0 0; font-size: 26px; font-weight: 700; line-height: 1.3; }

.spec dd span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }

.spec-price dd { color: var(--brand); }

/* 給付金ハイライト */

.subsidy-highlight {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--success-tint);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.subsidy-highlight-label { margin: 0; font-size: 14px; color: var(--ink-2); font-weight: 600; }

.subsidy-highlight-price { margin: 4px 0 0; font-size: 36px; font-weight: 700; color: var(--success); line-height: 1.2; }

.subsidy-highlight-price span { font-size: 18px; font-weight: 500; }

.subsidy-highlight-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- 目標 ---------- */

.goal-statement {
  font-size: 19px;
  line-height: 1.9;
  padding: 24px 28px;
  background: var(--brand-tint);
  border-radius: var(--radius);
  border-inline-start: 4px solid var(--brand);
  margin: 28px 0 24px;
}

.inline-link-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 15px;
}

.inline-link-box p { margin: 0; }

/* ---------- テーブル ---------- */

.curriculum,
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.curriculum th, .curriculum td,
.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.curriculum thead th, .data-table thead th {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.data-table tbody th { background: var(--bg-alt); font-weight: 600; width: 34%; }

.curriculum td:first-child { width: 60px; font-weight: 700; color: var(--brand); }

.curriculum td:last-child, .curriculum th:last-child { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }

.curriculum tbody tr:hover { background: var(--brand-tint); }

.curriculum tfoot td { background: var(--bg-alt); font-weight: 700; border-bottom: none; }

.curriculum tfoot td:last-child { text-align: right; color: var(--brand); }

/* ============================================================
   スプリント一覧（第5版: 左固定ナビ ＋ 右カード）
   スクロールの強制はしない。ナビは現在位置を示すだけ。
   ============================================================ */

.sprint-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}

/* ---- 左: 固定ナビ ---- */

.sprint-nav {
  position: sticky;
  /* ヘッダー(68px) + 余白 */
  top: 88px;
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sprint-nav-title {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.sprint-nav-group {
  display: flex;
  flex-direction: column;
  margin: 18px 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-2);
}

.sprint-nav-group:first-of-type { margin-top: 0; }

.sprint-nav-group span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
}

.sprint-nav-list { list-style: none; margin: 0; padding: 0; }

.sprint-nav-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sprint-nav-list a:hover { background: var(--brand-tint); color: var(--brand-dark); }

.sprint-nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.sprint-nav-num-final { background: var(--authority); border-color: var(--authority); color: #fff; }

/* 現在表示中の課題（JSが付与） */

.sprint-nav-list a.is-current {
  background: var(--brand);
  color: #fff;
}

.sprint-nav-list a.is-current .sprint-nav-num {
  background: #fff;
  border-color: #fff;
  color: var(--brand-dark);
}

/* ---- 右: カード ---- */

.sprint-panel { min-width: 0; }

.sprint-list { margin: 0; }

.sprint-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  /* 固定ヘッダー分のアンカーオフセット */
  scroll-margin-top: 92px;
}

.sprint-item.sprint-final { border-color: var(--authority); border-width: 2px; }

.sprint-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.sprint-final .sprint-summary { background: var(--authority); }

.sprint-final .sprint-name { color: #fff; }

.sprint-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 12px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sprint-final .sprint-num { background: var(--authority); }

.sprint-name { font-weight: 700; flex: 1; line-height: 1.45; }

.sprint-tech { font-size: 13px; color: var(--ink-3); }

.sprint-body {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 22px 26px;
  align-items: start;
  overflow: hidden;
}

.sprint-diagram {
  grid-row: 1;
  grid-column: 1;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.sprint-desc { grid-row: 1; grid-column: 2; min-width: 0; overflow: hidden; }

.sprint-services { grid-row: 2; grid-column: 1 / -1; min-width: 0; overflow: hidden; }

.sprint-desc p { margin: 0; font-size: 16px; color: var(--ink-2); word-break: break-word; }

@media (max-width: 1100px) {
  .sprint-layout { grid-template-columns: 1fr; gap: 22px; }
  /* タブレット以下では、縦のナビを横スクロールするチップ列に変形させる */
  .sprint-nav {
    position: sticky;
    top: 68px;
    z-index: 5;
    display: flex;
    gap: 7px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 14px;
    border-radius: var(--radius);
    scrollbar-width: thin;
  }
  .sprint-nav-title,
  .sprint-nav-group { display: none; }
  .sprint-nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
  }
  .sprint-nav-list a {
    white-space: nowrap;
    border: 1px solid var(--line);
    padding: 6px 11px;
  }
}

@media (max-width: 700px) {
  .sprint-body { grid-template-columns: 1fr; }
  .sprint-diagram { grid-row: auto; grid-column: auto; max-width: 100%; }
  .sprint-desc { grid-row: auto; grid-column: auto; }
  .sprint-services { grid-row: auto; grid-column: auto; }
  .sprint-summary { padding: 14px 16px; font-size: 16px; gap: 12px; }
  .sprint-body { padding: 16px; overflow: hidden; }
}

.support-details dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  margin-top: 14px;
  letter-spacing: 0.02em;
}

.support-details dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ---------- メンター ---------- */

.mentor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.mentor-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.mentor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.mentor-info { flex: 1; min-width: 0; }

.mentor-name { margin: 0 0 4px; font-size: 16px; font-weight: 700; }

.mentor-role {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 8px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.mentor-title { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }

.mentor-points {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
}

.mentor-points li { position: relative; padding-inline-start: 16px; margin-bottom: 4px; }

.mentor-points li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--brand);
  font-weight: 700;
}

.mentor-links { margin-top: 10px; display: flex; gap: 8px; }

.mentor-link {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s;
}

.mentor-link:hover { border-color: var(--brand); color: var(--brand); }

.check-list.caution li::before { background: var(--accent); }

.stat-value small { font-size: 18px; margin-inline-start: 4px; color: var(--ink-2); }

/* ---------- ポートフォリオ ---------- */

.outcome-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px 28px;
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}

.outcome-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.outcome-statement {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 600px) {
  .outcome-intro { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
  .outcome-logo { height: 32px; }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: box-shadow 0.2s;
}

.portfolio-card:hover { box-shadow: var(--shadow-lg); }

.portfolio-title { margin: 0 0 6px; font-size: 21px; font-weight: 700; line-height: 1.45; }

.portfolio-author { margin: 0 0 16px; font-size: 13px; color: var(--ink-3); }

.portfolio-img { width: 100%; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid var(--line); }

.portfolio-desc { margin: 0 0 16px; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.portfolio-label { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.02em; }

.portfolio-arch { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }

.portfolio-arch li { padding-inline-start: 16px; position: relative; margin-bottom: 4px; }

.portfolio-arch li::before { content: "→"; position: absolute; inset-inline-start: 0; color: var(--brand); }

.portfolio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.portfolio-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.portfolio-link:hover { border-bottom-color: var(--brand); }

/* ---------- 給付金ステップ ---------- */

.subsidy-authority {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.subsidy-authority-logo {
  height: 40px;
  width: auto;
}

.subsidy-authority .section-eyebrow {
  margin-bottom: 0;
}

.subsidy-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.subsidy-step {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 20px;
  background: var(--brand-tint);
  border-radius: var(--radius);
}

.subsidy-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.subsidy-step strong { display: block; font-size: 14px; margin-bottom: 2px; }

.subsidy-step p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  padding-block: 80px;
}

.cta h2 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 30px); }

.cta p { margin: 0 0 28px; color: #b9c4cf; }

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.cta-figure { min-width: 0; }

.cta-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.cta-body { min-width: 0; }

.cta-actions { margin-bottom: 20px; }

.cta-sub { font-size: 14px; color: #8899aa; }

.cta-sub-link { color: #b9c4cf; text-decoration: underline; }

.cta-sub-link:hover { color: #fff; }

@media (max-width: 900px) {
  .cta-split {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .cta-figure { max-width: 320px; margin: 0 auto; }
}

/* ---------- ヒーロー（第2版） ---------- */

.hero-inner { grid-template-columns: minmax(0, 1fr) 340px; }

.hero-side { display: grid; gap: 20px; }

.hero-sub-line { display: block; margin-top: 10px; font-size: 0.62em; font-weight: 700; color: var(--ink-2); }

.hero-price-strip {
  display: inline-block;
  margin-bottom: 28px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid var(--success);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
}

.hero-price-strip strong { color: var(--success); font-size: 22px; margin-inline: 4px; }

.hero-price-note { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }

/* 実データの帯 */

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stats-band-item { background: #fff; padding: 24px 16px; text-align: center; }

.stats-band-value {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stats-band-value small { font-size: 15px; color: var(--ink-3); margin-inline-start: 2px; }

.stats-band-label { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }

/* 第5版: ヒーロー下の注記として単独で使う（月桂樹バッジの根拠表示） */

.stats-band-note { margin: 0; padding-block: 0 22px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 共感パート ---------- */

.empathy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.empathy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.empathy-img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  object-fit: contain;
  border-radius: var(--radius);
}

.empathy-card h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.5; }

.empathy-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

.empathy-answer {
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--brand-tint);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 17px;
}

.empathy-answer p { margin: 0; }

.empathy-answer strong { color: var(--brand); }

/* ---------- 動画 ---------- */

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 大切にしている3つのこと（横並びボックス） ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.value-box h3 {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}

.value-box p {
  color: var(--ink-2);
  margin: 0 0 auto;
  padding-bottom: 16px;
}

.value-voice {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.7;
  border-left: 3px solid var(--accent);
}

.value-voice cite {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.value-voice .voice-person-img {
  float: left;
  margin-right: 12px;
  margin-bottom: 4px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- 選ばれる理由（番号付き大ブロック・旧） ---------- */

.reason {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}

.reason:first-of-type { margin-top: 40px; }

.reason-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.reason-num {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-tint);
  -webkit-text-stroke: 2px var(--brand);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.reason-head h3 {
  margin: 4px 0 0;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.55;
  font-weight: 700;
}

.reason-text p { margin: 0 0 14px; color: var(--ink-2); }

/* ---------- レビューコメントの実物 ---------- */

.review-card {
  margin-top: 20px;
  background: #0f1720;
  border-radius: var(--radius);
  overflow: hidden;
  color: #dce4ec;
}

.review-card-head {
  padding: 10px 20px;
  background: #1c2733;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8fa3b8;
}

.review-list { list-style: none; margin: 0; padding: 16px 20px; }

.review-list li {
  padding: 10px 0;
  border-bottom: 1px solid #24303d;
  font-size: 14px;
  line-height: 1.75;
}

.review-list li:last-child { border-bottom: none; }

.review-tag {
  display: inline-block;
  margin-inline-end: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.review-tag-fix { background: rgba(255, 122, 26, 0.18); color: #ffab6b; }

.review-tag-good { background: rgba(13, 159, 110, 0.2); color: #4fd6a5; }

.review-card-note {
  margin: 0;
  padding: 12px 20px 16px;
  font-size: 13px;
  color: #8fa3b8;
  border-top: 1px solid #24303d;
}

.voice-grid .value-voice { margin-top: 0; }

/* セクション末尾に出す注記 */

.image-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ---------- 修了生インタビュー ---------- */

.interview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.interview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.interview-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.interview-thumb-link { display: block; }

.interview-thumb-link .img-placeholder { border-radius: 0; border-inline: none; border-top: none; }

.interview-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.interview-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.interview-body h4 { margin: 0 0 6px; font-size: 19px; line-height: 1.55; color: var(--brand); }

.interview-name { margin: 0 0 14px; font-size: 14px; font-weight: 700; }

.interview-ba { margin: 0 0 14px; font-size: 13px; line-height: 1.7; }

.interview-ba dt {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ba-before { background: var(--bg-alt); color: var(--ink-3); border: 1px solid var(--line); }

.ba-after { background: var(--brand); color: #fff; }

.interview-ba dd { margin: 0 0 12px; color: var(--ink-2); }

.interview-ba dd:last-child { margin-bottom: 0; }

.interview-more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

.interview-more:hover { text-decoration: underline; }

/* その他の実績帯 */

.achievement-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.achievement-item {
  padding: 14px 18px;
  background: var(--brand-tint);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-2);
}

.achievement-item strong { color: var(--brand); }

.score-table-wrap { max-width: 560px; }

.score-table td:nth-child(2), .score-table td:nth-child(3) { font-variant-numeric: tabular-nums; }

.title-on-dark { color: #fff; }

.title-on-dark::after { background: var(--brand); }

.honest-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.honest-card {
  padding: 20px 22px;
  background: #1c2733;
  border: 1px solid #2a3746;
  border-radius: var(--radius);
}

.honest-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: #fff; }

.honest-card p { margin: 0; font-size: 13px; line-height: 1.75; color: #a9b8c6; }

.honest-close {
  margin-top: 36px;
  font-size: 17px;
  text-align: center;
  color: #dce4ec;
}

.honest-close strong { color: #ffab6b; }

/* ---------- 個別相談でできること ---------- */

.consult-grid { display: grid; gap: 16px; margin-top: 32px; }

.cta .consult-grid { color: var(--ink); }

.cta .consult-grid strong { color: var(--ink); }

.cta .consult-grid .consult-num { color: #fff; background: var(--accent); }

.consult-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.consult-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.consult-item strong { display: block; font-size: 19px; line-height: 1.5; margin-bottom: 4px; }

.consult-item p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 給付金ページ（benefits.html） ---------- */

.hero-sub { padding-block: 72px 64px; }

.hero-sub-title {
  margin: 0 0 22px;
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.5;
  font-weight: 700;
}

.hero-sub-title em { font-style: normal; color: var(--success); }

.subsidy-sim-table { margin-top: 36px; }

.row-highlight { background: var(--success-tint); }

/* タイムライン */

.timeline { list-style: none; padding: 0; margin: 32px 0 0; }

.timeline-item {
  position: relative;
  padding: 0 0 32px 36px;
  border-inline-start: 2px solid var(--line);
  margin-inline-start: 8px;
}

.timeline-item:last-child { border-inline-start-color: transparent; padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -9px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--brand);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.timeline-item h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.5; }

.timeline-item p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy-col .lead { text-align: left; }
  .hero-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .sprint-body { grid-template-columns: 1fr; }
  .sprint-diagram { max-width: 400px; grid-column: auto; grid-row: auto; }
  .sprint-desc { grid-column: auto; grid-row: auto; }
  .sprint-services { grid-column: auto; grid-row: auto; }
  .mentor-card { flex-direction: column; align-items: center; text-align: center; }
  .mentor-points { text-align: left; }
  .subsidy-highlight { flex-direction: column; align-items: start; }
  .subsidy-steps { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .empathy-grid { grid-template-columns: 1fr; }
  .interview-grid { grid-template-columns: 1fr; }
  .achievement-strip { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .honest-row { grid-template-columns: 1fr; }
  .docu-split { grid-template-columns: 1fr; }
  .compact-values { grid-template-columns: 1fr; }
  .reason { padding: 30px 26px; }
  .reason-head { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
  .hero { padding-block: 16px 64px; }
  .hero-side { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .curriculum, .data-table { font-size: 14px; }
  .curriculum th, .curriculum td, .data-table th, .data-table td { padding: 12px 14px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .sprint-summary { flex-wrap: wrap; }
  .sprint-tech { width: 100%; margin-top: 4px; }
  .stats-band { grid-template-columns: 1fr 1fr; }

  /* ドキュメンタリー: 縦積みでgap詰め */
  .docu-split { gap: 20px; }

  /* 3つのこと: 横長カードで縦積み、パディング詰め */
  .compact-values { gap: 10px; margin-top: 14px; }
  .compact-values-title { margin-top: 32px; font-size: 16px; }
  .compact-value { padding: 14px 16px; }
}

/* ---------- ヒーローの数値帯（強調セル） ---------- */

.stats-band-accent {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.stats-band-accent .stats-band-value { color: var(--brand-dark); }

/* ---------- 選ばれる理由（本文ラッパ） ---------- */

.reason-body { display: block; }

/* ---------- カリキュラム：擬似案件のテーマ帯 ---------- */

.theme-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 48px;
}

.theme-item {
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 3px solid var(--brand);
}

.theme-range {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 6px;
}

.theme-item strong { display: block; font-size: 15.5px; line-height: 1.6; }

.theme-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.75; }

/* ---------- カリキュラム：採点の内訳 ---------- */

.grading-box {
  margin-top: 40px;
  padding: 32px 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.grading-box h3 { margin: 0 0 22px; font-size: 21px; line-height: 1.5; }

.grading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grading-item {
  padding: 20px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: center;
}

.grading-pct {
  display: block;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.grading-pct small { font-size: 18px; margin-inline-start: 2px; }

.grading-item strong { display: block; margin: 6px 0 4px; font-size: 15px; }

.grading-item p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

.grading-box .note { margin-top: 20px; margin-bottom: 0; }

/* ---------- カルーセル ---------- */

.carousel {
  position: relative;
  margin-top: 36px;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 1.5);
  column-gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-block-end: 14px;
  /* スクロールバーは出さず、矢印とスワイプで操作させる */
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track > * { scroll-snap-align: start; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.carousel-arrow:hover { background: var(--bg-alt); }

.carousel-arrow:disabled { opacity: 0.25; cursor: default; }

.carousel-prev { inset-inline-start: -22px; }

.carousel-next { inset-inline-end: -22px; }

/* ---------- 修了生インタビュー カルーセル（永久ループ・複数枚同時表示） ----------
   --per が同時表示枚数。JSはこの実測値を使わず1枚分の幅で送るので、
   枚数を変えたいときはこの変数とメディアクエリだけを触ればよい。 */
.grad-carousel {
  position: relative;
  margin-top: 28px;
  --per: 4;
  --grad-gap: 20px;
}

/* はみ出しはこのラッパで隠す。矢印は外側に置くので overflow を分離する。
   カード hover の影と浮きが切れないよう padding で逃がす */
.grad-carousel-viewport {
  overflow: hidden;
  padding: 6px;
  margin: -6px;
}

.grad-track {
  display: flex;
  gap: var(--grad-gap);
  transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.grad-slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--grad-gap)) / var(--per));
  box-sizing: border-box;
}

/* 同時表示枚数が多いぶんカード内は詰める */
.grad-slide .interview-body { padding: 16px 16px 18px; }
.grad-slide .interview-body h3 { font-size: 15px; line-height: 1.5; }
.grad-slide .interview-ba { font-size: 12px; line-height: 1.65; }
.grad-slide .interview-more { font-size: 13px; }

.grad-slide .interview-name small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-2);
}

/* 動画があるカードのみ再生バッジを重ねる */
.interview-thumb-link.has-play { position: relative; }

.grad-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  background: rgba(0, 0, 0, 0.26);
  transition: background 0.2s;
}

.interview-thumb-link.has-play:hover .grad-play { background: rgba(0, 0, 0, 0.44); }

.grad-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.grad-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}

.grad-dot.is-active { background: var(--brand); }

@media (max-width: 1180px) { .grad-carousel { --per: 3; } }

@media (max-width: 900px) {
  .grad-carousel { --per: 2; }
  .grad-carousel .carousel-prev { inset-inline-start: 4px; }
  .grad-carousel .carousel-next { inset-inline-end: 4px; }
}

@media (max-width: 600px) {
  .grad-carousel { --per: 1; }
  .grad-carousel .carousel-arrow { display: grid; }
}

/* ---------- ドキュメンタリー 50:50 ---------- */
.docu-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .docu-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .docu-split { gap: 20px; }
}

.docu-video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.docu-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.docu-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  margin: 0 0 16px;
}

.docu-text p:last-child { margin-bottom: 0; }

/* ---------- 大切にしている3つのこと（コンパクト版） ---------- */
.compact-values-title {
  margin: 44px 0 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.compact-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.compact-value {
  padding: 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compact-value strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .compact-values { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .compact-values { gap: 10px; margin-top: 14px; }
  .compact-values-title { margin-top: 32px; font-size: 16px; }
  .compact-value { padding: 14px 16px; }
}

.compact-value p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.compact-value q {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3, #8c96a0);
  font-style: italic;
  quotes: none;
}

.compact-value q cite {
  font-style: normal;
  font-size: 11px;
}

/* ---------- 転職サポート詳細への導線（枠の外に出す帯） ---------- */
.career-detail-cta {
  margin-top: 32px;
  padding: 28px 24px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.career-detail-cta-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.mentor-slide {
  display: flex;
  gap: 24px;
  padding: 26px 28px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 220px;
}

.mentor-slide .mentor-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  align-self: start;
  margin-top: 4px;
}

/*
  縦長の原寸（750x1000 など）を正方形に cover すると上下が均等に切られ、
  頭頂部が欠ける。クロップの基準を上寄せして顔全体を収める。
*/
.mentor-photo-top { object-position: 50% 12%; }

.mentor-slide .mentor-info { flex: 1; min-width: 0; }

.mentor-slide .mentor-name { margin: 0 0 4px; font-size: 21px; }

.mentor-slide .mentor-title { margin: 0 0 14px; font-size: 13.5px; color: var(--brand); font-weight: 600; }

.mentor-slide .mentor-points { margin: 0 0 16px; }

/* ---------- 転職サポート ---------- */

.career-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 36px;
}

.career-flow { display: grid; gap: 14px; }

.career-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.career-step-num {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.career-step strong { display: block; font-size: 18px; line-height: 1.5; margin-bottom: 3px; }

.career-step p { margin: 0; font-size: 14px; color: var(--ink-2); }

.career-highlight {
  margin-top: 24px;
  padding: 26px 26px 20px;
  background: var(--brand-tint);
  border-radius: var(--radius-lg);
}

.career-highlight h3 { margin: 0 0 14px; font-size: 21px; line-height: 1.55; }

.career-highlight p { margin: 0 0 12px; font-size: 15px; }

.career-highlight p:last-child { margin-bottom: 0; }

.career-side { display: grid; gap: 20px; }

.career-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

/* SPでは見出し直下に出すため、PCでは非表示にしておく（表示切替は900pxで行う） */
.career-img-mobile { display: none; }

.career-img-mobile img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.career-facts {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.career-facts dl { margin: 0; }

.career-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.career-facts dd {
  margin: 2px 0 14px;
  font-size: 14.5px;
  font-weight: 600;
}

.career-facts dd:last-child { margin-bottom: 0; }

/* ---------- 受講料カード ---------- */

.price-card {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.price-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px 34px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.price-label,
.price-subsidy-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.price-main,
.price-subsidy-main {
  margin: 4px 0 2px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.price-main span,
.price-subsidy-main span { font-size: 20px; margin-inline-start: 3px; }

.price-subsidy-main { color: var(--success); }

.price-note { margin: 0; font-size: 13px; color: var(--ink-3); }

.price-permonth {
  margin: 2px 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--success);
}

.price-permonth small {
  margin-inline-start: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.price-subsidy {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--line);
}

.price-includes { list-style: none; margin: 0; padding: 8px 34px 0; }

.price-includes > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.price-includes > li:last-child { border-bottom: none; }

.price-includes > li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--success-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9f6e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.price-includes strong { display: block; font-size: 16.5px; margin-bottom: 2px; }

.price-includes p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* 永久会員権（目玉）は帯で明確に持ち上げる */

.price-includes-hero {
  margin: 8px -34px 0;
  padding-inline: 34px !important;
  background: var(--warn-bg);
  border-block: 1px solid var(--warn-line) !important;
}

.price-includes-hero::before { display: none; }

.price-badge {
  flex: none;
  align-self: flex-start;
  margin-top: 3px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-includes-hero strong { font-size: 18px; }

.price-includes-sub { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

.price-cta {
  padding: 30px 34px 34px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.price-cta-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- スプリント グループラベル & サービスアイコン ---------- */

.sprint-group-label {
  margin: 32px 0 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.sprint-group-label:first-child { margin-top: 0; }

.sprint-services {
  margin-top: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8eefa 100%);
  border-radius: 10px;
  border: 1px solid rgba(11, 98, 214, 0.08);
}

.sprint-services-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(11, 98, 214, 0.1);
}

.service-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.service-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  flex-shrink: 0;
  padding: 8px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(11, 98, 214, 0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 98, 214, 0.12);
}

.service-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.service-icon span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

.curriculum-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ============================================================
   第4版: ソラ＆カナタ（キャラクターブランディング）
   指示書 §6 のルールに従う。
     - ソラは疑問を投げる役。正解や断定を言わせない
     - カナタは根拠を示す役
     - 合格率・会員数・認定制度の「事実主張」は吹き出しに入れない
       （通常テキストで書く。根拠の所在を曖昧にしないため）
   ============================================================ */

.dialogue {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 36px 0 0;
}

.dialogue-tight { margin-top: 24px; }

.dialogue-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* カナタ（答える側）は右から */

.dialogue-row.from-kanata { flex-direction: row-reverse; }

.dialogue-avatar {
  flex-shrink: 0;
  width: 68px;
  text-align: center;
}

.dialogue-avatar img {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--line);
}

.dialogue-row.from-sora .dialogue-avatar img { border-color: var(--accent); }

.dialogue-row.from-kanata .dialogue-avatar img { border-color: var(--brand); }

.dialogue-name {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.dialogue-bubble {
  position: relative;
  max-width: 640px;
  padding: 16px 22px;
  border-radius: 16px;
  font-size: 15.5px;
  line-height: 1.85;
}

.dialogue-bubble p { margin: 0; }

.dialogue-bubble p + p { margin-top: 10px; }

/* ソラ＝薄いブルー（疑問側）。カナタ＝薄いオレンジ（回答側） */

.from-sora .dialogue-bubble {
  background: var(--accent-tint);
  color: var(--ink);
}

.from-kanata .dialogue-bubble {
  background: var(--brand-tint);
  color: var(--ink);
}

/* 吹き出しのしっぽ */

.dialogue-bubble::before {
  content: "";
  position: absolute;
  top: 22px;
  width: 0;
  height: 0;
  border-block: 8px solid transparent;
}

.from-sora .dialogue-bubble::before {
  inset-inline-start: -9px;
  border-inline-end: 10px solid var(--accent-tint);
}

.from-kanata .dialogue-bubble::before {
  inset-inline-end: -9px;
  border-inline-start: 10px solid var(--brand-tint);
}

/* ダーク背景のセクション（#honest）で使うとき */

.section-dark .from-sora .dialogue-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: #e8eef4;
}

.section-dark .from-sora .dialogue-bubble::before {
  border-inline-end-color: rgba(255, 255, 255, 0.1);
}

.section-dark .from-kanata .dialogue-bubble {
  background: var(--brand);
  color: #fff;
}

.section-dark .from-kanata .dialogue-bubble::before {
  border-inline-start-color: var(--brand);
}

.section-dark .dialogue-avatar img { border-color: rgba(255, 255, 255, 0.35); }

.section-dark .dialogue-name { color: #9fb0c0; }

/* ---------- ヒーローのキャラクタービジュアル ---------- */

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.hero-visual img { display: block; width: 100%; }

.hero-visual-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 20px 16px 10px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.78) 100%);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- セクション区切りの帯（リズムづけ） ---------- */

.band {
  padding-block: 30px;
  background: var(--authority);
  color: #fff;
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  text-align: center;
}

.band-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
}

.band-text { font-size: clamp(16px, 2.2vw, 21px); font-weight: 700; line-height: 1.6; }

.band-text em { font-style: normal; color: #fdba74; }

/* 中間CTA帯。競合はいずれも2〜3セクションごとにCTAを挟んでいる */

.band-cta {
  padding-block: 44px;
  background:
    radial-gradient(1200px 300px at 50% -40%, rgba(249, 115, 22, 0.22), transparent 70%),
    linear-gradient(135deg, var(--authority) 0%, var(--authority-3) 100%);
}

.band-cta .band-inner { flex-direction: column; gap: 18px; }

.band-cta-note {
  font-size: 12.5px;
  color: #9fb0c0;
  line-height: 1.7;
  margin: 0;
}

.band-cta-sub {
  font-size: 13px;
  color: #9fb0c0;
  margin: 0;
}

.band-cta-sub-link { color: #fff; text-decoration: underline; }

.band-cta-sub-link:hover { color: var(--accent); }

/* ============================================================
   第5版: カリキュラム冒頭のゴール提示
   「6か月後にこれを作る」を最初にドンと見せてから、12分割の道順を示す。
   ============================================================ */

.goal-reveal {
  margin: 8px 0 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.goal-reveal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 18px 26px;
  background: var(--authority);
  color: #fff;
}

.goal-reveal-tag {
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.goal-reveal-title { margin: 0; font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; line-height: 1.5; }

.goal-reveal-figure { margin: 0; padding: 26px; background: var(--bg-alt); }

.goal-reveal-figure img { display: block; width: 100%; border-radius: var(--radius); background: #fff; }

.goal-reveal-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
  text-align: center;
}

.goal-reveal-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 26px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.75;
}

.goal-reveal-foot strong { color: var(--brand-dark); }

@media (max-width: 600px) {
  .goal-reveal-head { padding: 15px 18px; }
  .goal-reveal-figure { padding: 16px; }
  .goal-reveal-foot { padding: 16px 18px; font-size: 15px; }
}

/* ============================================================
   第5版: サポート体制を「互い違い」レイアウトへ
   旧: 4枚の同じカードに dl が並ぶだけで、読み飽きる区間だった。
   新: 1トピック＝1行。画像とテキストを左右交互に置く。
       各行の入口をソラ→カナタの短い会話にして、詳細は下のテキストで読ませる。
   ============================================================ */

.alt-rows {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 48px;
}

.alt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

/* 偶数行は画像と文章を入れ替える */

.alt-row:nth-child(even) .alt-row-figure { order: 2; }

.alt-row:nth-child(even) .alt-row-body { order: 1; }

.alt-row-figure { position: relative; min-width: 0; }

.alt-row-figure img,
.alt-row-figure .img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

/* 図の背後に色面を置いて奥行きを出す（競合が共通して使う手法） */

.alt-row-figure::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  z-index: -1;
}

.alt-row:nth-child(even) .alt-row-figure::before {
  inset: 18px 18px -18px -18px;
  background: var(--accent-tint);
}

.alt-row-body { min-width: 0; }

.alt-row-num {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-dark);
}

.alt-row-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.alt-row-catch {
  margin: 0 0 18px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--brand-dark);
}

.alt-row-detail { margin: 18px 0 0; }

.alt-row-detail dt {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.alt-row-detail dt:first-child { margin-top: 0; }

.alt-row-detail dd {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* 行内の会話は余白を詰める */

.alt-row .dialogue { margin-top: 0; gap: 12px; }

.alt-row .dialogue-bubble { font-size: 14.5px; padding: 13px 18px; }

.alt-row .dialogue-avatar { width: 52px; }

.alt-row .dialogue-avatar img { width: 52px; height: 52px; }

/* 行内では左右振り分けをせず、読み順を素直にする */

.alt-row .dialogue-row.from-kanata { flex-direction: row; }

.alt-row .from-kanata .dialogue-bubble::before {
  inset-inline-end: auto;
  inset-inline-start: -9px;
  border-inline-start: none;
  border-inline-end: 10px solid var(--brand-tint);
}

@media (max-width: 900px) {
  .alt-rows { gap: 52px; }
  /*
    SPでは 番号 → 見出し → キャッチ → 画像 → 会話 → 詳細 の順にする。
    alt-row-body を display:contents にして子を alt-row の直接フレックスアイテムへ
    昇格させ、order で画像をキャッチの直後に差し込む。
    こうすると画像タグを重複配置せずに済む。
    要素ごとの margin で間隔が付いているので gap は 0 にする。
  */
  .alt-row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .alt-row-body { display: contents; }

  .alt-row .alt-row-num    { order: 1; }
  .alt-row .alt-row-title  { order: 2; }
  .alt-row .alt-row-catch  { order: 3; margin-bottom: 0; }
  .alt-row .alt-row-figure { order: 4; margin: 18px 0 22px; }
  .alt-row .dialogue       { order: 5; }
  .alt-row .alt-row-detail { order: 6; }

  /* 偶数行の入れ替え指定はSPでは無効化する（上のorderに揃える） */
  .alt-row:nth-child(even) .alt-row-figure { order: 4; }
  .alt-row:nth-child(even) .alt-row-body { order: 0; }

  .alt-row-figure::before,
  .alt-row:nth-child(even) .alt-row-figure::before { inset: 12px -12px -12px 12px; }
}

/* ---------- 第3版 レスポンシブ ---------- */

@media (max-width: 900px) {
  .theme-strip { grid-template-columns: repeat(2, 1fr); }
  .grading-grid { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: calc(100% - 24px); }
  .carousel-prev { inset-inline-start: -8px; }
  .carousel-next { inset-inline-end: -8px; }
  .career-layout { grid-template-columns: 1fr; }
  /* 画像は見出し直下の career-img-mobile 側に出すので、右カラムの複製は隠す */
  .career-img-mobile { display: block; margin: 20px 0 4px; }
  .career-side .career-img { display: none; }
  .career-side { order: -1; }
  .price-head { grid-template-columns: 1fr; }
  .price-subsidy { padding-inline-start: 0; border-inline-start: none; padding-top: 20px; border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .theme-strip { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: 88%; }
  .carousel-arrow { display: none; }
  .mentor-slide { flex-direction: column; gap: 12px; }
  .mentor-slide .mentor-photo { width: 80px; height: 80px; align-self: center; }
  .price-head, .price-includes, .price-cta { padding-inline: 20px; }
  .price-includes-hero { margin-inline: -20px; padding-inline: 20px !important; }
  .price-main, .price-subsidy-main { font-size: 34px; }
}

@media (max-width: 600px) {
  .dialogue-avatar { width: 48px; }
  .dialogue-avatar img { width: 48px; height: 48px; }
  .dialogue-row { gap: 11px; }
  .dialogue-bubble { padding: 14px 17px; font-size: 14.5px; border-radius: 13px; }
  /* SPでは左右振り分けをやめ、すべて左寄せにして横幅を確保する */
  .dialogue-row.from-kanata { flex-direction: row; }
  .from-kanata .dialogue-bubble::before {
    inset-inline-end: auto;
    inset-inline-start: -9px;
    border-inline-start: none;
    border-inline-end: 10px solid var(--brand-tint);
  }
  .section-dark .from-kanata .dialogue-bubble::before { border-inline-end-color: var(--brand); }
}

/* ========== 予約フォームセクション ========== */
.booking-section {
  background: var(--bg-alt, #f8f8f8);
  padding: 56px 0 64px;
}
.booking-section__title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.booking-section__lead {
  text-align: center;
  color: var(--text-muted, #666);
  margin-bottom: 32px;
}
