/* お客様の注文画面（app.css の上に重ねる）
   方向：夜のアサイー色の地に、真珠のような光沢文字・細い線・小さな英字ラベル。
   動き：店名が1文字ずつ現れる → 説明 → 商品が順に浮かぶ。背景はベリー色の光がゆっくり漂う（fx.js）。 */
body.guest {
  --bg: #0e0711;
  --bg-2: #1a0d1e;
  --ink: #f3ebf1;
  --sub: #bfaeba;
  --mute: #8f7d8b;
  --line: rgba(243, 222, 236, .14);
  --accent: #e9c46a;               /* 差し色はバナナの金だけ */
  --display: "Instrument Serif", "Times New Roman", serif;
  --body: "Zen Kaku Gothic New", -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pearl: linear-gradient(168deg, #fff7fb 0%, #c9a9c4 18%, #f7e9f2 32%, #ffffff 42%, #a77fa2 62%, #f5e6ef 82%);
  color-scheme: dark;
  background: radial-gradient(120% 70% at 50% -10%, #3a1640 0%, var(--bg-2) 40%, var(--bg) 80%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  letter-spacing: .02em;
}
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.guest .top, .guest main, .guest .cartbar, .guest .sheet-bg { position: relative; z-index: 1; }
.guest .top { position: sticky; z-index: 20; }
.guest .cartbar { position: fixed; z-index: 30; }
.guest .sheet-bg { position: fixed; z-index: 40; }

/* ヘッダー：線1本だけ */
.guest .top { background: rgba(14, 7, 17, .55); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: none; border-bottom: 1px solid var(--line); }
.guest .top .wrap { min-height: 52px; }
.guest .brand { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 24px; letter-spacing: 0; }
.guest .seat { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; font-size: 11px; font-weight: 700; letter-spacing: .24em; padding: 6px 12px; }
.guest .seat.takeout { color: var(--accent); border-color: rgba(233, 196, 106, .5); }

/* ヒーロー */
.guest .hero { padding: 44px 0 26px; }
.guest .eyebrow { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.guest .hero-name { margin: 14px 0 6px; font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(80px, 27vw, 190px); line-height: .82; letter-spacing: -.05em; }
.guest .hero-name span { display: inline-block; background: var(--pearl); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.guest .hero-copy { margin: 18px 0 0; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--sub); font-size: 13px; line-height: 1.9; }
.guest .hero-copy .rule { height: 1px; background: var(--accent); margin-top: .95em; opacity: .8; }

/* 種類の切り替え：細い線のタブ */
.guest .catnav { position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 10; display: flex; gap: 22px; overflow-x: auto; margin: 8px -16px 0; padding: 14px 16px 12px; background: linear-gradient(rgba(14,7,17,.92) 75%, rgba(14,7,17,0)); scrollbar-width: none; }
.guest .catnav::-webkit-scrollbar { display: none; }
.guest .catnav a { flex: none; position: relative; text-decoration: none; color: var(--sub); font-size: 12px; font-weight: 700; letter-spacing: .2em; padding: 6px 0; min-height: 32px; transition: color .25s; }
.guest .catnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.guest .catnav a:hover, .guest .catnav a:focus-visible { color: var(--ink); }
.guest .catnav a:hover::after, .guest .catnav a:focus-visible::after { transform: scaleX(1); }

/* 見出し：番号＋大きな斜体の英字＋小さな日本語 */
.guest h2.sec { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; margin: 40px 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; color: var(--ink); }
.guest h2.sec .idx { font: 600 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; color: var(--accent); }
.guest h2.sec .en { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: -.02em; }
.guest h2.sec .ja { font-size: 10px; font-weight: 700; color: var(--mute); letter-spacing: .3em; }
.guest .secnote { margin: 10px 0 0; font-size: 12px; color: var(--mute); letter-spacing: .08em; }

/* 商品：箱ではなく、線で区切った行 */
.guest .menu { display: block; }
.guest .item { position: relative; display: grid; grid-template-columns: 1fr 96px; gap: 16px; align-items: start; padding: 22px 0 20px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow: visible; }
.guest .item.off { opacity: .45; }
.guest .item .no { position: absolute; top: 24px; left: 0; font: 500 10px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--mute); letter-spacing: .1em; }
.guest .item .body { order: 1; padding: 0 0 0 30px; gap: 6px; min-width: 0; display: flex; flex-direction: column; }
.guest .item .photo { order: 2; width: 96px; height: 96px; margin: 2px 0 0; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #c47ac0 0%, #6d2a73 38%, #2c0f31 78%); color: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 18px 40px -18px rgba(196,122,192,.7); }
.guest .item .photo.yogurt { background: radial-gradient(circle at 32% 28%, #ffffff 0%, #efe6ea 45%, #b8a7b3 100%); color: #2a1530; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 18px 40px -18px rgba(255,240,250,.45); }
.guest .item .photo.drink { background: radial-gradient(circle at 32% 28%, #cfe3b5 0%, #7f9d68 45%, #3b5230 100%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px -18px rgba(160,200,130,.55); }
.guest .item .photo img { border-radius: 50%; }
.guest .ph { font-family: var(--display); font-style: italic; font-size: 22px; display: grid; justify-items: center; line-height: 1; }
.guest .ph small { font: 700 9px/1 var(--body); letter-spacing: .3em; margin-top: 6px; opacity: .8; }
.guest .item .name { font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.guest .item .desc { font-size: 12px; line-height: 1.8; color: var(--sub); }
.guest .item .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 0; }
.guest .item .price { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; background: var(--pearl); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.guest .badge { border-radius: 0; font-size: 10px; font-weight: 700; letter-spacing: .15em; padding: 3px 8px; }
.guest .badge.left { background: transparent; color: var(--accent); border: 1px solid rgba(233, 196, 106, .4); }
.guest .badge.few { background: rgba(233, 196, 106, .15); color: var(--accent); }
.guest .badge.out { background: transparent; color: #f2a3a3; border: 1px solid rgba(242,163,163,.4); }

/* トッピング：小さな2列 */
.guest .menu.topping { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.guest .menu.topping .item { grid-template-columns: 1fr; }
.guest .menu.topping .item .body { padding-left: 26px; }
.guest .menu.topping .item .desc { display: none; }
.guest .menu.topping .item .price { font-size: 24px; }

/* 数量 */
.guest .qty { gap: 0; border: 1px solid var(--line); }
.guest .qty button { width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 20px; font-weight: 400; transition: background .25s, color .25s; }
.guest .qty button.plus { background: var(--ink); color: var(--bg); }
.guest .qty button.plus:hover { background: var(--accent); }
.guest .qty button:disabled { opacity: .3; }
.guest .qty output { min-width: 30px; font: 500 16px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.guest .item.bump .qty output { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); color: var(--accent); } }

/* お知らせ・注文中 */
.guest .muted, .guest .small.muted { color: var(--mute); }
.guest .card { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 0; box-shadow: none; color: var(--ink); }
.guest .card a { color: var(--accent); }
.guest .notice { border-radius: 0; }

/* カート */
.guest .cartbar { background: rgba(14, 7, 17, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.guest .cartbar:not(.hidden) { animation: up .5s var(--ease); }
@keyframes up { from { transform: translateY(100%); } }
.guest .btn { border-radius: 0; background: var(--ink); color: var(--bg); font-weight: 700; letter-spacing: .12em; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 24px rgba(196,122,192,.35); transition: background .25s, box-shadow .25s; }
.guest .btn:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 0 32px rgba(233,196,106,.45); }
.guest .btn.big { min-height: 56px; font-size: 15px; }
.guest .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.guest .btn.takeout { background: var(--accent); color: #1a0d1e; }
.guest .btn:focus-visible, .guest .qty button:focus-visible, .guest .catnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.guest .sheet-bg { background: rgba(5, 2, 6, .6); }
.guest .sheet { background: #160b19; color: var(--ink); border-radius: 0; border-top: 1px solid var(--line); }
.guest .sheet h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 36px; }
.guest .line { border-bottom-color: var(--line); }
.guest .total { font-family: var(--display); font-weight: 400; font-size: 30px; }
.guest .choice label { border: 1px solid var(--line); border-radius: 0; }
.guest .choice label:has(input:checked) { border-color: var(--accent); background: rgba(233,196,106,.08); }
.guest .choice .s { color: var(--sub); }

/* 注文後 */
.guest .done .lbl { color: var(--sub); letter-spacing: .2em; font-size: 12px; }
.guest .code { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 88px; background: var(--pearl); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guest .steps div { border-radius: 0; background: transparent; border: 1px solid var(--line); color: var(--mute); font-size: 13px; letter-spacing: .1em; }
.guest .steps div.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.guest .steps div.now { box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(233,196,106,.5); }
.guest .ready-msg { color: var(--accent); }

/* ===== 動き ===== */
@media (prefers-reduced-motion: no-preference) {
  /* 店名が1文字ずつ（最初の表示だけ） */
  body.guest:not(.fx-done) .hero-name span { animation: arrive .9s var(--ease) both, sheen 7s ease-in-out 1s infinite alternate; animation-delay: calc(var(--i) * 70ms + .15s), 1.2s; }
  body.guest.fx-done .hero-name span { animation: sheen 7s ease-in-out infinite alternate; }
  body.guest:not(.fx-done) .eyebrow { animation: fade .8s var(--ease) both; }
  body.guest:not(.fx-done) .hero-copy { animation: fade .9s var(--ease) .6s both; }
  body.guest:not(.fx-done) .hero-copy .rule { animation: line .9s var(--ease) .7s both; }
  body.guest:not(.fx-done) .catnav { animation: fade .8s var(--ease) .8s both; }
  body.guest:not(.fx-done) .menu .item { animation: rise .8s var(--ease) both; animation-delay: calc(.9s + var(--n) * 70ms); }
  body.guest:not(.fx-done) h2.sec { animation: fade .8s var(--ease) .85s both; }
  .guest .item .price { animation: sheen 9s ease-in-out infinite alternate; }
  .guest .item .photo { transition: transform .5s var(--ease); }
  .guest .item:hover .photo { transform: scale(1.05) rotate(-4deg); }
  /* スクロールで見出しがふわっと（対応ブラウザのみ） */
  @supports (animation-timeline: view()) {
    body.guest.fx-done h2.sec .en { animation: track linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
  @keyframes arrive { from { opacity: 0; transform: translateY(.35em); filter: blur(8px); } }
  @keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes line { from { transform: scaleX(0); transform-origin: left; } }
  @keyframes track { from { letter-spacing: .12em; opacity: .2; } }
}
@media (prefers-reduced-motion: reduce) {
  .guest *, .guest *::before, .guest *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 720px) {
  .guest .menu:not(.topping) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .guest .menu.topping { grid-template-columns: repeat(4, 1fr); }
}

/* 狭い画面：トッピングは1列、横はみ出しを止める */
body.guest { overflow-x: clip; }
@media (max-width: 480px) {
  .guest .menu.topping { grid-template-columns: 1fr; }
  .guest .eyebrow span:last-child { text-align: right; }
}

/* 特典・受付停止・持ち帰り・営業時間 */
.guest .perk { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 12px; color: var(--ink); letter-spacing: .06em; }
.guest .perk .star { color: var(--accent); }
.guest .perk a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(233,196,106,.4); }
.guest .closed-note { margin: 0 0 14px; border: 1px solid rgba(242,163,163,.4); background: rgba(242,163,163,.08); color: #f6c4c4; }
.guest .preorder { margin: 0 0 6px; padding: 12px 14px; border: 1px solid rgba(233,196,106,.35); font-size: 12px; color: var(--sub); line-height: 1.7; }
.guest .preorder b { color: var(--accent); letter-spacing: .1em; }
.guest .hours { margin: 26px 0 0; letter-spacing: .08em; }
.guest .eyebrow-s { margin: 0 0 4px; font-size: 9px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }

/* トッピングのおすすめ */
.guest .topgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 18px; }
.guest .topchip { position: relative; display: grid; gap: 4px; text-align: left; padding: 16px 14px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; font-weight: 700; font-size: 15px; transition: border-color .25s, background .25s; min-height: 72px; }
.guest .topchip .tp { font: 400 18px/1 var(--display); color: var(--sub); }
.guest .topchip .tq { position: absolute; top: 10px; right: 12px; font: 600 12px/1 ui-monospace, Menlo, monospace; color: var(--accent); }
.guest .topchip.on { border-color: var(--accent); background: rgba(233,196,106,.08); }
@media (prefers-reduced-motion: no-preference) { .guest .topchip:active { transform: scale(.97); } }

/* 受け取り時間 */
.guest .pickup { margin: 6px 0 14px; }
.guest .pickup span { font-size: 12px; letter-spacing: .14em; color: var(--sub); }
.guest .pickup select { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; padding: 12px; font-size: 16px; }
.guest .pickup select option { background: #160b19; }

/* 注文後のフォロー案内 */
.guest .follow { margin: 18px 0; padding: 18px 16px; border: 1px solid var(--line); text-align: center; }
.guest .follow p { margin: 0 0 12px; color: var(--sub); font-size: 13px; }
.guest .follow-links { display: grid; gap: 8px; }
.guest .follow-links .btn { min-height: 48px; font-size: 13px; }

/* 日本語の見出しは斜体にしない（英字用の書体に日本語がないため） */
.guest .sheet h3 { font-family: var(--body); font-style: normal; font-weight: 700; font-size: 22px; letter-spacing: .04em; }

/* 待ち時間・言語・スタンプ・アレルギー・要望 */
.guest .infobar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; }
.guest .wait { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; color: var(--sub); }
.guest .wait i { width: 7px; height: 7px; border-radius: 50%; background: #8fd19e; box-shadow: 0 0 10px rgba(143,209,158,.8); }
@media (prefers-reduced-motion: no-preference) { .guest .wait i { animation: pulse 2s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .35; } } }
.guest .langbtn { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; min-height: 36px; font-size: 11px; letter-spacing: .2em; }
.guest .stamps { margin: 0 0 16px; padding: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.guest .st-hd { display: flex; justify-content: space-between; align-items: baseline; }
.guest .st-hd b { font: 400 26px/1 var(--display); }
.guest .dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 10px; }
.guest .dot { aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(243,222,236,.25); display: grid; place-items: center; font: 500 11px/1 ui-monospace, Menlo, monospace; color: var(--mute); max-width: 48px; justify-self: center; width: 100%; }
.guest .dot.on { border: 0; background: radial-gradient(circle at 32% 28%, #f3d98b, #e9c46a 45%, #a57e2a); color: #2a1530; font-size: 16px; box-shadow: 0 0 16px rgba(233,196,106,.45); }
.guest .st-note { margin: 0; font-size: 12px; color: var(--sub); line-height: 1.7; }
.guest .st-note b { color: var(--accent); margin-right: 6px; }
.guest .item .alg { font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.guest .reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guest .reqs select, .guest .pickup input { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; padding: 12px; font-size: 16px; width: 100%; }
.guest .reqs span { font-size: 12px; letter-spacing: .14em; color: var(--sub); }
.guest .reqs select option { background: #160b19; }
.guest .usestamp { display: flex; gap: 12px; align-items: center; margin: 12px 0 0; padding: 12px 14px; border: 1px solid rgba(233,196,106,.5); background: rgba(233,196,106,.08); font-weight: 700; }
.guest .usestamp input { width: 22px; height: 22px; accent-color: var(--accent); }
.guest .usestamp .s { margin-left: 10px; color: var(--accent); }
.guest .rcpt { color: var(--accent); text-decoration: none; font-size: 13px; letter-spacing: .1em; }
