/* 11/27 本部：予約画面を新しいHP（arashiyu.jp）と同じ見た目に。
   お客様の予約画面だけで読む（スタッフ台帳は app.css のまま）。仕組みは book.js のまま、見た目だけを変える。
   色：和紙の地・墨の文字・焦茶のブランドカラー。角は立て、罫線は細く、余白で落ち着きを出す。 */
:root {
  --bg: #F4EFE6; --card: #FAF7F1; --ink: #1E1B17; --sub: #5B544A; --line: #D5CBBA; --line2: #E4DCCD;
  --accent: #5B431D; --accent-d: #47340F; --soft: #EFE7DA; --red: #9E3550; --green: #4A5841; --green-soft: #ECEEE6;
  --off: #EBE4D7; --off-ink: #6E665A; --umber: #2E2922; --on-umber: #EFE8DB; --on-umber-2: #BDB3A2; --moss: #4A5841;
  --f-display: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-latin: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}
/* ラテン文字の言語は欧文の書体（ベトナム語の記号も出る書体）。タイ語・韓国語は、その言語が読みやすい端末の書体 */
:lang(en), :lang(fr), :lang(de), :lang(es), :lang(it), :lang(vi), :lang(id) {
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif; --f-body: "EB Garamond", Georgia, serif;
}
:lang(zh-TW) { --f-display: "Noto Serif TC", "Shippori Mincho", serif; --f-body: "Noto Serif TC", "Noto Serif JP", serif; }
:lang(zh-CN) { --f-display: "Noto Serif SC", "Shippori Mincho", serif; --f-body: "Noto Serif SC", "Noto Serif JP", serif; }
:lang(ko), :lang(th) { --f-display: system-ui, -apple-system, sans-serif; --f-body: system-ui, -apple-system, sans-serif; }

html { scroll-padding-top: 124px; scroll-padding-bottom: 96px; }
body { font-family: var(--f-body); background: var(--bg); color: var(--ink); letter-spacing: .04em; }
:lang(en) body, body:lang(en) { letter-spacing: .01em; font-size: 16px; }
.serif, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: .12em; }
:lang(en) h2, :lang(fr) h2, :lang(de) h2, :lang(es) h2, :lang(it) h2, :lang(vi) h2, :lang(id) h2 { letter-spacing: .02em; font-size: 22px; font-weight: 500; }
a { color: #74583A; }

.app { background: var(--bg); max-width: 520px; }

/* 上の帯：ロゴ・店舗名・言語・進み具合 */
.top { background: rgba(244, 239, 230, .96); border-bottom: 1px solid var(--line); padding: 10px 18px 0; gap: 8px; backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: saturate(1.2) blur(6px); }
.top-row { gap: 10px; }
.top .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top .logo { height: 40px; width: auto; flex: none; }
.brand { font-family: var(--f-display); font-weight: 400; font-size: 17px; letter-spacing: .14em; line-height: 1.4; }
.brand-sub { font-size: 11px; letter-spacing: .06em; line-height: 1.5; }
.lang { font-size: 10px; letter-spacing: .04em; }
.lang select { border-radius: 0; border-color: var(--line); background: transparent; min-height: 40px; font-family: inherit; color: var(--ink); max-width: 9.5rem; }
.steps { gap: 0; }
.step { border-bottom: 2px solid transparent; padding: 10px 0 9px; font-size: 12px; letter-spacing: .04em; }
.step.done { border-color: transparent; color: var(--moss); }
.step.now { border-color: var(--accent); color: var(--ink); font-weight: 400; }

/* 写真の帯（店舗を選ぶ画面・コースを選ぶ画面） */
.hero { position: relative; overflow: hidden; background: var(--umber); }
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,27,23,.05) 25%, rgba(30,27,23,.72) 100%); }
.hero .cap { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #F4EFE6; display: flex; flex-direction: column; gap: 4px; }
.hero .eye { font-family: var(--f-latin); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.hero .ttl { font-family: var(--f-display); font-size: 24px; line-height: 1.5; letter-spacing: .14em; margin: 0; font-weight: 400; overflow-wrap: anywhere; }
.hero .meta { font-size: 12px; color: #EFE8DB; letter-spacing: .04em; line-height: 1.7; overflow-wrap: anywhere; }
.hero.big { height: 280px; }
.hero.store { height: 200px; }

main { padding: 24px 18px 28px; gap: 30px; }
section { gap: 12px; }
h2 { font-size: 20px; }
.eyebrow { font-family: var(--f-latin); font-size: 12px; letter-spacing: .3em; color: var(--moss); text-transform: uppercase; margin: 0 0 -6px; }
.lead { font-size: 13px; color: var(--sub); line-height: 1.9; margin: -4px 0 0; }
.note { font-size: 12px; line-height: 1.8; }

/* 店舗を選ぶカード */
.scard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.scard:hover { color: var(--ink); border-color: #BFB29C; }
.scard img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--off); }
.scard .b { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.scard .rg { font-family: var(--f-latin); font-size: 12px; letter-spacing: .28em; color: var(--moss); text-transform: uppercase; }
.scard .nm { font-family: var(--f-display); font-size: 20px; letter-spacing: .16em; line-height: 1.5; }
.scard .ds { font-size: 13px; line-height: 1.85; }
.scard dl { margin: 4px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: 12px; line-height: 1.75; color: var(--sub); }
.scard dd { margin: 0; overflow-wrap: anywhere; }
.scard .go { margin-top: 10px; min-height: 50px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; background: var(--accent); color: #F4EFE6; font-size: 14px; letter-spacing: .14em; }
.scard:hover .go { background: var(--accent-d); }
.scards { display: flex; flex-direction: column; gap: 18px; }

/* 選ぶボタン（コース・支払い・オプションなど） */
.pick { border-radius: 0; border: 1px solid var(--line); background: var(--card); padding: 15px 16px; gap: 4px; }
.pick[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--card); padding: 14px 15px; }
.pick .row1 { flex-wrap: wrap; row-gap: 2px; }
.pick .row1 .from { margin-left: auto; }
.pick .nm { font-family: var(--f-display); font-weight: 400; font-size: 16.5px; letter-spacing: .06em; line-height: 1.55; }
:lang(en) .pick .nm, :lang(fr) .pick .nm, :lang(de) .pick .nm, :lang(es) .pick .nm, :lang(it) .pick .nm, :lang(vi) .pick .nm, :lang(id) .pick .nm { letter-spacing: .01em; font-size: 19px; font-weight: 500; }
.pick .from { color: var(--ink); font-weight: 400; font-size: 14px; }
.pick .menu { font-size: 12px; color: var(--sub); }
.pick .desc { font-size: 13px; color: var(--ink); line-height: 1.85; }
.pick .extra { font-size: 12px; }
.pick .cimg { border-radius: 0; }
.recb, .paybadge { border-radius: 0; background: var(--accent); font-weight: 400; letter-spacing: .1em; padding: 1px 8px; }
.reqb { border-radius: 0; background: #F3E7CF; color: #6A4A12; font-weight: 400; }

/* 足湯：桶の写真を並べて選ぶ */
.tubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tubs .bath { flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 4px; padding: 12px 8px 14px; border: 1px solid transparent; background: transparent; position: relative; min-height: 0; }
.tubs .bath[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--card); padding: 11px 7px 13px; }
.tubs .bath .im { width: 100%; max-width: 150px; height: 128px; display: flex; align-items: center; justify-content: center; }
.tubs .bath .im img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; background: transparent; flex: none; filter: drop-shadow(0 6px 8px rgba(46,41,34,.22)); }
.tubs .bath .im.ph img { object-fit: cover; filter: none; border: 1px solid var(--line); }
.tubs .bath .nm { font-family: var(--f-display); font-size: 15px; letter-spacing: .1em; line-height: 1.5; font-weight: 400; }
.tubs .bath .d { font-size: 11px; color: var(--sub); line-height: 1.65; }
.tubs .bath .p { font-size: 14px; font-weight: 400; margin-top: 2px; }
.tubs .bath .ck { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #F4EFE6; display: none; align-items: center; justify-content: center; }
.tubs .bath[aria-pressed="true"] .ck { display: flex; }

/* 人数・時間・日にち */
.chip { border-radius: 0; border-color: var(--line); background: var(--card); min-height: 52px; }
.chip .tm { font-weight: 400; font-size: 16px; font-family: var(--f-latin); letter-spacing: .04em; }
.chip[aria-pressed="true"] { border: 1px solid var(--accent); background: var(--accent); color: #F4EFE6; }
.chip:disabled { background: transparent; border: 1px dashed var(--line); color: var(--off-ink); }
.day { border-radius: 0; border-color: var(--line); background: var(--card); min-width: 60px; min-height: 70px; }
.day .n { font-weight: 400; font-family: var(--f-latin); font-size: 19px; }
.day.sun { color: var(--red); } .day.sat { color: #2E5C8A; }
.day[aria-pressed="true"] { border: 1px solid var(--accent); background: var(--accent); color: #F4EFE6; }
.day[aria-pressed="true"] .m { color: #F4EFE6; }
.day.full:not([aria-pressed="true"]) { background: transparent; border: 1px dashed var(--line); color: var(--off-ink); }

/* チェック・入力 */
.box { border-radius: 0; border-color: #8A7F6E; background: var(--card); }
.opt[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
label.f input, label.f select, label.f textarea { border-radius: 0; border-color: var(--line); background: #FFFDF9; font-family: inherit; }
label.f input:focus, label.f select:focus, label.f textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.panel, .summary, .info, .alert { border-radius: 0; }
.panel { background: var(--card); border-color: var(--line); }
.summary { background: var(--card); border-color: var(--line); }
.summary .r { border-bottom-color: var(--line2); }
.summary .tot { font-family: var(--f-display); font-weight: 400; font-size: 18px; letter-spacing: .06em; }
.info { background: var(--soft); border: 1px solid var(--line2); }
.alert { background: #F6E6E8; color: #7A2236; border: 1px solid #E5C3CB; }
.optq .qty button { border-radius: 0; }
input[type="checkbox"] { accent-color: var(--accent); }

/* 下の帯：合計と次へ */
.bar { background: var(--umber); color: var(--on-umber); border-top: 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
.bar .sum .k { color: var(--on-umber-2); font-size: 11px; letter-spacing: .06em; }
.bar .sum .v { font-family: var(--f-display); font-weight: 400; font-size: 22px; letter-spacing: .06em; }
.btn { border-radius: 0; font-weight: 400; letter-spacing: .14em; font-family: inherit; }
.bar .btn#next { background: #F4EFE6; color: var(--umber); min-width: 7.5rem; }
.bar .btn#next:disabled { background: #4A4338; color: #A89E8D; }
.bar .btn.ghost { background: transparent; color: var(--on-umber); border: 1px solid #6B6253; }
.btn.line { border-radius: 0; color: var(--accent); border-color: var(--accent); background: transparent; }
.complete .ok { background: var(--soft); }
.complete .ok svg { stroke: var(--accent); }

@media (min-width: 520px) {
  .hero.big { height: 320px; }
  .hero.store { height: 230px; }
}

/* 下の帯：狭い画面でも金額とボタンが折り返さないように */
.bar { gap: 10px; }
.bar .sum { min-width: 0; }
.bar .sum .v { font-size: 20px; white-space: nowrap; }
.bar .btn { white-space: nowrap; padding: 0 16px; }
.bar .btn.ghost { padding: 0 12px; }
.bar .btn#next { min-width: 0; }
@media (max-width: 360px) { .bar .sum .v { font-size: 18px; } .bar .btn { padding: 0 12px; letter-spacing: .06em; } }
