  /* ===== 共通部品の見た目（注文画面v3と同じ決まり） ===== */
  .proto { font: 13px/1.5 system-ui, "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", sans-serif; background: #20232a; color: #e8e8e8; padding: 10px 12px; }
  .proto .row { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
  .proto label { display: flex; gap: 6px; align-items: center; }
  .proto select, .proto button { font: inherit; padding: 4px 8px; border-radius: 4px; border: 1px solid #555; background: #2d3139; color: #fff; max-width: 230px; }
  .proto .info { margin-top: 6px; color: #b9bec8; font-size: 12px; }
  .proto .sw { display: inline-block; width: 12px; height: 12px; border: 1px solid #888; vertical-align: -1px; margin: 0 2px 0 6px; }
  :root { --bg: #fff; --surface: #f6f6f6; --surface2: #eee; --text: #111; --muted: #666; --line: #ddd; --accent: #333; --on-accent: #fff; --accent-soft: #eee; --price: #333;
          --radius: 8px; --radius-card: 8px; --radius-chip: 8px; --font-h: sans-serif; --font-b: sans-serif; --weight-h: 700; }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-b); line-height: 1.55; -webkit-text-size-adjust: 100%; }
  button { font: inherit; color: inherit; cursor: pointer; }
  h1, h2, h3 { font-family: var(--font-h); font-weight: var(--weight-h); }
  .num, .price { font-variant-numeric: tabular-nums; }
  .price { color: var(--price); font-weight: 700; white-space: nowrap; }
  .muted { color: var(--muted); }
  .btn { background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius); padding: 10px 16px; font-weight: 700; min-height: 44px; }
  .btn:active { filter: brightness(.92); }
  .btn.sm { padding: 6px 12px; min-height: 36px; font-size: 14px; }
  .btn.line { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
  .btn[disabled] { opacity: .45; cursor: not-allowed; }
  .badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; text-align: center; line-height: 20px; }
  .chips { position: sticky; top: 0; z-index: 15; background: var(--bg); border-bottom: 1px solid var(--line); }
  .chips .track { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
  .chips .track::-webkit-scrollbar { display: none; }
  /* 横に続きがあるとき、端をぼかして「まだある」を見せる（その14） */
  .chips .track.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
  .chips .track.more-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px); mask-image: linear-gradient(to right, transparent, #000 48px); }
  .chips .track.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
  .chip { flex: none; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: var(--radius-chip); padding: 6px 14px; font-size: 14px; }
  .chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
  .chips.tab .track { gap: 22px; padding: 0 18px; }
  .chips.tab .chip { border: 0; border-radius: 0; padding: 12px 0 10px; border-bottom: 2px solid transparent; }
  .chips.tab .chip[aria-current="true"] { background: none; color: var(--text); border-bottom-color: var(--accent); }
  .step { display: inline-flex; align-items: center; gap: 4px; }
  .step button { width: 36px; height: 36px; border-radius: min(var(--radius), 8px); border: 1px solid var(--line); background: var(--surface); font-size: 18px; line-height: 1; padding: 0; }
  .step b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
  .switch { position: relative; width: 46px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); padding: 0; flex: none; }
  .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: left .15s; }
  .switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
  .switch[aria-checked="true"]::after { left: 21px; background: var(--on-accent); }

  /* ===== 操作感の共通ルール（UX1・2026-11-10）。全画面でこの決まりを使う =====
     ・OS・ブラウザの拡大は止めない（user-scalable=no や maximum-scale は使わない）。自動ズームの原因（16px未満の入力欄）を無くし、
       それでも拡大が残ったら、入力が終わったときに base.js が元の見え方に戻す。
     ・ボタンは押した瞬間に反応する（ダブルタップ拡大の待ちを外す・押した見た目）。指で押せる大きさは44px以上。 */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { font-size: max(16px, 1em) !important; }
  a, button, input, select, textarea, label, summary, [role="button"], [data-item] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .btn, .chip, .step button, .switch, .tile, .add, .opt, [data-item] { transition: transform .08s ease-out, filter .08s ease-out, background-color .12s; }
  .btn:active:not([disabled]), .chip:active, .step button:active:not([disabled]), .tile:active, .add:active, button.opt:active { transform: scale(.96); filter: brightness(.93); }
  .btn.sm { min-height: 44px; }
  .step button { width: 44px; height: 44px; }
  .chip { min-height: 44px; }
  /* スイッチは見た目の大きさのまま、指が当たる範囲だけ上下に広げる */
  .switch::before { content: ""; position: absolute; inset: -8px -2px; }
  /* 消す・取り消す（その14）：目立たせない。押す範囲は高さ44px。押したら必ず確かめる */
  .quiet { background: none; border: 0; padding: 0 4px; min-height: 44px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .quiet:disabled { opacity: .45; cursor: not-allowed; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  :focus:not(:focus-visible) { outline: none; }
  body.rk-lock { position: fixed; left: 0; right: 0; overflow: hidden; }   /* シート・ダイアログを開いている間、裏のページを動かさない */
  @keyframes rk-bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
  .rk-bump { animation: rk-bump .28s ease-out; }
  @media (prefers-reduced-motion: reduce) { *, ::before, ::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; } }

  /* ===== つながりが切れたときの知らせ（接続切れの便、2026-11-17）。帯は切れたときにだけ作られる（ふだんは無い） ===== */
  .rk-conn { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 56px; padding: 10px 16px; background: #B3261E; color: #fff; }
  .rk-conn-t b { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; }
  .rk-conn-t small { display: block; font-size: 14px; font-weight: 500; opacity: .92; }
  .rk-conn-btn { font: inherit; font-size: 16px; font-weight: 700; min-height: 48px; padding: 8px 18px; border-radius: 10px; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
  .rk-conn.ok { background: #1B6E3C; color: #fff; }
  [data-look="noir"] .rk-conn { background: #FF6961; color: #0A0A0B; }
  [data-look="noir"] .rk-conn.ok { background: #30D158; color: #0A0A0B; }
  [data-look="noir"] .rk-conn-btn { border-radius: 999px; }
  /* 帯が出ている間は、新着の帯・夜間停止の帯をその下に止める（上で重ならないように） */
  body:has(> .rk-conn) .newbar, body:has(> .rk-conn) #rk-idle { top: var(--rk-conn-h, 56px) !important; }
