/* フレーバー診断と共通の生成り・丸い操作部品・緑のアクセント。
   予約処理の状態クラスは両店共通。画面を固定せず、小画面や文字拡大時は自然にスクロールする。 */
:root {
  --bg:#f3efe8; --surface:#faf7f1; --cream:#292824; --mute:#69675f; --faint:#69675f;
  --chip-text:#393831; --gold:#217a43; --gold-soft:#e0f3e5; --gold-line:#dedbd3;
  --gold-line-strong:#d2d0c8; --hr:#dedbd3; --green:#06c755;
  --ink:#1f1c19; --on-ink:#f3efe8; --mute-ink:#bdb8ad;
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { margin:0; }
body { background:var(--bg); color:var(--cream); font:14px/1.6 'Hiragino Kaku Gothic ProN','Hiragino Sans','Noto Sans JP',sans-serif; -webkit-font-smoothing:antialiased; }
a { color:var(--gold); }
[hidden] { display:none !important; }
.view { width:100%; max-width:440px; margin:auto; padding:20px; }
.xscroll { scrollbar-width:none; }
.xscroll::-webkit-scrollbar { width:0; height:0; }
.brand { display:grid; grid-template-columns:32px auto; column-gap:10px; justify-content:center; align-items:center; text-align:left; }
.emblem { grid-row:1/3; width:32px; height:32px; display:block; }
.emblem img { width:100%; height:100%; object-fit:contain; border-radius:8px; }
.brand-name { font-size:12px; font-weight:800; line-height:1.2; }
.brand-sub { font-size:12px; line-height:1.4; margin-top:3px; color:var(--mute); }
.gold-hr { display:none; }
.page-title { text-align:center; margin:10px 0 12px; }
.page-title .en { display:none; }
.page-title .ja { font-size:22px; font-weight:750; line-height:1.3; letter-spacing:.02em; }
.card { background:var(--surface); border:1px solid var(--gold-line); border-radius:16px; margin-bottom:6px; }
.card-label { font-size:13px; font-weight:700; }
/* 日時の枠: 上下の余白9px・見出し→選択肢7px・行間6pxにそろえる */
.date-card,.time-card { padding:8px 12px; }
.date-card .card-label { display:block; line-height:21px; margin-bottom:7px; }
.date-row,.hour-row { display:flex; gap:6px; overflow-x:auto; margin:0 -12px; padding:0 0 0 12px; }
/* 横スクロールの右端にも左と同じ12pxを残す(右paddingはブラウザで効き方が違うため、gap6px＋6pxの詰め物で作る) */
.date-row::after,.hour-row::after { content:""; flex:0 0 6px; }
.date-chip { flex:0 0 44px; min-height:54px; padding:4px 0; display:flex; flex-direction:column; justify-content:center; border:1px solid var(--gold-line); border-radius:12px; text-align:center; cursor:pointer; }
.date-chip .wd { font-size:10px; color:var(--mute); line-height:1.2; }
.date-chip .day { font-size:19px; font-weight:700; line-height:1.25; }
.date-chip .mo { font-size:9px; line-height:1.2; color:var(--mute); }
.time-head { display:flex; justify-content:space-between; align-items:center; height:21px; margin-bottom:7px; }
#time-big { font-size:20px; font-weight:750; font-variant-numeric:tabular-nums; color:var(--mute); line-height:1; }
#time-big.on { color:var(--gold); }
.seg-label { display:none; }
.hour-btn::after { content:"時"; font-size:10px; margin-left:2px; font-weight:400; }
.minute-btn::after { content:"分"; font-size:10px; margin-left:2px; font-weight:400; }
.hour-row { margin-bottom:6px; }
.hour-btn { flex:0 0 44px; }
/* 選ぶもの(日・時・分)は角丸の四角、押すボタン(−/＋・確定)は丸 */
.hour-btn,.minute-btn { border:1px solid var(--gold-line); border-radius:12px; padding:9px 0; font-size:16px; font-weight:650; line-height:1.5; min-height:44px; text-align:center; cursor:pointer; }
.minute-row { display:flex; gap:6px; }
.minute-btn { flex:1; }
.date-chip.sel,.hour-btn.sel,.minute-btn.sel,.po-card .po-chip.sel { background:var(--gold-soft); border-color:var(--gold); color:#15592c; box-shadow:inset 0 0 0 1px var(--gold); }
.date-chip.sel .wd,.date-chip.sel .mo { color:#15592c; }
.minute-btn.off { background:#ebe8e0; color:#8a887f; pointer-events:none; }
.guest-card { display:flex; justify-content:space-between; align-items:center; padding:7px 12px; }
.stepper { display:flex; align-items:center; gap:15px; }
.step-btn { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; border:1px solid var(--gold-line); cursor:pointer; user-select:none; }
.step-btn svg { display:block; }
.step-btn.off { opacity:.35; pointer-events:none; }
#guest-num { font-size:21px; font-weight:700; }
.guest-unit { font-size:12px; margin-left:4px; }
/* S2 PASSPORT会員限定の枠は、生成りの画面で唯一の墨色の塗りつぶし(会員証の見立て)。
   緑の確定ボタンと競わないよう色は足さず、¥300 OFFだけ緑で光らせる。 */
.po-card { padding:8px 12px; background:var(--ink); border-color:var(--ink); color:var(--on-ink); }
.po-head { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:20px; }
.po-head .card-label { font-size:13px; font-weight:700; }
.po-badge { margin-left:auto; padding:2px 9px; border-radius:999px; background:var(--on-ink); color:var(--ink); font-size:10px; font-weight:800; letter-spacing:.04em; line-height:1.4; white-space:nowrap; }
#po-locked { padding-top:4px; }
#po-member { padding-top:1px; }
.po-note { font-size:11px; color:var(--mute-ink); margin-top:4px; }
.nw { white-space:nowrap; }
.po-note strong { color:var(--green); font-weight:800; }
.po-warn { font-size:12px; color:#805600; margin-top:8px; }
.po-card .po-warn { color:#f1c46b; }
.po-field { position:relative; display:flex; gap:6px; margin-top:6px; }
.po-lock { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--mute-ink); pointer-events:none; }
.po-field.open .po-lock { display:none; }
#po-input:disabled { background:rgba(243,239,232,.07); border:1px dashed var(--mute-ink); color:var(--mute-ink); padding-left:31px; opacity:1; -webkit-text-fill-color:var(--mute-ink); }
#po-input:disabled::placeholder { color:var(--mute-ink); }
.po-field:not(.open) .po-chip { display:none; }
.po-link { display:block; border:1px solid var(--on-ink); border-radius:999px; padding:7px; text-align:center; text-decoration:none; margin-top:7px; font-size:12px; font-weight:700; color:var(--on-ink); }
.po-link:active { background:rgba(243,239,232,.12); }
#po-input:disabled { font-size:13px; pointer-events:none; }
.po-field:not(.open) { cursor:pointer; }
.po-link.nudge { animation:s2nudge .8s ease; }
@keyframes s2nudge { 0%,100% { transform:none; } 25% { transform:scale(1.03); background:var(--green); color:#12331f; } }
#po-input { min-width:0; flex:1; border:1px solid var(--gold-line-strong); border-radius:10px; padding:8px 10px; background:var(--surface); color:var(--cream); font-family:inherit; font-size:16px; }
#po-input:focus { outline:2px solid var(--green); outline-offset:1px; }
.po-chip { display:flex; align-items:center; padding:0 10px; border:1px solid var(--mute-ink); border-radius:10px; color:var(--on-ink); cursor:pointer; font-size:12px; white-space:nowrap; }
.cta,#btn-submit,#handoff-open { display:block; width:100%; border:0; border-radius:999px; padding:14px 10px; font-size:15px; font-weight:700; text-align:center; background:#e1ded6; color:#77756d; cursor:pointer; text-decoration:none; line-height:1.5; }
.cta { pointer-events:none; }
.cta.on,#btn-submit,#handoff-open { background:var(--green); color:#12331f; pointer-events:auto; }
.cta .en { margin-left:6px; }
.booking-help { font-size:11px; color:var(--mute); margin:6px 0 3px; text-align:center; }
.booking-help summary { cursor:pointer; padding:4px; }
.form-note { font-size:11px; color:var(--mute); line-height:1.7; margin:5px 0; }
.tel-card { display:block; font-size:12px; padding:8px 0; }
.privacy-link { display:block; text-align:center; color:var(--mute); font-size:10px; padding:3px; }
.confirm-title { text-align:center; margin:10px 0 20px; }
.confirm-title .en,.done-en,.proc-en { font-size:11px; letter-spacing:.12em; color:var(--gold); font-weight:700; }
.confirm-title .ja,.done-ja,.proc-ja { font-size:21px; font-weight:700; margin-top:5px; }
.confirm-row { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:12px 0; border-bottom:1px solid var(--hr); }
.confirm-row .k { font-size:12px; color:var(--mute); flex-shrink:0; }
.confirm-row .v { font-size:14px; text-align:right; overflow-wrap:anywhere; }
.confirm-row .v.time { font-weight:750; font-size:22px; }
.form-notice { padding:10px 12px; border-radius:12px; background:var(--gold-soft); color:var(--cream); font-size:12px; line-height:1.8; margin-bottom:10px; }
#cf-friend-note { margin-top:16px !important; }
#btn-submit { margin-top:20px; }
#btn-submit.busy,.mybk-card.busy { opacity:.55; pointer-events:none; }
#submit-error,.mybk-error { display:none; color:#a5362c; font-size:12px; margin-top:10px; }
.mybk-error:not(:empty) { display:block; }
.back-link { display:block; text-align:center; margin-top:12px; padding:8px; color:var(--mute); font-size:12px; cursor:pointer; text-decoration:none; }
#view-complete,#view-cancelled,#view-processing,#view-handoff { padding-top:50px; text-align:center; }
#view-handoff { padding-top:28px; }
.ho-brand { margin-bottom:28px; }
.done-box { margin:24px 0; padding:20px 0; border-block:1px solid var(--hr); }
#done-when,.mybk-when,.proc-sum { font-size:22px; font-weight:700; }
#done-who,.mybk-meta { font-size:13px; color:var(--mute); margin-top:7px; }
.done-note,.done-cancel,.proc-note,.mybk-note,.handoff-hint { color:var(--mute); font-size:12px; line-height:1.8; }
.done-cancel { margin-top:16px; }
#btn-close,#btn-cancelled-close,#btn-mybk-close,.mybk-new { padding:13px; margin-top:18px; border:1px solid var(--gold-line-strong); border-radius:999px; text-align:center; cursor:pointer; font-size:13px; }
.mybk-card { padding:14px; }
.mybk-card .card-label { font-size:11px; color:var(--gold); }
.mybk-actions { display:flex; gap:8px; margin-top:12px; }
.mybk-btn { flex:1; text-align:center; border:1px solid var(--gold-line-strong); border-radius:999px; padding:10px 4px; font-size:12px; cursor:pointer; }
.mybk-btn.danger { border-color:#d9aaa4; color:#a5362c; }
.mybk-q { font-size:12px; margin-top:10px; }
.mybk-note { text-align:center; }
.proc-spinner { width:46px; height:46px; margin:0 auto 20px; }
.proc-spinner svg { animation:s2spin 1s linear infinite; }
.proc-sum,.proc-note { margin-top:18px; }
#handoff-open { margin-top:24px; }
.handoff-hint { margin-top:14px; }
@keyframes s2spin { to { transform:rotate(360deg); } }
@keyframes s2ring { from { stroke-dashoffset:170; } to { stroke-dashoffset:0; } }
@keyframes s2check { from { stroke-dashoffset:48; } to { stroke-dashoffset:0; } }
@media (max-height:700px) {
  .view { padding-top:12px; padding-bottom:12px; }
  .page-title { margin:6px 0; }
}
@media (max-width:350px) {
  .view { padding-left:14px; padding-right:14px; }
  .po-head .card-label { font-size:11px; }
  .po-badge { font-size:9px; }
}
@media (prefers-reduced-motion:reduce) {
  .proc-spinner svg { animation:none; }
  #done-ring,#done-check { animation:none !important; stroke-dashoffset:0; }
}
