/* 直前枠 利用者ページ（/last-minute）2026-10-09
   約束：緑 #2D7A4F を基調、直前枠・割引・主ボタンはオレンジ #e65100。角丸16/12・影1段・8の倍数・タップ44px以上・ライト固定 */
:root {
  --green: #2D7A4F; --green-dark: #1a4a30; --green-soft: #e8f1ec;
  --orange: #e65100; --orange-soft: #fff1e8; --orange-deep: #bf4300;
  --ink: #1b1b1b; --ink-2: #4a5550; --muted: #6b7b72; --line: #e4ebe6;
  --bg: #f7faf8; --card: #ffffff; --danger: #c62828; --ok: #1f7a3f;
  --shadow: 0 2px 12px rgba(0,0,0,.06); --r: 16px; --r-s: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, 'Helvetica Neue', 'Hiragino Sans', 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 1.7; }
a { color: var(--green); }
button { font-family: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

/* ヘッダー */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--green-dark); font-weight: 800; letter-spacing: .08em; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.top .fac { font-size: 12.5px; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; }
.hero { padding: 6px 0 14px; }
.hero h1 { font-size: 22px; line-height: 1.45; margin: 0 0 6px; letter-spacing: .01em; }
.hero h1 b { color: var(--orange); }
.hero p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* 日付タブ（枠のある日だけ・2日以上で表示） */
.days { position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 80%, rgba(247,250,248,0)); padding: 8px 0 10px; margin: 0 -16px; }
.days .row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.days .row::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border-radius: 22px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.day small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.day.on { border-color: var(--orange); color: var(--orange-deep); background: var(--orange-soft); }
.day.on small { color: var(--orange-deep); }

/* 日付見出しとカード */
.dhead { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; }
.dhead h2 { font-size: 15px; margin: 0; }
.dhead span { font-size: 12px; color: var(--muted); }
.card, .card:visited, .card:hover { display: block; width: 100%; text-align: left; background: var(--card); border: 0; border-radius: var(--r); box-shadow: var(--shadow); padding: 0; margin: 0 0 12px; overflow: hidden; cursor: pointer; color: inherit; text-decoration: none; transition: transform .12s ease; }
.card:active { transform: scale(.995); }
.card.off { cursor: default; opacity: .62; }
.card .img { position: relative; aspect-ratio: 16 / 9; background: var(--green-soft); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); opacity: .7; }
.card .img .ph svg { width: 64px; height: 64px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card .img .off-badge { position: absolute; top: 10px; left: 10px; background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.card .body { padding: 12px 14px 14px; }
.card .fac { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.card .fac b { color: var(--ink-2); font-weight: 700; }
.card h3 { margin: 2px 0 6px; font-size: 16.5px; line-height: 1.4; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card .meta .time { font-weight: 800; color: var(--ink); font-size: 15px; }
.card .price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.card .price .now { font-size: 26px; font-weight: 800; color: var(--orange-deep); line-height: 1.1; }
.card .price .now small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.card .price .was { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.chip.few { background: var(--orange-soft); color: var(--orange-deep); }
.chip.hold { background: #eef1f0; color: var(--muted); }
.chip.full { background: #eef1f0; color: var(--muted); }
.card .go { font-size: 13.5px; font-weight: 800; color: var(--orange-deep); white-space: nowrap; }
.card.off .go { color: var(--muted); }

/* 空の状態 */
.empty { text-align: center; padding: 40px 12px 24px; }
.empty .art { width: 96px; height: 96px; margin: 0 auto 14px; color: var(--green); opacity: .55; }
.empty .art svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.empty h2 { font-size: 17px; margin: 0 0 8px; }
.empty p { margin: 0 auto; max-width: 320px; color: var(--muted); font-size: 13.5px; }
.empty a { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; }

/* スケルトン */
.sk { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.sk .b { background: linear-gradient(90deg, #eef2ef 25%, #f6f8f7 50%, #eef2ef 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.sk .b.img { aspect-ratio: 16/9; }
.sk .b.t { height: 14px; border-radius: 7px; margin: 12px 14px; }
.sk .b.t.w { width: 55%; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* 説明・フッター */
.how { margin-top: 28px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 16px 6px; }
.how h2 { font-size: 15px; margin: 0 0 8px; }
.how ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; }
.how li { margin-bottom: 6px; }
.how p { font-size: 12px; color: var(--muted); margin: 8px 0 10px; }
footer { margin-top: 28px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
footer a { color: var(--muted); text-decoration: none; }

/* トースト */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #233; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; max-width: calc(100% - 32px); opacity: 0; transition: .2s; z-index: 50; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 申込シート */
.sheet-bg { position: fixed; inset: 0; background: rgba(20,30,25,.45); opacity: 0; pointer-events: none; transition: .2s; z-index: 40; }
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: #fff; border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto; transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.sheet.on { transform: translateY(0); }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: #d8e0dc; margin: 4px auto 10px; }
.sheet .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sheet .head h2 { font-size: 17px; margin: 0; line-height: 1.4; }
.sheet .head .x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; color: var(--muted); cursor: pointer; margin: -8px -12px 0 0; }
.sheet .sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.sheet .place { display: flex; gap: 8px; align-items: flex-start; background: var(--green-soft); border-radius: var(--r-s); padding: 10px 12px; margin: 12px 0; font-size: 13px; color: var(--ink-2); }
.sheet .place a { white-space: nowrap; font-weight: 700; }
.field { margin: 14px 0; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field input[type=text], .field input[type=email] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); font-size: 16px; background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,122,79,.12); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: #fff; font-size: 22px; color: var(--green); cursor: pointer; }
.stepper button:disabled { color: #c5cdc8; }
.stepper output { min-width: 56px; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.total { background: var(--orange-soft); border-radius: var(--r-s); padding: 12px 14px; margin: 14px 0 6px; }
.total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total .l { font-size: 13px; color: var(--orange-deep); font-weight: 700; white-space: nowrap; }
.total .v { font-size: 24px; font-weight: 800; color: var(--orange-deep); font-variant-numeric: tabular-nums; white-space: nowrap; }
.total .d { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 12px 0; line-height: 1.6; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--green); }
details.legal { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
details.legal summary { cursor: pointer; font-weight: 700; color: var(--green); list-style: none; }
details.legal summary::-webkit-details-marker { display: none; }
details.legal dl { margin: 8px 0 0; display: grid; grid-template-columns: 6em 1fr; gap: 4px 8px; }
details.legal dt { color: var(--muted); }
details.legal dd { margin: 0; color: var(--ink-2); }
.err { color: var(--danger); font-size: 13px; min-height: 1.2em; margin: 4px 0; }
.pay { width: 100%; min-height: 54px; border: 0; border-radius: var(--r-s); background: var(--orange); color: #fff; font-size: 16.5px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(230,81,0,.25); }
.pay:disabled { opacity: .6; cursor: default; box-shadow: none; }
.pay-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

/* デモ用の擬似 Stripe 画面 */
.demo-bar { background: #fff8e1; color: #7a5a00; font-size: 12.5px; padding: 8px 12px; border-radius: var(--r-s); margin: 10px 0 0; }
.fake-stripe { position: fixed; inset: 0; z-index: 60; background: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.fake-stripe.on { display: flex; }
.fake-stripe .logo { font-weight: 800; font-size: 22px; color: #635bff; letter-spacing: .02em; }
.fake-stripe p { color: #555; font-size: 13.5px; margin: 0; max-width: 320px; }
.fake-stripe .btns { display: flex; gap: 10px; margin-top: 8px; }
.fake-stripe button { min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1.5px solid #ddd; background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.fake-stripe button.ok { background: #635bff; color: #fff; border-color: #635bff; }

@media (min-width: 600px) {
  .hero h1 { font-size: 26px; }
  .card { display: grid; grid-template-columns: 200px 1fr; }
  .card .img { aspect-ratio: auto; height: 100%; min-height: 150px; }
}

/* ---- 県チップ（一覧）・FAQ ---- */
.prefs { padding: 2px 0 6px; margin: 0 -16px; }
.prefs .row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.prefs .row::-webkit-scrollbar { display: none; }
.pref { flex: 0 0 auto; min-height: 44px; padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.pref small { font-size: 11px; font-weight: 600; color: var(--muted); }
.pref.on { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.pref.on small { color: var(--green); }
.days { top: 0; }
.faq { margin-top: 20px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 16px 8px; }
.faq h2 { font-size: 15px; margin: 0 0 6px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-size: 14px; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '－'; }
.faq p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }

/* ---- 詳細ページ ---- */
.detail { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-top: 6px; }
.detail .d-img { position: relative; aspect-ratio: 16 / 9; background: var(--green-soft); overflow: hidden; }
.detail .d-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail .d-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); opacity: .7; }
.detail .d-img .ph svg { width: 80px; height: 80px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.detail .off-badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.detail .d-body { padding: 14px 16px 18px; }
.detail .fac { font-size: 13px; color: var(--muted); }
.detail .fac b { color: var(--ink-2); }
.detail h1 { font-size: 21px; line-height: 1.4; margin: 4px 0 8px; }
.detail .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.detail .price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.detail .price .now { font-size: 28px; font-weight: 800; color: var(--orange-deep); line-height: 1.1; }
.detail .price .now small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.detail .price .was { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.detail .price .save { font-size: 12px; font-weight: 700; color: var(--orange-deep); background: var(--orange-soft); padding: 2px 8px; border-radius: 999px; }
.detail h2 { font-size: 15px; margin: 18px 0 8px; }
.detail h2 small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.slot-day h3 { font-size: 13.5px; margin: 10px 0 6px; color: var(--ink-2); }
.slot-day h3 span { font-size: 12px; color: var(--muted); font-weight: 600; }
.slot { display: grid; grid-template-columns: 4.6em 1fr auto; gap: 8px; align-items: center; width: 100%; min-height: 60px; padding: 10px 12px; margin-bottom: 10px; border: 1.5px solid var(--line); border-radius: var(--r-s); background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: inherit; }
.slot.on { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 2px 10px rgba(230,81,0,.12); }
.slot.on:active { transform: scale(.995); }
.slot.off { opacity: .55; cursor: default; }
.slot .act { font-size: 14px; font-weight: 800; color: #fff; background: var(--orange); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.slot .until { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.slot .t { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slot .pr { font-size: 15px; font-weight: 800; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.slot .pr small { font-size: 11px; color: var(--muted); font-weight: 600; }
.slot .pr s { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.slot .pr b { font-size: 11px; background: var(--orange-soft); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.detail .none { background: #f7faf8; border-radius: var(--r-s); padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.detail .none a { display: inline-block; margin-top: 6px; font-weight: 700; }
.detail .desc p { margin: 0; font-size: 14px; color: var(--ink-2); }
.detail .place-box .small { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.detail .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.detail .tags span { font-size: 11.5px; color: var(--green); background: var(--green-soft); padding: 3px 10px; border-radius: 999px; }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cta-bar b { font-size: 20px; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.cta-bar small { font-size: 11.5px; color: var(--muted); }
.cta-bar .pay { width: auto; min-height: 46px; padding: 0 18px; margin: 0; font-size: 15px; }
body:has(.cta-bar) .wrap { padding-bottom: 96px; }
@media (min-width: 600px) { .detail { display: grid; grid-template-columns: 1fr 1fr; } .detail .d-img { aspect-ratio: auto; min-height: 260px; height: 100%; } .cta-bar { display: none; } }
