/* AI塾 LINE内予約画面(LIFF) スタイル
   DESIGN.md「時間割 ― 罫線と特大の数字」に準拠。
   このファイルにない値・色をその場で発明しない。足りなければ DESIGN.md を確認すること。
   カード・影・グラデーション・丸ピル・トースト・固定フッターは使わない(DESIGN.md 禁止事項)。 */

@import url("https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=BIZ+UDGothic:wght@400;700&display=swap");

:root {
  --bg: #FFFFFF;
  --surface: #F3F5F7;
  --text: #1E252C;
  --muted: #5C6670;
  --line: #CDD5DC;
  --field: #7A8590;
  --accent: #123A5E;
  --accent-press: #0C2A45;
  --mark: #1F7A8C;
  --error: #B3261E;
  --error-bg: #FCEEEC;
  --disabled-bg: #E3E7EB;
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
}

body.liff {
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  padding: 0 20px 84px;
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  body.liff { max-width: 560px; }
}

.num, .liff-time, .liff-date, .liff-seats, .liff-price {
  font-family: "BIZ UDGothic", "BIZ UDPGothic", "Hiragino Sans", "Meiryo", sans-serif;
}

button { font-family: inherit; cursor: pointer; background: none; border: none; }
a { color: var(--accent); }

/* ---- 見出し ---- */
h1.liff-h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  padding-top: 20px;
}
.liff-lead {
  font-size: 15px;
  color: var(--muted);
  margin-top: 8px;
}
.liff-month {
  font-size: 26px;
  font-weight: 700;
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
}
.liff-month:first-of-type { margin-top: 20px; }
/* 2026-09-24追加: 「2026年12月」のような月の見出し専用(区切りの下線は付けない)。
   「ビジネスコース」「入門・中級コース」のような大きな区切りの見出し(.liff-month)と
   続けて出すと下線が重なって見づらい、という指摘への対応。 */
.liff-month-sub {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 8px;
}

/* ---- 文字リンク ---- */
.liff-link {
  display: block;
  min-height: 48px;
  line-height: 48px;
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
}
.liff-link.right { text-align: right; }
/* 2026-09-23 変更: 下にスクロールすると「戻る」リンクが画面外に消え、
   戻り方が分からなくなるという指摘のため、常に画面上部に見えるようにした
   (背景をbodyと同色にして、下の文字と重ならないようにしている)。 */
.liff-linkrow {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  margin: 0 0 12px;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- 「日時の一行」部品 ---- */
.liff-when { margin: 20px 0; }
.liff-when .liff-date { font-size: 24px; font-weight: 700; color: var(--text); }
.liff-when .liff-time {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
}
.liff-when .liff-time .end { font-size: 24px; }
.liff-when .liff-mark {
  margin-top: 8px;
  height: 4px;
  width: 132px;
  background: var(--mark);
}
.liff-when .liff-sub {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 400;
  color: var(--muted);
}
@media (max-width: 359px) {
  .liff-when .liff-time { font-size: 32px; }
  .liff-when .liff-time .end { font-size: 20px; }
}

/* ---- 日にちの一覧(A-1) ---- */
/* 2026-09-24変更: 下線を.liff-month(見出し)側に付け替えた。以前は.liff-daylistの
   border-topだったため、見出しの直後にdaylistが来る場合だけ下線が付いたように見え、
   「ビジネスコース」の下には出るが「入門・中級コース」の下には出ない、という
   見た目の不一致があった(澤田様の指摘)。 */
.liff-dayrow {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  min-height: 84px;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.liff-dayrow .d1 { font-size: 24px; font-weight: 700; color: var(--text); }
.liff-dayrow .d2 { font-size: 17px; color: var(--muted); margin-top: 4px; }
.liff-dayrow .d3 {
  position: absolute;
  right: 0;
  top: 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.liff-dayrow .d3.muted { color: var(--muted); }
.liff-dayrow .chev { position: absolute; right: 0; bottom: 20px; color: var(--field); font-size: 17px; }

/* ---- 時間割の段(A-2) ---- */
.liff-tt { border-top: 1px solid var(--line); }
.liff-ttrow {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.liff-ttrow.empty { min-height: 52px; padding: 16px 0; }
.liff-tt-left { width: 116px; flex: none; }
.liff-tt-left .komano { font-size: 15px; color: var(--muted); }
.liff-tt-left .t1 { font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.liff-tt-left .t2 { font-size: 20px; font-weight: 700; color: var(--accent); }
.liff-tt-left .course { font-size: 13px; color: var(--muted); margin-top: 2px; }
.liff-ttrow.full .liff-tt-left .t1,
.liff-ttrow.full .liff-tt-left .t2 { color: var(--muted); }
.liff-tt-left.small .t1 { font-size: 17px; font-weight: 400; color: var(--muted); }
.liff-tt-mid { flex: 1; min-width: 0; }
.liff-tt-mid .course { font-size: 19px; font-weight: 700; color: var(--text); }
.liff-ttrow.full .liff-tt-mid .course { color: var(--muted); }
/* 2026-09-23 追加: コース名の下の内容(補足)。太字の名前と区別できるよう小さく・薄くする */
.liff-tt-mid .course-practice { font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.liff-tt-mid .seats { font-size: 17px; margin-top: 4px; }
.liff-tt-mid .seats b { font-size: 24px; font-weight: 700; color: var(--accent); }
.liff-tt-mid .empty-note { font-size: 15px; color: var(--muted); }
.liff-tt-right { flex: none; }
.liff-tt-right .full-label { font-size: 17px; font-weight: 700; color: var(--muted); }

/* ---- ボタン ---- */
.liff-btn {
  display: block;
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 700;
  padding: 10px 16px;
  text-align: center;
}
.liff-btn.primary {
  min-height: 60px;
  background: var(--accent);
  color: #fff;
}
.liff-btn.primary:active { background: var(--accent-press); }
.liff-btn.primary:disabled { background: var(--disabled-bg); color: var(--muted); }
.liff-btn.secondary {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.liff-btn.danger {
  background: #fff;
  color: var(--error);
  border: 2px solid var(--error);
}
.liff-btn.small {
  min-height: 52px;
  width: auto;
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
}
.liff-btn + .liff-btn { margin-top: 12px; }
.liff-btnrow { margin-top: 32px; }

/* ---- 選ぶボタン(A-2) ---- */
.liff-pick {
  flex: none;
  min-width: 76px;
  min-height: 52px;
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  padding: 0 16px;
}

/* ---- 入力項目 ---- */
.liff-field { margin-top: 32px; }
.liff-field:first-of-type { margin-top: 32px; }
.liff-label { font-size: 19px; font-weight: 700; }
.liff-example { font-size: 15px; color: var(--muted); margin-top: 8px; }
.liff-input {
  display: block;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border: 2px solid var(--field);
  border-radius: 4px;
  padding: 12px;
  font-size: 17px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}
.liff-input.err { border-color: var(--error); background: var(--error-bg); }
.liff-errtext {
  display: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--error);
  margin-top: 12px;
  line-height: 1.6;
}
.liff-errtext.show { display: block; }

/* ---- 2択ボタン ---- */
.liff-choice2 { display: flex; gap: 20px; margin-top: 8px; }
.liff-choice {
  flex: 1;
  min-height: 56px;
  border: 2px solid var(--field);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}
.liff-choice.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.liff-choice.disabled {
  background: var(--disabled-bg);
  border-color: var(--disabled-bg);
  color: var(--muted);
}
.liff-choice-note { font-size: 15px; color: var(--muted); margin-top: 8px; }
.liff-remove-link {
  display: inline-block;
  min-height: 48px;
  line-height: 48px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: underline;
}

/* ---- 当日のご案内など(タップできない案内) ---- */
.liff-surface {
  background: var(--surface);
  margin-top: 32px;
}
.liff-surface .row { border-top: 1px solid var(--line); padding: 20px 0; }
.liff-surface .row:first-child { border-top: none; }
.liff-surface .row .k { font-size: 17px; font-weight: 700; }
.liff-surface .row .v { font-size: 17px; margin-top: 4px; }
.liff-surface { padding: 0 20px; }

/* ---- 本文・注記 ---- */
.liff-body { font-size: 17px; margin-top: 20px; }
.liff-note { font-size: 15px; color: var(--muted); margin-top: 20px; line-height: 1.7; }
.liff-note.tight { margin-top: 12px; }
.liff-strong { font-size: 17px; font-weight: 700; color: var(--text); margin-top: 12px; }

/* ---- 状態 ---- */
.liff-loading { padding: 84px 0; text-align: center; color: var(--muted); font-size: 17px; }

.demo-badge-liff {
  display: inline-block;
  background: #f0c419;
  color: #4a3800;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.liff-demo-tools { margin-top: 32px; text-align: right; }
.liff-demo-tools button { font-size: 13px; color: var(--muted); text-decoration: underline; }
