/* HomeCame 予約のしくみ（予約の画面）。余白を広く、枠線を少なく、強い色は青1つ */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --fill: #f2f2f5;
  --fill-strong: #e6e6eb;
  --bg: #ffffff;
  --accent: #2f6da8;
  --accent-dark: #245a8d;
  --accent-light: #eaf1f9;
  --focus: #1f4d8f;
  --err: #c0392b;
  --err-bg: #fdf2f1;
  --radius: 14px;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-size: 16px; line-height: 1.75; letter-spacing: .01em;
  overflow-wrap: break-word; line-break: strict; word-break: auto-phrase;
}
a { color: var(--accent-dark) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.top { padding: 18px 20px 0; max-width: 600px; margin: 0 auto }
.brand { font-weight: 700; font-size: 17px; letter-spacing: .08em; color: var(--ink); text-decoration: none }
.wrap { max-width: 600px; margin: 0 auto; padding: 28px 20px 56px }

/* はじめ */
.hero { margin-bottom: 28px }
.eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em }
.hero h1 { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1.35; font-weight: 700; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance }
.lead { margin: 12px 0 0; color: var(--muted); font-size: 16px; word-break: auto-phrase }

/* 日時・場所・料金・お渡し */
.facts { list-style: none; margin: 0; padding: 4px 0; background: var(--fill); border-radius: 18px }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px }
.facts li + li { box-shadow: 0 -1px 0 var(--fill-strong) }
.facts b { display: block; font-weight: 600; font-size: 16px; line-height: 1.55 }
.facts span { display: block; color: var(--muted); font-size: 14px; line-height: 1.65; white-space: pre-line; margin-top: 2px }
.ic { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 1px }

.more { margin: 14px 4px 0; font-size: 14px; color: var(--muted) }
.more summary { cursor: pointer; color: var(--accent-dark); font-weight: 600; padding: 6px 0; list-style-position: outside }
.more ul { margin: 6px 0 0; padding-left: 1.3em }
.more li + li { margin-top: 4px }

.notice { margin: 24px 0 0; padding: 14px 18px; background: var(--accent-light); border-radius: var(--radius); font-weight: 600 }

/* 手順 */
.book { margin-top: 44px }
.step { margin: 0 0 44px }
.step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 21px; font-weight: 700; letter-spacing: .02em }
.step .n { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700 }
.hint { margin: 0 0 18px 42px; color: var(--muted); font-size: 14px }

/* 枠 */
.slots { border: 0; margin: 0; padding: 0; min-width: 0 }
.hour { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0 }
.hour .h { padding-top: 11px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: right }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.chip { position: relative; display: grid; place-items: center; min-height: 48px; padding: 6px 4px; border-radius: 12px; background: var(--fill); cursor: pointer; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; transition: background .15s }
.chip input { position: absolute; opacity: 0; pointer-events: none }
.chip:hover { background: var(--fill-strong) }
.chip:has(input:checked) { background: var(--accent); color: #fff }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px }
.chip.off { background: transparent; color: var(--faint); cursor: default; box-shadow: inset 0 0 0 1px var(--fill-strong) }
.chip.off span { text-decoration: line-through; text-decoration-thickness: 1px }
.chip small { display: block; font-size: 10.5px; font-weight: 500; line-height: 1.2; letter-spacing: 0 }
@media (min-width: 520px) { .chips { grid-template-columns: repeat(6, minmax(0, 1fr)) } }

/* 入力 */
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0 }
.field > label, .field > legend { display: block; padding: 0; margin: 0 0 8px; font-weight: 600; font-size: 16px; word-break: auto-phrase }
.opt-note { margin-left: 10px; font-weight: 400; font-size: 13px; color: var(--muted) }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 0; border-radius: 12px; background: var(--fill); appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px }
textarea { resize: vertical; min-height: 96px; line-height: 1.7 }
input::placeholder, textarea::placeholder { color: var(--faint) }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px }
input:focus, select:focus, textarea:focus { background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); outline: none }

/* 2〜3択（連絡先の種類・SNS） */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--fill); border-radius: 12px; margin-bottom: 10px }
.seg-opt { position: relative; display: grid; place-items: center; min-height: 42px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted) }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none }
.seg-opt:has(input:checked) { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12) }
.seg-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 1px }
.seg.two .seg-opt { min-height: 48px; font-size: 16px }
.seg.two .seg-opt:has(input[value=yes]:checked) { background: var(--accent); color: #fff }

.small { margin: 8px 2px 0; font-size: 13px; color: var(--muted) }
.err { margin: 0 0 8px; color: var(--err); font-size: 14px; font-weight: 600 }
.field:has(> .err:not([hidden])) :is(input, select, textarea, .seg) { box-shadow: inset 0 0 0 2px var(--err); background: var(--err-bg) }
.err-summary { margin-bottom: 28px; background: var(--err-bg); color: var(--err); border-radius: var(--radius); padding: 14px 18px; font-weight: 600 }
.err-summary p { margin: 0 }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }

/* 送る */
.actions { position: sticky; bottom: 0; margin: 0 -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); text-align: center }
.pick { margin: 0 0 8px; font-size: 14px; color: var(--muted) }
.pick b { color: var(--ink) }
.send { width: 100%; max-width: 420px; font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--accent); border: 0; border-radius: 14px; padding: 16px 24px; cursor: pointer; letter-spacing: .04em }
.send:hover { background: var(--accent-dark) }
.send:disabled { opacity: .55; cursor: wait }
.send-note { margin: 8px 0 0; min-height: 1.5em; font-size: 14px; color: var(--err); font-weight: 600 }
.send-note:empty { display: none }

/* 受け付けたあと・受付終了 */
.done { text-align: center; padding: 24px 0 8px }
.done:focus { outline: none }
.done-mark .ic { width: 64px; height: 64px; stroke-width: 1.3 }
.done h1 { margin: 14px 0 12px; font-size: clamp(24px, 6.4vw, 30px); line-height: 1.4; word-break: auto-phrase }
.done h2 { margin: 0 0 10px; font-size: 20px; word-break: auto-phrase }
.done p { margin: 0; color: var(--muted) }
.done p + p { margin-top: 8px }
.summary { margin: 32px 0 0; padding: 4px 0; background: var(--fill); border-radius: 18px }
.summary div { display: grid; grid-template-columns: 24px 64px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 18px }
.summary div + div { box-shadow: 0 -1px 0 var(--fill-strong) }
.summary dt { color: var(--muted); font-size: 14px; padding-top: 1px }
.summary dd { margin: 0; font-weight: 600; white-space: pre-line }
.after { margin: 28px 4px 0; font-size: 15px }
.after p { margin: 0 }
.after p + p { margin-top: 10px }
.addr { display: flex; gap: 12px; margin: 28px 4px 0; font-size: 14px; color: var(--muted) }
.addr small { font-size: 13px }

/* お店の一覧 */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px }
.events a { position: relative; display: block; padding: 18px 44px 18px 20px; background: var(--fill); border-radius: 18px; color: inherit; text-decoration: none }
.events a:hover { background: var(--fill-strong) }
.events .d { display: block; color: var(--accent); font-weight: 700; font-size: 14px }
.events b { display: block; font-size: 18px; margin: 2px 0 }
.events .p { display: block; color: var(--muted); font-size: 14px }
.events .go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--faint) }

.foot { max-width: 600px; margin: 0 auto; padding: 8px 20px 40px; font-size: 13px; color: var(--muted); text-align: center }
.foot p { margin: 0 }
.foot p + p { margin-top: 6px }
.foot .by { font-size: 12px; color: var(--faint) }
.foot .by a { color: var(--faint) }
