@charset "utf-8";
/* ゆうづつ個別指導塾デザインサンプル
   コンセプト:夕方の空と、最初に見える星(白と淡い空色の地+深い青緑+小さな金色の星)
   書体は端末の標準書体だけ(BIZ UDPゴシック/ヒラギノ角ゴ)。フォントの読み込みはしない */

:root {
  --c-white: #FFFFFF;
  --c-sub: #EEF4F5;        /* 淡い空色:交互背景 */
  --c-rule: #D9E5E8;       /* 罫線 */
  --c-rule-dark: #B5CBD1;  /* 図の線 */
  --c-violet: #155E6E;     /* 深い青緑:白文字と約7.3:1 */
  --c-violet-dark: #0F4855;
  --c-lemon: #EDC45F;      /* 金:星・番号など小さな面だけ。白地の上の文字には使わない */
  --c-ink: #1F2A30;        /* 本文 */
  --c-ink-soft: #55636A;   /* 注記(13px以上) */

  --font: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Meiryo", sans-serif;

  --radius: 14px;
  --sec-pad: 72px;
  --card-pad: 20px;
  --page-bg: var(--c-white);
}
@media (min-width: 1024px) {
  :root { --sec-pad: 112px; --card-pad: 32px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--c-ink);
  background: var(--c-white);
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.5; letter-spacing: .03em; word-break: auto-phrase; text-wrap: balance; }
p, figure, blockquote, dl, dd { margin: 0; }
p, li, dd { text-wrap: pretty; }
/* 短い文は文節で折り返す(対応ブラウザのみ) */
.fv__lead, .check-list li, .final-cta__lead, .voice-notes p, .photo-cap, .contact-list__cond, .fv__note, .faq__qtext, .flow__steps p, .sp-nav a { word-break: auto-phrase; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--c-violet); }
b, strong { font-weight: 700; }
table { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 16px; }
@media (min-width: 1024px) { [id] { scroll-margin-top: 96px; } }

/* フォーカス:白2px+すみれ3pxの二重リング */
:focus-visible {
  outline: 3px solid var(--c-violet);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

.tabular { font-variant-numeric: tabular-nums; }
.nw { display: inline-block; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -200px; z-index: 300;
  padding: 8px 16px; border-radius: 8px; background: #fff; color: var(--c-ink); font-weight: 700;
}
.skip-link:focus { top: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- layout ---------- */
.container { width: min(100% - 32px, 1080px); margin-inline: auto; }
.prose { max-width: 720px; }
.section { padding-block: var(--sec-pad); background: var(--page-bg); }
.section + .section, .trust + .section { border-top: 0; }
/* 交互背景:淡い空色の無地 */
.bg-ruled {
  --page-bg: var(--c-sub);
  background-color: var(--c-sub);
}

/* 見出し:小さな番号+短い線、その下に見出し */
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 32px; }
@media (min-width: 1024px) { .sec-head { margin-bottom: 44px; } }
.sec-tab {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--c-violet);
  font-size: 13px; font-weight: 700; line-height: 1.5; letter-spacing: .2em; font-variant-numeric: tabular-nums;
}
.sec-tab::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.sec-tab--star .icon { width: 18px; height: 18px; color: var(--c-lemon); }
.sec-title { font-size: 25px; line-height: 1.55; letter-spacing: .04em; }
@media (min-width: 1024px) { .sec-title { font-size: 32px; } }
.hl { padding: 0; background: none; }
.sec-lead { margin: -8px 0 32px; }

.card { background: #fff; border: 1px solid var(--c-rule); border-radius: var(--radius); }

/* 付箋:薄すみれの地+左上の角だけ折り返し。横罫の地の上では白い付箋にする */
.sticky {
  --fold: 22px;
  position: relative;
  background: var(--c-sub); border: 1px solid var(--c-rule); border-radius: var(--radius);
}
.bg-ruled .sticky { background: #fff; }
.sticky__title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 18px; }
@media (min-width: 1024px) { .sticky__title { font-size: 20px; } }
.sticky__title .icon { color: var(--c-violet); }

/* 注意の枠:薄すみれの地+すみれの太い左線+iアイコン */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 760px; padding: 18px 20px;
  background: var(--c-sub); border-left: 3px solid var(--c-violet); border-radius: 0 var(--radius) var(--radius) 0;
}
.bg-ruled .notice { background: #fff; }
.notice > .icon { margin-top: 2px; color: var(--c-violet); }

.photo-cap { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--c-ink); }
.pill {
  display: inline-block; padding: 0 10px; border-radius: 999px;
  background: var(--c-sub); color: var(--c-violet); border: 0;
  font-size: 13px; font-weight: 700; line-height: 1.8; letter-spacing: .02em; white-space: nowrap;
}
.bg-ruled .pill { background: #E1ECEE; }
.dot-list li { position: relative; padding-left: 20px; }
.dot-list li + li { margin-top: 8px; }
.dot-list li::before {
  content: ""; position: absolute; left: 3px; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-violet);
}
.link-row { margin-top: 24px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 0; color: var(--c-violet); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--c-rule-dark); text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.text-link .icon { width: 18px; height: 18px; }
.text-link:hover { text-decoration-color: var(--c-violet); }
.cta-center { display: flex; justify-content: center; margin-top: 40px; }
.cta-row { flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) { .cta-center .btn { width: 100%; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 24px;
  border: 1.5px solid var(--c-violet); border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
@media (min-width: 768px) { .btn:not(.btn--sm) { min-height: 56px; } }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn .icon--star { width: 22px; height: 22px; }
.btn--primary { background: var(--c-violet); color: #fff; }
.btn--primary:hover { background: var(--c-violet-dark); border-color: var(--c-violet-dark); }
.btn--secondary { background: #fff; color: var(--c-violet); }
.btn--secondary:hover { background: var(--c-sub); }
.btn--sm { min-height: 40px; padding: 6px 14px; font-size: 14px; gap: 6px; white-space: nowrap; }
.btn--sm .icon { width: 18px; height: 18px; }
.btn--block { display: flex; width: 100%; }
.btn--tall { min-height: 60px; font-size: 17px; }
.btn__stack { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .6em; }
.btn__label { display: inline-flex; align-items: center; gap: 8px; }
.btn__num { letter-spacing: .03em; font-variant-numeric: tabular-nums; }

/* ---------- sample band / header ---------- */
.sample-band {
  min-height: 32px; padding: 6px 16px;
  background: var(--c-ink); color: #fff;
  font-size: 12px; line-height: 1.6; text-align: center; letter-spacing: .03em;
}
.sample-band span { display: inline-block; }

.site-header { position: relative; z-index: 40; background: #fff; border-bottom: 1px solid var(--c-rule); }
@media (min-width: 1024px) { .site-header { position: sticky; top: 0; } }
.site-header__inner {
  display: flex; align-items: center; gap: 8px;
  max-width: 1240px; min-height: 64px; margin-inline: auto; padding: 8px 16px;
}
@media (min-width: 1024px) { .site-header__inner { min-height: 76px; padding-inline: 24px; } }
.logo { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 0; color: var(--c-violet); text-decoration: none; border-radius: 8px; }
.logo__mark { width: 36px; height: 36px; flex: none; }
@media (min-width: 768px) { .logo__mark { width: 40px; height: 40px; } }
.logo__text { display: flex; flex-direction: column; line-height: 1.35; }
.logo-name { font-weight: 700; font-size: 17px; letter-spacing: .06em; white-space: nowrap; color: var(--c-ink); }
@media (min-width: 768px) { .logo-name { font-size: 19px; } }
.logo__sub { font-size: 11px; color: var(--c-ink); letter-spacing: .03em; white-space: nowrap; }
@media (min-width: 768px) { .logo__sub { font-size: 12px; } }
@media (max-width: 479px) {
  .site-header__inner { gap: 6px; padding-inline: 12px; }
  .logo { gap: 8px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo-name { font-size: 16px; letter-spacing: .03em; }
  .site-header__cta .btn--primary { padding-inline: 10px; }
  .site-header__cta .btn--primary .icon--star { display: none; }
}
@media (max-width: 374px) { .logo__sub { display: none; } }
.g-nav { display: none; }
@media (min-width: 1180px) {
  .g-nav { display: block; margin-right: 8px; }
  .g-nav ul { display: flex; gap: 2px; }
  .g-nav a { display: block; padding: 6px 12px; border-radius: 8px; color: var(--c-ink); font-size: 15px; text-decoration: none; }
  .g-nav a:hover { background: var(--c-sub); color: var(--c-violet); }
}
.site-header__cta { display: flex; align-items: center; gap: 8px; }
.header-tel { display: none; }
@media (min-width: 768px) { .header-tel { display: inline-flex; } }
.header-cta__long { display: none; }
@media (min-width: 768px) { .header-cta__long { display: inline; } .header-cta__short { display: none; } }
.menu-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; border: 1px solid var(--c-rule); border-radius: 10px;
  background: var(--c-sub); color: var(--c-violet); cursor: pointer;
}
.menu-btn__label { font-size: 10px; line-height: 1.2; letter-spacing: 0; color: var(--c-ink); }
@media (min-width: 1180px) { .menu-btn { display: none !important; } }
.sp-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 12px 16px 16px; background: #fff;
  border-bottom: 1px solid var(--c-rule); box-shadow: 0 12px 24px rgba(31, 42, 48, .08);
}
.sp-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 720px; margin-inline: auto; }
.sp-nav a {
  display: block; height: 100%; padding: 10px 12px; border-radius: 10px;
  background: var(--c-sub); color: var(--c-ink); font-size: 14px; line-height: 1.5; text-decoration: none;
}
.sp-nav a:hover { color: var(--c-violet); text-decoration: underline; }

/* ---------- S01 FV ---------- */
/* 夕方の空:上は淡い空色、下は白へ。スマホは写真が先、PCは左に文字・右に角丸の写真 */
.fv { background: linear-gradient(180deg, var(--c-sub) 0, #fff 78%); }
.fv__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E7EEF0; }
.fv__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-note {
  position: absolute; right: 10px; bottom: 10px;
  padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: 12px; line-height: 1.6; color: var(--c-ink);
}
.fv__card { display: none; }
.fv__body { padding: 32px 16px 8px; }
.fv__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--c-violet); }
.fv__eyebrow .icon { width: 18px; height: 18px; color: var(--c-lemon); }
.fv__title { margin: 14px 0 18px; font-size: 28px; line-height: 1.5; letter-spacing: .05em; }
.fv__title span { display: inline-block; }
.fv__lead { margin-bottom: 22px; color: var(--c-ink); }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; background: none; border: 0;
  font-size: 14px; font-weight: 700; line-height: 1.6;
}
.badge .icon { width: 20px; height: 20px; color: var(--c-violet); }
.fv__cta { padding: 28px 16px 48px; }
.cta-group { display: grid; gap: 12px; }
.fv__note { margin-top: 14px; font-size: 13px; line-height: 1.7; color: var(--c-ink-soft); }
@media (min-width: 768px) {
  .fv__media { aspect-ratio: 16 / 9; max-height: 520px; width: 100%; }
  .fv__body { width: min(100% - 48px, 720px); margin-inline: auto; padding: 40px 0 8px; }
  .fv__title { font-size: 34px; }
  .fv__cta { width: min(100% - 48px, 720px); margin-inline: auto; padding: 28px 0 56px; }
  .cta-group { grid-template-columns: 1fr 1fr; }
  .cta-group__main { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .fv { padding-top: 56px; }
  .fv__visual {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 64px;
    width: min(100% - 64px, 1120px); margin-inline: auto;
  }
  .fv__media { order: 2; aspect-ratio: 4 / 5; max-height: 600px; border-radius: 28px; box-shadow: 0 24px 48px rgba(21, 94, 110, .12); }
  .fv__media img { object-position: 50% 20%; }
  .photo-note { right: 14px; bottom: 14px; }
  /* 写真の左下に、学習記録の小さなカード(後ろの学習記録の欄と同じ内容。読み上げは不要なので aria-hidden) */
  .fv__card {
    display: block; position: absolute; left: 18px; bottom: 52px; width: min(82%, 300px);
    padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 28px rgba(21, 94, 110, .16); font-size: 13px; line-height: 1.6;
  }
  .fv__card .icon { width: 16px; height: 16px; flex: none; }
  .fv__card-head { display: flex; align-items: center; gap: 6px; color: var(--c-violet); font-weight: 700; letter-spacing: .06em; }
  .fv__card-unit { margin: 6px 0 4px; padding-bottom: 6px; border-bottom: 1px solid var(--c-rule); font-weight: 700; }
  .fv__card-done { display: flex; align-items: center; gap: 6px; }
  .fv__card-done .icon { color: var(--c-violet); }
  .fv__body { order: 1; width: auto; margin: 0; padding: 0 0 8px; }
  .fv__title { font-size: clamp(36px, 3.3vw, 46px); margin-block: 18px 24px; }
  .fv__cta { width: auto; padding: 0; }
  .fv__cta-inner { display: flex; flex-direction: column; width: min(100% - 64px, 1120px); margin-inline: auto; padding: 48px 0 64px; }
  .cta-group { grid-template-columns: 1.35fr 1.15fr .8fr; }
  .cta-group__main { grid-column: auto; }
  .fv__note { margin-top: 12px; text-align: center; }
}

/* ---------- S02 trust ---------- */
.trust { padding-block: 28px; }
.trust-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  overflow: hidden; border: 1px solid var(--c-rule); border-radius: var(--radius); background: var(--c-rule);
}
.trust-list li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px 8px; background: #fff; text-align: center; font-weight: 700; line-height: 1.5;
}
.trust-list .icon { width: 32px; height: 32px; color: var(--c-violet); }
@media (min-width: 768px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
  .trust-list li { flex-direction: row; gap: 10px; padding: 20px 12px; }
}

/* ---------- S03 concerns ---------- */
.concerns { display: grid; gap: 16px; }
@media (min-width: 768px) { .concerns { grid-template-columns: 1fr 1fr; gap: 24px; } }
.concerns__card { padding: var(--card-pad); }
.concerns__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 19px; }
@media (min-width: 1024px) { .concerns__head { font-size: 22px; } }
.concerns__avatar { width: 56px; height: 56px; flex: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--c-rule-dark); line-height: 1.7; }
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list li:last-child { padding-bottom: 0; }
.check-list .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--c-violet); stroke-width: 2.25; }
.concerns__after { margin-top: 32px; }

/* ---------- S04 features ---------- */
.features { display: grid; gap: 24px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; flex-direction: column; overflow: hidden; }
.feature__media { position: relative; }
.feature__media img, .feature__media svg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__media .photo-cap { margin: 0; padding: 6px var(--card-pad) 0; }
.feature__media--diagram svg text { font-family: var(--font); }
.feature__body { padding: 18px var(--card-pad) var(--card-pad); }
.feature__num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%;
  background: none; border: 1.5px solid var(--c-violet); color: var(--c-violet); font-size: 17px; font-weight: 700; line-height: 1;
}
.feature h3 { margin-bottom: 10px; font-size: 19px; }
@media (min-width: 1024px) { .feature h3 { font-size: 21px; } }

/* 学習記録のモック(HTML/CSS) */
.record {
  display: grid; gap: 20px; max-width: 800px;
  margin: 40px auto 0; padding: 28px 16px 24px;
  background: #fff; border: 1px solid var(--c-rule); border-radius: var(--radius);
}
@media (min-width: 768px) {
  .record { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: 40px; padding: 40px 48px; }
}
.record__visual { display: grid; justify-items: center; gap: 10px; }
.record__phone {
  width: min(100%, 320px); padding: 14px 12px 18px;
  border: 2px solid var(--c-ink); border-radius: 28px; background: var(--c-sub);
}
.record__bar { display: flex; justify-content: center; margin-bottom: 10px; }
.record__bar span { width: 64px; height: 6px; border-radius: 6px; background: var(--c-ink); opacity: .85; }
.record__mail { padding: 14px 14px 12px; border-radius: 16px; background: #fff; font-size: 14px; line-height: 1.65; }
.record__from { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-violet); }
.record__from .icon { width: 18px; height: 18px; }
.record__subject { margin: 4px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--c-rule); font-weight: 700; }
.record__list > div { padding: 6px 0; border-bottom: 1px dashed var(--c-rule-dark); }
.record__list dt { font-size: 13px; font-weight: 700; color: var(--c-ink-soft); }
.record__list dd { margin: 0; }
.record__list > div:nth-child(2) dd { display: inline; font-weight: 700; color: var(--c-violet); }
.record__sign { margin-top: 8px; font-size: 13px; text-align: right; color: var(--c-ink-soft); }
.record__cap { display: grid; gap: 14px; justify-items: start; }
.record__label { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; }
@media (min-width: 1024px) { .record__label { font-size: 21px; } }
.record__label .icon { width: 28px; height: 28px; color: var(--c-violet); }
.record__points { display: grid; gap: 8px; }
.record__points li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.record__points .icon { color: var(--c-violet); }
.record__note { max-width: 320px; font-size: 13px; line-height: 1.7; color: var(--c-ink-soft); text-align: center; word-break: auto-phrase; }

/* ---------- S05 flow ---------- */
.timebar { margin-bottom: 40px; }
.timebar__track {
  display: grid; grid-template-columns: 10fr 20fr 35fr 10fr 5fr;
  overflow: hidden; border: 2px solid var(--c-violet); border-radius: 10px;
}
.timebar__seg {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 56px; padding: 4px 2px; font-size: 14px; font-weight: 700; line-height: 1.3;
}
.timebar__seg + .timebar__seg { border-left: 2px solid #fff; }
.timebar__seg b {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: #fff; color: var(--c-ink); font-size: 14px;
}
.timebar__seg span { display: none; }
.timebar__seg--1, .timebar__seg--5 { background: var(--c-rule); color: var(--c-ink); }
.timebar__seg--2, .timebar__seg--4 { background: var(--c-violet); color: #fff; }
.timebar__seg--3 { background: #BFD8DD; color: var(--c-ink); }
.timebar__axis { position: relative; height: 24px; margin-top: 6px; font-size: 13px; color: var(--c-ink-soft); font-variant-numeric: tabular-nums; }
.timebar__axis span { position: absolute; top: 0; left: calc(var(--at) / 80 * 100%); transform: translateX(-50%); white-space: nowrap; }
.timebar__axis span:first-child { transform: none; }
.timebar__axis span:last-child { transform: translateX(-100%); }
.timebar__axis span:nth-child(5) { display: none; }
@media (min-width: 768px) {
  .timebar__seg span { display: inline; }
  .timebar__seg--5 span { display: none; }
  .timebar__axis span:nth-child(5) { display: inline; }
}
.flow { display: grid; gap: 28px; }
@media (min-width: 900px) { .flow { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: start; } }
.flow__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.flow__steps { display: grid; gap: 0; }
.flow__steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--c-rule); }
.flow__steps li:first-child { border-top: 0; padding-top: 0; }
.flow__steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 2px; font-size: 18px; }
@media (min-width: 1024px) { .flow__steps h3 { font-size: 20px; } }
.num-dot {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--c-violet); color: var(--c-violet); font-size: 16px; font-weight: 700; line-height: 1;
}
.flow__after { margin-top: 28px; }

/* ---------- S06 courses ---------- */
.courses { display: grid; gap: 16px; }
@media (min-width: 900px) { .courses { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.course { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: start; align-content: start; padding: var(--card-pad); }
.course__icon { grid-row: 1 / 3; width: 64px; height: 64px; }
.course h3 { font-size: 19px; align-self: end; }
.course__freq { margin-top: 2px; }
.course > p:last-child { grid-column: 1 / -1; margin-top: 14px; }
@media (min-width: 900px) {
  .course { grid-template-columns: 1fr; justify-items: start; }
  .course__icon { grid-row: auto; width: 80px; height: 80px; margin: -8px 0 4px -8px; }
  .course h3 { font-size: 21px; }
}

/* ---------- S07 tests ---------- */
.tests { display: grid; gap: 24px; }
@media (min-width: 768px) { .tests { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; } }
@media (min-width: 1024px) { .tests { grid-template-columns: minmax(0, 720px) 240px; justify-content: space-between; } }
.tests__item + .tests__item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-rule); }
.tests__item h3 { margin-bottom: 8px; font-size: 19px; }
@media (min-width: 1024px) { .tests__item h3 { font-size: 22px; } }
.tests__photo { display: none; }
@media (min-width: 768px) {
  .tests__photo { display: block; }
  .tests__photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); }
}

.season { margin-top: 48px; padding: var(--card-pad); background: #fff; border: 1px solid var(--c-rule); border-radius: var(--radius); }
.season__title { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.season__legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; font-size: 14px; line-height: 1.6; }
.season__legend li { display: inline-flex; align-items: flex-start; gap: 8px; }
.season__legend .mark { margin-top: .45em; }
.mark { display: inline-block; width: 22px; height: 12px; border-radius: 3px; flex: none; }
.mark--course { background: var(--c-lemon); }
.mark--test { width: 12px; border-radius: 50%; background: var(--c-violet); }
.mark--talk { background: #fff; border: 2px solid var(--c-violet); }
.season__months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--c-rule); border-left: 1px solid var(--c-rule); }
@media (min-width: 600px) { .season__months { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .season__months { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.season__months li {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  min-height: 96px; padding: 6px 6px 8px; border-right: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule);
}
.season__m { font-size: 14px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.tag { display: block; padding: 1px 2px; border-radius: 4px; font-size: 13px; font-weight: 700; line-height: 1.5; text-align: center; letter-spacing: 0; white-space: nowrap; }
@media (min-width: 600px) and (max-width: 767px) { .tag { font-size: 12px; } }
@media (min-width: 1024px) and (max-width: 1199px) { .tag { font-size: 12px; } }
.tag--course { background: var(--c-lemon); color: var(--c-ink); }
.tag--test { background: var(--c-violet); color: #fff; }
.tag--talk { background: #fff; color: var(--c-violet); border: 2px solid var(--c-violet); }
.season__note { margin-top: 10px; font-size: 13px; color: var(--c-ink-soft); }

.results-note { margin-top: 40px; padding: var(--card-pad); padding-top: 24px; }
@media (min-width: 1024px) { .results-note { padding-top: 28px; } }

/* ---------- S08 voices ---------- */
.voices { display: grid; gap: 20px; }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.voice { padding: var(--card-pad); padding-top: 24px; }
.voice__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.voice__avatar { width: 56px; height: 56px; flex: none; }
.voice__attr { font-weight: 700; color: var(--c-ink); }
.voice__text::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 14px; background: var(--c-lemon); }
.voice-notes { margin-top: 24px; }
.voice-notes p + p { margin-top: 2px; }

/* ---------- S09 director ---------- */
.director { display: grid; gap: 32px; }
.director__photo { width: min(100%, 300px); }
.director__crop { aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--c-rule); border-radius: var(--radius); background: #fff; }
.director__crop img { width: 100%; height: 100%; object-fit: cover; }
.staff-note { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--c-ink); }
.director__name { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.director__role { padding: 2px 12px; border-radius: 8px; background: var(--c-violet); color: #fff; font-size: 14px; font-weight: 700; }
.director__person { font-size: 24px; font-weight: 700; letter-spacing: .12em; }
.director__body > p + p { margin-top: 14px; }
.director__sub { margin: 32px 0 12px; font-size: 19px; }
@media (min-width: 768px) {
  .director { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .director__photo { width: 100%; }
}
@media (min-width: 1024px) {
  .director { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; }
  .director__sub { font-size: 22px; }
}
.teachers { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--c-rule); }
.teachers__title { margin-bottom: 20px; font-size: 21px; }
@media (min-width: 1024px) { .teachers__title { font-size: 22px; } }
.teachers__list { display: grid; gap: 12px; }
@media (min-width: 768px) { .teachers__list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.teachers__list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--c-rule); border-radius: var(--radius); }
.teachers__avatar { width: 56px; height: 56px; flex: none; }
.teachers__list b { display: block; }
.teachers__note { max-width: 760px; margin-top: 20px; }

/* ---------- S10 classroom ---------- */
.room { display: grid; gap: 24px; }
@media (min-width: 900px) { .room { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; } }
.room__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.room__plan { padding: 16px; }
.room__plan svg { width: 100%; height: auto; }
.room__plan text { font-family: var(--font); }
.room__plan figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; margin-top: 6px; font-size: 14px; }
.plan-legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.plan-dot { width: 14px; height: 14px; border-radius: 50%; }
.plan-dot--student { background: var(--c-lemon); border: 2px solid var(--c-violet); }
.plan-dot--teacher { width: 11px; height: 11px; background: var(--c-violet); }
.plan-cap { color: var(--c-ink-soft); font-size: 13px; }
.room__cards { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .room__cards { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; } }
.room__card { padding: var(--card-pad); }
.room__card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 18px; }
.room__card h3 .icon { width: 28px; height: 28px; color: var(--c-violet); }

/* ---------- S11 price ---------- */
.price { max-width: 920px; }
.price__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 40px 0 14px; font-size: 20px; }
.price__title:first-child { margin-top: 0; }
@media (min-width: 1024px) { .price__title { font-size: 22px; } }
.price__cond { font-size: 14px; font-weight: 400; color: var(--c-ink-soft); }
.price__card { padding: 4px var(--card-pad); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px 12px; border-bottom: 1px solid var(--c-rule); text-align: left; vertical-align: top; }
.table thead th { padding-block: 12px; font-size: 14px; color: var(--c-ink-soft); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table tbody th { font-weight: 700; }
.table--fee td { font-weight: 700; text-align: right; white-space: nowrap; }
.table--fee thead th:not(:first-child) { text-align: right; }
.table--fee .is-none { color: var(--c-ink-soft); }
.table--other .amount { font-weight: 700; white-space: nowrap; }
.opt {
  display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px;
  background: var(--c-lemon); color: var(--c-ink); font-size: 14px; line-height: 1.7;
}
.price__under { margin-top: 16px; }
@media (max-width: 767px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .table, .table tbody, .table tr { display: block; }
  .table tr { padding: 14px 0; border-bottom: 1px solid var(--c-rule); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table th, .table td { display: block; padding: 0; border: 0; }
  /* 月謝:学年ごとのまとまりにする */
  .table--fee tbody th { margin-bottom: 6px; font-size: 17px; }
  .table--fee td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px dashed var(--c-rule); }
  .table--fee td::before { content: attr(data-label); font-weight: 400; color: var(--c-ink-soft); }
  /* その他の費用 */
  .table--other tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .table--other .amount { text-align: right; }
  .table--other .cond { grid-column: 1 / -1; margin-top: 4px; font-size: 15px; }
}

.estimate { margin-top: 40px; padding: var(--card-pad); padding-top: 24px; }
.table--estimate thead th { color: var(--c-ink-soft); }
.table--estimate tbody th { font-weight: 400; }
.table--estimate th, .table--estimate td { border-bottom-color: var(--c-rule-dark); }
.estimate__sum { display: block; font-size: 20px; font-weight: 700; white-space: nowrap; }
.estimate__calc { display: block; margin-top: 2px; font-size: 14px; color: var(--c-ink-soft); }
@media (min-width: 768px) {
  .table--estimate th:first-child { width: 48%; }
}
@media (max-width: 767px) {
  .table--estimate td { margin-top: 6px; }
}
.price__notes { margin-top: 32px; }
.price__sample { margin-top: 16px; }

/* ---------- S12 trial ---------- */
.trial { display: grid; gap: 32px; }
@media (min-width: 900px) { .trial { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; align-items: start; } }
.steps { display: grid; gap: 16px; }
.step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: -16px;
  border-left: 3px dotted var(--c-violet); opacity: .5;
}
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--c-violet); color: var(--c-violet); font-size: 18px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 4px var(--c-sub);
}
.step__body { padding: 14px 18px; background: #fff; border: 1px solid var(--c-rule); border-radius: var(--radius); }
.step__body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; font-size: 18px; }
@media (min-width: 1024px) { .step__body h3 { font-size: 20px; } }
.step__body .pill { white-space: normal; }
.trial__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .trial__photo { margin-top: 60px; } }
.policy { margin-top: 32px; font-weight: 700; }

/* ---------- S13 faq ---------- */
.faq { display: grid; gap: 12px; max-width: 840px; }
.faq__item summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 16px 24px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; line-height: 1.6;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -4px; box-shadow: none; border-radius: var(--radius); }
.faq__q, .faq__a-mark {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 16px; font-weight: 700; line-height: 1;
}
.faq__q { background: var(--c-violet); color: #fff; }
.faq__a-mark { background: var(--c-sub); color: var(--c-violet); }
.faq__qtext { flex: 1; }
.faq__toggle { position: relative; flex: none; width: 20px; height: 20px; }
.faq__toggle::before, .faq__toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; margin: -1px 0 0 -8px; border-radius: 2px; background: var(--c-violet);
  transition: transform .2s;
}
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle::after { transform: rotate(0deg); }
.faq__a { display: flex; gap: 12px; align-items: flex-start; padding: 0 18px 20px 24px; }
.faq__a p { padding-top: 2px; }
@media (min-width: 1024px) {
  .faq__item summary { padding: 20px 28px 20px 32px; font-size: 18px; }
  .faq__a { padding: 0 28px 24px 32px; }
}

/* ---------- S14 access ---------- */
.access { display: grid; gap: 24px; }
@media (min-width: 900px) { .access { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.access__info { padding: var(--card-pad); }
.info-list > div { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--c-rule-dark); }
.info-list > div:first-child { padding-top: 0; }
.info-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list dt { font-weight: 700; color: var(--c-violet); }
.map { padding: 16px; }
.map svg { width: 100%; height: auto; }
.map text { font-family: var(--font); }
.map figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--c-ink-soft); }
.hours-title { margin: 40px 0 14px; font-size: 20px; }
@media (min-width: 1024px) { .hours-title { font-size: 22px; } }
.hours-card { padding: 4px var(--card-pad); }
.table--hours td { white-space: nowrap; }
.koma { display: block; }
.hours__sub { display: block; font-size: 14px; color: var(--c-ink-soft); white-space: normal; }
.table--hours .is-closed td { color: var(--c-ink-soft); }
@media (min-width: 1024px) { .koma { display: inline; } .koma + .koma { margin-left: .8em; } }
@media (max-width: 767px) {
  .table--hours tbody th { margin-bottom: 6px; font-size: 17px; }
  .table--hours td { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 8px; padding: 4px 0; white-space: normal; }
  .table--hours td::before { content: attr(data-label); color: var(--c-ink-soft); }
  .table--hours td > span { grid-column: 2; }
}
.hours-note { margin-top: 14px; }

/* ---------- final CTA ---------- */
.final-cta { position: relative; overflow: hidden; background: #fff; border-top: 1px solid var(--c-rule); }
.final-cta__img { width: 100%; height: 160px; object-fit: cover; object-position: 30% 40%; }
.final-cta__inner { position: relative; padding: 32px 0 var(--sec-pad); }
.final-cta__lead { max-width: 640px; }
.contact-list { display: grid; gap: 18px; max-width: 560px; margin-top: 28px; }
.contact-list li { display: grid; gap: 6px; }
.contact-list__cond { font-size: 14px; text-align: center; color: var(--c-ink); }
@media (min-width: 900px) {
  .final-cta__img {
    position: absolute; right: 0; top: 0; width: 58%; height: 100%;
    object-position: 20% 50%; opacity: .55;
  }
  .final-cta::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 58%;
    background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
  }
  .final-cta__inner { z-index: 1; padding-top: var(--sec-pad); }
}

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 160px; background: var(--c-ink); color: #fff; }
@media (min-width: 768px) { .site-footer { padding-bottom: 48px; } }
.footer__top { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.footer__shop p { font-size: 14px; line-height: 1.8; }
.footer__shop p + p { margin-top: 6px; }
.logo--footer { display: flex; margin-bottom: 14px; color: #fff; }
.logo--footer .logo-name { color: #fff; }
.footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.footer__nav a { display: inline-block; padding: 4px 0; color: #fff; font-size: 14px; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__nav a:focus-visible, .logo--footer:focus-visible { outline-color: var(--c-lemon); box-shadow: none; }
.footer__notice { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; line-height: 1.8; }
.footer__notice p + p { margin-top: 8px; }
.footer__fiction { padding: 12px 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 700; }
.footer__credit { font-weight: 700; }

/* ---------- SP fixed bar ---------- */
.sp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 6px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-rule);
  box-shadow: 0 -4px 16px rgba(31, 42, 48, .08);
}
.sp-bar.is-hidden { visibility: hidden; }
.sp-bar__hours { margin-bottom: 6px; font-size: 12px; line-height: 1.5; text-align: center; letter-spacing: .01em; }
.sp-bar__btns { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 8px; max-width: 480px; margin-inline: auto; }
.sp-bar__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 4px; border: 2px solid var(--c-violet); border-radius: var(--radius);
  background: #fff; color: var(--c-violet); font-size: 13px; font-weight: 700; line-height: 1.3; cursor: pointer;
}
.sp-bar__btn .icon { width: 20px; height: 20px; }
.sp-bar__btn--main { flex-direction: row; gap: 8px; background: var(--c-violet); color: #fff; font-size: 16px; }
.sp-bar__btn--main .icon { width: 22px; height: 22px; }
.sp-bar__btn:active { transform: translateY(1px); }
@media (min-width: 768px) { .sp-bar { display: none; } }

/* ---------- dialog ---------- */
.sample-dialog {
  width: min(92vw, 420px); padding: 28px 24px 24px; border: 0; border-radius: 16px;
  color: var(--c-ink); text-align: center; box-shadow: 0 20px 60px rgba(31, 42, 48, .25);
}
.sample-dialog::backdrop { background: rgba(31, 42, 48, .45); }
.sample-dialog__title { margin-bottom: 12px; font-size: 20px; }
.sample-dialog form { margin-top: 20px; }
.sample-dialog .btn { min-width: 160px; }

/* ---------- motion:スクロール時の動きや固定バーの出入りの動きは入れない。FAQの開閉の記号だけ動かし、動きを減らす設定では止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
