/* 屋外・直射日光下で読めることを最優先にしている。
   文字は大きめ、コントラストは強め、タップ領域は最低 56px。 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --ink: #16181d;
  --ink-sub: #5b6270;
  --line: #d5d9e0;
  --bg: #eef0f4;
  --card: #ffffff;
  --accent: #1b5fd9;
  --danger: #c0392b;
  --radius: 14px;
}

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.view { max-width: 560px; margin: 0 auto; }

/* ── ヘッダー ───────────────────────── */
.head {
  padding: 14px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.venue { font-size: 19px; font-weight: 700; }
.today { font-size: 14px; color: var(--ink-sub); margin-top: 2px; }

/* ── ブロック ───────────────────────── */
.block {
  background: var(--card);
  margin: 12px;
  padding: 16px;
  border-radius: var(--radius);
}
.block h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.block h2 .sub { font-size: 13px; font-weight: 400; color: var(--ink-sub); margin-left: 6px; }

/* ── ショートカット ─────────────────── */
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.shortcut {
  min-height: 68px;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.shortcut b { font-size: 16px; font-weight: 700; }
.shortcut span { font-size: 13px; color: var(--ink-sub); }
.shortcut[aria-pressed="true"] {
  border-color: var(--accent);
  background: #eaf1fd;
}
.shortcut[aria-pressed="true"] span { color: var(--accent); }

/* ── ステッパー ─────────────────────── */
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper { text-align: center; }
.stepper-label { font-size: 14px; color: var(--ink-sub); }
.stepper-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: var(--radius); margin-top: 4px;
  overflow: hidden; background: #fff;
}
.step {
  width: 56px; height: 56px; flex: none;
  border: 0; background: #f2f4f8;
  font-size: 26px; line-height: 1; color: var(--ink);
  cursor: pointer;
}
.step:disabled { color: #b9bfc9; }
.stepper-value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

.breakdown {
  margin: 12px 0 0; font-size: 14px; color: var(--ink-sub); text-align: center;
}

/* ── チップ ─────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px; padding: 0 16px;
  border: 2px solid var(--line); background: #fff;
  border-radius: 999px; font: inherit; color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: #eaf1fd; color: var(--accent); font-weight: 700; }

.text-input {
  width: 100%; margin-top: 10px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--ink);
}

/* ── チェック ───────────────────────── */
.check { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--accent); }
.terms { margin-top: 4px; font-size: 14px; color: var(--ink-sub); }
.terms summary { cursor: pointer; padding: 8px 0; }
.terms p { margin: 6px 0; }

/* ── 下部バー ───────────────────────── */
.spacer { height: 130px; }
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
}
.bar-fee { flex: 1; }
.bar-label { display: block; font-size: 13px; color: var(--ink-sub); }
.bar-amount { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.submit {
  min-height: 60px; padding: 0 28px;
  border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  font: inherit; font-size: 19px; font-weight: 700; cursor: pointer;
}
.submit:disabled { background: #a9b3c4; }
.bar-hint {
  position: fixed; left: 0; right: 0; bottom: calc(85px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; z-index: 9;
  padding: 10px 16px; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--danger);
  background: #fdecea; border-top: 1px solid #f5c6c0;
}

/* ── お知らせ ───────────────────────── */
.notice { margin: 12px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.notice-error { background: #fdecea; color: var(--danger); }
.notice-offline { background: rgba(0,0,0,.22); }

/* ── 完了画面 ───────────────────────── */
/* 完了画面は毎日同じ見た目にする。日付と動く時計で「今日・今」は示せるので、
   日替わりの色を足す意味がない。固定色のほうがスタッフが一目で見慣れた画面と分かる。 */
#done-view {
  min-height: 100dvh;
  background: #1b5fd9;
  color: #fff;
  max-width: none;
}
.done-inner {
  max-width: 560px; margin: 0 auto;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.done-date {
  font-size: 20px; font-weight: 700; letter-spacing: .04em;
  padding: 10px 24px; border: 2px solid currentColor; border-radius: 999px;
}
.done-card {
  width: 100%; margin-top: 20px; padding: 22px 18px;
  background: rgba(255,255,255,.14); border-radius: 20px;
}
.ticket-label, .done-fee-label { font-size: 14px; opacity: .85; }
.ticket-no {
  font-size: 46px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.done-fee-label { margin-top: 18px; }
.done-fee {
  font-size: 68px; font-weight: 800; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.done-breakdown { font-size: 17px; opacity: .9; margin-top: 6px; }
.clock {
  margin-top: 18px; font-size: 30px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.done-note { margin: 6px 0 0; font-size: 16px; opacity: .9; }
/* 本人のスマホで開く前提なので「次の方へ」は置かない。
   人数を間違えた時のやり直しだけを、目立たない形で残す。 */
.redo {
  margin-top: 34px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--radius);
  background: transparent; color: inherit; opacity: .72;
  font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer;
}
