/* =========================================================
   ステップ個別指導塾（架空）— 制作サンプル
   アートディレクション：「よく整理されたノート」
   方眼・罫線・蛍光ペンのマーカー。晴れた黄色と澄んだ青を白地に。
   ========================================================= */

:root {
  /* プリミティブ */
  --blue: #1F5FC4;        /* 白地で 5.9:1 */
  --blue-deep: #17407F;
  --blue-soft: #BCD3F5;
  --blue-paper: #F3F7FD;
  --grid-line: #DCE7F7;
  --yellow: #FFD43B;
  --yellow-soft: #FFF3C4;
  --ink: #1D2840;         /* 本文 */
  --ink-muted: #46516B;   /* 補足：白地で 8:1 */
  --white: #FFFFFF;

  /* セマンティック */
  --color-bg: var(--white);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-muted);
  --color-primary: var(--blue);
  --color-line: color-mix(in oklch, var(--ink) 14%, transparent);
  --color-focus: #E8590C;

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --text-hero: clamp(1.875rem, 1rem + 4.2vw, 4rem);

  --gutter: 16px;
  --pad: 16px;
  --radius: 12px;
  --section-l: 64px;
  --section-m: 48px;
}

@media (min-width: 768px) {
  :root { --pad: 32px; --gutter: 24px; --section-l: 96px; --section-m: 72px; }
}
@media (min-width: 1280px) {
  :root { --section-l: 120px; --section-m: 88px; }
}

/* ---------- リセットと基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  letter-spacing: 0.03em;
  line-break: strict;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.35; letter-spacing: 0.02em; font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; text-spacing-trim: trim-start; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--color-primary); text-underline-offset: 0.2em; }
.phrase { display: inline-block; text-indent: 0; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(1200px + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }

/* 共通の12カラム（PC）。揃え線：1 / 4 / 8 / 13（＋細目 7・10） */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gutter); }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ---------- サンプルの帯 ---------- */
.sample-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px;
  padding: 6px var(--pad);
  background: var(--ink); color: var(--white);
  font-size: var(--text-sm); line-height: 1.5;
}
.sample-bar p { text-align: center; }
.sample-bar a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px;
  border: 0; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 0 var(--blue-deep); }
.btn-primary:hover { background: #1A54AE; transform: translateY(1px); box-shadow: 0 3px 0 var(--blue-deep); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--blue-deep); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: var(--text-base); }
.btn-block { width: 100%; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 0.3em; }
.text-link::after { content: "→"; margin-left: 6px; transition: transform .15s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--color-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-name { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.04em; white-space: nowrap; }
.logo-sub { font-size: var(--text-xs); color: var(--ink-muted); white-space: nowrap; }

.nav-pc { display: none; }
.nav-sp summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: 10px; border: 2px solid var(--ink); cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--text-sm);
}
.nav-sp summary::-webkit-details-marker { display: none; }
.menu-bars { width: 18px; height: 12px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
.menu-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid var(--ink); }
.nav-sp[open] summary { background: var(--yellow); }
.menu-label { white-space: nowrap; }
@media (max-width: 374px) {
  .logo-name { font-size: 0.9375rem; }
  .logo { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav-sp summary { width: 48px; justify-content: center; padding: 0; }
}
.nav-sp nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 3px solid var(--ink);
  padding: 8px var(--pad) 16px; box-shadow: 0 12px 24px rgb(29 40 64 / 0.12);
}
.nav-sp li a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--color-line); }
.nav-sp li a.nav-sp-cta { justify-content: center; margin-top: 12px; border: 0; border-radius: var(--radius); background: var(--blue); color: var(--white); }

@media (min-width: 1024px) {
  .nav-sp { display: none; }
  .nav-pc { display: flex; align-items: center; gap: 24px; }
  .nav-pc ul { display: flex; gap: 4px; }
  .nav-pc ul a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 700; text-decoration: none; background: linear-gradient(transparent 70%, var(--yellow) 70%) no-repeat 12px 0 / 0 100%; transition: background-size .2s ease; }
  .nav-pc ul a:hover { background-size: calc(100% - 24px) 100%; }
  .header-inner { min-height: 76px; }
}

/* ---------- ヒーロー（方眼） ---------- */
.hero {
  padding-block: 32px 40px;
  background-color: var(--white);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--color-line);
}
.hero-kicker { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: var(--text-base); margin-bottom: 12px; }
.hero-title { font-size: var(--text-hero); line-height: 1.3; letter-spacing: 0; }
/* 光学補正：「で始まる1行目だけ、括弧の余白ぶん左へ */
.hero-title > .phrase:first-child { margin-left: -0.45em; }
.marker { background: linear-gradient(transparent 60%, var(--yellow) 60% 94%, transparent 94%); padding-inline: 0.05em; }
.hero-lead { margin-top: 20px; font-size: 1.0625rem; line-height: 1.8; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero-figure { margin-top: 24px; max-width: 420px; justify-self: center; width: 80%; }

.hero-facts {
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
}
.hero-facts li { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.hero-facts li:nth-child(odd) { border-right: 1px solid var(--color-line); }
.hero-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--color-line); }
.fact-label { font-size: var(--text-xs); color: var(--ink-muted); font-weight: 700; letter-spacing: 0.06em; }
.fact-value { font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; line-height: 1.5; }
.fact-value b { font-size: 1.375em; color: var(--blue); }
.fact-value small { font-size: 0.8em; }

@media (min-width: 768px) {
  .hero { padding-block: 56px 56px; }
  .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-facts li { border-bottom: 0 !important; border-right: 1px solid var(--color-line); padding: 16px 20px; }
  .hero-facts li:last-child { border-right: 0; }
  .fact-value { font-size: 1.0625rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero .grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); }
  .hero-copy { grid-column: 1; }
  .hero-title { font-size: 2.5rem; }
  .hero-figure { grid-column: 2; margin: 24px 0 0; width: 100%; align-self: start; }
  .hero-facts { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 72px 64px; }
  .hero-copy { grid-column: 1 / 8; padding-top: 24px; }
  .hero-figure { grid-column: 8 / 13; margin: 0; width: 100%; max-width: none; align-self: start; }
  .hero-facts { grid-column: 1 / 13; grid-template-columns: subgrid; margin-top: 48px; }
  .hero-facts li { grid-column: span 3; padding: 20px 24px; }
  .hero-lead { font-size: var(--text-lg); }
}

/* ---------- セクション共通 ---------- */
.section { padding-block: var(--section-l); }
.section-title { font-size: var(--text-2xl); }
/* ブランドの反復要素：見出しの上の黄色い付箋 */
.section-title::before { content: ""; display: block; width: 40px; height: 8px; border-radius: 4px; background: var(--yellow); margin-bottom: 14px; }
.side-head { margin-bottom: 28px; }
.side-note { margin-top: 12px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .side-head { grid-column: 1 / 4; margin: 0; }
  .side-body { grid-column: 4 / 13; }
}

/* ---------- 特長 ---------- */
.features { padding-bottom: var(--section-m); }
.feat-head { margin-bottom: 32px; }
.feat-no { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: var(--text-lg); line-height: 1; margin-bottom: 8px; }
.feat-title { font-size: var(--text-xl); margin-bottom: 16px; }
.feat-main { padding-bottom: 40px; border-bottom: 2px solid var(--ink); }
.feat-main .feat-no { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.feat-main .feat-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
.feat-main-img { width: 100%; max-width: 520px; margin: 8px 0 20px; background: var(--blue-paper); border-radius: var(--radius); padding: 12px; }
.feat-main p:last-child { max-width: 36em; }

.feat-sub { display: grid; }
.feat-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 32px; border-bottom: 1px solid var(--color-line); }
.feat-item img { background: var(--yellow-soft); border-radius: 10px; }
.feat-item .feat-title { font-size: 1.25rem; margin-bottom: 8px; }
/* 罫線ノート：行の高さに合わせた線 */
.ruled {
  --lh: 1.9em;
  line-height: var(--lh);
  background-image: linear-gradient(transparent calc(var(--lh) - 1px), var(--grid-line) calc(var(--lh) - 1px));
  background-size: 100% var(--lh);
}

@media (min-width: 768px) {
  .feat-item { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .feat-head { grid-column: 1 / 13; margin-bottom: 48px; }
  .feat-main { grid-column: 1 / 8; border-bottom: 0; padding-bottom: 0; }
  .feat-sub { grid-column: 8 / 13; align-content: start; border-top: 2px solid var(--ink); }
  .feat-item { grid-template-columns: 120px minmax(0, 1fr); padding-block: 28px; }
  .feat-item:first-child { padding-top: 28px; }
}

/* ---------- コースと料金 ---------- */
.courses { background: var(--blue-paper); }
.course-list { display: grid; border-top: 2px solid var(--ink); }
.course { padding-block: 20px; border-bottom: 1px solid var(--color-line); }
.course dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.course-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.course-grade { font-size: var(--text-sm); font-weight: 700; color: var(--blue); }
@media (min-width: 768px) {
  .course { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 24px; }
  .course dt { flex-direction: column; gap: 0; margin: 0; }
}

.fee { margin-top: 48px; }
.fee-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--text-xl); margin-bottom: 16px; }
.fee-tag { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; color: var(--ink-muted); }
.table-scroll { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; font-size: 0.9375rem; }
.fee-table th, .fee-table td { padding: 14px 10px; border-bottom: 1px solid var(--color-line); }
.fee-table thead th { background: var(--ink); color: var(--white); font-size: var(--text-sm); text-align: right; font-weight: 700; }
.fee-table thead th:first-child { text-align: left; }
.fee-table tbody th { text-align: left; font-family: var(--font-head); white-space: nowrap; }
.fee-table td { text-align: right; white-space: nowrap; }
.fee-table td .num { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.01em; }
.fee-table td small { font-size: 0.75rem; margin-left: 1px; }
.fee-table tbody tr:last-child > * { border-bottom: 0; }
.fee-unit { display: none; }
@media (max-width: 479px) {
  .fee-unit { display: inline; }
  .fee-table th, .fee-table td { padding: 12px 6px; }
  .fee-table th:first-child { padding-left: 12px; }
  .fee-table th:last-child, .fee-table td:last-child { padding-right: 12px; }
  .fee-table td small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.fee-notes { margin-top: 16px; display: grid; gap: 4px; font-size: var(--text-sm); color: var(--ink-muted); }
.fee-notes li { padding-left: 1em; text-indent: -1em; }
.fee-notes li::before { content: "・"; }
@media (min-width: 768px) {
  .fee-table { font-size: var(--text-base); }
  .fee-table th, .fee-table td { padding: 16px 24px; }
  .fee-table td .num { font-size: 1.5rem; }
  .fee-table td small { font-size: 0.875rem; }
}

/* ---------- 1日の時間割（青い色面） ---------- */
.timetable { background: var(--blue); color: var(--white); }
.timetable .section-title { color: var(--white); }
.timetable .side-note { color: #E6EEFB; }

.tt {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 16px;
}
.tt-self {
  grid-column: 1 / -1;
  background: var(--yellow); color: var(--ink);
  border-radius: 8px; padding: 6px 12px;
  font-weight: 700; font-size: var(--text-sm);
}
.tt-ticks { position: relative; grid-column: 1; grid-row: 2; font-size: var(--text-xs); font-variant-numeric: tabular-nums; font-weight: 700; }
.tt-ticks li { position: absolute; left: 0; top: calc((var(--s) - 1) * 100% / 42); transform: translateY(-50%); line-height: 1; }
.tt-periods {
  grid-column: 2; grid-row: 2;
  display: grid;
  grid-template-rows: repeat(42, 14px);
  background-image: linear-gradient(rgb(255 255 255 / 0.35) 1px, transparent 1px);
  background-size: 100% calc(100% / 7);
  border-bottom: 1px solid rgb(255 255 255 / 0.35);
}
.tt-block {
  grid-row: var(--s) / var(--e);
  margin: 2px 0;
  background: var(--white); color: var(--ink);
  border-radius: 10px;
  border-left: 6px solid var(--yellow);
  padding: 8px 14px;
  display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 0 12px;
  line-height: 1.5;
}
.tt-no { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--blue); }
.tt-time { font-weight: 700; }
.tt-who { flex-basis: 100%; font-size: var(--text-sm); }
.tt-notes { margin-top: 24px; display: grid; gap: 4px; font-size: var(--text-sm); color: #EEF3FC; }
.tt-notes li { padding-left: 1em; text-indent: -1em; }
.tt-notes li::before { content: "・"; }

@media (min-width: 768px) {
  .tt { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 10px; }
  .tt-ticks { grid-column: 1; grid-row: 1; height: 1.2em; }
  .tt-ticks li { top: 0; left: calc((var(--s) - 1) * 100% / 42); transform: translateX(-50%); }
  .tt-ticks li:first-child { transform: none; }
  .tt-ticks li:last-child { transform: translateX(-100%); }
  .tt-self {
    grid-column: 1; grid-row: 2;
    margin-left: calc((var(--s) - 1) * 100% / 42);
    width: calc((var(--e) - var(--s)) * 100% / 42);
  }
  .tt-periods {
    grid-column: 1; grid-row: 3;
    grid-template-rows: none;
    grid-template-columns: repeat(42, minmax(0, 1fr));
    background-image: linear-gradient(90deg, rgb(255 255 255 / 0.35) 1px, transparent 1px);
    background-size: calc(100% / 7) 100%;
    border-bottom: 0; border-right: 1px solid rgb(255 255 255 / 0.35);
  }
  .tt-block { grid-row: 1; grid-column: var(--s) / var(--e); margin: 0 2px; flex-direction: column; flex-wrap: nowrap; padding: 14px 12px; border-left: 0; border-top: 6px solid var(--yellow); }
  .tt-who { flex-basis: auto; }
  .tt-time { font-size: var(--text-sm); }
}
@media (min-width: 1280px) {
  .tt-time { font-size: var(--text-base); }
}

/* ---------- 先生 ---------- */
.teacher-role { font-size: var(--text-sm); font-weight: 700; color: var(--blue); }
.teacher-name { font-size: var(--text-xl); margin: 2px 0 10px; }
.teacher-main { display: grid; gap: 20px; align-items: start; padding-bottom: 32px; border-bottom: 2px solid var(--ink); }
.teacher-main img { width: 160px; }
.teacher-main .teacher-name { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.teacher-main-text p:last-child { max-width: 36em; }
.teacher-others { display: grid; }
.teacher { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 24px; border-bottom: 1px solid var(--color-line); }
@media (min-width: 768px) {
  .teacher-main { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
  .teacher-main img { width: 100%; }
  .teacher-others { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .teacher { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .teacher-main { grid-column: 4 / 13; grid-template-columns: subgrid; column-gap: var(--gutter); row-gap: 0; }
  .teacher-main img { grid-column: 1 / 4; }
  .teacher-main-text { grid-column: 4 / 10; padding-top: 8px; }
  .teacher-others { grid-column: 4 / 13; grid-template-columns: subgrid; }
  .teacher { grid-column: span 4; }
  .teacher + .teacher { grid-column: 5 / 10; }
  .teacher img { width: 96px; }
}

/* ---------- 無料体験の流れ（ステッパー） ---------- */
.flow { background: var(--blue-paper); padding-block: var(--section-m); }
.flow .section-title { margin-bottom: 32px; }
.steps { counter-reset: step; row-gap: 0; }
.step { position: relative; padding: 0 0 28px 64px; }
.step::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; border-left: 3px dotted var(--blue); }
.step:last-child::before { display: none; }
.step-no {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; line-height: 1;
}
.step-title { font-size: 1.1875rem; padding-top: 8px; margin-bottom: 6px; }
.step:last-child .step-no { background: var(--blue); color: var(--white); }
@media (min-width: 1024px) {
  .flow .section-title { margin-bottom: 48px; }
  .step { grid-column: span 3; padding: 64px 16px 0 0; }
  .step::before { left: 56px; right: 0; top: 22px; bottom: auto; border-left: 0; border-top: 3px dotted var(--blue); }
  .step-title { padding-top: 0; }
}

/* ---------- FAQ ---------- */
.faq { padding-bottom: var(--section-m); }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--color-line); }
.faq-list summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 18px 48px 18px 36px; min-height: 44px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.5;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; position: absolute; left: 0; top: 16px; font-size: 1.25rem; color: var(--blue); }
.faq-list summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg); transition: transform .15s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list details p { padding: 0 8px 20px 36px; max-width: 40em; }

/* ---------- アクセス ---------- */
.access { padding-top: var(--section-m); }
.access-map img { border-radius: var(--radius); width: 100%; }
.access-info { margin-top: 24px; border-top: 2px solid var(--ink); }
.access-info > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--color-line); }
.access-info dt { font-weight: 700; color: var(--ink-muted); font-size: var(--text-sm); padding-top: 2px; }
.tel { font-family: var(--font-head); font-weight: 700; font-size: 1.375rem; color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1024px) {
  .access-map { grid-column: 4 / 8; }
  .access-info { grid-column: 8 / 13; margin-top: 0; }
}

/* ---------- 無料体験（黄色の色面） ---------- */
.trial { background: var(--yellow); padding-block: var(--section-l); }
.trial-title { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); line-height: 1.3; margin-bottom: 16px; }
.trial-copy > p { max-width: 28em; }
.trial-tel { margin-top: 24px; font-weight: 700; font-size: var(--text-sm); }
.trial-tel .tel { font-size: 2rem; }
.trial-hours { display: block; font-weight: 400; }
.trial-form {
  margin-top: 32px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 16px;
  padding: 24px 20px;
  display: grid; gap: 20px;
}
.form-progress { font-size: var(--text-sm); font-weight: 700; color: var(--blue); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.optional { font-weight: 400; font-size: var(--text-sm); color: var(--ink-muted); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink);
  border: 2px solid #7D879C; border-radius: 10px; background: var(--white);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue); outline-offset: 1px; }
.hint { font-size: var(--text-sm); color: var(--ink-muted); }
@media (min-width: 1024px) {
  .trial-copy { grid-column: 1 / 7; padding-top: 8px; }
  .trial-form { grid-column: 8 / 13; margin-top: 0; padding: 32px; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-block: 40px 48px; font-size: var(--text-sm); }
.footer-inner { display: grid; gap: 6px; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: var(--text-lg); }
.footer-note { color: #CDD3E0; max-width: 40em; margin-top: 8px; }
.site-footer a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- スマホの固定CTA ---------- */
.sp-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 8px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.96); border-top: 1px solid var(--color-line);
}
.sp-cta .btn { min-height: 48px; padding-inline: 12px; }
.sp-cta-tel { display: grid; place-items: center; min-height: 48px; border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); font-weight: 700; text-decoration: none; }
body { padding-bottom: 72px; }
@media (min-width: 768px) {
  .sp-cta { display: none; }
  body { padding-bottom: 0; }
}
