/* ピラティススタジオ ソラノネ（デモ）コース診断つきの LP */
/* 共通部品（TENKA LAB バー・フッター・ボタン・固定バー・.visually-hidden・.wrap・:focus-visible）は、ほかのデモと同じクラス名と作り */
:root {
  --c-base: #F5F7F8;
  --c-surface: #FFFFFF;
  --c-soft: #EAF0F3;
  --c-pick: #E7EAF5;
  --c-main: #3A4868;
  --c-accent: #136A6E;
  --c-accent-dark: #0E5357;
  --c-text: #232A36;
  --c-sub: #566070;
  --c-line: #D8DFE5;
  --c-good: #2E6B47;
  --c-good-bg: #E8F0EA;
  --c-off: #4E5257;
  --c-off-bg: #EDEDEA;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-head: var(--font-body);

  --pad-x: 16px;
  --gap-sec: 64px;
  --pad-card: 24px;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(35, 42, 54, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  /* 日本語の文を語のまとまりで折り返す（対応しない端末はふつうの折り返し） */
  word-break: auto-phrase;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-main); text-underline-offset: 3px; }
/* 文の中のリンク：行の高さは変えずに、押せる範囲だけ上下に広げる（48px） */
.inline-link { padding: 15px 0; font-weight: 700; }
button { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); }
.nw { white-space: nowrap; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--c-main); }
.sec__title, .hero h1, .quiz__title { scroll-margin-top: 24px; }
p, li, dd, summary { text-wrap: pretty; }

/* ---------- TENKA LAB バー（作品例・デモ 共通） ---------- */
.tl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 8px 16px; background: #1B2A41; color: #FFFFFF;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; letter-spacing: .04em;
}
.tl-bar__text { margin: 0; }
.tl-bar strong { font-weight: 700; }
.tl-bar__back {
  flex: none; position: relative; color: #FFFFFF; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.tl-bar__back:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.tl-bar__back::before { content: ""; position: absolute; inset: -15px -8px; }
.tl-bar__back::after { content: "→"; margin-left: 4px; }
.tl-bar__back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
@media (min-width: 768px) { .tl-bar { padding: 8px 32px; } }

/* ---------- ボタン ---------- */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 28px;
  background: var(--c-accent); color: #FFFFFF; font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.btn-main:hover, .btn-main:active { background: var(--c-accent-dark); color: #FFFFFF; }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 2px solid var(--c-main); border-radius: 24px;
  background: #FFFFFF; color: var(--c-main); font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.btn-sub:hover { background: var(--c-pick); }
.btn-main[aria-disabled="true"], .btn-sub[aria-disabled="true"] {
  background: var(--c-off-bg); color: var(--c-off); border: 2px solid var(--c-off-bg); cursor: not-allowed;
}
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 64px; padding: 0 4px;
  border: 0; background: none; color: var(--c-main); font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- ヘッダー（メニューなし） ---------- */
.hd { background: #FFFFFF; border-bottom: 1px solid var(--c-line); position: relative; z-index: 20; }
.hd__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.hd__logo {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 48px; min-width: 0;
  color: var(--c-main); text-decoration: none;
}
.hd__name { font-family: var(--font-head); font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .08em; white-space: nowrap; }
.hd__demo {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.hd__price { display: none; color: var(--c-sub); font-size: 14px; line-height: 1.4; text-align: right; }

/* ---------- ブロック ---------- */
.sec { padding: var(--gap-sec) 0; }
.sec--band { background: var(--c-soft); }
.sec--line { border-top: 1px solid var(--c-line); }
.sec__en { color: var(--c-sub); font-size: 13px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; }
.sec__title { margin-top: 8px; font-family: var(--font-head); color: var(--c-main); font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.sec__lead { margin-top: 16px; color: var(--c-sub); font-size: 16px; line-height: 1.8; max-width: 40em; }
.sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 32px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.note { margin-top: 16px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }

/* コースの丸の図 */
.c-ic {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; color: var(--c-main); background: #ECE2D3;
}
.c-ic--mat { background: #ECE2D3; }
.c-ic--machine { background: #DCE7F0; }
.c-ic--gentle { background: #D9D2EC; }
.c-ic--56 { width: 56px; height: 56px; }
.c-ic--72 { width: 72px; height: 72px; }

/* ---------- ファーストビュー ---------- */
.hero { padding: 40px 0 64px; }
.hero__tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; margin-bottom: 16px;
  border: 1px solid var(--c-sub); border-radius: 14px; background: #FFFFFF; color: var(--c-text);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.hero h1 { font-family: var(--font-head); color: var(--c-main); font-size: 28px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.hero__lead { margin-top: 16px; font-size: 16px; line-height: 1.9; max-width: 40em; }
.hero__courses { display: grid; gap: 8px; margin-top: 24px; }
.hero__courses li {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px;
  background: #FFFFFF; border-radius: 16px;
}
.hero__ct { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; min-width: 0; line-height: 1.5; }
.hero__cn { color: var(--c-text); font-size: 16px; font-weight: 700; }
.hero__cc { color: var(--c-sub); font-size: 14px; }
.hero__act { margin-top: 32px; }
.hero__btn { width: 100%; }
.hero__note { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.hero__art { display: block; width: 100%; max-width: 480px; height: auto; aspect-ratio: 4 / 3; margin: 32px auto 0; }
.ring--out { animation: ring 4s ease-in-out infinite alternate; }
@keyframes ring { from { opacity: .4; } to { opacity: 1; } }

/* ---------- お悩み・特徴 ---------- */
.worries { display: grid; gap: 12px; }
.worries li {
  position: relative; display: flex; align-items: center; min-height: 72px; padding: 16px 20px 16px 44px;
  background: #FFFFFF; border-radius: 16px; font-size: 16px; font-weight: 700; line-height: 1.6;
}
.worries li::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; background: #9DB0C8;
}
.worries__after { margin-top: 24px; max-width: 40em; }
.feature-block { margin-top: 64px; }
.features { display: grid; gap: 16px; }
.features li {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: var(--pad-card); box-shadow: var(--shadow);
}
.feat__ic {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 16px;
  border-radius: 50%; background: var(--c-pick); color: var(--c-main);
}
.features p { margin-top: 8px; }

/* ---------- コース診断 ---------- */
.quiz {
  max-width: 720px; margin-left: auto; margin-right: auto;
  background: #FFFFFF; border-radius: 24px; padding: 24px 16px; box-shadow: var(--shadow);
  /* 問いが替わっても高さが跳ねないように（いちばん長い Q2 が入る高さ） */
  min-height: 560px;
}
.quiz__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quiz__progress { color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.4; flex: none; }
.quiz__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; width: 140px; max-width: 50%; }
.quiz__bar span { height: 8px; border-radius: 4px; background: var(--c-line); }
.quiz__bar span.is-done { background: var(--c-main); }
.quiz__title { margin-top: 20px; color: var(--c-text); font-size: 20px; font-weight: 700; line-height: 1.5; }
.quiz__hint { margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.quiz__opts { display: grid; gap: 12px; margin-top: 20px; }
.q-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px;
  border: 1.5px solid var(--c-sub); border-radius: 16px; background: #FFFFFF;
  color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.5; text-align: left;
}
.q-opt:hover { border: 2px solid var(--c-main); padding: 11.5px 15.5px; }
.q-opt[aria-pressed="true"] { background: var(--c-pick); border: 2px solid var(--c-main); padding: 11.5px 15.5px; }
.q-opt__n {
  display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
  border-radius: 50%; background: var(--c-soft); color: var(--c-main); font-size: 15px; font-weight: 700;
}
.q-opt__n svg { display: none; }
.q-opt[aria-pressed="true"] .q-opt__n { background: var(--c-main); font-size: 0; }
.q-opt[aria-pressed="true"] .q-opt__n svg { display: block; }
.q-opt__t { min-width: 0; }
.quiz__back { margin-top: 16px; }
.quiz__body.is-in { animation: fadein .16s ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.quiz-note { max-width: 720px; margin-left: auto; margin-right: auto; }
.quiz-privacy { margin-bottom: 24px; }

/* 結果 */
.quiz__r-label { color: var(--c-sub); font-size: 13px; font-weight: 700; line-height: 1.4; }
.quiz__r .quiz__title { margin-top: 4px; }
.quiz__best { margin-top: 16px; padding: 20px; border-radius: 16px; background: var(--c-pick); }
.badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 13px;
  font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.badge--best { background: var(--c-main); color: #FFFFFF; }
.badge--second { background: #FFFFFF; color: var(--c-main); border: 1.5px solid var(--c-main); }
.quiz__ch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.quiz__name { color: var(--c-main); font-size: 26px; font-weight: 700; line-height: 1.4; }
.quiz__catch { margin-top: 8px; color: var(--c-sub); font-size: 15px; line-height: 1.6; }
.quiz__price { margin-top: 4px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.quiz__rh { margin-top: 16px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.quiz__reasons { display: grid; gap: 8px; margin-top: 8px; }
.quiz__reasons li { display: flex; gap: 8px; font-size: 15px; line-height: 1.75; max-width: 40em; }
.quiz__reasons li svg { margin-top: 4px; }
.quiz__second { margin-top: 12px; padding: 16px; border: 1.5px solid var(--c-line); border-radius: 16px; background: #FFFFFF; }
.quiz__second .quiz__ch { margin-top: 8px; }
.quiz__name2 { color: var(--c-text); font-size: 18px; font-weight: 700; line-height: 1.4; }
.quiz__catch2 { margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.quiz__score { margin-top: 12px; }
.quiz__score summary {
  display: flex; align-items: center; min-height: 48px; cursor: pointer;
  color: var(--c-main); font-size: 15px; font-weight: 700; line-height: 1.4;
}
/* 開閉の印（summary を flex にすると既定の三角が消えるため、CSS の三角で出す。2026-11-21） */
.quiz__score summary::-webkit-details-marker { display: none; }
.quiz__score summary::before {
  content: ''; flex: none; width: 0; height: 0; margin-right: 8px;
  border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor;
  transition: transform .15s ease-out;
}
.quiz__score[open] summary::before { transform: rotate(90deg); }
.score-list { display: grid; gap: 10px; padding: 4px 0 8px; }
.score-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
.score-list__name { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; }
.score-list__bar { height: 8px; border-radius: 4px; background: var(--c-line); overflow: hidden; }
.score-list__bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--c-main); transition: width .3s ease-out; }
.score-list__pt { font-size: 15px; font-weight: 700; line-height: 1.5; }
.score-note { color: var(--c-sub); font-size: 13px; line-height: 1.6; }
.quiz__acts { display: grid; gap: 12px; margin-top: 20px; }
.quiz__to-flow { width: 100%; }
.quiz__acts2 { display: grid; gap: 12px; justify-items: start; }
.quiz__acts2 .btn-sub { width: 100%; }
.quiz__hash { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }

/* ---------- コースと料金 ---------- */
.courses { display: grid; gap: 16px; }
.course {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: var(--pad-card); box-shadow: var(--shadow);
}
.badge--course {
  position: absolute; top: 16px; right: 16px; min-height: 24px; padding: 0 10px; border-radius: 12px;
  background: var(--c-main); color: #FFFFFF; font-size: 12px;
}
.course__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.course h3 { font-size: 20px; }
.course__catch { margin-top: 4px; color: var(--c-sub); font-size: 15px; line-height: 1.6; }
.course__price { margin-top: 12px; line-height: 1.2; }
.course__times { font-size: 14px; font-weight: 700; }
.course__yen { font-size: 28px; font-weight: 700; color: var(--c-text); }
.course__tax { font-size: 14px; font-weight: 700; }
.course__dl { display: grid; gap: 4px; margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--c-base); }
.course__dl div { display: flex; align-items: baseline; gap: 12px; }
.course__dl dt { flex: none; width: 4.5em; color: var(--c-sub); font-size: 13px; font-weight: 700; line-height: 1.6; }
.course__dl dd { font-size: 16px; font-weight: 700; line-height: 1.6; min-width: 0; }
.course__for { margin-top: 16px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.course__list { margin-top: 4px; }
.course__list li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.7; }
.course__list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-main); }
.course__btn { width: 100%; margin-top: auto; }
.course__list { margin-bottom: 20px; }
.price { width: 100%; max-width: 640px; margin-top: 24px; border-collapse: collapse; background: #FFFFFF; }
.price caption { padding-bottom: 8px; font-size: 16px; font-weight: 700; text-align: left; line-height: 1.5; }
.price th, .price td { height: 48px; padding: 8px 12px; border: 1px solid var(--c-line); line-height: 1.5; }
.price th { background: var(--c-soft); font-size: 15px; font-weight: 700; text-align: left; }
.price td { font-size: 16px; font-weight: 700; text-align: right; width: 7.5em; }

/* ---------- お客様の声 ---------- */
.voices { display: grid; gap: 16px; }
.voice {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: var(--pad-card); box-shadow: var(--shadow);
}
.voice__q { display: block; color: #9DB0C8; }
.voice p { margin-top: 8px; }
.voice .voice__who { margin-top: 12px; color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.6; }

/* ---------- 体験の流れ ---------- */
.flow { position: relative; display: grid; gap: 32px; }
.flow li { position: relative; display: flex; gap: 16px; }
.flow li:not(:last-child)::before {
  content: ""; position: absolute; left: 23px; top: 48px; bottom: -32px; width: 2px; background: #9DB0C8;
}
.flow__n {
  display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px;
  border-radius: 50%; background: var(--c-main); color: #FFFFFF; font-size: 18px; font-weight: 700; position: relative;
}
.flow h3 { padding-top: 8px; }
.flow p { margin-top: 4px; font-size: 15px; line-height: 1.7; }
.flow .flow__t { color: var(--c-sub); font-size: 13px; font-weight: 700; }
.flow__more { margin-top: 32px; }

/* ---------- よくある質問 ---------- */
.faq-list { display: grid; gap: 8px; max-width: 800px; margin: 32px auto 0; }
.sec__title + .faq-list { margin-top: 32px; }
.faq { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; }
.faq summary {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 16px 48px 16px 16px;
  font-size: 16px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { color: var(--c-main); flex: none; width: 20px; }
.faq summary svg { position: absolute; right: 16px; top: 50%; margin-top: -10px; color: var(--c-main); }
.faq__minus { display: none; }
.faq[open] .faq__plus { display: none; }
.faq[open] .faq__minus { display: block; }
.faq__a { display: flex; gap: 12px; padding: 0 16px 16px 16px; }
.faq__al { color: var(--c-sub); font-weight: 700; flex: none; width: 20px; }
.faq__a p { max-width: 40em; }

/* ---------- 申し込み ---------- */
.apply {
  max-width: 800px; margin-left: auto; margin-right: auto;
  background: #FFFFFF; border-radius: var(--radius); padding: var(--pad-card); box-shadow: var(--shadow);
}
.apply__diag { font-size: 15px; font-weight: 700; line-height: 1.6; }
.apply__none { color: var(--c-sub); font-size: 15px; line-height: 1.7; }
.apply__btn { width: 100%; margin-top: 16px; }
.apply__nopi { margin-top: 8px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.apply__msg {
  margin-top: 16px; padding: 16px 20px; border-left: 4px solid var(--c-main); border-radius: 12px; background: var(--c-pick);
}
.apply__msg-h { display: flex; align-items: center; gap: 8px; color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.5; }
.apply__msg-b { margin-top: 8px; font-size: 15px; line-height: 1.7; }
.apply__msg-c { margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }

/* ---------- 実際のお仕事では（TENKA LAB の層） ---------- */
.sec--lab { border-top: 1px dashed var(--c-sub); }
.lab-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1;
}
.lab-title { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--c-text); }
.lab-lead { margin-top: 12px; max-width: 40em; }
.work-3 { display: grid; gap: 16px; margin-top: 24px; }
.work-3 > li { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 16px; padding: 24px; }
.work-3 > li > svg { color: var(--c-main); }
.work-3 h3 { margin-top: 8px; font-size: 17px; }
.work-3 ul { margin-top: 8px; }
.work-3 ul li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.7; }
.work-3 ul li + li { margin-top: 4px; }
.work-3 ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-main); }
.lab-more { margin-top: 16px; }
.lab-more .btn-text { font-size: 14px; padding: 0; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-text); color: var(--c-base); font-size: 15px; line-height: 1.8;
  padding: 48px 16px; text-align: center;
}
.site-footer p + p { margin-top: 16px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; min-height: 52px;
  margin: 0 auto; border-radius: 26px; background: var(--c-accent); color: #fff;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--c-accent-dark); }
.copy { font-size: 12px; }

/* ---------- スマホの固定バー ---------- */
.fixbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr; gap: 8px; /* 右のボタンに「（デモ）」が入るため、左は文字の幅だけ */
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #FFFFFF; border-top: 1px solid var(--c-line);
  transition: transform .2s ease, visibility .2s;
}
.fixbar .btn-main, .fixbar .btn-sub { min-height: 48px; padding: 0 8px; white-space: nowrap; }
.fixbar .btn-sub { padding: 0 16px; }
.fixbar.is-hide { transform: translateY(100%); visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fixbar { transition: none; }
  .ring--out { animation: none; opacity: 1; }
  .quiz__body.is-in { animation: none; }
  .score-list__bar span { transition: none; }
  .quiz__score summary::before { transition: none; }
}

/* 〜399px：結果の箱の内側を詰めて、いちばん長いコース名（26px×10字）を1行に収める */
@media (max-width: 399px) {
  .quiz__best { padding: 20px 16px; }
}
/* 〜374px：店名の入った h2（24px で約 340px）が 360px の端末で入らないため、この h2 だけ 22px にする */
@media (max-width: 374px) {
  .sec__title--long { font-size: 22px; }
}

/* ---------- 〜767px ---------- */
@media (max-width: 767px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* ---------- 768px 以上 ---------- */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --gap-sec: 96px; --pad-card: 32px; }
  .fixbar { display: none; }
  .hd__name { font-size: 18px; }
  .hd__price { display: block; }
  .hero { padding: 80px 0 96px; }
  .hero h1 { font-size: 34px; }
  .hero__lead { font-size: 18px; }
  .hero__courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__courses li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
  .hero__courses .c-ic { width: 48px; height: 48px; }
  .hero__ct { flex-direction: column; align-items: flex-start; }
  .hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .hero__btn { width: auto; min-width: 280px; }
  .hero__note { margin-top: 0; }
  .hero__art { max-width: 560px; }
  .sec__title { font-size: 32px; }
  .sec__lead + * { margin-top: 48px; }
  h3 { font-size: 20px; }
  .worries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-block { margin-top: 96px; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .quiz { padding: 40px; min-height: 560px; }
  .quiz__title { font-size: 24px; }
  .q-opt { font-size: 17px; }
  .quiz__name { font-size: 32px; }
  .quiz__to-flow { width: 320px; justify-self: start; }
  .quiz__acts2 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .quiz__acts2 .btn-sub { width: auto; }
  .courses { gap: 24px; }
  .course { flex-direction: row; align-items: flex-start; gap: 24px; }
  .c-ic--72 { width: 96px; height: 96px; }
  .c-ic--72 svg { width: 48px; height: 48px; }
  .course__yen { font-size: 32px; }
  .course__btn { width: auto; align-self: flex-start; }
  .voices { gap: 24px; }
  .apply__btn { width: auto; min-width: 320px; }
  .btn { width: 280px; }
}

/* ---------- 1024px 以上 ---------- */
@media (min-width: 1024px) {
  .hd__in { min-height: 72px; }
  .hero__in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: 40px; }
  /* 左の列は幅が半分なので、3つのコースは横長の行で縦に並べる（3列では「産後・やさしいペース」が入らない） */
  .hero__courses { grid-template-columns: none; }
  .hero__courses li { flex-direction: row; align-items: center; gap: 12px; padding: 8px 16px; }
  .hero__courses .c-ic { width: 40px; height: 40px; }
  .hero__ct { flex-direction: row; align-items: baseline; }
  .hero__art { margin: 0; max-width: none; }
  .worries { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .courses { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .course { flex-direction: column; gap: 16px; }
  .c-ic--72 { width: 72px; height: 72px; }
  .c-ic--72 svg { width: 40px; height: 40px; }
  .course__btn { width: 100%; }
  .voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .flow li { flex-direction: column; gap: 12px; }
  .flow li:not(:last-child)::before { left: 48px; right: -24px; top: 23px; bottom: auto; width: auto; height: 2px; }
  .flow h3 { padding-top: 0; }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
