/* ============================================
   「理科実験で英語」LP スタイル
   スマホファースト（〜767px基準）/ 768px〜 タブレット / 1024px〜 PC
   配色: e-epsilon.comのアクア×クリームを土台に、
   文字は濃紺・CTAはコーラルレッドで締める（2026-07確定）
   文字サイズ: 「未来プロジェクト」LP（/mirai/）と同じ体系。日本語は欧文より大きくないと読みにくいため、
   本文はスマホ16px・PC17pxを基準に、注記などの最小サイズもスマホ13px・PC14pxを下回らないようにしている（:root の --fs-* で一元管理）
   ============================================ */

:root {
  --navy: #1c3d5a;
  --navy-deep: #14304a;
  --body-color: #3a4653;
  --muted: #6d675a;
  --teal: #0e9cb0;
  --cta: #e94f35;          /* CTAボタン・強調 */
  --cta-dark: #d13e25;     /* CTAホバー・文字強調 */
  --cta-text: #fff;        /* CTAボタン上の文字色 */
  --cta-sh: rgba(233, 79, 53, .35);
  --cta-sh-soft: rgba(233, 79, 53, .16);
  --yellow: #ffe06a;
  --cream: #fefaed;
  --line: #ede3cc;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(28, 61, 90, .09);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  /* 文字サイズ（スマホ） */
  --fs-xs: 13px;      /* 写真キャプション */
  --fs-s: 14px;       /* 注記・補足・ラベル */
  --fs-label: 15px;   /* 校名タグ */
  --fs-body: 16px;    /* 本文・カード本文・表 */
  --fs-lead: 17px;    /* リード文 */
  --fs-h4: 17px;      /* 小見出し（セクション冒頭のキャッチ・FAQの質問等） */
  --fs-h3: 19px;      /* カード見出し */
  --fs-h3l: 22px;     /* 大きめの小見出し（人名・プラン名等） */
  --fs-h2: clamp(26px, 7vw, 30px);
}
@media (min-width: 768px) {
  :root {
    --fs-xs: 14px;
    --fs-s: 15px;
    --fs-label: 16px;
    --fs-body: 17px;
    --fs-lead: 18px;
    --fs-h4: 18px;
    --fs-h3: 21px;
    --fs-h3l: 25px;
    --fs-h2: clamp(32px, 4.4vw, 40px);
  }
}
@media (min-width: 1024px) {
  :root {
    --fs-lead: 19px;
    --fs-h4: 20px;
    --fs-h3: 24px;
    --fs-h3l: 28px;
    --fs-h2: clamp(36px, 3.3vw, 44px);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  color: var(--body-color);
  background: var(--white);
  line-height: 1.9;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
  line-break: strict;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-style: normal; }

/* 文節の途中で改行させないための単位（1行に収まる長さの語句にだけ使う） */
.nb { display: inline-block; }
.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary {
  background: var(--cta);
  color: var(--cta-text);
  padding: 16px 32px;
  font-size: 18px;
  box-shadow: 0 6px 18px var(--cta-sh);
}
.btn--primary:hover { background: var(--cta-dark); transform: translateY(-2px); }
.btn--large { padding: 18px 44px; font-size: 19px; }
.btn--small { background: var(--cta); color: var(--cta-text); padding: 9px 18px; font-size: 14px; box-shadow: 0 3px 10px var(--cta-sh); }
.btn--small:hover { background: var(--cta-dark); }
.btn--block { display: block; width: 100%; }
.btn--outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 14px 32px;
  font-size: 17px;
}
.btn--outline:hover { background: var(--navy); color: var(--white); }
@media (min-width: 1024px) {
  .btn--large { padding: 19px 48px; font-size: 20px; }
  .btn--small { padding: 10px 20px; font-size: 15px; }
  .btn--outline { font-size: 18px; }
}
/* 「Lesson 1を無料でまるごと見る」がボタン内で折り返さない上限 */
@media (max-width: 400px) {
  .btn--large { padding: 16px 22px; font-size: 17px; }
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.header__logo { display: flex; align-items: baseline; gap: 10px; line-height: 1.3; }
.header__logo-main { font-family: var(--font-head); font-weight: 900; font-size: 19px; color: var(--navy); }
.header__logo-sub { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--teal); letter-spacing: .08em; }
@media (min-width: 768px) {
  .header__inner { padding: 12px 24px; }
  .header__logo-main { font-size: 21px; }
  .header__logo-sub { font-size: 15px; }
}
/* スマホではボタンと重なるため「オンラインコース」を省く */
@media (max-width: 479px) {
  .header__logo-sub { display: none; }
}
@media (max-width: 374px) {
  .header__logo-main { font-size: 17px; }
  .btn--small { padding: 8px 12px; font-size: 13px; }
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, #fffdf8 70%, var(--white) 100%);
  padding: 96px 16px 0;
  overflow: hidden;
}

/* キャッチは2カラムの外に出し、1段・中央揃えにする */
.hero__head { max-width: 1100px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: var(--fs-s);
  font-weight: 700;
  border-radius: 22px;
  padding: 7px 18px;
  line-height: 1.6;
  margin-bottom: 18px;
}
/* キャッチは2行。2行目（16字）は、スマホでは「が」の後で折り返して3行にする。
   文字サイズは、スマホでは1行目（12字）、タブレット以上では2行目が、見出し欄の幅に収まる大きさにする
   （cqi＝見出し欄の幅の1%。スクロールバーの有無に左右されない。vwの指定はcqi非対応ブラウザ向けの近似） */
.hero__head { container-type: inline-size; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: min(44px, calc((100vw - 32px) / 12.6));
  font-size: min(44px, calc(100cqi / 12.2));
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: .02em;
}
.hero__title-line { display: block; }
.hero__title em {
  color: var(--teal);
  background: linear-gradient(transparent 68%, var(--yellow) 68%);
}
/* 配信版のZen Maru Gothicはpaltが効かず約物が全角幅のままなので、キャッチだけpaltを切って手動で半角詰めする
   （paltの効くフォールバックフォントで二重に詰まって重なるのを防ぐ） */
.hero__title { font-feature-settings: normal; }
.hero__title .kakko-l { margin-left: -.5em; }
/* margin-right で詰めると .nb の中で折り返すため letter-spacing で詰める */
.hero__title .kakko-r { letter-spacing: -.5em; }

/* キャッチの下：説明文＋ボタン（左）と写真（右） */
.hero__inner {
  max-width: 1100px;
  margin: 32px auto 0;
  display: grid;
  gap: 32px;
}
.hero__lead { font-size: var(--fs-lead); margin-bottom: 20px; }
.hero__lead strong { color: var(--navy); }

/* STEAM学習の説明 */
.steam-note {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.steam-note p { font-size: var(--fs-body); line-height: 1.8; }
.steam-note .steam-note__title { font-weight: 700; color: var(--teal); margin-bottom: 4px; }

.hero__cta { text-align: center; }
.hero__cta-note { font-size: var(--fs-s); color: var(--muted); margin-top: 10px; }
.hero__visual { width: 100%; max-width: 640px; margin: 0 auto; }
.hero__visual-caption { font-size: var(--fs-s); color: var(--muted); margin-top: 10px; text-align: center; }

@media (min-width: 768px) {
  .hero { padding: 108px 24px 0; }
  .hero__eyebrow { padding: 8px 24px; }
  .hero__title { font-size: clamp(44px, 6vw, 66px); font-size: min(66px, calc(100cqi / 15.2)); }
}
@media (min-width: 1024px) {
  .hero { padding-top: 116px; }
  .hero__eyebrow { font-size: 16px; }
  .hero__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; margin-top: 44px; }
  .hero__cta { text-align: left; }
  .hero__visual { max-width: none; }
}

/* 実績（数字はJSでカウントアップ） */
.hero__stats {
  max-width: 1100px;
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 0 56px;
}
.hero__stats dl {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 10px 16px;
  box-shadow: var(--shadow);
}
.hero__stats dt { font-size: var(--fs-s); color: var(--teal); font-weight: 700; line-height: 1.5; }
.hero__stats dd { font-family: var(--font-head); font-weight: 900; color: var(--navy); line-height: 1.2; }
.hero__stats .stat-num { font-size: clamp(36px, 5.4vw, 56px); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.hero__stats .stat-unit { font-size: var(--fs-lead); font-weight: 700; margin-left: 3px; }
/* スマホは3列だとラベルと数字が収まらないため、ラベル左・数字右の1列にする */
@media (max-width: 599px) {
  .hero__stats { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; }
  .hero__stats dl { flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 12px 20px; }
  .hero__stats dt { font-size: var(--fs-body); }
  .hero__stats dd { flex: none; }
  .hero__stats .stat-num { font-size: 36px; }
  .hero__stats .stat-unit { font-size: var(--fs-body); }
}
@media (max-width: 374px) {
  .hero__stats dl { padding: 12px 14px; }
  .hero__stats dt { font-size: var(--fs-s); }
  .hero__stats .stat-num { font-size: 30px; }
}

/* ---------- 写真 ---------- */
.photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: auto; }

/* ---------- セクション共通 ---------- */
.section { padding: 72px 16px; }
.section--cream { background: var(--cream); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #e8eef5; }
.section__inner { max-width: 1100px; margin: 0 auto; }
.section__inner--narrow { max-width: 860px; }
.center { text-align: center; }
@media (min-width: 768px) { .section { padding: 104px 24px; } }

.section__eyebrow {
  font-family: var(--font-head);
  color: var(--teal);
  font-weight: 700;
  font-size: var(--fs-h4);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--yellow); }
.section__eyebrow::before { content: "🧪 " / ""; }

.section__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-h2);
  color: var(--navy);
  text-align: center;
  line-height: 1.45;
  margin-bottom: 28px;
}
.section__title em {
  color: var(--cta);
  background: linear-gradient(transparent 70%, var(--yellow) 70%);
}
.section__title--light { color: var(--white); }
.section__subtitle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h3l);
  color: var(--navy);
  text-align: center;
  line-height: 1.5;
  margin: 64px 0 28px;
}
.section__lead { font-size: var(--fs-lead); text-align: center; margin-bottom: 44px; }
.section__lead--light { color: #cfdae6; }
.section__lead strong { color: var(--navy); }
.section__lead--light strong { color: var(--yellow); }
.section__bridge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 5vw, 28px);
  color: var(--navy);
  text-align: center;
  line-height: 1.6;
  margin-top: 40px;
}
.section__note { font-size: var(--fs-s); color: var(--muted); text-align: center; margin-top: 24px; }

@media (max-width: 767px) {
  .section__lead br { display: none; }
}

/* ---------- カード ---------- */
.cards { display: grid; gap: 16px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; border: 1.5px solid var(--line); }
.card__icon { font-size: 38px; line-height: 1; margin-bottom: 14px; }
.card__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 17px;
  color: var(--white);
  background: var(--teal);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.5;
}
.card--flat .card__title { font-size: var(--fs-h4); }
.card p { font-size: var(--fs-body); }

/* 3枚組: タブレットは3列だと1行10字ほどになり読みにくいため、アイコン左の横長カードを縦に並べる */
@media (min-width: 600px) and (max-width: 1023px) {
  .cards--3 .card { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-items: start; }
  .cards--3 .card__icon, .cards--3 .card__num { grid-row: span 2; margin-bottom: 0; }
}
@media (min-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
/* 6枚組: タブレット2列、PC3列 */
@media (min-width: 600px) { .cards--6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards--6 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- ストーリー ---------- */
.story { display: grid; gap: 16px; margin-top: 8px; }
.story__step {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.story__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  color: var(--cta-text);
  background: var(--cta);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 3px 10px var(--cta-sh);
}
.story__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-h3);
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 8px;
}
.story__step p { font-size: var(--fs-body); }
@media (min-width: 600px) and (max-width: 1023px) {
  .story__step { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; align-items: start; }
  .story__num { grid-row: span 2; margin-bottom: 0; }
}
@media (min-width: 1024px) { .story { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- 無料体験セクション ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.gallery__item figcaption {
  font-size: var(--fs-s);
  color: #cfdae6;
  margin-top: 10px;
  line-height: 1.7;
}

.free-cta { text-align: center; margin-top: 44px; }
.free-cta__note { font-size: var(--fs-s); color: #cfdae6; margin-top: 12px; }

/* ---------- オプトイン ---------- */
.optin { margin-top: 52px; }
.optin__box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  color: var(--body-color);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  border-top: 6px solid var(--yellow);
}
.optin__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-h3);
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.55;
}
.optin__text { font-size: var(--fs-body); margin-bottom: 22px; }
.optin__text strong { color: var(--cta-dark); }
.optin__form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: 0 auto; }
@media (min-width: 600px) { .optin__form { flex-direction: row; } .optin__form input { flex: 1; } }
.optin__form input {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: var(--fs-body);
  font-family: var(--font-body);
}
.optin__form input:focus { outline: none; border-color: var(--teal); }
.optin__note { font-size: var(--fs-s); color: #767676; margin-top: 14px; }
@media (min-width: 768px) { .optin__box { padding: 40px 44px; } }

/* ---------- 探究サイクル ---------- */
.cycle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  max-width: 1060px;
  margin: 0 auto 20px;
}
@media (min-width: 1024px) { .cycle { flex-direction: row; } }
.cycle__step {
  flex: 1;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}
.cycle__en {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  color: var(--teal);
  line-height: 1.4;
}
.cycle__ja {
  display: inline-block;
  font-size: var(--fs-s);
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  padding: 1px 14px;
  margin: 6px 0;
}
.cycle__step p { font-size: var(--fs-s); color: var(--muted); line-height: 1.6; }
.cycle__arrow {
  color: var(--cta);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
  transform: rotate(90deg);
  line-height: 1;
}
@media (min-width: 1024px) { .cycle__arrow { transform: none; align-self: center; } }

/* メソッド写真 */
.method-photo {
  max-width: 900px;
  margin: 40px auto 0;
}
.method-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.method-photo figcaption {
  font-size: var(--fs-s);
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.8;
}

/* ---------- 比較表 ---------- */
.compare { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: var(--fs-body);
  line-height: 1.7;
}
.compare__table th, .compare__table td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.compare__table tr:last-child > * { border-bottom: none; }
.compare__table th:last-child, .compare__table td:last-child { border-right: none; }
.compare__table thead th, .compare__table thead td { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: var(--fs-body); border-right-color: rgba(255, 255, 255, .25); }
.compare__table thead th.compare__hl { background: var(--cta); color: var(--cta-text); font-size: var(--fs-lead); }
.compare__table tbody th { background: #efe6cd; color: var(--navy); white-space: nowrap; border-right: 2px solid #ddd1b2; }
.compare__table td.compare__hl { background: #fdeee9; font-weight: 700; color: var(--navy); border-left: 2px solid var(--cta-sh-soft); border-right: 2px solid var(--cta-sh-soft); }
.compare__note { font-size: var(--fs-s); color: var(--muted); margin-top: 12px; }

/* ---------- 実績・信頼 ---------- */
.schools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}
.schools li {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}
.schools__note { font-size: var(--fs-s); color: var(--muted); text-align: center; margin-top: 14px; }

/* 写真と名前を上に横並び、本文は全幅にして1行の文字数を確保する */
.profiles { display: grid; gap: 20px; margin-top: 52px; }
@media (min-width: 768px) { .profiles { grid-template-columns: 1fr 1fr; gap: 24px; } }
.profile {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.profile__head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.profile__photo {
  flex-shrink: 0;
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(28, 61, 90, .18);
}
.profile__role { font-size: var(--fs-s); color: var(--teal); font-weight: 700; line-height: 1.5; }
.profile__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-h3l);
  color: var(--navy);
  line-height: 1.4;
  margin-top: 2px;
}
.profile__text { font-size: var(--fs-body); }
.profile__bio { font-size: var(--fs-s); color: var(--muted); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); line-height: 1.8; }
@media (min-width: 768px) {
  .profile { padding: 30px; }
  .profile__photo { width: 120px; height: 120px; }
}

/* 保護者の声（動画インタビュー）
   動画は横に並べると小さくなりすぎるので、どの画面幅でも上に大きく置き、抜粋コメントをその下に続ける */
.voice-feature {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
@media (max-width: 479px) {
  /* スマホでは動画をできるだけ大きく見せるため、カードの左右余白を詰める */
  .voice-feature { padding: 16px 14px 24px; }
}
@media (min-width: 768px) {
  .voice-feature { gap: 32px; padding: 34px; }
  /* 動画の幅いっぱいだと1行が長すぎて読みにくいので、コメントは1行44字程度に収める */
  .voice-feature__body { width: 100%; max-width: 760px; margin: 0 auto; }
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-deep);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.voice-feature__video figcaption { font-size: var(--fs-s); color: var(--muted); margin-top: 10px; text-align: center; }
@media (max-width: 479px) {
  .voice-feature__body { padding: 0 6px; }
}
.voice-feature__quote { font-size: var(--fs-body); }
.voice-feature__quote + .voice-feature__quote { margin-top: 16px; }
.voice-feature__name { font-size: var(--fs-s); color: var(--teal); font-weight: 700; margin-top: 18px; }

/* ---------- 料金 ---------- */
.plans { display: grid; gap: 24px; max-width: 960px; margin: 0 auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--featured { border-color: var(--cta); box-shadow: 0 8px 32px var(--cta-sh-soft); }
.plan__badge {
  position: absolute;
  top: -15px; left: 24px;
  background: var(--cta);
  color: var(--cta-text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-s);
  line-height: 1.6;
  border-radius: 999px;
  padding: 4px 18px;
}
.plan__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: max(25px, var(--fs-h3l));
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 10px;
}
/* 「（レベル1〜3）」は1つのまとまりとして折り返す（スマホでは2行目に回る） */
.plan__name-sub { display: inline-block; font-size: .68em; }
.plan__desc { font-size: var(--fs-body); margin-bottom: 16px; }
.plan__price { font-size: var(--fs-body); color: var(--navy); font-weight: 700; }
.plan__price-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 46px;
  color: var(--cta);
  letter-spacing: .02em;
}
.plan__price-tax { font-size: var(--fs-s); font-weight: 400; color: var(--muted); }
.plan__price-alt { font-size: var(--fs-s); margin-top: 2px; }
.plan__list { list-style: none; margin: 18px 0 26px; flex: 1; }
.plan__list li { padding: 9px 0 9px 28px; border-bottom: 1px dashed var(--line); font-size: var(--fs-body); position: relative; }
.plan__list li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.plan__list li strong { color: var(--cta-dark); font-size: var(--fs-lead); }
@media (min-width: 1024px) { .plan__price-num { font-size: 52px; } }
/* スマホでも申込ボタンの文字が1行に収まるよう左右の余白を詰める */
@media (max-width: 479px) {
  .plan .btn { padding-left: 12px; padding-right: 12px; }
}

/* モニター募集（期間限定）。料金カードと返金保証の間に置く。定員・期限に達したら HTML ごと削除する */
.monitor {
  max-width: 760px;
  margin: 40px auto 0;
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.monitor__label {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-s);
  line-height: 1.6;
  border-radius: 999px;
  padding: 3px 16px;
}
.monitor__title { font-family: var(--font-head); font-weight: 900; color: var(--navy); font-size: var(--fs-h3); line-height: 1.45; margin: 10px 0 8px; }
.monitor__lead { font-size: var(--fs-body); }
.monitor__price { font-size: var(--fs-body); color: var(--navy); font-weight: 700; margin-top: 10px; }
.monitor__price-num { font-family: var(--font-head); font-weight: 900; font-size: 40px; color: var(--teal); letter-spacing: .02em; }
.monitor__list { list-style: none; margin: 10px 0 22px; }
.monitor__list li { padding: 5px 0 5px 20px; font-size: var(--fs-s); position: relative; }
.monitor__list li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
@media (min-width: 768px) {
  .monitor { padding: 30px 34px; }
}
@media (max-width: 479px) {
  .monitor { padding: 22px 18px; }
  /* 320px幅でもボタンの文字が1行に収まるよう左右の余白を詰める */
  .monitor .btn { display: block; width: 100%; padding-left: 12px; padding-right: 12px; }
}

.guarantee {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--cream);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 26px;
}
.guarantee__mark {
  flex-shrink: 0;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.4;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(255, 224, 106, .6);
}
.guarantee__body h3 { font-family: var(--font-head); font-weight: 900; color: var(--navy); font-size: var(--fs-h3l); line-height: 1.45; margin-bottom: 8px; }
.guarantee__body h3 em { color: var(--cta); background: linear-gradient(transparent 70%, var(--yellow) 70%); }
.guarantee__body p { font-size: var(--fs-body); }
.guarantee__body .guarantee__note { font-size: var(--fs-s); color: var(--muted); margin-top: 10px; }
@media (min-width: 768px) {
  .guarantee { gap: 30px; padding: 30px 34px; }
  .guarantee__mark { width: 128px; height: 128px; font-size: 21px; }
}
@media (max-width: 479px) {
  .guarantee { flex-direction: column; text-align: center; }
  .guarantee__body { text-align: left; }
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-h4);
  color: var(--navy);
  padding: 20px 52px 20px 54px;
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
/* Qの行の高さを質問文1行目と揃え、文字の大きさが変わっても縦位置がずれないようにする */
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 20px; top: 20px;
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--teal);
  font-size: 21px;
  line-height: calc(var(--fs-h4) * 1.6);
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--cta);
  font-weight: 900;
  font-size: 24px;
}
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 24px 22px 54px; font-size: var(--fs-body); }

/* ---------- フッター ---------- */
.footer { background: var(--navy-deep); color: #9fb2c5; padding: 48px 16px 116px; text-align: center; }
.footer__brand { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: var(--fs-lead); margin-bottom: 6px; }
.footer__company { font-size: var(--fs-s); margin-bottom: 16px; }
.footer__company a { color: #cfdae6; }
.footer__nav { display: flex; justify-content: center; gap: 8px 24px; font-size: var(--fs-s); margin-bottom: 16px; flex-wrap: wrap; }
.footer__nav a { color: #9fb2c5; }
.footer__copy { font-size: var(--fs-xs); }
@media (min-width: 768px) { .footer { padding: 56px 24px 48px; } }

/* ---------- モバイル固定CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- 補助クラス ---------- */
.cta-note--light { color: rgba(255, 255, 255, .8); }

/* ---------- 文節単位の折り返し ---------- */
/* 見出しと短い文だけに限定（長い本文に当てると行末がガタつくため） */
.section__eyebrow, .section__title, .section__subtitle, .section__bridge, .section__lead, .section__note,
.card__title, .card p, .story__title, .story__step p,
.optin__heading, .gallery__item figcaption, .method-photo figcaption, .cycle__step p,
.compare__table td, .compare__note, .schools__note,
.faq summary, .plan__desc, .guarantee__body h3, .voice-feature__name,
.monitor__title, .monitor__lead, .monitor__list li, .guarantee__body p { word-break: auto-phrase; }
.section__eyebrow, .section__title, .section__subtitle, .section__bridge,
.card__title, .story__title, .optin__heading, .faq summary, .guarantee__body h3 { text-wrap: balance; }

/* ---------- スクロール時のフェードイン ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
