@charset "utf-8";
/* ==========================================================================
   PCCI 商工会議所パソコン教室 / 無料体験お申し込みフロー リニューアル版
   free_trial_new/assets/css/style.css
   - モバイルファースト（SP → PC の順で記述）
   - 既存 free-trial/add_assets/css/add.css には一切依存しない自己完結型
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. デザイントークン
   -------------------------------------------------------------------------- */
:root {
  /* ブランド（商工会議所レッド：既存 add.css の --color01 を継承） */
  --brand: #a72126;
  --brand-dark: #8b191e;
  --brand-light: #d4624a;
  --brand-tint: #fdf4f3;
  --brand-tint-2: #f9e6e4;

  /* セマンティックカラー（空席状況） */
  --ok: #0f7a4d;
  --ok-tint: #eaf6ef;
  --few: #b26a00;
  --few-tint: #fdf3e3;
  --full: #8a9099;
  --full-tint: #f2f4f6;

  /* ベース */
  --text: #1f2328;
  --text-muted: #5b6470;
  --text-weak: #838d99;
  --line: #dfe3e8;
  --line-strong: #c3cad3;
  --bg: #f6f7f9;
  --surface: #ffffff;

  /* かたち：角丸はごく浅く（4/6/8px）。硬さを取るためだけの丸みで、
     境界は引き続き罫線で示し、装飾シャドウは使わない
     --r-s：入力欄・チップ・小さいバッジ／--r-m：ボタン・日時ボタン・囲み
     --r-l：カード・確認ブロックなど大きい面 */
  --r-s: 4px;
  --r-m: 6px;
  --r-l: 8px;
  --shadow-s: none;
  --shadow-m: none;
  --shadow-up: 0 -1px 0 rgba(31, 35, 40, .12);

  /* レイアウト */
  --wrap: 720px;
  --wrap-wide: 1000px;
  --gutter: 16px;

  /* 追従CTAの高さ（本文下部の余白確保に使用） */
  --sticky-h: 0px;
}

/* --------------------------------------------------------------------------
   1. リセット
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* 追従ヘッダー分 */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "Meiryo", "メイリオ", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, blockquote {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: 16px; }
table { border-collapse: collapse; }

:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
  border-radius: var(--r-m);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.phrase { display: inline-block; }  /* 語句のまとまりで折り返す（文中の不自然な位置で改行させない） */
.sp-br { display: block; }   /* SPだけで改行したい箇所 */
.pc-br { display: none; }    /* PCだけで改行したい箇所 */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   2. ヘッダー / フッター
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header__logo { flex: 0 1 auto; line-height: 1; }
.site-header__logo img { width: 176px; }
.site-header__catch {
  display: none;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}
.site-header__tel {
  margin-left: auto;
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
  color: var(--text-muted);
}
.site-header__tel a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}

.site-footer {
  margin-top: 48px;
  padding: 24px var(--gutter) 32px;
  background: #3c3f44;
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 10px;
}
.site-footer a { color: #fff; }
.site-footer__copy { color: #c8ccd2; }

/* --------------------------------------------------------------------------
   3. 進捗（ステップ）表示 ─ 追従
   -------------------------------------------------------------------------- */
.progress {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}
.progress__inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 8px var(--gutter) 10px;
}
.steps {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  overflow: hidden; /* 各ステップの地色を角丸で切り抜く */
}
.steps__item {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  letter-spacing: -.02em;
  color: var(--text-weak);
  background: #fafbfc;
  border-left: 1px solid var(--line-strong);
}
.steps__item:first-child { border-left: 0; }
.steps__item .n {
  display: inline-block;
  min-width: 1.5em;
  margin-right: 2px;
  font-size: 11px;
}
.steps__item.is-done {
  color: var(--text-muted);
  background: #eef1f4;
}
.steps__item.is-current {
  color: #fff;
  background: var(--brand);
}
.progress__note {
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* 選択済みサマリー（教室・日時） */
.chosen {
  max-width: var(--wrap-wide);
  margin: 12px auto 0;
  padding: 0 var(--gutter);
}
.chosen__list {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--brand);
  border-radius: var(--r-m);
  overflow: hidden; /* 見出し（chosen__cap）の地色を角丸で切り抜く */
  padding: 0;
}
/* 「これはあなたが選んだ内容」と分かるようにする見出し */
.chosen__cap {
  padding: 5px 12px 4px;
  background: #f2f4f6;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.chosen__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 14px;
  line-height: 1.5;
}
.chosen__row + .chosen__row { border-top: 1px dotted var(--line-strong); }
.chosen__key {
  margin-right: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
/* 選択済みバーの教室写真（小） */
.chosen__photo {
  flex: 0 0 auto;
  width: 62px;
  height: 47px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
}
.chosen__photo.is-failed { display: none; }

.chosen__value {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}
.chosen__value .sub { font-weight: 400; font-size: 12px; color: var(--text-muted); }
.chosen__change {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  background: #f2f4f6;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}
.chosen__change:hover { background: var(--brand-tint); border-color: var(--brand); }

/* --------------------------------------------------------------------------
   4. ページ骨格
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide { max-width: var(--wrap-wide); }

main { padding-bottom: calc(24px + var(--sticky-h)); }

.page-head { padding: 12px 0 2px; text-align: center; }
.page-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.page-title .accent { color: var(--brand); }
.page-lead {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.section { margin-top: 16px; }
.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  padding-bottom: 7px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--brand);
}
.section__title .step-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--brand);
  border-radius: var(--r-s);
  padding: 3px 8px;
}
/* 見出しの右に件数を出す。24教室ある府県では「あと何件あるか」が分からないと
   スクロールの見当がつかないため、小さな注記ではなく見出しの一部として明記する */
.section__count {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 8px;
  background: var(--brand-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.section__count:empty { display: none; }
.section__note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  padding: 16px;
}
.card + .card { margin-top: 12px; }

/* 注意・お知らせ */
/* 注意・お知らせ：見出しに帯ではなく罫線を使った実務的な体裁 */
.notice-box {
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--brand);
  border-radius: var(--r-m);
  background: var(--surface);
  padding: 11px 14px 12px;
  font-size: 14px;
  line-height: 1.75;
  margin-top: 14px;
}
.notice-box__title {
  font-weight: 700;
  color: var(--brand);
  padding-bottom: 5px;
  margin-bottom: 6px;
  border-bottom: 1px dotted var(--line-strong);
}
.notice-box--warn { border-top-color: var(--few); background: var(--few-tint); }
.notice-box--warn .notice-box__title { color: #8a5200; border-bottom-color: #e0c68e; }

/* 教室への電話 */
.school-tel {
  margin-top: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-m);
  text-align: center;
  font-size: 14px;
}
.school-tel__name { font-weight: 700; }
.school-tel__num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
.school-tel__num::before {
  content: "";
  width: 20px; height: 20px;
  background: url("../img/ico_tel.svg") center/contain no-repeat;
}
.school-tel__sub { font-size: 12px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   5. ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--r-m);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn--block { display: flex; width: 100%; }

.btn--primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand-dark);
}
.btn--primary:hover { background: var(--brand-dark); }
/* 2行構成（主ラベル＋補足）のボタン */
.btn__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.35;
}
.btn__sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .92;
}
.btn--primary::after {
  content: "";
  width: 8px; height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 2px;
}
.btn--ghost {
  color: var(--brand);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  min-height: 46px;
  font-size: 15px;
}
.btn--back {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}
.btn--back::before {
  content: "";
  width: 7px; height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}
.btn[aria-disabled="true"], .btn:disabled {
  opacity: .55;
  box-shadow: none;
  cursor: not-allowed;
}
.btn--tel {
  color: var(--brand);
  background: var(--surface);
  border: 2px solid var(--brand);
  min-height: 48px;
  font-size: 16px;
}
.btn--tel::after { content: none; }

.actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.actions__back { align-self: center; }

/* 追従CTA（SP） */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-up);
}
.sticky-cta__inner {
  max-width: var(--wrap);
  margin: 0 auto;
}
.sticky-cta__hint {
  font-size: 12px;
  color: var(--few);
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.sticky-cta__hint:empty { display: none; }

/* 送信ボタン直前の案内（未入力件数） */
.cta-hint {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--few);
  text-align: center;
}
.cta-hint:empty { display: none; }
.cta-hint + .actions { margin-top: 8px; }

/* --------------------------------------------------------------------------
   6. STEP1 教室選択
   -------------------------------------------------------------------------- */
/* 地域・都道府県・教室で見た目を変えないため、教室一覧と同じ「1本の枠＋罫線区切り」にする */
.area-list {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
.area { border-bottom: 1px solid var(--line); }
.area:last-child { border-bottom: 0; }
/* 地域名は1行だけ。都道府県名の羅列は載せず、その分だけ文字を大きくする（主要ターゲットが50代以上のため） */
.area__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 14px;
  text-align: left;
  font-size: 21px;
  font-weight: 700;
}
.area__btn > span {
  flex: 1 1 auto;
  min-width: 0;
}
/* 右端の記号は3階層（地域・都道府県・教室）で共通の山形にそろえる。
   下向き＝まだ開ける／上向き＝開いている。 */
.area__btn::after,
.pref-btn::after,
.school-row__mark {
  content: "";
  margin-left: auto;
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.area__btn[aria-expanded="true"] { background: var(--brand-tint); }
.area__btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.area__panel {
  border-top: 1px solid var(--line);
  padding: 8px;
  background: #fbfcfd;
}
.pref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
/* 都道府県名を大きく、教室数は同じ行の右端に置く（縦に積むと1行ぶん高くなり文字も小さくなるため） */
.pref-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 60px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  color: var(--text);
}
.pref-btn > span:first-child { flex: 1 1 auto; min-width: 0; }
.pref-btn .count {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.pref-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
/* 狭い端末では「神奈川県」「鹿児島県」＋件数が1行に収まらないので、そこだけ一段小さくする */
@media (max-width: 359px) {
  .pref-btn { font-size: 16px; padding: 10px; }
  .pref-btn .count { font-size: 12px; }
}
.pref-loading { padding: 14px; font-size: 14px; color: var(--text-muted); text-align: center; }

/* 教室カード */
.school-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.school-head__title { font-size: 18px; font-weight: 700; }

/* 教室一覧＝「教室名の1行」を並べ、押した教室の詳細だけを開く。
   カードを積むと大阪24教室で5,000pxを超えて下の教室が埋没するため。 */
.school-list {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-m);
  overflow: hidden;
}
/* 読み込みエラーなどの案内文だけを出すときは、枠を外して素のブロックに戻す */
.school-list--msg {
  background: none;
  border: 0;
  box-shadow: none;
}
.school { border-bottom: 1px solid var(--line); }
.school:last-child { border-bottom: 0; }
.school-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 0 12px 0 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
/* 写真は左端まで寄せて、行の高さいっぱいに使う */
.school__thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 76px;
  object-fit: cover;
  background: var(--full-tint);
  opacity: 0;
  transition: opacity .25s ease;
}
.school__thumb.is-loaded,
.school__thumb.is-failed,
.school__thumb--none { opacity: 1; }
.school-row__name {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.school-row__name .cci {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
}
.school-row:hover { background: var(--brand-tint); }
.school-row[aria-expanded="true"] { background: var(--brand-tint); }
.school-row[aria-expanded="true"] .school-row__mark { transform: rotate(-135deg) translateY(-2px); }
.school-panel {
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}
.school-panel[hidden] { display: none; }

/* 展開部分の中身。写真は行のサムネイルで見せているのでここには置かない。
   左端はサムネイル幅＋余白ぶん下げて、閉じているときの教室名と縦にそろえる。 */
.school__body { padding: 11px 12px 13px 96px; }

/* 住所は控えめ、アクセスは教室選びの判断材料なので地色を敷いて濃く出す */
.school__addr {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}
/* アクセス（最寄り駅・バス・車）
   経路が最大4件あり「／」でつなぐと写真の横（実質14文字/行）で折り返しが多発する。
   カード幅いっぱいのブロックに出し、1件1行・罫線区切りにする。 */
.school__access {
  margin-top: 8px;
  padding: 0 8px 6px;
  background: #eef1f4;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
}
/* 見出しは枠の上端いっぱいの帯にする。
   同じ地色の中に小さい文字で置くと、経路の1行目と見分けがつかないため。 */
.school__access-ttl {
  margin: 0 -8px 5px;
  padding: 3px 8px;
  background: #dde3e9;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.school__access-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.school__access-list li + li {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid #d7dde2;
}
.school__access-list li[hidden] { display: none; }
.school__access-more {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
}
.school__access-more:hover { border-color: var(--brand); background: var(--brand-tint); }
.school__cta { margin-top: 11px; }

/* --------------------------------------------------------------------------
   7. STEP2 日時選択
   -------------------------------------------------------------------------- */

/* 日にちボタン（3列）── 指で押しやすい大きさを最優先
   1ボタン 約106×76px。文字は大きく、状態は文字で明示する */
.dategrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dbtn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 76px;
  padding: 8px 4px;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-s);
  text-align: center;
  line-height: 1.25;
  -webkit-tap-highlight-color: rgba(167, 33, 38, .15);
}
.dbtn__date {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.dbtn__wd { font-size: 14px; font-weight: 500; margin-left: 1px; }
.dbtn__st {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-s);
}
.dbtn__st .mk { font-size: 14px; line-height: 1; }

.dbtn.is-ok { border-color: var(--ok); }
.dbtn.is-ok .dbtn__st { color: #fff; background: var(--ok); }
.dbtn.is-few { border-color: var(--few); background: var(--few-tint); }
.dbtn.is-few .dbtn__st { color: #fff; background: var(--few); }
.dbtn.is-full,
.dbtn.is-holiday {
  border-color: var(--line);
  background: var(--full-tint);
  color: var(--text-weak);
  box-shadow: none;
  cursor: default;
}
.dbtn.is-full .dbtn__st,
.dbtn.is-holiday .dbtn__st { color: var(--text-muted); background: #e4e8ec; }

/* 選択中の日にち */
.dbtn.is-selected {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.dbtn.is-selected .dbtn__date { color: var(--brand); }
.dbtn.is-selected .dbtn__st { color: #fff; background: var(--brand); }

/* 時間ボタン（2列） */
.times {
  margin-top: 14px;
  padding: 14px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-top: 3px solid var(--brand);
  border-radius: var(--r-m);
}
.times__head {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 12px;
}
.times__head .date { color: var(--brand); font-size: 19px; }
.times__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 74px;
  padding: 8px 8px;
  border: 2px solid var(--ok);
  border-radius: var(--r-m);
  background: var(--surface);
  color: var(--ok);
  text-decoration: none;
  box-shadow: var(--shadow-s);
  -webkit-tap-highlight-color: rgba(15, 122, 77, .15);
}
.tbtn__mark {
  flex: 0 0 auto;
  width: 26px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.tbtn__body { display: flex; flex-direction: column; align-items: flex-start; }
.tbtn__hm { font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.tbtn__st { font-size: 12px; font-weight: 700; }
a.tbtn--ok:hover { background: var(--ok); color: #fff; }
.tbtn--few { border-color: var(--few); color: var(--few); background: var(--few-tint); }
a.tbtn--few:hover { background: var(--few); color: #fff; }
.tbtn--full {
  border-color: var(--line);
  color: var(--text-weak);
  background: var(--full-tint);
  box-shadow: none;
  cursor: default;
}
.times__back { margin-top: 12px; text-align: center; }
.times__back .btn { min-height: 48px; }

.avail__hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* JS無効時は全日程の時間ボタンを最初から表示 */
.no-js .times { display: block !important; }
.no-js .times__back { display: none; }

/* --------------------------------------------------------------------------
   8. フォーム（STEP3 / 確認）
   -------------------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}
.field__label .req,
.field__label .opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-s);
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 2px;
}
.field__label .req { color: #fff; background: var(--brand); }
.field__label .opt { color: var(--text-muted); background: var(--full-tint); border: 1px solid var(--line); }
.field__hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.input,
.textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  line-height: 1.5;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder, .textarea::placeholder { color: #a8b0ba; }
.input:focus, .textarea:focus {
  border-color: var(--brand);
  border-width: 2px;
  padding: 11px 13px;
  outline: none;
}
.textarea { min-height: 88px; resize: vertical; }
.textarea--short { min-height: 68px; }

.field--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.field--split .field__label { font-size: 13px; }

.field.has-error .input,
.field.has-error .textarea {
  border-color: #c62828;
  background: #fff8f8;
}
.field__error {
  display: none;
  align-items: flex-start;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #c62828;
  margin-top: 5px;
  line-height: 1.5;
}
.field.has-error .field__error { display: flex; }
.field__error::before {
  content: "!";
  flex: 0 0 auto;
  width: 17px; height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 17px;
}
.field__ok {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ok);
  margin-top: 5px;
}
.field.is-ok .field__ok { display: block; }

/* 選択肢（チップ） */
.fieldset { margin-bottom: 14px; border: 0; padding: 0; }
.fieldset__legend {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 5px;
  padding: 0;
}
.fieldset__legend .opt {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--full-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 1px 6px;
  margin-right: 6px;
  vertical-align: 2px;
}
/* 選択肢は等幅の列に並べ、左右の端をそろえる。
   幅がばらばらだと視線の起点が定まらず、押し間違いも増えるため。
   長い文言の質問は1列（＝全幅）、短い文言の質問だけ複数列にする。 */
.chips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.chips--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 項目数が奇数のときは最後の1つを全幅にして、行の右端の欠けをなくす */
.chips--2col > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.chips--age { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { position: relative; }
.chip input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 42px;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  transition: background-color .12s ease, border-color .12s ease;
}
/* チェック印の場所は選ぶ前から空けておく。
   選んだ瞬間にボタンの幅や文字の折り返し位置が動かないようにするため、
   印の枠と文字の太さは選択前後で変えない（違いは枠線・地色・文字色で示す）。 */
.chip span::before {
  content: "";
  flex: 0 0 auto;
  width: 13px; height: 13px;
  margin-right: 4px;
  background: center/contain no-repeat;
}
.chip input:checked + span {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.chip input:focus-visible + span { outline: 3px solid #1a73e8; outline-offset: 2px; }
.chip input:checked + span::before {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a72126' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

/* アンケート：全項目を出したうえで余白を詰める */
.survey { margin-top: 12px; }
.survey__body { margin-top: 4px; }
.survey .fieldset { margin-bottom: 16px; }
.survey .fieldset:last-of-type { margin-bottom: 16px; }
/* 質問（見出し）と選択肢の左端をずらして、どこまでが1問かを見えるようにする。
   質問を外側に出す形にしているので、選択肢の幅は自動で縮み、はみ出さない。 */
.survey .fieldset,
.survey__body > .field { padding-left: 14px; }
.survey .fieldset__legend,
.survey__body > .field > .field__label { margin-left: -14px; }
.survey .fieldset__legend { font-size: 15px; margin-bottom: 7px; }

/* エラーサマリー */
.error-summary {
  display: none;
  border: 2px solid #c62828;
  background: #fff5f5;
  border-radius: var(--r-m);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.error-summary.is-shown { display: block; }
.error-summary__title { font-weight: 700; color: #c62828; margin-bottom: 4px; }
.error-summary ul { list-style: disc; padding-left: 1.3em; font-size: 14px; }
.error-summary a { color: #c62828; }

/* --------------------------------------------------------------------------
   9. 確認画面
   -------------------------------------------------------------------------- */
.alert-confirm {
  margin: 16px 0 0;
  padding: 14px;
  border: 2px solid var(--brand);
  border-radius: var(--r-m);
  background: #fff;
  text-align: center;
}
.alert-confirm__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.5;
}
.alert-confirm__text { font-size: 14px; margin-top: 4px; }

.summary { margin-top: 14px; }
.summary__block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.summary__block + .summary__block { margin-top: 12px; }
.summary__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--brand-tint);
  border-bottom: 1px solid var(--brand-tint-2);
}
.summary__head h2 { font-size: 15px; font-weight: 700; }
.summary__edit {
  margin-left: auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--r-s);
  color: var(--brand);
  text-decoration: none;
}
.summary__body { padding: 12px 14px; }
.summary__dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.summary__dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.summary__dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary__dl dt { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.summary__dl dd { font-size: 16px; word-break: break-word; }
.summary__dl dd:empty::after { content: "（未入力）"; color: var(--text-weak); font-size: 14px; }
.summary__datetime {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}
/* 確認画面：教室写真 */
/* 写真＋教室名/住所を1行目に、アクセスはその下に全幅で置く（折り返しを抑える） */
.summary__body--school { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.summary__schoolinfo { flex: 1 1 auto; min-width: 0; }
.summary__photo {
  flex: 0 0 auto;
  width: 104px;
  height: 78px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
}
.summary__photo.is-failed { display: none; }

.summary__school-name { font-size: 17px; font-weight: 700; line-height: 1.45; }
.summary__school-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
/* アクセスは STEP1 と同じ体裁（地色＋濃い文字・1件1行）で住所と区別する */
.summary__access {
  flex: 1 0 100%;
  padding: 0 10px 7px;
  background: #eef1f4;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  overflow: hidden;
}
/* STEP1と同じく、見出しは枠の上端いっぱいの帯にする */
.summary__access-ttl {
  margin: 0 -10px 5px;
  padding: 3px 10px;
  background: #dde3e9;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
}
.summary__access-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.summary__access-list li + li {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #d7dde2;
}

.policy {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. 完了画面
   -------------------------------------------------------------------------- */
.done-hero {
  text-align: center;
  padding: 26px 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-s);
  margin-top: 16px;
}
.done-hero__title { font-size: 21px; font-weight: 700; line-height: 1.4; }
.done-hero__text { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

.next-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.next-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 14px;
  box-shadow: var(--shadow-s);
}
.next-step__no {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 26px;
}
.next-step__body { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.6; }
.next-step__title { display: block; font-weight: 700; }
.next-step__note { display: block; color: var(--text-muted); font-size: 13px; }
.next-step img { width: 44px; margin-left: auto; }

.campaign { margin-top: 20px; text-align: center; }
.campaign img { border-radius: var(--r-m); }

/* --------------------------------------------------------------------------
   11. PC（768px 以上）
   -------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
  :root { --gutter: 24px; }

  body { font-size: 16px; }
  .sp-br { display: none; }
  .pc-br { display: block; }

  .site-header__inner { padding: 14px 24px; }
  .site-header__logo img { width: 240px; }
  .site-header__catch { display: block; }
  .site-header__tel { font-size: 13px; }
  .site-header__tel a { font-size: 18px; }

  .progress__inner { padding: 12px 24px 14px; }
  .steps__item { font-size: 14px; padding: 8px 4px; }
  .steps__item .n { font-size: 12px; }
  .progress__note { font-size: 12px; }

  .chosen__row { padding: 11px 16px; font-size: 15px; }
  .chosen__cap { padding: 6px 16px 5px; }

  .page-head { padding: 22px 0 4px; }
  .page-title { font-size: 26px; }
  .page-lead { font-size: 14px; }
  .section { margin-top: 24px; }
  .section__title { font-size: 21px; }
  .card { padding: 24px; }


  .pref-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* PCは行もサムネイルも一回り大きく */
  .school-row { min-height: 88px; }
  .school__thumb { width: 116px; height: 88px; }
  .school-row__name { font-size: 19px; }
  /* PCはサムネイルが116pxなので、教室名の左端も128pxになる */
  .school__body { padding: 14px 16px 16px 128px; }
  .school__addr, .school__access-list { font-size: 13px; }
  /* 展開部分は横幅が広いので、ボタンだけは間延びしないように上限を付ける */
  .school__cta .btn { max-width: 420px; margin: 0 auto; }

  .actions { flex-direction: row-reverse; justify-content: center; align-items: center; gap: 16px; }
  .actions .btn--primary { min-width: 340px; }
  .actions__back { align-self: auto; }

  /* PCでは追従CTAを出さず、本文内のボタンを使う */
  .sticky-cta { display: none; }

  /* 日にちボタン：PCは5列（14日分で全体3行）／時間ボタンは横に並べる。

     7列にしていたときは1マス 87px（帯の中身は 75px）しか無く、
     「○ 空きあり」で 81px、「△ 残りわずか」で 93px 必要なため
     「空きあ／り」のように語の途中で折れていた（PCのみ。
     スマホは3列で 175px あるので問題なし）。5列なら1マス 126px。
     文字は縮めず、マスを広げて直している（シニア層向けのため）。
     万一幅が足りなくなっても語の途中で折らないよう nowrap も付ける。
     （2026-09-11） */
  .dategrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .dbtn { min-height: 84px; }
  .dbtn__date { font-size: 21px; }
  .dbtn__st { white-space: nowrap; }
  .times { padding: 20px; }
  .times__head { font-size: 18px; }
  .times__head .date { font-size: 22px; }
  .times__grid { grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 12px; }
  .tbtn { min-height: 80px; gap: 10px; }
  .tbtn__mark { width: 30px; font-size: 30px; }
  .tbtn__hm { font-size: 25px; }

  .field--split { gap: 14px; }

  /* 年齢は短い語なので、幅があるときは4列に詰める */
  .chips--age { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .summary__dl > div { grid-template-columns: 200px minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .summary__dl dt { font-size: 13px; }
  .summary__datetime { font-size: 24px; }

  .done-hero { padding: 40px 24px 32px; }
  .done-hero__title { font-size: 26px; }
  .next-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 大画面：教室カード3列 */
@media screen and (min-width: 1000px) {
  .school-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   12. 印刷（完了画面の控え）
   -------------------------------------------------------------------------- */
@media print {
  .progress, .sticky-cta, .site-footer, .actions, .campaign { display: none !important; }
  body { background: #fff; }
  .card, .summary__block, .done-hero { box-shadow: none; }
}
