/* ============================================================
   フロイデ店 予約フォーム（Firebase版）
   現行②（frontend-design/index.html）のインラインスタイルの値を
   そのままクラス化したもの。見た目は変えない（firebase-decisions.md §5）。
   デザイントークンは tokens/ 配下（現行②の _ds からの複製）。
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--color-cream-100); color: var(--text-body); font-family: var(--font-body); }
@keyframes spin { to { transform: rotate(360deg); } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-cream-400); border-radius: 999px; border: 2px solid var(--color-cream-100); }
input, select, textarea { font-family: var(--font-body); }

/* ---- ヘッダー（全ステップ共通・sticky） ---- */
.hdr { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 18px; background: var(--color-teal-600); color: var(--text-on-dark); box-shadow: var(--shadow-md); }
.hdr-name { font-family: var(--font-round); font-weight: 700; font-size: 16px; letter-spacing: .03em; white-space: nowrap; }
.hdr-name .lite { opacity: .8; font-weight: 500; }
.hdr-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.16); white-space: nowrap; }

/* ---- レイアウト ---- */
.page { min-height: 100vh; background: var(--color-cream-100); color: var(--text-body); font-family: var(--font-body); }
.wrap { display: flex; justify-content: center; padding: 26px 16px 70px; }
.col { width: 100%; max-width: 414px; }

/* ---- カード ---- */
.card { background: var(--surface-card); border: 1.5px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; }

/* ---- 入力欄 ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-family: var(--font-round); font-weight: 700; font-size: 13px; color: var(--text-heading); }
.req { color: var(--color-tomato-600); margin-left: 3px; }
.opt { color: var(--text-muted); font-weight: 500; }
.inp { font-size: 15px; color: var(--text-heading); background: var(--color-white); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 11px 14px; outline: none; width: 100%; }
.inp:focus { border-color: var(--color-tomato-500); box-shadow: var(--focus-ring); }
.sel { font-size: 15px; color: var(--text-heading); background: var(--color-white); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 11px 14px; outline: none; cursor: pointer; }
.sel-time { font-size: 15px; color: var(--text-heading); background: var(--color-white); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 10px 11px; outline: none; cursor: pointer; }
.ta { font-size: 15px; color: var(--text-heading); background: var(--color-white); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 11px 14px; outline: none; width: 100%; resize: vertical; font-family: var(--font-body); line-height: 1.6; }
.ta:focus { border-color: var(--color-tomato-500); box-shadow: var(--focus-ring); }
.err { font-size: 12px; color: var(--color-tomato-700); }
.help { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ---- ラジオカード（ご予約の種類・連絡方法） ---- */
.p-card { display: flex; align-items: center; gap: 12px; cursor: pointer; width: 100%; text-align: left; padding: 13px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: var(--color-white); box-shadow: none; }
.p-card.is-on { border-color: var(--color-tomato-600); background: var(--color-tomato-100); box-shadow: var(--focus-ring); }
.c-card { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; flex: 1 1 0; min-width: 0; padding: 12px 8px; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: var(--color-white); box-shadow: none; }
.c-card.is-on { border-color: var(--color-tomato-600); background: var(--color-tomato-100); box-shadow: var(--focus-ring); }
.r-ring { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--color-white); display: flex; align-items: center; justify-content: center; }
.is-on .r-ring { border-color: var(--color-tomato-600); }
.r-dot { width: 11px; height: 11px; border-radius: 50%; background: transparent; }
.is-on .r-dot { background: var(--color-tomato-600); }

/* ---- ボタン（現行②の _ds Button コンポーネントと同じ見た目） ---- */
.btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-round); font-weight: 700; letter-spacing: 0.02em; line-height: 1; cursor: pointer; transition: background var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft); }
.btn:active:not(:disabled) { transform: scale(0.97); box-shadow: none; }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn--lg { font-size: 17px; padding: 16px 34px; border-radius: var(--radius-lg); }
.btn--md { font-size: 15px; padding: 12px 24px; border-radius: var(--radius-md); }
.btn--primary { background: var(--brand-primary); color: var(--text-on-brand); border: 1.5px solid transparent; box-shadow: var(--shadow-sm); }
.btn--primary:hover:not(:disabled) { background: var(--brand-primary-hover); }
.btn--outline { background: transparent; color: var(--color-tomato-700); border: 1.5px solid var(--color-tomato-600); box-shadow: none; }
.btn--outline:hover:not(:disabled) { background: var(--color-tomato-100); }

/* ---- 注意ボックス ---- */
.note-amber { background: var(--color-amber-100); border: 1.5px solid var(--color-amber-300); border-radius: var(--radius-md); padding: 12px 14px; }
.note-amber p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--color-brown-700); }

/* ---- 月ピッカー ---- */
.pick-box { border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 12px 12px 14px; background: var(--color-white); }
.pick-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pick-nav button { width: 32px; height: 32px; border: 1.5px solid var(--border-hairline); background: var(--color-cream-50); border-radius: 8px; cursor: pointer; color: var(--text-heading); font-size: 15px; }
.pick-month { font-family: var(--font-round); font-weight: 700; font-size: 15px; color: var(--text-heading); }
.pick-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 5px; }
.pick-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

/* ---- トースト（画面下中央・2.8秒） ---- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--color-ink-900); color: var(--color-cream-50); padding: 13px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 700; font-family: var(--font-round); }

.hidden { display: none !important; }
