/* =========================================================
   介護・福祉 AIスキル実践活用研修 LP — style.css
   コンセプト：和モダン編集デザイン × 上質な日本企業品質
   ベース：ホワイト／メイン：ネイビー／アクセント：ゴールド細罫
   署名要素：英字セリフのゴースト数字・縦書きレール・金細罫の二重コマ枠
   スマホファースト（iPhone SE 375px 基準）
   ========================================================= */

:root {
  /* カラー */
  --white:     #ffffff;
  --paper:     #fbfbfa;          /* 本文ベース（わずかに温かい白） */
  --tint:      #f3f5f8;          /* セクション交互背景 */
  --navy:      #14304f;
  --navy-deep: #0a1d33;
  --blue:      #2e6cb0;
  --gold:      #ac8a48;
  --gold-soft: #d9c596;
  --gold-pale: rgba(172,138,72,.14);
  --ink:       #1f2a36;
  --ink-soft:  #5f6b78;
  --line:      #e1e6ec;
  --line-navy: rgba(20,48,79,.5);

  /* レイアウト */
  --maxw:        1080px;
  --maxw-narrow: 720px;
  --pad-x:       20px;
  --sec-y:       clamp(72px, 13vw, 136px);
  --head-mb:     clamp(40px, 8vw, 64px);
  --block-gap:   clamp(28px, 6vw, 52px);
  --header-h:    64px;
  --radius:      2px;

  /* タイポグラフィ */
  --font-display: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body:    "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif-en:"Cormorant Garamond", "Zen Old Mincho", serif;
  --fs-body:  15.5px;
  --lh-body:  2.05;

  /* モーション */
  --ease-out: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  letter-spacing: .02em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dt, dd, figure { margin: 0; }
button { font-family: inherit; }
strong { color: var(--navy); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.narrow { max-width: var(--maxw-narrow); }
.sp-br { display: inline; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--navy); color: #fff; }

/* =========================================================
   見出しまわり（全セクション共通の型）
   ゴースト数字（英字セリフ）＋英ラベル＋明朝見出し
   ========================================================= */
.sec-head { position: relative; text-align: center; margin-bottom: var(--head-mb); }

/* ゴースト数字：data-num から描画 */
.sec-head[data-num]::before {
  content: attr(data-num);
  position: absolute;
  left: 50%; top: -0.52em;
  transform: translateX(-50%);
  font-family: var(--font-serif-en);
  font-weight: 500;
  font-size: clamp(96px, 24vw, 168px);
  line-height: 1;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20,48,79,.13);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.section-tint .sec-head[data-num]::before { -webkit-text-stroke-color: rgba(20,48,79,.16); }

.eyebrow {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .3em;
  color: var(--gold); margin-bottom: 20px;
  padding-top: clamp(26px, 6vw, 44px);   /* ゴースト数字ぶんの呼吸 */
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 34px; height: 1px; background: var(--gold-soft);
}
.eyebrow-en {
  font-family: var(--font-serif-en);
  font-weight: 600; font-style: italic;
  font-size: 15px; letter-spacing: .14em;
  padding-right: 12px; margin-right: 2px;
  border-right: 1px solid var(--gold-soft);
  text-transform: none;
}
.eyebrow.light { color: var(--gold-soft); }
.eyebrow.light::before, .eyebrow.light::after { background: rgba(217,197,150,.45); }
.eyebrow.light .eyebrow-en { border-color: rgba(217,197,150,.45); }

.sec-title {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 6.2vw, 36px);
  line-height: 1.6;
  letter-spacing: .07em;
  color: var(--navy);
}
.sec-lead {
  position: relative; z-index: 1;
  margin-top: 24px;
  font-size: 15px;
  line-height: 2.15;
  color: var(--ink-soft);
}
.sec-note {
  margin-top: var(--block-gap);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(15px, 4.2vw, 19px);
  letter-spacing: .1em;
  line-height: 2.3;
  color: var(--navy);
}
.sub-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 5vw, 25px);
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--navy);
  margin-bottom: 16px;
}

/* スマホでは英ラベルをコンパクトに（折返し防止） */
@media (max-width: 479px) {
  .eyebrow { gap: 10px; letter-spacing: .2em; }
  .eyebrow::before, .eyebrow::after { width: 16px; }
  .eyebrow-en { font-size: 13px; letter-spacing: .08em; padding-right: 9px; white-space: nowrap; }
}

/* =========================================================
   セクション共通
   ========================================================= */
.section { position: relative; padding: var(--sec-y) 0; background: var(--paper); }
.section-tint { background: var(--tint); }
.section-tint::before, .section-tint::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.section-tint::before { top: 0; }
.section-tint::after  { bottom: 0; }

/* スクロール時のフェード（控えめ・順送り） */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 順送り表示（リスト系） */
.sg-list > * { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible .sg-list > *,
.sg-list.is-visible > * { opacity: 1; transform: none; }
.sg-list > *:nth-child(1) { transition-delay: .08s; }
.sg-list > *:nth-child(2) { transition-delay: .16s; }
.sg-list > *:nth-child(3) { transition-delay: .24s; }
.sg-list > *:nth-child(4) { transition-delay: .32s; }
.sg-list > *:nth-child(5) { transition-delay: .40s; }
.sg-list > *:nth-child(6) { transition-delay: .48s; }
.sg-list > *:nth-child(7) { transition-delay: .56s; }
.sg-list > *:nth-child(8) { transition-delay: .64s; }
.sg-list > *:nth-child(9) { transition-delay: .72s; }
.sg-list > *:nth-child(10){ transition-delay: .80s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .sg-list > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .fv-seal-ring { animation: none !important; }
}

/* =========================================================
   漫画コマ（二重コマ枠：金細罫オフセット＋ネイビー枠）
   ========================================================= */
.manga-frame {
  position: relative;
  border: 1px solid var(--line-navy);
  background: var(--white);
  margin: 0 auto;
  box-shadow: 0 14px 36px -18px rgba(10,29,51,.28);
}
.manga-frame::before {
  content: ""; position: absolute; inset: 10px -11px -11px 10px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  z-index: -1;
}
.manga-frame::after {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 22px; height: 22px;
  border-top: 2px solid var(--gold); border-left: 2px solid var(--gold);
  pointer-events: none;
}
.manga-frame img { width: 100%; position: relative; }
.manga-wide  { max-width: 860px; }
.manga-tall  { max-width: 380px; }
.manga-photo { max-width: 720px; margin-top: var(--block-gap); }
.manga-caption {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--ink-soft);
  text-align: center;
  background: var(--white);
}
.sec-head + .manga-frame { margin-bottom: var(--block-gap); }

/* =========================================================
   ボタン・CTA（金のシャインスイープ）
   ========================================================= */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; letter-spacing: .08em; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .3s var(--ease-out), transform .25s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: pointer;
}
.btn-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1b3d63 100%);
  color: #fff;
  padding: 18px 24px; font-size: 14.5px;
  box-shadow: 0 12px 26px -10px rgba(20,48,79,.5);
  width: 100%; max-width: 440px;
  border-bottom: 2px solid var(--gold);
}
.btn-cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%;
  width: 36%;
  background: linear-gradient(105deg, transparent, rgba(217,197,150,.32), transparent);
  transform: skewX(-22deg);
  transition: left .65s var(--ease-out);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(20,48,79,.55); }
.btn-cta:hover::before { left: 116%; }
.btn-arrow { font-family: var(--font-body); transition: transform .3s var(--ease-out); }
.btn-cta:hover .btn-arrow { transform: translateX(5px); }
.btn-sm { padding: 11px 20px; font-size: 13px; width: auto; box-shadow: none; }
.btn-lg { padding: 20px 18px; font-size: 15px; letter-spacing: .05em; }
.btn-xl { padding: 20px 24px; font-size: 16px; max-width: none; }

.cta-row { margin-top: var(--block-gap); text-align: center; }
.cta-row.left { text-align: left; }
.cta-row .btn-cta { margin: 0 auto; }
.cta-row.left .btn-cta { margin: 0; }

/* =========================================================
   ヘッダー（ガラス＋金の極細トップライン）
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 230; height: var(--header-h);
  background: rgba(251,251,250,.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
}
.site-header.scrolled { box-shadow: 0 6px 24px -8px rgba(10,29,51,.14); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 11px; min-width: 0; }
.logo-mark {
  flex: none; display: inline-grid; place-items: center;
  width: 34px; height: 34px; background: var(--navy); color: #fff;
  font-family: var(--font-serif-en); font-weight: 600; font-size: 14px;
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid rgba(217,197,150,.55);
  pointer-events: none;
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1.25;
  white-space: nowrap; overflow: hidden;
}
.logo-ja {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .1em; color: var(--navy);
}
.logo-en {
  font-family: var(--font-serif-en); font-style: italic; font-weight: 500;
  font-size: 10px; letter-spacing: .22em; color: var(--gold);
}

/* モバイルナビ（ドロワー） */
.gnav { position: fixed; inset: 0; z-index: 210; visibility: hidden; pointer-events: none; }
.gnav-list {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 390px);
  background: var(--navy-deep); padding: 96px 32px 40px;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateX(100%); transition: transform .45s var(--ease-out);
}
.gnav-list::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: linear-gradient(180deg, var(--gold), transparent 70%);
}
.gnav.open { visibility: visible; pointer-events: auto; }
.gnav.open .gnav-list { transform: none; }
.gnav-link {
  display: block; padding: 14px 2px; font-size: 14px; letter-spacing: .1em;
  font-weight: 500; color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.gnav-cta-wrap { margin-top: 26px; }
.gnav-cta-wrap .btn-cta { width: 100%; }
.nav-overlay { position: fixed; inset: 0; z-index: 220; background: var(--navy-deep); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

.hamburger {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  position: relative; z-index: 220;
}
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: transform .35s var(--ease-out), opacity .3s ease, background-color .3s ease; }
.hamburger.active span { background: #fff; }
.hamburger.active span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.hamburger.active span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

.gnav.open .gnav-cta-wrap .btn-cta {
  background: linear-gradient(135deg, #e1862f 0%, #c96a19 100%);
  border-bottom-color: #f4c27b;
  box-shadow: 0 14px 28px -12px rgba(225,134,47,.7);
}

/* =========================================================
   ファーストビュー
   背景：紙白→淡藍のグラデ＋ドット罫＋金ヘアライン
   署名：縦書き英字レール／回転シール／二重コマ枠
   ========================================================= */
.fv {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 8vw, 104px)) 0 clamp(64px, 12vw, 120px);
  background: linear-gradient(180deg, #f2f5f9 0%, var(--paper) 88%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* ドット罫（右上に淡く） */
.fv::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: min(62vw, 640px); height: 72%;
  background-image: radial-gradient(rgba(20,48,79,.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 12%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at 80% 12%, #000 18%, transparent 72%);
  pointer-events: none;
}
/* 金のヘアライン（左の余白に1本） */
.fv::after {
  content: ""; position: absolute; top: calc(var(--header-h) + 28px); bottom: 56px;
  left: max(calc((100vw - var(--maxw)) / 2 - 44px), 8px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-soft) 18%, var(--gold-soft) 82%, transparent);
  pointer-events: none;
}
.fv-inner { position: relative; display: flex; flex-direction: column; gap: clamp(40px, 8vw, 64px); }

/* 縦書き英字レール（PCのみ表示） */
.fv-rail {
  display: none;
  position: absolute; top: 8px; right: calc(-1 * var(--pad-x) + 6px);
  writing-mode: vertical-rl;
  font-family: var(--font-serif-en); font-style: italic; font-weight: 500;
  font-size: 12px; letter-spacing: .42em;
  color: rgba(20,48,79,.42);
}
.fv-rail::after {
  content: ""; display: block; width: 1px; height: 64px;
  background: var(--gold-soft); margin: 18px auto 0;
}

.fv-copy { position: relative; text-align: center; }
.fv-tag {
  position: relative;
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--navy);
  border: 1px solid var(--line-navy);
  padding: 8px 18px;
  margin-bottom: 28px;
  background: var(--white);
}
.fv-tag::before, .fv-tag::after {
  content: ""; position: absolute; width: 7px; height: 7px;
}
.fv-tag::before { top: -1px; left: -1px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.fv-tag::after  { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold); border-right: 2px solid var(--gold); }

.fv-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 7.4vw, 46px);
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--navy);
}
/* 金糸の下線（キーワード強調） */
.fv-title em {
  font-style: normal;
  background: linear-gradient(transparent 78%, var(--gold-pale) 78%, var(--gold-pale) 96%, transparent 96%);
  padding: 0 1px;
}
.fv-title::after {
  content: ""; display: block; width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  margin: 28px auto 0;
}
.fv-lead {
  margin-top: 26px;
  font-size: clamp(14.5px, 4vw, 16.5px);
  line-height: 2.2;
  color: var(--ink-soft);
}
.fv-actions { margin-top: 34px; }
.fv-actions .btn-cta { margin: 0 auto; }
.fv-cta-note { margin-top: 13px; font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); }
.fv-points {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: 0; row-gap: 10px;
}
.fv-points li {
  position: relative;
  padding: 0 18px;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--navy);
}
.fv-points li + li { border-left: 1px solid var(--gold-soft); }
.fv-points li::before {
  content: "◆"; font-size: 7px; color: var(--gold);
  vertical-align: 2.5px; margin-right: 7px;
}

/* FV図版：二重コマ枠＋回転シール */
/* スマホ・タブレットでは漫画コマを最上段（トップビュー）に */
.fv-figure-wrap { position: relative; order: -1; margin: 0 auto; max-width: 480px; width: 100%; }
.fv-figure { max-width: none; }
.fv-seal {
  position: absolute; left: -18px; bottom: -26px; z-index: 5;
  width: clamp(96px, 26vw, 126px); height: auto;
  filter: drop-shadow(0 10px 18px rgba(10,29,51,.22));
}
/* 外周の英字だけ回転。中央「無料体験／受付中」は固定して読みやすく */
.fv-seal-ring {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: sealspin 28s linear infinite;
}
@keyframes sealspin { to { transform: rotate(360deg); } }

/* スクロールサイン */
.fv-scroll {
  display: none;
  position: absolute; bottom: -28px;
  left: -49px;
  font-family: var(--font-serif-en); font-style: italic;
  font-size: 11px; letter-spacing: .34em; color: rgba(20,48,79,.5);
  writing-mode: vertical-rl;
}

/* =========================================================
   悩みリスト（編集的な罫線リスト）
   ========================================================= */
.issue-list {
  max-width: 700px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.issue-list li {
  position: relative;
  padding: 18px 4px 18px 38px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.85;
  transition: background-color .3s ease;
}
.issue-list li:hover { background: rgba(243,245,248,.7); }
.issue-list li::before {
  content: ""; position: absolute; left: 7px; top: 30px;
  width: 15px; height: 1.5px; background: var(--gold);
}
.issue-list li::after {
  content: ""; position: absolute; left: 7px; top: 30px;
  width: 5px; height: 1.5px; background: var(--navy);
}

/* =========================================================
   特長・サポート（dt/dd の段組みリスト）
   ========================================================= */
.feature-list { max-width: 700px; margin: 0 auto; border-top: 1px solid var(--line); }
.feature { padding: 28px 4px; border-bottom: 1px solid var(--line); }
.feature dt {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16.5px, 4.6vw, 19.5px);
  letter-spacing: .06em; color: var(--navy);
}
.f-num {
  flex: none;
  font-family: var(--font-serif-en); font-weight: 600; font-style: italic;
  font-size: 20px; letter-spacing: .02em;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  transform: translateY(-2px);
  background: var(--white);
}
.feature dd { margin: 13px 0 0; font-size: 14.5px; line-height: 2.05; color: var(--ink-soft); }

/* =========================================================
   できること（Before/After帯＋用途リスト）
   ========================================================= */
.ba-band {
  max-width: 700px;
  margin: 0 auto var(--block-gap);
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
}
.ba-band::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 18px; height: 18px;
  border-top: 2px solid var(--gold); border-left: 2px solid var(--gold);
}
.ba-band p {
  padding: 19px 24px;
  font-size: 14.5px;
  line-height: 1.95;
}
.ba-before { border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.ba-after { color: var(--ink); background: linear-gradient(90deg, rgba(217,197,150,.1), transparent 60%); }
.ba-label {
  display: inline-block;
  font-family: var(--font-serif-en); font-weight: 600; font-style: italic;
  font-size: 14px; letter-spacing: .14em;
  margin-right: 16px;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--line);
  color: var(--ink-soft);
}
.ba-after .ba-label { color: var(--gold); border-color: var(--gold); }

.usecase-list { max-width: 700px; margin: 0 auto; border-top: 1px solid var(--line); }
.usecase {
  display: flex; flex-direction: column; gap: 7px;
  padding: 24px 4px; border-bottom: 1px solid var(--line);
}
.usecase dt {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; letter-spacing: .12em; color: var(--navy);
}
.usecase dt::before {
  content: ""; width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.usecase dd { margin: 0; font-size: 14.5px; line-height: 2.05; color: var(--ink-soft); padding-left: 21px; }

/* =========================================================
   カリキュラム（番号付き2段リスト）
   ========================================================= */
.curriculum-list {
  max-width: 700px; margin: 0 auto;
  counter-reset: cur;
  border-top: 1px solid var(--line);
}
.curriculum-list li {
  counter-increment: cur;
  display: flex; align-items: center; gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500; letter-spacing: .05em;
  transition: background-color .3s ease;
}
.curriculum-list li:hover { background: rgba(255,255,255,.85); }
.curriculum-list li::before {
  content: counter(cur, decimal-leading-zero);
  font-family: var(--font-serif-en); font-weight: 600; font-style: italic;
  font-size: 17px; letter-spacing: .04em; color: var(--gold);
  min-width: 28px;
}

.app-feature {
  margin-top: var(--block-gap);
  display: flex; flex-direction: column; gap: 32px;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.app-feature .manga-frame { max-width: 360px; }
.app-feature-text p { font-size: 14.5px; line-height: 2.15; color: var(--ink-soft); }

/* =========================================================
   受講形式
   ========================================================= */
.format-grid { display: flex; flex-direction: column; gap: var(--block-gap); }
.format-grid .manga-tall { max-width: 340px; }

/* =========================================================
   助成金（カウントアップ数字）
   ========================================================= */
.subsidy-grid { display: flex; flex-direction: column; gap: var(--block-gap); }
.subsidy-grid .manga-frame { max-width: 380px; }

.subsidy-rate {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.subsidy-rate::after {
  content: ""; position: absolute; bottom: -1px; left: 0;
  width: 64px; height: 2px; background: var(--gold);
}
.rate-pre, .rate-post { font-size: 14px; font-weight: 500; letter-spacing: .07em; color: var(--navy); }
.rate-post small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.rate-num {
  font-family: var(--font-serif-en); font-weight: 600;
  font-size: clamp(64px, 17vw, 92px);
  line-height: 1; letter-spacing: 0;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.rate-num small { font-size: .4em; margin-left: 2px; color: var(--gold); font-style: italic; }

.price-table { margin-top: 8px; }
.price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 17px 2px; border-bottom: 1px solid var(--line);
}
.price-row dt { font-size: 13.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft); }
.price-row dt small { display: block; font-size: 11px; font-weight: 400; }
.price-row dd {
  font-family: var(--font-serif-en); font-weight: 600;
  font-size: 24px; letter-spacing: .01em; color: var(--ink-soft); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-row dd small { font-size: 12px; font-family: var(--font-body); font-weight: 400; margin-left: 3px; }
.price-row.is-result { background: linear-gradient(90deg, rgba(217,197,150,.12), transparent 70%); }
.price-row.is-result dt { color: var(--navy); font-weight: 700; }
.price-strong { color: var(--navy) !important; font-size: clamp(32px, 9vw, 42px) !important; }
.price-strong small { color: var(--ink-soft); }

.subsidy-note { margin-top: 18px; font-size: 12px; line-height: 1.95; color: var(--ink-soft); }
.subsidy-detail .cta-row { margin-top: 30px; }

/* =========================================================
   受講までの流れ（縦タイムライン）
   ========================================================= */
.flow-grid { display: flex; flex-direction: column; gap: var(--block-gap); align-items: center; }
.flow-grid .manga-tall { max-width: 320px; }

.flow-steps { max-width: 560px; width: 100%; position: relative; }
.flow-steps li {
  position: relative;
  padding: 0 0 34px 34px;
}
.flow-steps li::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: -10px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-soft), var(--line));
}
.flow-steps li:last-child::before { display: none; }
.flow-steps li::after {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 11px; height: 11px;
  background: var(--paper);
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.flow-steps li:first-child::after { background: var(--gold); }
.step-no {
  display: block;
  font-family: var(--font-serif-en); font-weight: 600; font-style: italic;
  font-size: 13px; letter-spacing: .26em; color: var(--gold);
  margin-bottom: 7px;
}
.step-body strong {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; letter-spacing: .06em; color: var(--navy);
}
.step-body p { margin-top: 7px; font-size: 14px; line-height: 2; color: var(--ink-soft); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); transition: background-color .3s ease; }
.faq-item.open { background: rgba(255,255,255,.8); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 44px 20px 38px; position: relative;
  font-size: 15px; font-weight: 700; letter-spacing: .03em; line-height: 1.8;
  color: var(--navy);
}
.faq-q::before {
  content: "Q"; position: absolute; left: 4px; top: 17px;
  font-family: var(--font-serif-en); font-weight: 600; font-style: italic;
  font-size: 19px; color: var(--gold);
}
.faq-q::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .35s var(--ease-out);
}
.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease-out);
}
.faq-a > p {
  overflow: hidden;
  padding: 0 12px 0 38px;
  font-size: 14.5px; line-height: 2.05; color: var(--ink-soft);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 24px; }

/* =========================================================
   最終CTA（深藍×金細罫の額装）
   ========================================================= */
.cta-final {
  position: relative;
  padding: var(--sec-y) 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(46,108,176,.22), transparent 60%),
    var(--navy-deep);
  color: #fff;
  overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-soft) 50%, var(--gold) 70%, transparent);
}
/* 内側の額装ヘアライン */
.cta-final::after {
  content: ""; position: absolute;
  inset: clamp(16px, 3.5vw, 32px);
  border: 1px solid rgba(217,197,150,.22);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(40px, 7vw, 60px); }
.cta-copy { text-align: center; }
.cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(25px, 6.8vw, 38px);
  line-height: 1.65; letter-spacing: .07em;
  color: #fff;
}
.cta-clarify { margin-top: 18px; font-size: 13px; letter-spacing: .05em; color: rgba(255,255,255,.7); }
.cta-figure { max-width: 520px; margin-top: 32px; border-color: rgba(255,255,255,.32); }
.cta-figure::before { border-color: rgba(217,197,150,.4); }
.cta-reasons {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: center;
  column-gap: 28px; row-gap: 11px;
}
.cta-reasons li {
  position: relative; padding-left: 17px;
  font-size: 13.5px; letter-spacing: .05em; color: rgba(255,255,255,.9);
}
.cta-reasons li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 7px; height: 7px; background: var(--gold);
}
.cta-pc-note { margin-top: 24px; font-size: 14px; letter-spacing: .05em; color: rgba(255,255,255,.9); }
.cta-pc-note strong { color: var(--gold-soft); }

.cta-form-wrap { max-width: 560px; width: 100%; margin: 0 auto; }
.cta-form {
  background: var(--white); color: var(--ink);
  padding: clamp(28px, 6vw, 44px);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.5);
}
.form-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: .1em; color: var(--navy);
  text-align: center; margin-bottom: 26px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  position: relative;
}
.form-title::after {
  content: ""; position: absolute; bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 2px; background: var(--gold);
}
.form-row { margin-bottom: 19px; }
.form-fieldset {
  border: 0;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
  min-width: 0; /* fieldset の min-content による横はみ出し防止 */
}
.form-row label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  color: var(--navy); margin-bottom: 8px;
}
.form-fieldset legend {
  display: block;
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  color: var(--navy); margin-bottom: 10px;
}
.option-note {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.req {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: #fff; background: var(--gold); padding: 2.5px 8px;
}
.form-row input:not([type="checkbox"]), .form-row textarea {
  width: 100%; font: inherit; font-size: 16px; /* iOSズーム防止 */
  padding: 13px 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--tint);
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.form-row input:not([type="checkbox"]):focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(172,138,72,.12);
}
.check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* 列幅をコンテナに固定（max-content による横はみ出し防止） */
  gap: 8px;
}
.check-grid label,
.consent-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--ink);
  line-height: 1.65;
  cursor: pointer;
}
.check-grid input[type="checkbox"],
.consent-row input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .25em;
  accent-color: var(--gold);
}
.check-option-other {
  grid-column: 1 / -1;
  align-items: center !important;
}
.check-option-other span {
  flex: none;
}
.check-option-other input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin-left: 2px;
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .3s ease, background-color .3s ease, opacity .3s ease;
}
.check-option-other input[type="text"]:disabled {
  opacity: .55;
  background: #edf1f5;
  cursor: not-allowed;
}
.check-option-other input[type="text"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(172,138,72,.12);
}
.check-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}
.check-grid label {
  gap: 9px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  line-height: 1.5;
}
.check-option-other {
  flex-wrap: wrap;
  align-items: center !important;
}
.check-option-other input[type="text"] {
  flex: 1 1 calc(100% - 27px);
  width: 100%;
  margin: 4px 0 0 27px;
  padding: 10px 11px;
  border-color: var(--gold);
}
.check-option-other input[type="text"]:disabled {
  opacity: .68;
  background: var(--white);
}
.consent-row span {
  display: inline-block;
}
.cta-form .btn-xl { width: 100%; margin-top: 6px; }
.form-note { margin-top: 14px; text-align: center; font-size: 12px; letter-spacing: .05em; color: var(--ink-soft); }
.form-success {
  margin-top: 16px; padding: 15px 17px;
  border: 1px solid var(--gold-soft); background: #fbf7ee;
  font-size: 13.5px; line-height: 1.95; color: var(--navy);
}
.confirm-page {
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 0 72px;
  background:
    linear-gradient(180deg, #f2f5f9 0%, var(--paper) 70%),
    var(--paper);
}
.confirm-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 24px 52px -30px rgba(10,29,51,.36);
  padding: clamp(28px, 6vw, 44px);
}
.confirm-lead {
  margin: -8px 0 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.confirm-table {
  border-top: 1px solid var(--line);
  margin-bottom: 28px;
}
.confirm-table > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.confirm-table dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
}
.confirm-table dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.form-actions {
  display: grid;
  gap: 12px;
}
.form-actions > :only-child {
  grid-column: 1 / -1;
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line-navy);
  border-bottom-color: var(--gold);
  padding: 16px 22px;
  width: 100%;
  max-width: none;
}
.form-error-list {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #d8a5a5;
  background: #fff6f6;
  color: #8a2e2e;
  font-size: 14px;
  line-height: 1.85;
}

.tel-cta { margin-top: 32px; text-align: center; }
.tel-cta-note { font-size: 12px; color: rgba(255,255,255,.7); }
.tel-link {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-serif-en); font-weight: 600;
  font-size: clamp(30px, 8vw, 38px); letter-spacing: .04em; color: #fff;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.tel-link:hover { color: var(--gold-soft); }
.tel-cta-hours { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.55); }

/* =========================================================
   会社情報
   ========================================================= */
.company { background: var(--paper); }
.company-table { border-top: 1px solid var(--line); }
.company-table > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 19px 4px; border-bottom: 1px solid var(--line);
}
.company-table dt {
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; color: var(--gold);
}
.company-table dd { margin: 0; font-size: 14.5px; line-height: 2; }
.text-link { color: var(--blue); border-bottom: 1px solid currentColor; }

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  position: relative;
  background: var(--navy-deep); color: #fff; padding: 52px 0 116px;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,197,150,.5), transparent);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand .logo-mark { background: #fff; color: var(--navy); }
.footer-brand .logo-mark::after { border-color: rgba(20,48,79,.3); }
.footer-brand .logo-ja { color: #fff; }
.footer-brand .logo-en { color: var(--gold-soft); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 24px; row-gap: 10px; }
.footer-nav a { font-size: 12.5px; letter-spacing: .07em; color: rgba(255,255,255,.75); transition: color .3s ease; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-copy { font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.45); }

/* =========================================================
   追従CTA（スマホ）
   ========================================================= */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 190;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 17px 18px;
  background: linear-gradient(135deg, var(--navy) 0%, #1b3d63 100%);
  color: #fff;
  font-size: 14.5px; font-weight: 700; letter-spacing: .07em;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 14px 32px rgba(10,29,51,.4);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
  overflow: hidden;
}
.sticky-cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%;
  width: 36%;
  background: linear-gradient(105deg, transparent, rgba(217,197,150,.3), transparent);
  transform: skewX(-22deg);
  animation: stickyshine 4.5s ease-in-out infinite;
}
@keyframes stickyshine {
  0%, 62% { left: -40%; }
  85%, 100% { left: 116%; }
}
.sticky-cta.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .sticky-cta::before { animation: none; } }

/* =========================================================
   タブレット（768px〜）
   ========================================================= */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --fs-body: 16px; }
  .sp-br { display: none; }

  .logo-ja { font-size: 16px; }
  .fv-tag { font-size: 12px; letter-spacing: .22em; padding: 8px 20px; }

  .issue-list {
    max-width: 780px;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  }
  .curriculum-list {
    max-width: 780px;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  }

  .app-feature { flex-direction: row; align-items: center; gap: 56px; max-width: 880px; }
  .app-feature .manga-frame { flex: none; width: 320px; }
  .app-feature-text { flex: 1; }

  .format-grid { flex-direction: row; align-items: flex-start; justify-content: center; gap: 64px; }
  .format-grid .feature-list { flex: 1; max-width: 520px; margin: 0; }

  .subsidy-grid { flex-direction: row; align-items: center; justify-content: center; gap: 72px; }
  .subsidy-grid .manga-frame { flex: none; width: 340px; }
  .subsidy-detail { flex: 1; max-width: 500px; }
  .subsidy-rate { justify-content: flex-start; }

  .flow-grid { flex-direction: row; align-items: flex-start; justify-content: center; gap: 72px; }
  .flow-grid .manga-tall { position: sticky; top: calc(var(--header-h) + 28px); }

  .company-table > div { flex-direction: row; gap: 0; padding: 21px 8px; }
  .company-table dt { flex: none; width: 168px; padding-top: 3px; }
  .company-table dd { flex: 1; }

  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .confirm-table > div { flex-direction: row; gap: 24px; }
  .confirm-table dt { flex: none; width: 180px; padding-top: 3px; }
  .confirm-table dd { flex: 1; }
  .form-actions { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .site-footer { padding: 60px 0; }
  .sticky-cta { left: auto; right: 24px; bottom: 24px; width: auto; padding: 16px 30px; }
}

/* =========================================================
   PC（1024px〜）
   ========================================================= */
@media (min-width: 1024px) {
  .hamburger { display: none; }
  .gnav { position: static; visibility: visible; pointer-events: auto; }
  .gnav-list {
    position: static; width: auto; padding: 0; background: none;
    flex-direction: row; align-items: center; gap: 2px;
    transform: none; transition: none;
  }
  .gnav-list::before { display: none; }
  .gnav-link {
    padding: 8px 14px; border: 0; font-size: 13.5px; position: relative; white-space: nowrap;
    color: var(--navy); letter-spacing: .06em;
  }
  .gnav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease-out);
  }
  .gnav-link:hover::after { transform: scaleX(1); }
  .gnav-cta-wrap { margin: 0 0 0 16px; }
  .gnav-cta-wrap .btn-cta { width: auto; }

  .fv-inner { flex-direction: row; align-items: center; gap: clamp(48px, 6vw, 80px); }
  .fv-copy { flex: 1.1; text-align: left; }
  .fv-title::after { margin-left: 2px; }
  .fv-actions .btn-cta { margin: 0; }
  .fv-points { justify-content: flex-start; }
  .fv-points li:first-child { padding-left: 0; }
  .fv-figure-wrap { order: 0; flex: 1; max-width: 460px; margin: 0; }
  .fv-rail { display: block; }
  .fv-scroll { display: block; }
  .fv-seal { left: auto; right: -22px; bottom: -30px; }

  .cta-inner { flex-direction: column; align-items: center; gap: 56px; }
  .cta-copy { width: 100%; text-align: center; }
  .cta-figure { margin-left: auto; margin-right: auto; }
  .cta-reasons { justify-content: center; }
  .cta-form-wrap { flex: none; width: 100%; max-width: 920px; margin: 0 auto; }
  .contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 19px;
  }
  .contact-form .form-title,
  .contact-form .form-fieldset,
  .contact-form .form-row-wide,
  .contact-form .consent-row,
  .contact-form .btn-xl,
  .contact-form .form-note {
    grid-column: 1 / -1;
  }
  .contact-form .form-row { margin-bottom: 0; }
  .contact-form textarea { min-height: 132px; }
  .contact-form .check-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form .btn-xl {
    width: min(100%, 520px);
    justify-self: center;
    margin-top: 4px;
  }

  .manga-wide { max-width: 880px; }
  .btn-cta:not(.btn-sm) { font-size: 15px; padding: 18px 32px; }
  .btn-lg { font-size: 16px; padding: 20px 36px; letter-spacing: .08em; }
}
