/* =========================================================
   UI/UX仕上げ（2026-10-14）：固定ボタン・読みやすさ・操作性
   styles.css → styles-sections.css → このファイル の順に読む
   ========================================================= */

/* 読みやすさ：小さすぎる字をなくす（最小12px） */
.hero-photo figcaption, .voice-photo figcaption, .after30-photo figcaption, .fit-photo figcaption, .support-photo figcaption { font-size: 12px; }
.section-kicker { font-size: 12px; }
.compare-table small { font-size: 12px; }
.lp-footer { font-size: 13px; }

/* 操作性：押せる場所を44px以上に・キーボード操作の枠 */
.foot-links a { display: inline-block; padding: 12px 8px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.faq summary { min-height: 56px; }
.faq summary:hover { background: #f7fafc; border-radius: 14px; }
.faq details[open] { border-color: var(--navy); }
html { scroll-padding-top: 16px; }

/* ボタンの押した感じ */
.cta-button:active { filter: brightness(0.96); box-shadow: 0 6px 14px rgba(242, 140, 24, 0.28); }
.cta-button { -webkit-tap-highlight-color: transparent; }

/* 画像の読み込み中も形を崩さない */
.screen img, .teacher-photo img { background: #eef1f3; }

/* ---------- 固定ボタン ---------- */
.sticky-cta { position: fixed; z-index: 50; left: 50%; bottom: 0; width: min(100%, 1170px); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translate(-50%, 110%); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(8, 42, 76, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 260ms ease; }
.sticky-cta.is-shown { transform: translate(-50%, 0); }
.sticky-inner { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 760px; margin: 0 auto; }
.sticky-price { margin: 0; color: var(--navy-deep); line-height: 1.15; white-space: nowrap; }
.sticky-price small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.sticky-price b { font-size: 22px; font-weight: 900; }
.sticky-price span { font-size: 12px; font-weight: 800; }
.sticky-cta .sticky-btn { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 8px; max-width: 420px; min-height: 54px; padding: 10px 16px; border-bottom: 4px solid var(--orange-deep); border-radius: 14px; color: #341b00; background: linear-gradient(180deg, #ffc64b 0%, var(--orange) 100%); font-size: 18px; font-weight: 900; text-decoration: none; box-shadow: 0 8px 18px rgba(242, 140, 24, 0.28); }
.sticky-cta .sticky-btn:active { filter: brightness(0.96); }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* 固定ボタンで最後の文字が隠れないよう、下に余白 */
.lp-footer { padding-bottom: 110px; }

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .eyebrow { font-size: 13px; }
  .eyebrow br { display: none; }
  .sticky-cta { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .sticky-inner { gap: 10px; }
  .sticky-price b { font-size: 19px; }
  .sticky-cta .sticky-btn { min-height: 52px; font-size: 16px; }
  /* 30日の帯：週の名前をはっきり */
  .g-row i { font-size: 14.5px; }
}

/* ---------- PC：30日の帯は階段状に、行の高さを詰める ---------- */
@media (min-width: 768px) {
  .gantt .g-row { margin: 6px 0; }
  .gantt .g-row i { position: relative; }
  .gantt .g-row:not(.g4) i::after { position: absolute; right: -14px; bottom: -12px; color: var(--green); font-size: 18px; font-weight: 900; content: "↘"; }
}

/* 固定ボタン：スマホで文字が折れないように */
.sticky-cta .sticky-btn { white-space: nowrap; }
@media (max-width: 767px) {
  .sticky-price small { display: none; }
  .sticky-price { flex: 0 0 auto; }
  .sticky-price b { font-size: 20px; }
  .sticky-price span { display: block; font-size: 11px; }
  .sticky-cta .sticky-btn { padding: 10px 12px; font-size: 16px; }
}
@media (max-width: 340px) { .sticky-cta .sticky-btn { font-size: 15px; } .sticky-price b { font-size: 18px; } }

/* ---------- 2026-10-14 修正 ---------- */
/* 表：列のあいだに縦線、部の下に白い横線 */
.lp-table th + th, .lp-table th + td, .lp-table td + td, .lp-table td + th { border-left: 1px solid var(--line); }
.lp-table thead th + th { border-left-color: rgba(255, 255, 255, 0.25); }
.chapter-table .part { border-bottom: 2px solid rgba(255, 255, 255, 0.85) !important; }
.chapter-table tbody tr:last-child .part { border-bottom: 0 !important; }
.chapter-table .part + td { border-left: 0; }
/* サポートの写真：横長の写真を切らずに上に置く */
.support--stack { grid-template-columns: 1fr; }
.support--stack .support-photo { aspect-ratio: 1200 / 468; }
.support--stack .support-photo img { object-position: right center; }
/* 写真の顔が切れないよう、人物の位置に合わせる */
.fit-photo img { object-position: center 30%; }
.voice-photo img { object-position: center 35%; }
.after30-photo img { object-position: center 35%; }
@media (max-width: 767px) {
  .chapter-table td + td { border-left: 0; }
  .doubt .lp-table th + td, .doubt .lp-table td + td { border-left: 0; }
  .support--stack .support-photo { aspect-ratio: 16 / 9; }
  .support--stack .support-photo img { object-position: 85% center; }
}

/* 写真が細長く切れる幅の修正（向いている方・ヒーローのタブレット幅） */
@media (min-width: 768px) {
  .fit { align-items: center; }
  .fit-photo { min-height: 0; aspect-ratio: 4 / 3; align-self: center; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fit { grid-template-columns: 1fr; }
  .fit-photo { max-width: 640px; margin: 0 auto; }
  .hero-stage { grid-template-columns: 1fr; }
  .hero-photo { min-height: 0; max-width: 680px; margin: 0 auto; }
  .hero-photo img { height: auto; aspect-ratio: 3 / 2; }
}

/* 表の中の改行を文節で（「ひな形／集」「ワークシー／ト）」を防ぐ） */
.lp-table th, .lp-table td, .support-table th, .support-table td { word-break: auto-phrase; }
@media (max-width: 767px) { .include-table th { width: 36%; } }

/* 部の区切り：白い線を、部の上（見出しとの境目）と部と部のあいだに */
.chapter-table tbody tr:first-child > .part { border-top: 2px solid rgba(255, 255, 255, 0.85); }

/* ---------- スマホの改行（2026-10-14） ---------- */
.nw { display: inline-block; }
/* 行の頭に「ー」「ッ」「、」などを置かない */
body { line-break: strict; }
.bn-num { white-space: nowrap; }

/* 改行用のかたまり：番号の丸などのデザインが当たらないようにする */
span.nw { display: inline-block !important; width: auto !important; height: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: inherit !important; font: inherit !important; letter-spacing: inherit !important; transform: none !important; place-items: normal !important; vertical-align: baseline !important; }
.nw { display: inline-block; }
body { line-break: strict; }
.bn-num { white-space: nowrap; }
@media (max-width: 340px) {
  .last-big { font-size: 25px; }
  .pre-title { font-size: 15px; }
  .eyebrow { font-size: 12px; }
}
