:root {
  --bg: #f4f8fc;
  --card: #ffffff;
  --text: #1b2a3a;
  --muted: #5b6b7c;
  --line: #d9e3ee;
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --accent: #e3f0ff;
  --danger: #c62828;
  --ok: #2e7d32;
  --warn: #ef6c00;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ヘッダー */
header.top { background: linear-gradient(135deg, #0d47a1, #1e88e5); color: #fff; padding: 14px 16px; }
.top-inner { max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
a.brand { color: inherit; text-decoration: none; }
.brand small { display: block; opacity: .85; font-size: 12px; }
.brand strong { font-size: 17px; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; overflow: hidden; flex: none; }
.lang-btn { background: none; border: 0; color: #fff; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.lang-btn.active { background: #fff; color: var(--primary-dark); font-weight: 700; }

main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }

/* 進み具合 */
.progress { display: flex; list-style: none; padding: 0; margin: 0 0 16px; gap: 4px; }
.progress li { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 4px; }
.progress li.done::before, .progress li.current::before { background: var(--primary); }
.progress li.current { color: var(--primary); font-weight: 700; }

h2 { font-size: 20px; margin: 4px 0 12px; }
h3 { font-size: 16px; margin: 0 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }

/* 入力欄 */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.req { color: var(--danger); font-style: normal; margin-left: 3px; }
input, select { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #b8c7d8; border-radius: 10px; background: #fff; color: var(--text); font-family: inherit; }
input:focus, select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 板の選択 */
.choice-group { display: grid; gap: 8px; margin-bottom: 8px; }
.choice { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 10px 84px 10px 42px; cursor: pointer; position: relative; }
.choice-price { position: absolute; right: 12px; top: 11px; font-weight: 700; font-size: 14px; }
.choice input { position: absolute; left: 13px; top: 14px; width: 18px; height: 18px; margin: 0; }
.choice.selected { border-color: var(--primary); background: var(--accent); }
.choice-main { font-weight: 700; display: block; }
.choice-sub { font-size: 13px; color: var(--muted); display: block; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 15px; cursor: pointer; border-top: 1px solid var(--line); }
.check input { width: 20px; height: 20px; margin: 0; flex: none; }
.check .price { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
.person-total { text-align: right; font-weight: 700; margin: 6px 0 0; }
.muted { color: var(--muted); font-size: 13px; font-weight: 400; }

.total-box { background: var(--accent); border-radius: 12px; padding: 14px 16px; font-weight: 700; margin-bottom: 12px; }
.total-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.total-row.sub { font-weight: 400; font-size: 14px; margin-bottom: 4px; }
.total-row.disc { color: var(--ok); font-weight: 700; }
.total-box .amt { font-size: 22px; color: var(--primary-dark); }

/* 横並びの切り替え（大人/子供、スキー/スノボ） */
.seg { display: flex; border: 2px solid var(--primary); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.seg label { flex: 1; text-align: center; padding: 10px 4px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--primary); position: relative; }
.seg label + label { border-left: 1px solid var(--primary); }
.seg label.selected { background: var(--primary); color: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:focus-within { outline: 2px solid var(--primary-dark); outline-offset: -4px; }
.sec-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .03em; }
details.bc { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.bc summary { font-weight: 700; cursor: pointer; padding: 4px 0; color: var(--primary); }
details.bc .note { margin: 6px 0 8px; }
.tag { display: inline-block; font-size: 12px; background: #fff3e0; color: var(--warn); border-radius: 999px; padding: 1px 8px; margin-left: 4px; font-weight: 700; }
.center { text-align: center; }
.pill { display: inline-block; background: var(--accent); color: var(--primary-dark); border-radius: 999px; padding: 4px 12px; font-weight: 700; margin: 4px 0 0; font-size: 14px; }
.note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.error { background: #fdecea; color: var(--danger); border: 1px solid #f5c2c0; border-radius: 10px; padding: 12px; margin-bottom: 12px; font-size: 14px; }
.error ul { margin: 6px 0 0; padding-left: 20px; }

/* ボタン */
.nav { display: flex; gap: 10px; margin-top: 8px; }
.btn { flex: 1; font-size: 16px; font-weight: 700; border-radius: 12px; padding: 14px; border: 0; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn.ghost { background: #fff; color: var(--primary); border: 2px solid var(--primary); flex: 0 0 35%; }

/* 確認画面 */
.sum-head { display: flex; justify-content: space-between; align-items: baseline; }
.summary p { margin: 0; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { margin: 0; word-break: break-all; }
.rider { padding: 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.rider:first-of-type { border-top: 0; }
.rider-price { white-space: nowrap; font-weight: 700; }
.link { background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; font-family: inherit; }

/* 完了画面 */
.done-card { text-align: center; }
.done-card .big-id { font-size: 28px; font-weight: 800; letter-spacing: 2px; color: var(--primary-dark); margin: 4px 0 16px; }
.check-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 36px; line-height: 64px; margin: 8px auto; }

/* 料金表ページ */
.price-card h2 { font-size: 17px; margin-bottom: 8px; }
.price-card .scroll { overflow-x: auto; margin: 0 -8px; }
.price-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.price-table th, .price-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.price-table thead th:not(:first-child) { text-align: right; }
.price-table tbody th { font-weight: 400; min-width: 8.5em; }
.price-table tbody th small { display: block; color: var(--muted); font-size: 11px; }
.price-table tbody th small.age { color: var(--primary); font-weight: 700; }
.price-table tbody th small.same { color: var(--muted); font-style: italic; }
.price-table tr:has(+ .child-row) th, .price-table tr:has(+ .child-row) td { border-bottom: 0; }
.price-table .child-row { background: #fafcff; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table tbody th small.shop-only { color: #b45309; font-weight: 700; }
.price-table .group-row th { background: var(--line); font-weight: 700; font-size: 12px; padding: 5px 6px; }
.book-link { display: inline-block; text-decoration: none; padding: 14px 40px; flex: none; }

footer { text-align: center; font-size: 12px; color: var(--muted); padding: 16px; }
footer a { color: var(--muted); }

/* 予約リクエストの案内（確認画面・完了画面） */
.notice { background: #fff8e1; border: 1px solid #ffe08a; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.6; }
.done-steps { text-align: left; max-width: 420px; margin: 0 auto 16px; padding-left: 22px; line-height: 1.7; }

/* 日付のカレンダー（予約画面の最初） */
.cal { margin: 8px 0 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 17px; }
.cal-nav { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 24px; line-height: 1; color: var(--primary); cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-w { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day { height: 44px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 16px; color: var(--text); cursor: pointer; }
.cal-day:hover:not(:disabled) { background: var(--accent); }
.cal-day:disabled { color: #c0c8d2; cursor: default; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--primary); }
.cal-day.in-range { background: var(--accent); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end, .cal-day.is-start:hover:not(:disabled), .cal-day.is-end:hover:not(:disabled) { background: var(--primary); color: #fff; font-weight: 700; }
.cal-picked { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.cal-picked div { background: var(--accent); border-radius: 10px; padding: 8px 10px; }
.cal-picked dt { font-size: 12px; color: var(--muted); }
.cal-picked dd { margin: 0; font-weight: 700; font-size: 15px; }

/* 特定商取引法に基づく表記のページ */
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.legal-table th { width: 32%; font-weight: 700; color: var(--text); }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .legal-table th, .legal-table td { display: block; width: 100%; padding: 4px 0; border: 0; } .legal-table th { padding-top: 14px; } .legal-table tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 10px; } .legal-table tr:last-child { border-bottom: 0; } }
mark.tbd { background: #fff59d; color: #6d4c00; border-radius: 4px; padding: 0 3px; font-weight: 700; }
