:root {
  --navy: #1F2A44;
  --yellow: #FFC629;
  --yellow-pale: #FFF4CC;
  --line: #E6E8EC;
  --bg: #F3F4F6;
  --w: 480px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
img { display: block; width: 100%; height: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .headline { word-break: auto-phrase; text-wrap: balance; line-break: strict; }
p, td, dd { word-break: auto-phrase; line-break: strict; }

.lp {
  max-width: var(--w);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 40px rgba(31, 42, 68, .08);
}
.sec { position: relative; }
.img-wrap { position: relative; }
.hit { position: absolute; display: block; border-radius: 14px; }
.hit:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* HTML のテキスト層（05・07） */
.text-block { padding: 8px 24px 48px; }
.h2 {
  margin: 8px 0 8px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
}
.h2::before {
  content: "";
  display: inline-block;
  width: 24px; height: 4px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--yellow);
}
.h2-access { margin-top: 48px; }
.h3 { margin: 36px 0 12px; font-size: 19px; font-weight: 500; line-height: 1.5; }
.lead { margin: 0 0 20px; }
.lead strong { background: linear-gradient(transparent 60%, var(--yellow) 60%); font-weight: 600; }
.note { margin: 12px 0 0; font-size: 14px; line-height: 1.7; color: #4a5368; }

.class-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.class-card { border: 1.5px solid var(--navy); border-radius: 16px; padding: 16px 18px 12px; }
.class-name { margin: 0 0 8px; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); flex: none; display: inline-block; }
.class-card dl { margin: 0; }
.class-card dl div { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.class-card dt { width: 3em; flex: none; color: #4a5368; font-size: 15px; }
.class-card dd { margin: 0; font-size: 16px; }
.yen { font-size: 22px; font-weight: 600; letter-spacing: .02em; }

.table-scroll { overflow-x: auto; }
.timetable { width: 100%; border-collapse: collapse; text-align: center; font-size: 15px; }
.timetable th, .timetable td { border: 1px solid var(--line); padding: 10px 4px; }
.timetable thead th { background: var(--navy); color: #fff; font-weight: 500; }
.timetable tbody th { font-weight: 500; white-space: nowrap; width: 22%; }
.timetable .c1 { background: var(--yellow-pale); }
.timetable .c2 { background: var(--yellow); }
.timetable .c3 { background: var(--navy); color: #fff; }

.fee { width: 100%; border-collapse: collapse; }
.fee th, .fee td { border-top: 1px solid var(--line); padding: 12px 0; text-align: left; vertical-align: top; }
.fee tr:last-child th, .fee tr:last-child td { border-bottom: 1px solid var(--line); }
.fee th { width: 7em; font-weight: 500; color: #4a5368; font-size: 15px; }
.badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 14px;
  font-weight: 600;
}

/* Q&A：Q は吹き出し、A は面（S11 の縦1列） */
.faq { display: grid; gap: 16px; margin-top: 16px; }
.qa { border-radius: 16px; background: #fff; border: 1.5px solid var(--navy); padding: 14px 16px 16px; }
.qa-q {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  display: flex; gap: 12px; align-items: flex-start;
}
.qa-a {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--yellow-pale);
  border-radius: 12px;
}
.q {
  flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}

.footer {
  max-width: var(--w);
  margin: 0 auto;
  padding: 32px 24px 120px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
}
.footer strong { color: var(--yellow); font-weight: 600; }
.footer-logo { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.footer-logo span { font-size: 11px; letter-spacing: .2em; margin-left: 6px; font-weight: 400; }
.footer-note { margin: 12px 0 0; font-size: 12px; line-height: 1.7; letter-spacing: .02em; color: rgba(255, 255, 255, .78); }

/* 追従の申込ボタン（FV と CTA の画像のボタンが見えている間は隠す） */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 140%);
  width: min(calc(100% - 24px), calc(var(--w) - 24px));
  min-height: 56px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(31, 42, 68, .25);
  transition: transform .3s ease;
  z-index: 20;
}
.sticky-cta small {
  font-size: 11px; font-weight: 500;
  padding: 1px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6);
}
.sticky-cta.is-shown { transform: translate(-50%, 0); }
.sticky-cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.toast {
  position: fixed;
  left: 50%; top: 20px;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 420px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--yellow);
  box-shadow: 0 8px 24px rgba(31, 42, 68, .2);
  font-size: 15px;
  text-align: center;
  z-index: 30;
}

/* 見せ場：スクロールで画像がふわっと出る（控えめ） */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta { transition: none; }
}
