:root {
  /* 青緑（2026-10 採用）。和紙×藍に戻すときは git の履歴から :root を戻す */
  --bg: #EEF4FB; --surface: #FFFFFF; --sheet: #F6FAFE; --nav: #FFFFFF;
  --line: #E2EBF5; --line2: #D5E1EE; --border: #C3D3E5; --dash: #93A8BF;
  --text: #1D2A3B; --muted: #536479; --dim: #6E8096; --sold-text: #7C8BA0; --sold-bg: rgba(29,42,59,0.04);
  --accent: #2B6BD3; --on-accent: #FFFFFF; --sel: #E3EEFC; --badge-bg: #D9F2E8; --badge-fg: #145E4B;
  --step: #EAF1F9; --scrim: rgba(18,32,56,0.45);
  --grad: linear-gradient(135deg, #2B6BD3 0%, #138A74 100%);
  --page: linear-gradient(180deg, #EAF2FD 0%, #EDF8F4 100%);
  --shadow: 0 6px 20px rgba(43,107,211,0.08);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --mincho: 'Shippori Mincho B1', serif;
  --sans: 'Zen Kaku Gothic New', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
:lang(zh-Hant) body, .app:lang(zh-Hant) { font-family: 'Noto Sans TC', var(--sans); }
.app:lang(zh-Hans) { font-family: 'Noto Sans SC', var(--sans); }
.app:lang(ko) { font-family: 'Noto Sans KR', var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(0.97); }
button:disabled { cursor: default; opacity: 0.5; transform: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; position: relative; }
.header { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 16px 20px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { display: flex; align-items: baseline; gap: 8px; }
.brand-ja { font-family: var(--mincho); font-size: 20px; font-weight: 700; letter-spacing: 0.12em; line-height: 1.2; }
.brand-en { font-family: var(--mincho); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--accent); }
.room { font-size: 12px; color: var(--muted); }
.lang-btn { height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--border); background: transparent; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.banner { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: 12px; }
.banner .muted { color: var(--muted); }
.banner.closed { background: var(--badge-bg); color: var(--badge-fg); justify-content: center; }

.chips { display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-h, 104px); z-index: 4; background: var(--bg); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

main { flex: 1; padding: 4px 20px calc(120px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.h2 { font-family: var(--mincho); font-size: 18px; font-weight: 700; margin: 12px 0 0; }
.lead { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.cat-title { font-family: var(--mincho); font-size: 15px; font-weight: 700; margin: 10px 0 0; display: flex; align-items: baseline; gap: 8px; }
.cat-title small { font-family: var(--sans); font-size: 11px; font-weight: 400; color: var(--muted); }

.card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.card.sold { background: var(--sold-bg); }
.card.sold .name, .card.sold .price { color: var(--sold-text); }
.thumb { flex-shrink: 0; position: relative; width: 76px; height: 76px; border-radius: 10px; border: none; padding: 0; background: var(--step); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.sold .thumb { opacity: 0.55; }
.thumb .count { position: absolute; right: 5px; bottom: 5px; display: flex; align-items: center; gap: 3px; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 6px; background: rgba(20,18,14,0.62); color: #fff; }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.name { font-size: 15px; font-weight: 700; }
.left { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--badge-bg); color: var(--badge-fg); white-space: nowrap; }
.desc { font-size: 12px; color: var(--muted); }
.price { font-size: 14px; font-weight: 500; }
.tag-sold { flex-shrink: 0; height: 36px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--dash); color: var(--muted); font-size: 12px; white-space: nowrap; }
.add { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; border: none; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.stepper { flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 2px; border-radius: 22px; background: var(--step); }
.stepper button { width: 40px; height: 40px; border-radius: 20px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }
.stepper button.plus { background: var(--accent); }
.stepper .q { min-width: 20px; text-align: center; font-weight: 700; }

.row-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.row-card .t { font-size: 15px; font-weight: 700; display: block; }
.row-card .s { font-size: 12px; color: var(--muted); display: block; }
.req-btn { flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.req-btn[aria-pressed="true"] { background: transparent; color: var(--muted); border-color: var(--border); }
.switch { flex-shrink: 0; width: 52px; height: 32px; border-radius: 16px; border: none; padding: 3px; background: var(--border); display: flex; justify-content: flex-start; transition: background 0.2s; }
.switch[aria-pressed="true"] { background: var(--accent); justify-content: flex-end; }
.switch span { width: 26px; height: 26px; border-radius: 13px; background: #fff; display: block; }

.bill { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bill-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bill-line .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill-line .st { font-size: 11px; color: var(--muted); display: block; }
.bill-sep { border-top: 1px solid var(--line2); padding-top: 10px; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line2); padding-top: 12px; }
.bill-total .v { font-family: var(--mincho); font-size: 26px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.btn-primary { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: 16px; border: none; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; text-decoration: none; width: 100%; }
.btn-ghost { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--dash); background: transparent; font-size: 14px; font-weight: 500; text-decoration: none; padding: 0 20px; }
.notice { padding: 14px; border-radius: 14px; background: var(--sel); font-size: 13px; }
.wifi { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wifi .k { font-size: 12px; color: var(--muted); display: block; }
.wifi .v { font-size: 15px; font-weight: 700; display: block; word-break: break-all; }
.foot { font-size: 11px; color: var(--muted); text-align: center; }

.cartbar { position: fixed; left: 50%; transform: translateX(-50%); width: min(448px, calc(100% - 32px)); bottom: calc(84px + var(--safe-b)); z-index: 6; }
.cartbar button { width: 100%; height: 56px; border-radius: 16px; border: none; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 15px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.cartbar .n { min-width: 26px; height: 26px; border-radius: 13px; background: var(--on-accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; margin-right: 10px; }

.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; height: calc(72px + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--nav); border-top: 1px solid var(--line); z-index: 6; }
.nav button { border: none; background: transparent; color: var(--dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; position: relative; }
.nav button[aria-current="page"] { color: var(--accent); }
.nav button { white-space: nowrap; }
.nav .dot { position: absolute; top: 12px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 4px; background: #B4442E; }

/* チャット */
.chat-main { padding-bottom: calc(150px + var(--safe-b)); }
.msgs { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.chat-empty { padding: 28px 16px; border-radius: 14px; border: 1px dashed var(--border); color: var(--muted); text-align: center; font-size: 13px; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 82%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg .who { font-size: 11px; color: var(--muted); padding: 0 4px; }
.bubble { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.me .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg.them .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .orig { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.bubble .orig span { display: block; font-size: 10px; letter-spacing: 0.06em; }
.msg .meta { font-size: 10px; color: var(--dim); padding: 0 4px; }
.composer { position: fixed; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; bottom: calc(72px + var(--safe-b)); z-index: 6; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); font: inherit; font-size: 16px; line-height: 1.4; color: var(--text); }
.composer textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.composer .send { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; border: none; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; }
body.kb .nav { display: none; }
body.kb .composer { bottom: var(--kb, 0px); padding-bottom: 10px; }

.overlay { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: flex; flex-direction: column; justify-content: flex-end; animation: fade 0.15s ease; }
.overlay .backdrop { flex: 1; border: none; background: transparent; }
.sheet { max-height: 85%; overflow-y: auto; background: var(--sheet); border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 480px; margin: 0 auto; animation: up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.grip { align-self: center; width: 40px; height: 4px; border-radius: 2px; background: var(--border); }
.sheet .line { display: flex; align-items: center; gap: 12px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg button { min-height: 48px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--border); background: transparent; font-size: 13px; font-weight: 500; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--sel); }
.lang-opt { height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border); background: transparent; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 500; }
.lang-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--sel); }

.viewer { position: fixed; inset: 0; z-index: 30; background: #0E0D0B; color: #F3EEE4; display: flex; flex-direction: column; animation: fade 0.15s ease; }
.viewer .top { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px 20px; font-size: 13px; color: #BDB5A6; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: none; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.stage { flex: 1; overflow: hidden; display: flex; align-items: center; touch-action: pan-y; user-select: none; }
.track { display: flex; width: 100%; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: transform; }
.track.dragging { transition: none; }
.slide { flex: 0 0 100%; aspect-ratio: 1 / 1; max-height: 60vh; display: flex; align-items: center; justify-content: center; background: #24221E; }
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.slide .ph { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: #8C8476; letter-spacing: 0.08em; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 0; }
.pager .nb { width: 44px; height: 44px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }
.dots { display: flex; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: #5A5348; transition: width 0.2s; }
.dots span.on { width: 18px; background: #F3EEE4; }
.viewer .detail { padding: 12px 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; }
.viewer .vname { font-family: var(--mincho); font-size: 20px; font-weight: 700; }
.viewer .vdesc { font-size: 12px; color: #BDB5A6; }
.viewer .vbtn { height: 56px; border-radius: 16px; border: none; background: #F3EEE4; color: #1F1C17; font-size: 16px; font-weight: 700; }
.viewer .vsold { height: 56px; border-radius: 16px; border: 1px dashed #5A5348; color: #BDB5A6; display: flex; align-items: center; justify-content: center; }

.done { position: fixed; inset: 0; z-index: 25; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; text-align: center; animation: fade 0.2s ease; }
.done .t { font-family: var(--mincho); font-size: 22px; font-weight: 700; }
.done p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.8; }

.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 40; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.2); max-width: calc(100% - 32px); animation: fade 0.2s ease; }
.center-msg { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; color: var(--muted); }
.skeleton { height: 96px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }

/* ---------- 青緑の見た目 ---------- */
body { background: var(--page) fixed; }
.header { background: var(--grad); color: #fff; border-bottom: none; border-radius: 0 0 26px 26px; padding: 18px 20px 14px; box-shadow: 0 6px 18px rgba(43,107,211,0); transition: padding 0.35s var(--spring), border-radius 0.35s ease, box-shadow 0.35s ease; }
.header .moon { color: #fff; display: flex; }
.brand-en { color: rgba(255,255,255,0.92); }
.room { color: rgba(255,255,255,0.9); }
.lang-btn { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.18); color: #fff; }
.banner { background: rgba(255,255,255,0.18); color: #fff; border-radius: 14px; max-height: 60px; overflow: hidden; transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, margin 0.35s ease; }
.banner .muted { color: rgba(255,255,255,0.9); }
.banner.closed { background: #fff; color: var(--badge-fg); }
.header.scrolled { padding-top: 10px; padding-bottom: 10px; border-radius: 0 0 20px 20px; box-shadow: 0 10px 26px rgba(43,107,211,0.28); }
.header.scrolled .banner { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: -10px; }
.chips { background: rgba(238,244,251,0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chip { background: #fff; border-color: var(--line2); }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(43,107,211,0.25); }
.card, .row-card, .bill, .wifi { border-radius: 22px; box-shadow: var(--shadow); }
.thumb { border-radius: 16px; }
.add, .stepper button.plus, .req-btn, .btn-primary, .cartbar button, .composer .send, .msg.me .bubble { background: var(--grad); border-color: transparent; }
.add { box-shadow: 0 6px 14px rgba(43,107,211,0.3); }
.req-btn[aria-pressed="true"] { background: transparent; border-color: var(--border); }
.switch[aria-pressed="true"] { background: var(--grad); }
.bill-total .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cartbar button { border-radius: 22px; box-shadow: 0 12px 30px rgba(43,107,211,0.35); }
.nav { background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: none; border-radius: 26px 26px 0 0; box-shadow: 0 -6px 24px rgba(43,107,211,0.1); }
.composer { background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.done { background: var(--page); }
.sheet { border-radius: 28px 28px 0 0; }

/* ---------- 動き ---------- */
/* 押したときに沈んで、離すとぽよんと戻る */
button, .row-card { transition: transform 0.4s var(--spring), box-shadow 0.3s ease; }
button:active, a.row-card:active { transform: scale(0.93); transition-duration: 0.08s; }
.card:active { transform: scale(0.985); }
/* 触ったところに青緑の光が広がる */
.tap-bloom { position: fixed; z-index: 60; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(43,107,211,0.38) 0%, rgba(19,138,116,0.22) 45%, rgba(19,138,116,0) 70%); animation: bloom 0.6s ease-out forwards; }
@keyframes bloom { to { transform: scale(10); opacity: 0; } }
/* カードは下からふわっと、少し時間差で */
.pre { opacity: 0; transform: translateY(18px) scale(0.97); }
.in { animation: rise 0.55s var(--spring) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
/* タブを切り替えると、進む方向へすべり込む */
.tab-enter { animation: slidein 0.4s cubic-bezier(0.2, 0.9, 0.25, 1) both; }
@keyframes slidein { from { opacity: 0; transform: translateX(var(--dir, 24px)); } to { opacity: 1; transform: none; } }
/* 下のタブ：選んだタブへバーが伸びて移動し、アイコンが跳ねる */
.nav .pill { position: absolute; top: 0; left: 0; width: 20%; height: 4px; display: flex; justify-content: center; transition: transform 0.5s var(--spring); pointer-events: none; }
.nav .pill::before { content: ''; width: 34px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad); }
.nav button[aria-current="page"] svg { animation: hop 0.5s var(--spring); }
@keyframes hop { 35% { transform: translateY(-6px) scale(1.15); } }
/* カートへ飛んでいく玉と、数字のはずみ */
.fly { position: fixed; z-index: 61; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); box-shadow: 0 4px 12px rgba(43,107,211,0.45); pointer-events: none; }
.cartbar .n.pop { animation: pop 0.5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.5); } }
.cartbar.arrive button { animation: rise 0.5s var(--spring) both; }
/* チャットの新しい吹き出しは、送った側からぽんと出る */
.msg.me.in { animation: bubble-r 0.45s var(--spring) both; transform-origin: bottom right; }
.msg.them.in { animation: bubble-l 0.45s var(--spring) both; transform-origin: bottom left; }
@keyframes bubble-r { from { opacity: 0; transform: translate(12px, 8px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes bubble-l { from { opacity: 0; transform: translate(-12px, 8px) scale(0.85); } to { opacity: 1; transform: none; } }

/* ---------- ホーム ---------- */
.home { gap: 12px; }
.hello { padding: 6px 2px 2px; }
.hello .greet { margin: 0; font-family: var(--mincho); font-size: 22px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hello .hello-lead { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.wifi-card { padding: 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.wifi-head { display: flex; align-items: center; gap: 10px; }
.wifi-head .wi { width: 40px; height: 40px; border-radius: 14px; background: var(--sel); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.wifi-head .t { font-size: 16px; font-weight: 700; }
.wifi-rows { display: flex; flex-direction: column; gap: 8px; }
.wifi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--step); }
.wifi-row .k { display: block; font-size: 11px; color: var(--muted); }
.wifi-row .v { display: block; font-size: 16px; font-weight: 700; word-break: break-all; font-variant-numeric: tabular-nums; }
.copy { flex-shrink: 0; min-height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 700; }
.order-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 96px; padding: 18px; border: none; border-radius: 24px; background: var(--grad); color: #fff; text-align: left; box-shadow: 0 14px 30px rgba(43,107,211,0.32); position: relative; overflow: hidden; }
.order-card::after { content: ''; position: absolute; right: -40px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.12); pointer-events: none; }
.order-card .oi { width: 52px; height: 52px; border-radius: 18px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.order-card .ot { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.order-card .t { font-size: 17px; font-weight: 700; }
.order-card .s { font-size: 12px; opacity: 0.92; }
.order-card .oa { flex-shrink: 0; width: 40px; height: 40px; border-radius: 20px; background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; border: none; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-align: left; min-height: 112px; }
.quick-btn .qi { position: relative; width: 38px; height: 38px; border-radius: 13px; background: var(--sel); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.quick-btn .qi .dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 5px; background: #C0392B; border: 2px solid #fff; }
.quick-btn .t { font-size: 13px; font-weight: 700; line-height: 1.3; }
.quick-btn .s { font-size: 11px; color: var(--muted); line-height: 1.35; }

/* ---------- ようこそ（初めてQRを読んだとき） ---------- */
.welcome { position: fixed; inset: 0; z-index: 18; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(24px + env(safe-area-inset-top, 0px)) 28px calc(28px + var(--safe-b)); color: #fff; text-align: center; background: var(--grad); overflow: hidden; }
.welcome::before, .welcome::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.09); pointer-events: none; }
.welcome::before { width: 380px; height: 380px; top: -140px; right: -150px; animation: drift 9s ease-in-out infinite alternate; }
.welcome::after { width: 260px; height: 260px; bottom: -90px; left: -110px; animation: drift 11s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-24px, 18px) scale(1.06); } }
.wl-lang { align-self: flex-end; position: relative; z-index: 1; }
.wl-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 360px; }
.wl-moon { color: #fff; margin-bottom: 6px; }
.wl-moon path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.6s ease-out 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wl-en { margin: 0; font-family: var(--mincho); font-size: 12px; letter-spacing: 0.4em; opacity: 0.9; }
.wl-title { margin: 0; font-family: var(--mincho); font-size: 28px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.35; }
.wl-room { margin: 2px 0 0; padding: 4px 14px; border-radius: 14px; background: rgba(255,255,255,0.2); font-size: 13px; font-weight: 700; }
.wl-lead { margin: 6px 0 0; font-size: 15px; line-height: 1.7; }
.wl-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.7; opacity: 0.88; }
.wl-start { position: relative; z-index: 1; width: 100%; max-width: 360px; height: 56px; border: none; border-radius: 28px; background: #fff; color: var(--accent); font-size: 16px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.wl-s1, .wl-s2, .wl-s3, .wl-s4, .wl-s5 { animation: rise 0.7s var(--spring) both; }
.wl-s1 { animation-delay: 0.5s; } .wl-s2 { animation-delay: 0.7s; } .wl-s3 { animation-delay: 0.9s; } .wl-s4 { animation-delay: 1.1s; } .wl-s5 { animation-delay: 1.3s; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (prefers-reduced-motion: reduce) { .wl-moon path { stroke-dashoffset: 0; } }
