/* ==========================================================================
   体験デモ(demo.html)だけで使う見た目。動きは js/demo.js、中身は js/demo-data.js。

   - 明るさ: ライトが既定。上の「ライト / ダーク」で切り替える(.demo-section の data-theme。
     選んだ方はその人のブラウザに覚える)。色はすべて下の変数で、舞台・端末の縁・イラスト・
     5つの画面の中まで一度に切り替わる。画面の中の色は、本物の ZEUS のライト・ダークに合わせてある
   - 幅 1180px 以上: 客席・厨房・ホールの3つの場所に、5つの画面を並べる(お店の見取り図のように)
   - それより狭い: 上の切り替え(タブレット/キッチン/ディシャップ/ハンディ・ウォッチ)で1つずつ見せる
     (この幅は js/demo.js の tabsQuery と同じ。変えるときは両方)
   - 端末は iPad・iPhone らしく、金属の縁・黒い額縁・カメラ・縁のボタンまで描く
   - 画面の中の字は、画面の幅に合わせて大きさが変わる(container query の cqw)
   ========================================================================== */

/* ---- 色(ライト) ---- */
.demo-section {
  /* 舞台 */
  --dm-bg: linear-gradient(180deg, #f6f9fc 0%, #ecf2f8 100%);
  --dm-glow-1: rgba(47, 210, 255, 0.12);
  --dm-glow-2: rgba(255, 138, 61, 0.08);
  --dm-text: #1b2430;
  --dm-muted: #586273;
  --dm-faint: #7a8798;
  --dm-zone-bg: rgba(255, 255, 255, 0.6);
  --dm-zone-line: #c4d1e0;
  --dm-zone-label-bg: #ffffff;
  --dm-btn-bg: #ffffff;
  --dm-btn-line: #d2dbe6;
  --dm-btn-hover: #eef3f8;
  --dm-btn-text: #1b2430;
  --dm-off-text: #8a96a6;
  --dm-accent: #0b9fd1;
  --dm-accent-text: #0b3a52;
  --dm-accent-soft: #e5f6fd;
  --dm-accent-line: #8ed5ee;
  --dm-label-bg: #0b9fd1;
  --dm-label-text: #ffffff;
  --dm-done: #16a36f;
  --dm-done-soft: #e6f6ee;
  --dm-done-line: #84d4b0;
  --dm-done-text: #0f5d40;
  --dm-panel: #ffffff;
  --dm-panel-line: #dfe6ee;
  --dm-log-device: #0b88b8;
  --dm-overlay: rgba(232, 240, 248, 0.74);
  --dm-start-bg: linear-gradient(160deg, #ffffff, #f0f7fc);
  --dm-start-line: #c7e4f3;
  --dm-start-shadow: 0 30px 70px rgba(20, 45, 80, 0.20);
  --dm-ghost-line: #a9b8c9;
  --dm-bubble-bg: #13233a;
  --dm-bubble-text: #ffffff;
  --dm-navi-bg: rgba(255, 255, 255, 0.97);
  --dm-navi-line: #c9dbea;
  --dm-navi-shadow: 0 18px 44px rgba(20, 45, 80, 0.22), 0 3px 10px rgba(20, 45, 80, 0.10);
  --dm-navi-track: #e1e8f0;
  --dm-trail-order: #e1a512;
  --dm-trail-ready: #15aa76;
  --dm-trail-call: #ff7a2f;
  --dm-device-shadow: 0 26px 50px rgba(22, 40, 66, 0.22), 0 7px 16px rgba(22, 40, 66, 0.14);
  /* 端末の縁(ライトはシルバー、ダークはスペースグレイ) */
  --fr-metal: linear-gradient(145deg, #f8f9fa 0%, #cfd2d7 26%, #eef0f2 50%, #c2c6cc 72%, #a9adb4 100%);
  --fr-key: #bfc3c9;
  --fr-phone: linear-gradient(145deg, #ebe8e2 0%, #b8b4ab 30%, #e6e3dd 55%, #bdb9b0 75%, #9a968e 100%);
  --fr-phone-key: #b0aca3;
  --fr-glass: #0b0b0c;
  --fr-band: linear-gradient(90deg, #22262c, #343940 50%, #22262c);
  /* イラスト */
  --il-bg: #e6f1fb;
  --il-screen: #fbfaf7;
  --il-card: #e7f5fd;
  --il-card-line: #2d7fd0;
  --il-line: #8796a8;
  --il-counter: #cdd7e2;
  --il-counter-top: #aebccc;
  /* 卓上タブレット(本物のライト: 白地に金・明朝の品名) */
  --tb-bg: #f8f6f1;
  --tb-head: #ffffff;
  --tb-side: #ffffff;
  --tb-line: #ebe6dc;
  --tb-text: #2a2520;
  --tb-sub: #8a8378;
  --tb-gold: #cf9f2e;
  --tb-gold-text: #a87c16;
  --tb-gold-soft: #fbf3df;
  --tb-card: #ffffff;
  --tb-card-line: #ebe5d8;
  --tb-add-text: #241a05;
  --tb-cart: #f1efea;
  --tb-cart-line: #e4e0d7;
  --tb-cart-text: #8a8378;
  --tb-head-btn-line: #ddd7cb;
  --tb-overlay: rgba(40, 32, 20, 0.38);
  --tb-sheet: #ffffff;
  --tb-sheet-line: #ebe6dc;
  /* キッチン・ディシャップ(本物のライト: 生成り地・卓の枠は青・個数は茶) */
  --kd-bg: #fbfaf7;
  --kd-pattern: transparent;
  --kd-head: #ffffff;
  --kd-line: #e7e4de;
  --kd-text: #1f2328;
  --kd-sub: #5d6672;
  --kd-faint: #8b929b;
  --kd-dot: #1f6fd1;
  --kd-dot-2: #1f8fe0;
  --kd-pill-bg: #e3f0fc;
  --kd-pill-text: #1b63b6;
  --kd-chip-bg: #f4f3f0;
  --kd-chip-line: #e2dfd8;
  --kd-chip-text: #4b5059;
  --kd-group-bg: #ffffff;
  --kd-table: #1f6fd1;
  --kd-card: #ffffff;
  --kd-card-line: #e3e5e9;
  --kd-card-accent: #ef9a3c;
  --kd-qty-bg: #a6470d;
  --kd-qty-text: #ffffff;
  --kd-qty-plain: #5d6672;
  /* 待たせている時間の色(本物のライトの --color-primary / gold / accent / danger。
     10分まで青・15分まで琥珀・20分まで橙・その先は赤で点滅。説明ナビの色の見本もこれ) */
  --kd-tier-fresh: #1470c4;
  --kd-tier-warm: #a64700;
  --kd-tier-late: #ee8014;
  --kd-tier-critical: #d92318;
  --kd-call-line: #c8773a;
  --kd-call-table: #b25e1c;
  --kd-claimed: #1f6fd1;
  --kd-cook-bg: #f4f3ef;
  --kd-cook-line: #e5e2db;
  /* キッチンの🔔「呼ぶ」(本物のライトの --color-gold #a64700・--color-gold-soft) */
  --kd-bell: #a64700;
  --kd-bell-soft: rgba(166, 71, 0, 0.12);
  --kd-bell-solid-text: #ffffff;
  /* ハンディ(本物のライト: 空色の帯・白地・使用中は青・予約は赤) */
  --hd-bg: #f3f5f8;
  --hd-status: #111418;
  --hd-status-bg: #f7f7f5;
  --hd-head: #5fd0f7;
  --hd-user-bg: #0d1117;
  --hd-user-text: #ffffff;
  --hd-title-bg: #ffffff;
  --hd-line: #e1e6ed;
  --hd-text: #1b2430;
  --hd-sub: #6b7380;
  --hd-free-bg: #f8f9fb;
  --hd-free-line: #d5dbe3;
  --hd-free-name: #8a929c;
  --hd-badge-bg: #e8ebef;
  --hd-badge-text: #6b7380;
  --hd-busy-bg: #e5f1fb;
  --hd-busy-line: #4a8fd0;
  --hd-busy-name: #1d5fa8;
  --hd-busy-badge-bg: #1d4f8a;
  --hd-busy-badge-text: #ffffff;
  --hd-amount: #1b2430;
  --hd-resv-bg: #fbe9e4;
  --hd-resv-line: #e8957f;
  --hd-resv-name: #c0532e;
  --hd-resv-badge-bg: #d2422d;
  --hd-resv-badge-text: #ffffff;
  --hd-calls-bg: #ffffff;
  --hd-calls-head: #1d6fc0;
  --hd-call-bg: #fff4ea;
  --hd-call-line: #f0a35e;
  --hd-call-table: #c0661f;
  --hd-btn-bg: #ffffff;
  --hd-btn-line: #cfd6df;
  --hd-go: #1d78c9;
  --hd-claimed: #1d78c9;
  --hd-banner-bg: rgba(250, 250, 252, 0.97);
  --hd-banner-text: #111418;
  --hd-banner-sub: #4a4f57;
  --hd-home: #111418;

  padding: 32px 0 56px;
  color: var(--dm-text);
  background:
    radial-gradient(900px 480px at 8% 0%, var(--dm-glow-1), transparent 60%),
    radial-gradient(700px 420px at 96% 30%, var(--dm-glow-2), transparent 60%),
    var(--dm-bg);
}

/* ---- 色(ダーク) ---- */
.demo-section[data-theme="dark"] {
  --dm-bg: linear-gradient(180deg, #0b1424 0%, #0a1220 100%);
  --dm-glow-1: rgba(47, 210, 255, 0.10);
  --dm-glow-2: rgba(255, 138, 61, 0.08);
  --dm-text: #e8eef7;
  --dm-muted: #b9cbe0;
  --dm-faint: #8fa3ba;
  --dm-zone-bg: rgba(255, 255, 255, 0.025);
  --dm-zone-line: rgba(255, 255, 255, 0.16);
  --dm-zone-label-bg: #101b2e;
  --dm-btn-bg: rgba(255, 255, 255, 0.05);
  --dm-btn-line: rgba(255, 255, 255, 0.18);
  --dm-btn-hover: rgba(255, 255, 255, 0.10);
  --dm-btn-text: #e8eef7;
  --dm-off-text: #8fa3ba;
  --dm-accent: #2fd2ff;
  --dm-accent-text: #f1f9ff;
  --dm-accent-soft: rgba(47, 210, 255, 0.08);
  --dm-accent-line: rgba(47, 210, 255, 0.35);
  --dm-label-bg: #2fd2ff;
  --dm-label-text: #04121c;
  --dm-done: #34d399;
  --dm-done-soft: rgba(52, 211, 153, 0.12);
  --dm-done-line: rgba(52, 211, 153, 0.6);
  --dm-done-text: #d1fae5;
  --dm-panel: rgba(255, 255, 255, 0.04);
  --dm-panel-line: rgba(255, 255, 255, 0.10);
  --dm-log-device: #2fd2ff;
  --dm-overlay: rgba(5, 10, 20, 0.72);
  --dm-start-bg: linear-gradient(160deg, #13213a, #0d1728);
  --dm-start-line: rgba(47, 210, 255, 0.35);
  --dm-start-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  --dm-ghost-line: rgba(255, 255, 255, 0.35);
  --dm-bubble-bg: rgba(255, 255, 255, 0.96);
  --dm-bubble-text: #0f1b2d;
  --dm-navi-bg: rgba(15, 26, 44, 0.97);
  --dm-navi-line: rgba(47, 210, 255, 0.32);
  --dm-navi-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 3px 10px rgba(0, 0, 0, 0.35);
  --dm-navi-track: rgba(255, 255, 255, 0.10);
  --dm-trail-order: #f0c35a;
  --dm-trail-ready: #34d399;
  --dm-trail-call: #ff9a52;
  --dm-device-shadow: 0 26px 54px rgba(0, 0, 0, 0.5), 0 7px 16px rgba(0, 0, 0, 0.35);
  --fr-metal: linear-gradient(145deg, #74777d 0%, #3d3f44 26%, #63666c 50%, #3a3c41 72%, #26282c 100%);
  --fr-key: #4a4d53;
  --fr-phone: linear-gradient(145deg, #626264 0%, #333335 30%, #59595c 55%, #38383b 75%, #212123 100%);
  --fr-phone-key: #3d3d40;
  --fr-glass: #050506;
  --il-bg: #17273f;
  --il-screen: #0d1626;
  --il-card: rgba(47, 210, 255, 0.14);
  --il-card-line: #2fd2ff;
  --il-line: #7f93ad;
  --il-counter: #33415a;
  --il-counter-top: #45556f;
  --tb-bg: #080808;
  --tb-head: #0b0b0b;
  --tb-side: #0b0b0b;
  --tb-line: #222222;
  --tb-text: #f2efe6;
  --tb-sub: #8a8a8a;
  --tb-gold: #d6ab48;
  --tb-gold-text: #ecc76e;
  --tb-gold-soft: rgba(214, 171, 72, 0.13);
  --tb-card: #151515;
  --tb-card-line: #262626;
  --tb-add-text: #141006;
  --tb-cart: #161616;
  --tb-cart-line: #2a2a2a;
  --tb-cart-text: #8b8b8b;
  --tb-head-btn-line: #333333;
  --tb-overlay: rgba(0, 0, 0, 0.62);
  --tb-sheet: #111111;
  --tb-sheet-line: #2e2e2e;
  --kd-bg: #0d1626;
  --kd-pattern: rgba(255, 255, 255, 0.012);
  --kd-head: #0a111d;
  --kd-line: #1d2a3d;
  --kd-text: #e8eef7;
  --kd-sub: #c9d3e0;
  --kd-faint: #7f93ad;
  --kd-dot: #ff8a3d;
  --kd-dot-2: #2fd2ff;
  --kd-pill-bg: rgba(47, 210, 255, 0.13);
  --kd-pill-text: #4fd8ff;
  --kd-chip-bg: transparent;
  --kd-chip-line: #2a3a52;
  --kd-chip-text: #c9d6e6;
  --kd-group-bg: rgba(20, 34, 58, 0.45);
  --kd-table: #ffab4a;
  --kd-card: #14223a;
  --kd-card-line: #22324c;
  --kd-card-accent: #2fd2ff;
  --kd-qty-bg: #f7c948;
  --kd-qty-text: #1b1404;
  --kd-qty-plain: #c9d6e6;
  --kd-tier-fresh: #2fd2ff;
  --kd-tier-warm: #f0c869;
  --kd-tier-late: #ff9a3d;
  --kd-tier-critical: #f87171;
  --kd-call-line: #f2c94c;
  --kd-call-table: #ffd166;
  --kd-claimed: #4fd8ff;
  --kd-cook-bg: rgba(20, 34, 58, 0.6);
  --kd-cook-line: #22324c;
  --kd-bell: #f0c869;
  --kd-bell-soft: rgba(240, 200, 105, 0.16);
  --kd-bell-solid-text: #1b1404;
  --hd-bg: #0c1424;
  --hd-status: #e7eef8;
  --hd-status-bg: #0c1424;
  --hd-head: #0f1a2c;
  --hd-user-bg: #1a2740;
  --hd-user-text: #e7eef8;
  --hd-title-bg: #0c1424;
  --hd-line: #1c2a40;
  --hd-text: #e7eef8;
  --hd-sub: #aab6c8;
  --hd-free-bg: #121c2e;
  --hd-free-line: #26354d;
  --hd-free-name: #e7eef8;
  --hd-badge-bg: #2a3446;
  --hd-badge-text: #aab6c8;
  --hd-busy-bg: #2c2410;
  --hd-busy-line: #c99a2e;
  --hd-busy-name: #ffffff;
  --hd-busy-badge-bg: #f2c94c;
  --hd-busy-badge-text: #1d1503;
  --hd-amount: #4fd8ff;
  --hd-resv-bg: #1a2236;
  --hd-resv-line: #4a5a78;
  --hd-resv-name: #e7eef8;
  --hd-resv-badge-bg: #44506a;
  --hd-resv-badge-text: #e7eef8;
  --hd-calls-bg: #0a1220;
  --hd-calls-head: #4fd8ff;
  --hd-call-bg: rgba(242, 153, 74, 0.10);
  --hd-call-line: #f2994a;
  --hd-call-table: #ffb36b;
  --hd-btn-bg: #16233a;
  --hd-btn-line: #3a4b66;
  --hd-go: #4fd8ff;
  --hd-claimed: #4fd8ff;
  --hd-banner-bg: rgba(46, 50, 60, 0.96);
  --hd-banner-text: #ffffff;
  --hd-banner-sub: #c9d1dc;
  --hd-home: #e7eef8;
}

.demo-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* このページの見出しは短めに(スマホでも、早く体験の所が見えるように) */
.page-hero.demo-hero {
  padding-bottom: 40px;
}

/* ---- 上の帯: 操作(進み具合と案内は、下の説明ナビ) ---- */

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 16px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.demo-tool,
.demo-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--dm-btn-line);
  background: var(--dm-btn-bg);
  color: var(--dm-btn-text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.demo-tool:hover {
  background: var(--dm-btn-hover);
}

.demo-tool svg,
.demo-theme-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.demo-tool[aria-pressed="false"] {
  color: var(--dm-off-text);
}

/* ライト / ダークの切り替え(色の付いた方が、今の明るさ) */
.demo-theme {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--dm-btn-line);
  border-radius: 999px;
  background: var(--dm-btn-bg);
}

.demo-theme-btn {
  padding: 5px 12px;
  border: 0;
  background: transparent;
  color: var(--dm-off-text);
}

.demo-theme-btn[aria-pressed="true"] {
  background: var(--dm-label-bg);
  color: var(--dm-label-text);
}

/* ---- 舞台(5つの画面と、飛んでいく物の層) ---- */

.demo-stage {
  position: relative;
  margin-top: 22px;
}

.demo-tabs {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
}

.demo-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 7px;
  border-radius: 12px;
  border: 1px solid var(--dm-btn-line);
  background: var(--dm-btn-bg);
  color: var(--dm-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.demo-tab svg {
  width: 20px;
  height: 20px;
}

.demo-tab[aria-pressed="true"] {
  border-color: var(--dm-accent);
  background: var(--dm-accent-soft);
  color: var(--dm-text);
}

.demo-tab-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff8a3d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.demo-tab-badge[hidden] {
  display: none;
}

.demo-tab.is-arrive {
  animation: demo-tab-arrive 0.6s ease-out;
}

.demo-floor {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) 344px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "guest kitchen hall"
    "log kitchen hall";
  gap: 22px 14px;
  align-items: start;
}

.zone-guest { grid-area: guest; }
.zone-kitchen { grid-area: kitchen; }
.zone-hall { grid-area: hall; }
.demo-voicelog { grid-area: log; }

.demo-zone {
  position: relative;
  padding: 18px 12px 14px;
  border: 1.5px dashed var(--dm-zone-line);
  border-radius: 20px;
  background: var(--dm-zone-bg);
}

/* 場所の名前は、点線の枠の上に乗せる(高さを取らないように) */
.demo-zone-label {
  position: absolute;
  top: -11px;
  left: 14px;
  margin: 0;
  padding: 1px 12px;
  border: 1px solid var(--dm-zone-line);
  border-radius: 999px;
  background: var(--dm-zone-label-bg);
  color: var(--dm-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.demo-device {
  position: relative;
}

.zone-kitchen .demo-device + .demo-device {
  margin-top: 16px;
}

/* 端末の上の、使う人のイラストと名前 */
.demo-device-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.demo-illust {
  flex: none;
  display: block;
  width: 60px;
  height: 45px;
  overflow: hidden;
  border-radius: 10px;
}

.demo-illust svg {
  display: block;
  width: 100%;
  height: 100%;
}

.demo-device-text {
  min-width: 0;
  margin: 0;
  line-height: 1.35;
}

/* 端末の名前は折らない。読み上げ中に横へ🔊が付くと、狭い列(ホールのハンディ)で「ハンディ（スマ／ホ）」と折れていた */
.demo-device-text b {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dm-text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.demo-device-text span {
  display: block;
  margin-top: 2px;
  color: var(--dm-muted);
  font-size: 12px;
}

.demo-device.is-speaking .demo-device-text b::after {
  content: "🔊";
  font-size: 13px;
  animation: demo-blink 0.9s ease-in-out infinite;
}

/* イラストの中で、明るさで色の変わる所 */
.il-bg { fill: var(--il-bg); }
.il-screen { fill: var(--il-screen); }
.il-card { fill: var(--il-card); stroke: var(--il-card-line); stroke-width: 1.4; }
.il-line { fill: none; stroke: var(--il-line); stroke-width: 1.6; stroke-linecap: round; }
.il-counter { fill: var(--il-counter); }
.il-counter-top { fill: var(--il-counter-top); }

/* ---- 端末の縁(iPad・iPhone らしく) ---- */

.demo-bezel {
  position: relative;
  outline: 2px solid transparent;
  outline-offset: 5px;
  transition: outline-color 0.3s;
}

.demo-device.is-focus .demo-bezel {
  outline-color: var(--dm-accent);
}

.demo-device.is-arrive .demo-bezel {
  animation: demo-arrive 0.9s ease-out;
}

.demo-glass {
  position: relative;
  background: var(--fr-glass);
}

.demo-screen {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: #000000;
}

/* iPad(卓上タブレット・キッチン・ディシャップ): 金属の縁・黒い額縁・前のカメラ・上のボタン */
.is-ipad .demo-bezel {
  padding: 3px;
  border-radius: 26px;
  background: var(--fr-metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.18), var(--dm-device-shadow);
}

.is-ipad .demo-bezel::before {
  /* トップボタン */
  content: "";
  position: absolute;
  top: -2px;
  left: 12%;
  width: 34px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--fr-key);
}

.is-ipad .demo-bezel::after {
  /* 音量ボタン(2つ) */
  content: "";
  position: absolute;
  top: -2px;
  right: 14%;
  width: 62px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--fr-key) 0 26px, transparent 26px 36px, var(--fr-key) 36px 62px);
}

.is-ipad .demo-glass {
  padding: 13px;
  border-radius: 23px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.is-ipad .demo-glass::before {
  /* 前のカメラ */
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a5b78 0, #121722 55%, #05070b 100%);
  box-shadow: 0 0 0 1px #1b1e24;
}

.is-ipad .demo-screen {
  aspect-ratio: 3 / 2;
  border-radius: 11px;
}

/* iPhone(ハンディ): チタンの縁・細い額縁・左にアクションボタンと音量・右にサイドボタン */
.demo-hall {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.is-phone .demo-bezel {
  width: 200px;
  padding: 3px;
  border-radius: 40px;
  background: var(--fr-phone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.2), var(--dm-device-shadow);
}

.is-phone .demo-bezel::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 82px;
  width: 3px;
  height: 84px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, var(--fr-phone-key) 0 14px, transparent 14px 26px, var(--fr-phone-key) 26px 52px, transparent 52px 58px, var(--fr-phone-key) 58px 84px);
}

.is-phone .demo-bezel::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 112px;
  width: 3px;
  height: 46px;
  border-radius: 0 2px 2px 0;
  background: var(--fr-phone-key);
}

.is-phone .demo-glass {
  padding: 6px;
  border-radius: 37px;
}

.is-phone .demo-screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 31px;
}

/* スマートウォッチ(細長いバンド型。特定の製品の形やロゴは写していない) */
.is-watch .demo-device-head {
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.is-watch .demo-device-text b {
  justify-content: center;
  font-size: 13px;
  white-space: nowrap;
}

.is-watch .demo-bezel {
  width: 84px;
  margin: 40px auto 40px;
  padding: 3px;
  border-radius: 36px;
  background: var(--fr-metal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--dm-device-shadow);
}

.is-watch .demo-bezel::before,
.is-watch .demo-bezel::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  height: 46px;
  z-index: -1;
  background: var(--fr-band);
}

.is-watch .demo-bezel::before {
  top: -40px;
  border-radius: 10px 10px 4px 4px;
}

.is-watch .demo-bezel::after {
  bottom: -40px;
  border-radius: 4px 4px 10px 10px;
}

.is-watch .demo-glass {
  padding: 4px;
  border-radius: 33px;
}

.is-watch .demo-screen {
  aspect-ratio: 70 / 146;
  border-radius: 29px;
}

.demo-device.is-buzz .demo-bezel {
  animation: demo-buzz 0.09s linear 12;
}

/* 読み上げた言葉の吹き出し。画面の上の方に重ねる(料理のカードや呼び出しの行を隠さないため)。
   ハンディだけは、上から通知が出るので、スマホの下に出す */
.demo-bubble {
  position: absolute;
  left: 50%;
  top: 30px;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 36px);
  margin: 0;
  padding: 8px 12px 8px 34px;
  border-radius: 12px;
  background: var(--dm-bubble-bg);
  color: var(--dm-bubble-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.demo-bubble::before {
  content: "🔊";
  position: absolute;
  left: 10px;
  top: 8px;
  font-size: 14px;
}

.demo-bubble.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-phone .demo-bubble {
  top: 100%;
  margin-top: 12px;
  max-width: 230px;
  font-size: 11px;
  padding: 6px 9px 6px 28px;
}

.is-phone .demo-bubble::before {
  left: 8px;
  top: 6px;
  font-size: 12px;
}

/* いま流れた声 */
.demo-voicelog {
  padding: 14px 16px;
  border: 1px solid var(--dm-panel-line);
  border-radius: 16px;
  background: var(--dm-panel);
}

.demo-voicelog-title {
  margin-bottom: 8px;
  color: var(--dm-faint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.demo-voicelog li {
  padding: 3px 0;
  color: var(--dm-muted);
  font-size: 13px;
  line-height: 1.6;
}

.demo-voicelog li b {
  display: inline-block;
  min-width: 6.5em;
  margin-right: 6px;
  color: var(--dm-log-device);
}

.demo-voicelog li.is-latest {
  color: var(--dm-text);
}

.demo-voicelog li.is-empty {
  color: var(--dm-faint);
}

.demo-credit {
  margin-top: 10px;
  color: var(--dm-faint);
  font-size: 11px;
}

/* 飛んでいく物の層 */
.demo-fly-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.demo-flyer {
  position: absolute;
  left: 0;
  top: 0;
  padding: 6px 13px;
  border-radius: 999px;
  background: #2fd2ff;
  color: #04121c;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 0 4px rgba(47, 210, 255, 0.25), 0 10px 26px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
}

.demo-flyer.is-order { background: #f0c35a; color: #2a1d02; box-shadow: 0 0 0 4px rgba(240, 195, 90, 0.3), 0 10px 26px rgba(0, 0, 0, 0.3); }
.demo-flyer.is-ready { background: #34d399; color: #04241a; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.3), 0 10px 26px rgba(0, 0, 0, 0.3); }
.demo-flyer.is-call { background: #ff9a52; color: #2b1200; box-shadow: 0 0 0 4px rgba(255, 154, 82, 0.3), 0 10px 26px rgba(0, 0, 0, 0.3); }

.demo-trail {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.demo-trail path {
  fill: none;
  stroke: #2fd2ff;
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.85;
}

.demo-trail.is-order path { stroke: var(--dm-trail-order); }
.demo-trail.is-ready path { stroke: var(--dm-trail-ready); }
.demo-trail.is-call path { stroke: var(--dm-trail-call); }

/* 自動で見るときの指の印 */
.demo-finger {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: rgba(11, 159, 209, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.demo-finger.is-on {
  opacity: 1;
}

.demo-finger.is-tap {
  animation: demo-tap 0.45s ease-out;
}

/* はじめる前の幕 */
.demo-start {
  position: absolute;
  inset: -10px;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 24px;
  background: var(--dm-overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.is-started .demo-start {
  display: none;
}

.demo-start-card {
  max-width: 540px;
  padding: 32px 28px 26px;
  border: 1px solid var(--dm-start-line);
  border-radius: 22px;
  background: var(--dm-start-bg);
  box-shadow: var(--dm-start-shadow);
  text-align: center;
}

.demo-start-eyebrow {
  color: var(--dm-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.demo-start-card h3 {
  margin: 8px 0 12px;
  color: var(--dm-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
}

.demo-start-card p {
  color: var(--dm-muted);
  font-size: 15px;
}

.demo-start-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 14px;
}

.demo-btn-primary,
.demo-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.demo-btn-primary {
  border: 0;
  background: linear-gradient(135deg, #ff8a3d, #e4650b);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(228, 101, 11, 0.32);
}

.demo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(228, 101, 11, 0.42);
}

.demo-btn-ghost {
  border: 2px solid var(--dm-ghost-line);
  background: transparent;
  color: var(--dm-text);
}

.demo-btn-ghost:hover {
  background: var(--dm-btn-hover);
}

.demo-start-card .demo-start-note {
  color: var(--dm-faint);
  font-size: 12px;
}

/* ---- 下の説明ナビ(いまの手順の説明と、次に押す所。体験の間は画面の下に付いてくる) ---- */

.demo-navi {
  position: sticky;
  bottom: 12px;
  z-index: 9;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--dm-navi-line);
  border-radius: 18px;
  background: var(--dm-navi-bg);
  box-shadow: var(--dm-navi-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.demo-navi[hidden] {
  display: none;
}

/* いちばん上の細い帯: 6つの手順のうち、どこまで来たか(数は js/demo.js の STEP_COUNT) */
.demo-navi-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 3px;
  height: 5px;
}

.demo-navi-bar span {
  background: var(--dm-navi-track);
  transition: background 0.4s;
}

.demo-navi-bar span.is-done {
  background: var(--dm-done);
}

.demo-navi-bar span.is-now {
  background: var(--dm-accent);
}

.demo-navi-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px 16px;
}

.demo-navi-num {
  flex: none;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  background: var(--dm-label-bg);
  color: var(--dm-label-text);
  line-height: 58px;
  text-align: center;
  white-space: nowrap;
}

.demo-navi-num b {
  font-size: 26px;
  font-weight: 800;
}

.demo-navi-num small {
  margin-left: 1px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.85;
}

.demo-navi-main {
  flex: 1;
  min-width: 0;
}

.demo-navi-main.is-enter {
  animation: demo-navi-in 0.45s ease-out;
}

.demo-navi-title {
  margin: 0;
  color: var(--dm-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.demo-navi-step {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 9px;
  border: 1px solid var(--dm-accent-line);
  border-radius: 999px;
  background: var(--dm-accent-soft);
  color: var(--dm-accent-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

.demo-navi-text {
  margin: 3px 0 0;
  color: var(--dm-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* 次にやること(押す / 待つ / 終わり) */
.demo-navi-todo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--dm-accent-line);
  border-radius: 999px;
  background: var(--dm-accent-soft);
  color: var(--dm-accent-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.demo-navi-todo[hidden] {
  display: none;
}

.demo-navi-todo svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.demo-navi-todo.is-wait {
  padding-left: 0;
  border-color: transparent;
  background: transparent;
  color: var(--dm-faint);
  font-weight: 700;
}

.demo-navi-todo.is-done {
  border-color: var(--dm-done-line);
  background: var(--dm-done-soft);
  color: var(--dm-done-text);
}

.demo-spin {
  animation: demo-spin 0.9s linear infinite;
}

/* 早送りの間: 注文からの分と、色の見本(色はキッチンの画面と同じ --kd-tier-*) */
.demo-navi-ff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 9px;
}

.demo-navi-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 14px 4px 10px;
  border: 1.5px solid var(--kd-tier);
  border-radius: 999px;
  background: var(--kd-tier-tint);
  color: var(--dm-text);
  font-size: 14px;
  font-weight: 800;
  transition: border-color 0.25s, background 0.25s;
}

.demo-navi-clock svg {
  width: 16px;
  height: 16px;
  color: var(--kd-tier);
}

.demo-navi-clock b {
  color: var(--kd-tier);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.demo-navi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-navi-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dm-faint);
  font-size: 13px;
  font-weight: 700;
  transition: color 0.25s;
}

.demo-navi-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--kd-tier);
  opacity: 0.45;
  transition: opacity 0.25s, transform 0.25s;
}

.demo-navi-legend li.is-now {
  color: var(--dm-text);
}

.demo-navi-legend li.is-now i {
  opacity: 1;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--kd-tier-tint);
}

.demo-navi-legend li.tier-critical.is-now i {
  animation: demo-blink 1.6s ease-in-out infinite;
}

/* 右: 最後の「もう一度体験する」・自動再生中の印 */
.demo-navi-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.demo-navi-side:empty {
  display: none;
}

.demo-navi-side .demo-btn-primary,
.demo-navi-side .demo-btn-ghost {
  padding: 12px 22px;
  font-size: 14px;
  text-decoration: none;
}

.demo-navi-auto {
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--dm-accent-soft);
  color: var(--dm-accent-text);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.demo-navi-auto b {
  display: block;
  font-size: 14px;
}

/* サイト共通のチャットの丸いボタン(右下に固定)を、画面の下に付いた説明ナビの上へ逃がす(js/demo.js の liftChat)。
   チャットの窓を開いている間は元の場所に戻す(持ち上げたままだと、スマホで窓の上が画面から出る) */
.chat-widget {
  transition: bottom 0.25s ease;
}

body.demo-navi-lift .chat-widget:not(:has(.chat-panel.is-open)) {
  bottom: calc(var(--demo-navi-lift, 0px) + 10px);
}

/* 1つずつ見せる幅では、持ち上げると端末の画面(タブレットの右の列など)に重なるので、ナビが下に付いている間は隠す。
   下の説明まで送れば戻り、最後の手順の窓には「お問い合わせ」がある */
@media (max-width: 1179px) {
  body.demo-navi-lift .chat-widget:not(:has(.chat-panel.is-open)) {
    bottom: 12px;
  }

  body.demo-navi-lift .chat-widget:not(:has(.chat-panel.is-open)) .chat-toggle-btn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  }
}

.demo-disclaimer {
  margin-top: 18px;
  color: var(--dm-faint);
  font-size: 12px;
  line-height: 1.8;
}

/* 押してほしい所 */
.demo-pulse {
  position: relative;
  z-index: 1;
  animation: demo-pulse 1.4s ease-out infinite;
}

/* ==========================================================================
   iPad の画面の上の時計・電池(本物の iPad の画面と同じ並び)
   ========================================================================== */

.ios-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35em 1.1em 0.15em;
  font-size: 0.62em;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.ios-status-right {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.ios-status svg {
  width: 1.25em;
  height: 1.25em;
}

.ios-battery {
  position: relative;
  display: inline-block;
  width: 1.9em;
  height: 0.95em;
  margin-right: 0.2em;
  padding: 1px;
  border: 1.4px solid currentColor;
  border-radius: 0.3em;
  opacity: 0.9;
}

.ios-battery::before {
  content: "";
  display: block;
  width: 80%;
  height: 100%;
  border-radius: 0.12em;
  background: currentColor;
}

.ios-battery::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.25em;
  width: 0.14em;
  height: 0.4em;
  margin-top: -0.2em;
  border-radius: 0 0.1em 0.1em 0;
  background: currentColor;
}

/* ==========================================================================
   卓上タブレットの画面(本物: ライトは白地に金、ダークは黒地に金。品名は明朝)
   ========================================================================== */

.tb-root {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--tb-bg);
  color: var(--tb-text);
  font-size: clamp(9px, 2.4cqw, 15px);
  line-height: 1.4;
}

/* :where で強さを0にして、各ボタンの字の大きさ・色(.tb-add など)が勝つようにする */
:where(.tb-root) button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.tb-root .ios-status {
  background: var(--tb-head);
  color: var(--tb-text);
}

.tb-store,
.tb-cat,
.tb-card-name,
.tb-cat-title,
.tb-sheet h4,
.tb-svc {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

.tb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 0.45em 1em 0.6em;
  border-bottom: 1px solid var(--tb-line);
  background: var(--tb-head);
}

.tb-store {
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tb-head-right {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.tb-table {
  padding: 0.1em 0.8em;
  border: 1px solid var(--tb-gold);
  border-radius: 999px;
  color: var(--tb-gold-text);
  font-size: 0.85em;
  font-weight: 700;
}

.tb-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.8em;
  border: 1px solid var(--tb-head-btn-line);
  border-radius: 0.6em;
  background: none;
  font-size: 0.8em;
}

.tb-head-btn svg {
  width: 1.1em;
  height: 1.1em;
}

.tb-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.tb-cats {
  flex: none;
  width: 25%;
  padding: 0.3em 0;
  border-right: 1px solid var(--tb-line);
  background: var(--tb-side);
  overflow-y: auto;
}

.tb-cat {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  padding: 0.85em 0.9em;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  font-size: 0.92em;
  text-align: left;
}

.tb-cat.is-active {
  border-left-color: var(--tb-gold);
  background: var(--tb-gold-soft);
  color: var(--tb-gold-text);
}

.tb-cat-icon {
  width: 1.3em;
  text-align: center;
}

.tb-main {
  flex: 1;
  min-width: 0;
  padding: 0.8em 0.9em 1em;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--tb-card-line) transparent;
}

.tb-cat-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.7em;
  color: var(--tb-gold-text);
  font-size: 1.12em;
  font-weight: 700;
}

.tb-cat-title small {
  color: var(--tb-sub);
  font-size: 0.7em;
}

.tb-cat-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--tb-line);
}

.tb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65em;
}

.tb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 6.4em;
  padding: 0.65em 0.75em;
  border: 1px solid var(--tb-card-line);
  border-left: 3px solid var(--tb-gold);
  border-radius: 0.7em;
  background: var(--tb-card);
}

.tb-card.is-added {
  animation: tb-added 0.4s ease-out;
}

.tb-card-tag {
  color: var(--tb-gold-text);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.tb-card-name {
  padding-right: 1.8em;
  font-size: 1.04em;
  font-weight: 700;
  line-height: 1.35;
}

.tb-card-price {
  color: var(--tb-gold-text);
  font-size: 0.95em;
  font-weight: 700;
}

.tb-card-price small {
  margin-left: 0.3em;
  color: var(--tb-sub);
  font-size: 0.72em;
  font-weight: 500;
}

.tb-card-qty {
  position: absolute;
  top: 0.5em;
  right: 0.55em;
  display: grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: var(--tb-gold);
  color: var(--tb-add-text);
  font-size: 0.8em;
  font-weight: 800;
}

.tb-add {
  position: absolute;
  right: 0.55em;
  bottom: 0.55em;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border: 0;
  border-radius: 50%;
  background: var(--tb-gold);
  color: var(--tb-add-text);
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1;
}

.tb-add:disabled {
  opacity: 0.35;
  cursor: default;
}

.tb-foot {
  display: flex;
  align-items: stretch;
  height: 4.4em;
  border-top: 1px solid var(--tb-line);
  background: var(--tb-head);
}

.tb-foot-btns {
  display: flex;
}

.tb-foot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  width: 4.9em;
  border: 0;
  border-right: 1px solid var(--tb-line);
  background: none;
  white-space: nowrap;
}

.tb-foot-btn span {
  font-size: 0.64em;
}

.tb-foot-btn svg {
  width: 1.15em;
  height: 1.15em;
}

.tb-cart {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex: 1 1 auto;
  margin: 0.55em 0.7em;
  padding: 0 1em;
  border: 1px solid var(--tb-cart-line);
  border-radius: 0.8em;
  background: var(--tb-cart);
  color: var(--tb-cart-text);
  font-size: 0.85em;
  white-space: nowrap;
}

.tb-cart svg {
  width: 1.3em;
  height: 1.3em;
  flex: none;
}

.tb-cart.has-items {
  border: 0;
  background: linear-gradient(180deg, #ecc76e, #d4a53c);
  color: #1a1306;
  font-weight: 700;
}

.tb-cart b {
  margin-left: auto;
  font-weight: 800;
}

.tb-cart:disabled {
  cursor: default;
}

.tb-cart.is-bump {
  animation: tb-bump 0.35s ease-out;
}

/* タブレットの上に開く窓 */
.tb-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 4%;
  background: var(--tb-overlay);
  animation: demo-fade 0.2s ease-out;
}

.tb-sheet {
  width: min(100%, 27em);
  max-height: 100%;
  overflow-y: auto;
  padding: 1.2em 1.3em;
  border: 1px solid var(--tb-sheet-line);
  border-radius: 1em;
  background: var(--tb-sheet);
  box-shadow: 0 1.5em 3em rgba(0, 0, 0, 0.3);
  animation: tb-pop 0.22s ease-out;
}

.tb-sheet-confirm,
.tb-sheet-thanks {
  text-align: center;
}

.tb-sheet h4 {
  margin-bottom: 0.4em;
  font-size: 1.15em;
  font-weight: 700;
}

.tb-sheet-sub {
  margin-bottom: 1em;
  color: var(--tb-sub);
  font-size: 0.85em;
}

.tb-list {
  margin-bottom: 0.6em;
}

.tb-list li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--tb-line);
  font-size: 0.92em;
}

.tb-list-name {
  flex: 1;
  min-width: 0;
}

.tb-list-qty {
  color: var(--tb-sub);
}

.tb-list-price {
  min-width: 4.6em;
  text-align: right;
  font-weight: 700;
}

.tb-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.tb-stepper button {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border: 1px solid var(--tb-gold);
  border-radius: 50%;
  background: none;
  color: var(--tb-gold-text);
  line-height: 1;
}

.tb-stepper button:disabled {
  opacity: 0.35;
}

.tb-stepper b {
  min-width: 1.2em;
  text-align: center;
}

.tb-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.6em 0 1em;
  font-weight: 700;
}

.tb-total b {
  color: var(--tb-gold-text);
  font-size: 1.3em;
}

.tb-total small {
  margin-left: 0.2em;
  color: var(--tb-sub);
  font-size: 0.6em;
}

.tb-btn-gold,
.tb-btn-line {
  display: block;
  width: 100%;
  border-radius: 0.7em;
  font-weight: 800;
}

.tb-btn-gold {
  padding: 0.75em;
  border: 0;
  background: linear-gradient(180deg, #ecc76e, #d4a53c);
  color: #1a1306;
  font-size: 1em;
}

.tb-btn-line {
  margin-top: 0.5em;
  padding: 0.65em;
  border: 1px solid var(--tb-gold);
  background: none;
  color: var(--tb-gold-text);
  font-size: 0.92em;
}

.tb-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55em;
  margin-bottom: 0.4em;
}

.tb-svc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding: 0.8em 0.3em;
  border: 1px solid var(--tb-sheet-line);
  border-radius: 0.8em;
  background: var(--tb-card);
  font-size: 0.95em;
  font-weight: 700;
}

.tb-svc-icon {
  font-size: 1.4em;
  line-height: 1;
}

.tb-confirm-icon {
  display: grid;
  place-items: center;
  width: 3.2em;
  height: 3.2em;
  margin: 0 auto 0.8em;
  border: 1px solid var(--tb-gold);
  border-radius: 50%;
  color: var(--tb-gold-text);
}

.tb-confirm-icon svg {
  width: 1.5em;
  height: 1.5em;
}

.tb-confirm-icon.is-done {
  border-color: #2fb37f;
  color: #2fb37f;
}

/* 幅の狭いタブレット(縦向き・スマホで見たとき): カテゴリを上に横並び */
@container (max-width: 360px) {
  .tb-root {
    font-size: 3.6cqw;
  }

  .tb-body {
    flex-direction: column;
  }

  .tb-cats {
    display: flex;
    width: auto;
    padding: 0 0.4em;
    border-right: 0;
    border-bottom: 1px solid var(--tb-line);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .tb-cat {
    width: auto;
    padding: 0.7em 0.75em 0.6em;
    border-left: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .tb-cat.is-active {
    border-bottom-color: var(--tb-gold);
    background: none;
  }

  .tb-foot {
    flex-direction: column-reverse;
    height: auto;
  }

  .tb-foot-btns {
    border-top: 1px solid var(--tb-line);
  }

  .tb-foot-btn {
    flex: 1;
    width: auto;
    padding: 0.55em 0 0.5em;
  }

  .tb-foot-btn:last-child {
    border-right: 0;
  }

  .tb-cart {
    height: 2.9em;
    margin: 0.5em 0.6em;
  }
}

/* ==========================================================================
   キッチン・ディシャップの画面(本物: ライトは生成り地に青い卓の枠、ダークは紺地にオレンジの枠)
   ========================================================================== */

.kd-root {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background:
    repeating-linear-gradient(45deg, var(--kd-pattern) 0 2px, transparent 2px 6px),
    var(--kd-bg);
  color: var(--kd-text);
  font-size: clamp(9px, 2.55cqw, 14px);
  line-height: 1.4;
}

:where(.kd-root) button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.kd-root .ios-status {
  background: var(--kd-head);
  color: var(--kd-text);
}

.kd-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.3em 0.9em 0.5em;
  border-bottom: 1px solid var(--kd-line);
  background: var(--kd-head);
  white-space: nowrap;
}

.kd-dot {
  flex: none;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: var(--kd-dot);
  box-shadow: 0 0 0.6em var(--kd-dot);
}

.kd-dot.is-cyan {
  background: var(--kd-dot-2);
  box-shadow: 0 0 0.6em var(--kd-dot-2);
}

.kd-title {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.kd-pill {
  padding: 0.12em 0.8em;
  border-radius: 999px;
  background: var(--kd-pill-bg);
  color: var(--kd-pill-text);
  font-size: 0.9em;
  font-weight: 800;
}

.kd-chips {
  display: flex;
  gap: 0.4em;
  margin-left: auto;
}

.kd-chip {
  padding: 0.2em 0.6em;
  border: 1px solid var(--kd-chip-line);
  border-radius: 0.5em;
  background: var(--kd-chip-bg);
  color: var(--kd-chip-text);
  font-size: 0.7em;
}

.kd-body {
  flex: 1;
  min-height: 0;
  padding: 0.8em;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--kd-card-line) transparent;
}

.kd-empty,
.ex-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 100%;
  min-height: 6em;
  color: var(--kd-faint);
  text-align: center;
}

.kd-empty svg {
  width: 2.6em;
  height: 2.6em;
  opacity: 0.6;
}

/* 待たせている時間の段階(本物の kitchen.css の tier-*)。卓の枠・見出しの帯・卓の名前・カードの分が、この色になる。
   帯の地と線は、本物と同じくライト・ダーク共通の薄い色。説明ナビの色の見本も同じ組を使う */
.kd-root,
.tier-fresh {
  --kd-tier: var(--kd-tier-fresh);
  --kd-tier-tint: rgba(47, 210, 255, 0.13);
  --kd-tier-rule: rgba(47, 210, 255, 0.4);
}

.tier-warm {
  --kd-tier: var(--kd-tier-warm);
  --kd-tier-tint: rgba(240, 200, 105, 0.13);
  --kd-tier-rule: rgba(240, 200, 105, 0.4);
}

.tier-late {
  --kd-tier: var(--kd-tier-late);
  --kd-tier-tint: rgba(255, 154, 61, 0.15);
  --kd-tier-rule: rgba(255, 154, 61, 0.45);
}

.tier-critical {
  --kd-tier: var(--kd-tier-critical);
  --kd-tier-tint: rgba(248, 113, 113, 0.18);
  --kd-tier-rule: rgba(248, 113, 113, 0.5);
}

.kd-group,
.ex-group {
  overflow: hidden;
  border: 2px solid var(--kd-tier);
  border-radius: 0.8em;
  background: var(--kd-group-bg);
  transition: border-color 0.25s;
}

.kd-group.is-new,
.ex-group.is-new {
  animation: kd-in 0.5s ease-out;
}

/* 20分を超えた卓は、枠が赤く点滅する(本物と同じ) */
.kd-group.tier-critical,
.ex-group.tier-critical {
  animation: kd-frame-blink 1.6s ease-in-out infinite;
}

.kd-group-head,
.ex-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  padding: 0.35em 0.8em;
  border-bottom: 1px solid var(--kd-tier-rule);
  background: var(--kd-tier-tint);
  transition: background 0.25s;
}

.kd-group-head b,
.ex-group-head b {
  color: var(--kd-tier);
  font-size: 1.6em;
  font-weight: 800;
}

.kd-group-head span,
.ex-group-head span {
  color: var(--kd-sub);
  font-size: 0.8em;
}

.kd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5em, 1fr));
  gap: 0.5em;
  padding: 0.55em;
}

/* カードと、右の🔔「呼ぶ」を横に並べる殻(本物の .kds-card-shell・.kds-card-call: 幅62px・金の線・薄い金の地) */
.kd-card-shell {
  display: flex;
  align-items: stretch;
  gap: 0.35em;
  min-width: 0;
}

.kd-card-shell.is-new {
  animation: kd-in 0.5s ease-out;
}

.kd-card-shell .kd-card {
  flex: 1;
  min-width: 0;
}

.kd-bell {
  flex: none;
  width: 3.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  padding: 0.3em 0;
  border: 1px solid var(--kd-bell);
  border-radius: 0.6em;
  background: var(--kd-bell-soft);
  color: var(--kd-bell);
  font-size: 0.85em;
  font-weight: 800;
  line-height: 1.2;
}

.kd-bell:hover {
  background: var(--kd-bell);
  color: var(--kd-bell-solid-text);
}

.kd-bell-icon {
  font-size: 1.45em;
  line-height: 1;
}

.kd-bell.is-leaving {
  animation: kd-out 0.34s ease-in forwards;
  pointer-events: none;
}

.kd-bell.is-ringing {
  background: var(--kd-bell);
  color: var(--kd-bell-solid-text);
}

.kd-bell.is-ringing .kd-bell-icon {
  animation: kd-bell-ring 0.34s ease-in-out;
}

/* ディシャップの見出しの「🔔 呼ぶ」(本物の .kds-call-table。運び手が来ないときに、卓の料理をまとめて知らせる) */
.ex-bell {
  margin-left: auto;
  align-self: center;
  flex: none;
  padding: 0.25em 0.7em;
  border: 1px solid var(--kd-bell);
  border-radius: 0.5em;
  background: var(--kd-bell-soft);
  color: var(--kd-bell);
  font-size: 0.75em;
  font-weight: 800;
  white-space: nowrap;
}

.ex-bell:hover,
.ex-bell.is-ringing {
  background: var(--kd-bell);
  color: var(--kd-bell-solid-text);
}

.kd-card,
.ex-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0.5em 0.7em;
  border: 1px solid var(--kd-card-line);
  border-left: 0.3em solid var(--kd-card-accent);
  border-radius: 0.6em;
  background: var(--kd-card);
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kd-card.is-new,
.ex-card.is-new {
  animation: kd-in 0.5s ease-out;
}

.kd-card.tier-critical,
.ex-card.tier-critical {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.14), var(--kd-card) 60%);
}

.kd-card.is-leaving,
.ex-card.is-leaving {
  animation: kd-out 0.34s ease-in forwards;
  pointer-events: none;
}

.kd-card.is-leaving::after,
.ex-card.is-leaving::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 0.5em;
  background: rgba(52, 211, 153, 0.88);
  color: #04241a;
  font-size: 1.8em;
  font-weight: 900;
}

.kd-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kd-qty {
  color: var(--kd-qty-plain);
  font-size: 0.95em;
  font-weight: 800;
}

.kd-qty.is-multi {
  padding: 0.02em 0.45em;
  border-radius: 0.35em;
  background: var(--kd-qty-bg);
  color: var(--kd-qty-text);
}

.kd-min {
  color: var(--kd-tier);
  font-size: 0.85em;
  font-weight: 800;
  white-space: nowrap;
}

.ex-name .kd-min {
  margin-left: auto;
  font-size: 0.62em;
}

.kd-name {
  display: block;
  margin: 0.15em 0 0.1em;
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1.25;
}

.kd-hint {
  display: block;
  color: var(--kd-faint);
  font-size: 0.68em;
}

.kd-foot {
  padding: 0.4em 0.9em;
  border-top: 1px solid var(--kd-line);
  background: var(--kd-head);
  color: var(--kd-sub);
  font-size: 0.75em;
}

/* ディシャップ */
.ex-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.ex-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0.7em;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--kd-card-line) transparent;
}

.ex-empty {
  flex: 1;
  height: auto;
}

.ex-empty svg {
  width: 2.6em;
  height: 2.6em;
  color: #2fb37f;
}

.ex-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr));
  gap: 0.45em;
  padding: 0.5em;
}

.ex-name {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1.3em;
  font-weight: 800;
  line-height: 1.25;
}

.ex-name .kd-qty {
  font-size: 0.7em;
}

.ex-cooking {
  padding: 0.45em 0.7em;
  border: 1px solid var(--kd-cook-line);
  border-radius: 0.7em;
  background: var(--kd-cook-bg);
}

.ex-cooking-head {
  margin-bottom: 0.2em;
  color: var(--kd-sub);
  font-size: 0.75em;
  font-weight: 800;
}

.ex-cooking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.8em;
  font-size: 0.85em;
}

.ex-cooking-row b {
  color: var(--kd-table);
  font-size: 1.1em;
}

.ex-cooking-row small {
  margin-left: 0.3em;
  color: var(--kd-faint);
  font-size: 0.8em;
}

.ex-calls {
  flex: none;
  width: 36%;
  padding: 0.7em 0.7em 0.7em 0;
}

.ex-calls-box {
  border: 2px solid var(--kd-call-line);
  border-radius: 0.8em;
  background: var(--kd-group-bg);
}

.ex-calls-head {
  padding: 0.4em 0.7em;
  border-bottom: 1px solid var(--kd-line);
  font-weight: 800;
}

.ex-calls-empty {
  padding: 0.6em 0.7em;
  color: var(--kd-faint);
  font-size: 0.75em;
}

.ex-call {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1em 0.5em;
  padding: 0.45em 0.7em;
  border-bottom: 1px solid var(--kd-line);
}

.ex-call.is-new {
  animation: kd-in 0.5s ease-out;
}

.ex-call b {
  color: var(--kd-call-table);
  font-size: 1.2em;
}

.ex-call span {
  font-weight: 800;
}

.ex-call small {
  margin-left: auto;
  color: var(--kd-faint);
  font-size: 0.75em;
}

.ex-call-claimed {
  flex-basis: 100%;
  color: var(--kd-claimed);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 700;
}

@container (max-width: 420px) {
  .kd-root {
    font-size: 3.3cqw;
  }

  .kd-chips {
    display: none;
  }
}

/* ==========================================================================
   ハンディ(本物: ライトは空色の帯に白地、ダークは紺地。使用中の卓・呼び出し対応)
   ========================================================================== */

.hd-root {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--hd-bg);
  color: var(--hd-text);
  font-size: 6.2cqw;
  line-height: 1.35;
}

:where(.hd-root) button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.hd-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75em 1.45em 0.45em;
  background: var(--hd-status-bg);
  color: var(--hd-status);
  font-size: 0.72em;
  font-weight: 700;
}

.hd-status-right {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.hd-status-right svg {
  width: 1.15em;
  height: 1.15em;
}

.hd-island {
  position: absolute;
  left: 50%;
  top: 0.5em;
  width: 34%;
  height: 1.75em;
  border-radius: 999px;
  background: #000000;
  transform: translateX(-50%);
}

.hd-head {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.3em 0.7em 0.45em;
  background: var(--hd-head);
}

.hd-logo {
  width: auto;
  height: 1.25em;
}

.hd-wordmark {
  width: auto;
  height: 1.05em;
}

.hd-logo-dark {
  display: none;
}

.demo-section[data-theme="dark"] .hd-logo-light {
  display: none;
}

.demo-section[data-theme="dark"] .hd-logo-dark {
  display: block;
}

.hd-user {
  margin-left: auto;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: var(--hd-user-bg);
  color: var(--hd-user-text);
  font-size: 0.62em;
  font-weight: 700;
}

.hd-title {
  padding: 0.45em 0;
  border-bottom: 1px solid var(--hd-line);
  background: var(--hd-title-bg);
  font-size: 0.85em;
  font-weight: 800;
  text-align: center;
}

.hd-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4em;
  padding: 0.5em;
}

.hd-table {
  min-height: 4.6em;
  padding: 0.35em 0.3em;
  border: 1px solid var(--hd-free-line);
  border-radius: 0.45em;
  background: var(--hd-free-bg);
  text-align: center;
}

.hd-table b {
  display: block;
  color: var(--hd-free-name);
  font-size: 0.9em;
}

.hd-badge {
  display: inline-block;
  padding: 0.05em 0.6em;
  border-radius: 999px;
  background: var(--hd-badge-bg);
  color: var(--hd-badge-text);
  font-size: 0.6em;
}

.hd-table.is-busy {
  border-color: var(--hd-busy-line);
  background: var(--hd-busy-bg);
}

.hd-table.is-busy b {
  color: var(--hd-busy-name);
}

.hd-table.is-busy .hd-badge {
  background: var(--hd-busy-badge-bg);
  color: var(--hd-busy-badge-text);
  font-weight: 800;
}

.hd-table.is-resv {
  border-color: var(--hd-resv-line);
  background: var(--hd-resv-bg);
}

.hd-table.is-resv b {
  color: var(--hd-resv-name);
}

.hd-table.is-resv .hd-badge {
  background: var(--hd-resv-badge-bg);
  color: var(--hd-resv-badge-text);
  font-weight: 800;
}

.hd-table.is-me {
  box-shadow: inset 0 0 0 1px var(--hd-busy-line);
}

.hd-table.is-new {
  animation: hd-bump 0.6s ease-out;
}

.hd-amount {
  display: block;
  margin-top: 0.1em;
  color: var(--hd-amount);
  font-size: 0.85em;
  font-weight: 800;
}

.hd-meta {
  display: block;
  color: var(--hd-sub);
  font-size: 0.6em;
}

.hd-calls {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 0.2em;
  border-top: 1px solid var(--hd-line);
  background: var(--hd-calls-bg);
}

.hd-calls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45em 0.8em;
  color: var(--hd-calls-head);
  font-size: 0.8em;
  font-weight: 800;
}

.hd-calls-head svg {
  width: 1.1em;
  height: 1.1em;
  color: #e0a516;
}

.hd-calls-list {
  flex: 1;
  min-height: 0;
  padding-bottom: 1.2em;
  overflow-y: auto;
  scrollbar-width: none;
}

.hd-calls-empty {
  padding: 0.8em 0;
  color: var(--hd-sub);
  font-size: 0.68em;
  text-align: center;
}

.hd-call {
  margin: 0 0.5em 0.5em;
  padding: 0.45em 0.55em;
  border: 1px solid var(--hd-call-line);
  border-radius: 0.6em;
  background: var(--hd-call-bg);
}

.hd-call.is-new {
  animation: kd-in 0.5s ease-out;
}

.hd-call-main {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
}

.hd-call-main b {
  color: var(--hd-call-table);
}

.hd-call-main span {
  font-size: 0.85em;
  font-weight: 800;
}

.hd-call-main small {
  margin-left: auto;
  color: var(--hd-sub);
  font-size: 0.62em;
}

.hd-call-claimed {
  margin-top: 0.15em;
  color: var(--hd-claimed);
  font-size: 0.62em;
  font-weight: 700;
}

.hd-call-acts {
  display: flex;
  gap: 0.4em;
  margin-top: 0.4em;
}

.hd-call-acts button {
  flex: 1;
  padding: 0.45em 0;
  border: 1px solid var(--hd-btn-line);
  border-radius: 0.45em;
  background: var(--hd-btn-bg);
  font-size: 0.7em;
  font-weight: 800;
}

.hd-call-acts button.is-go {
  border-color: var(--hd-go);
  color: var(--hd-go);
}

.hd-home {
  position: absolute;
  left: 50%;
  bottom: 0.45em;
  width: 36%;
  height: 0.3em;
  border-radius: 999px;
  background: var(--hd-home);
  opacity: 0.85;
  transform: translateX(-50%);
}

/* iPhone の通知(上から出て、数秒で引っ込む) */
.hd-banner {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 2.6em;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.65em;
  border: 0;
  border-radius: 1.1em;
  background: var(--hd-banner-bg);
  color: var(--hd-banner-text);
  text-align: left;
  box-shadow: 0 0.6em 1.4em rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hd-banner.is-new {
  animation: hd-banner-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.hd-banner-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.5em;
  background: #0c1424;
}

.hd-banner-icon img {
  width: auto;
  height: 1.2em;
}

.hd-banner-text {
  flex: 1;
  min-width: 0;
}

.hd-banner-text b {
  display: block;
  font-size: 0.78em;
}

.hd-banner-text span {
  display: block;
  color: var(--hd-banner-sub);
  font-size: 0.66em;
}

.hd-banner-time {
  align-self: flex-start;
  color: var(--hd-banner-sub);
  font-size: 0.6em;
}

/* ==========================================================================
   スマートウォッチの画面(本物の腕のバンドと同じく、明るさに関係なく黒い画面)
   ========================================================================== */

.wt-root {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.5em;
  background: #000000;
  color: #ffffff;
  font-size: 12.5cqw;
  line-height: 1.3;
  text-align: center;
}

.wt-time {
  font-size: 2.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wt-date {
  margin-top: 0.4em;
  color: #9fb0c6;
  font-size: 0.85em;
}

.wt-heart {
  margin-top: 1.2em;
  color: #ff6b81;
  font-size: 0.85em;
}

.wt-root.is-notice {
  cursor: pointer;
  animation: demo-fade 0.25s ease-out;
}

.wt-app {
  display: flex;
  align-items: center;
  gap: 0.3em;
  color: #9fb0c6;
  font-size: 0.72em;
}

.wt-icon {
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #2fd2ff;
  color: #04121c;
  font-size: 0.9em;
  font-weight: 900;
}

/* 「T3 料理あがり」が「料理あ／がり」と言葉の途中で折れないよう、卓名のあとの空白で折る */
.wt-title {
  margin-top: 0.5em;
  font-size: 1.3em;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.wt-body {
  margin-top: 0.35em;
  color: #cfd8e3;
  font-size: 0.72em;
}

/* ==========================================================================
   この体験で動いた機能(白地の説明)
   ========================================================================== */

.demo-explain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.demo-explain-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.demo-explain-step {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
}

.demo-explain-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.demo-explain-card p {
  flex: 1;
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ==========================================================================
   幅ごとの切り替え
   ========================================================================== */

/* 並べて見せる幅の中でも狭いとき: ホールを細くして、タブレットの画面に幅を回す */
@media (min-width: 1180px) and (max-width: 1360px) {
  .demo-floor {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) 304px;
  }

  .is-phone .demo-bezel {
    width: 176px;
  }

  .is-phone .demo-bezel::before {
    top: 72px;
  }

  .is-phone .demo-bezel::after {
    top: 100px;
  }

  .is-watch .demo-bezel {
    width: 78px;
  }

  .demo-illust {
    width: 52px;
    height: 39px;
  }

  .demo-device-text b {
    font-size: 13px;
  }

  .is-phone .demo-device-text b {
    white-space: nowrap;
  }
}

/* 1つずつ見せる(js/demo.js の tabsQuery と同じ幅) */
@media (max-width: 1179px) {
  .demo-tabs {
    display: grid;
  }

  .demo-floor {
    display: block;
  }

  .demo-zone {
    display: none;
    padding: 22px 14px 18px;
  }

  .demo-zone.is-active {
    display: block;
  }

  .zone-kitchen .demo-device {
    display: none;
  }

  .zone-kitchen .demo-device.is-active {
    display: block;
  }

  .zone-kitchen .demo-device + .demo-device {
    margin-top: 0;
  }

  .is-ipad {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .demo-illust {
    width: 84px;
    height: 63px;
  }

  .is-phone .demo-bezel {
    width: 230px;
  }

  .is-phone .demo-bezel::before {
    top: 94px;
  }

  .is-phone .demo-bezel::after {
    top: 128px;
  }

  .is-watch .demo-bezel {
    width: 92px;
  }

  .demo-voicelog {
    margin-top: 16px;
  }

  .demo-explain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .demo-section {
    padding: 24px 0 40px;
  }

  .demo-container {
    padding: 0 12px;
  }

  .demo-zone {
    padding: 18px 8px 12px;
  }

  .demo-illust {
    width: 72px;
    height: 54px;
  }

  .is-ipad .demo-bezel {
    border-radius: 22px;
  }

  .is-ipad .demo-glass {
    padding: 10px;
    border-radius: 19px;
  }

  .is-ipad .demo-glass::before {
    top: 3px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
  }

  .is-tablet .demo-screen {
    aspect-ratio: 3 / 4;
  }

  .is-phone .demo-bezel {
    width: 196px;
  }

  .is-phone .demo-bezel::before {
    top: 80px;
  }

  .is-phone .demo-bezel::after {
    top: 110px;
  }

  .is-watch .demo-bezel {
    width: 78px;
  }

  .demo-hall {
    gap: 10px;
  }

  .is-watch .demo-device-text span {
    display: none;
  }

  /* 「ハンディ（スマホ）」が「（スマ / ホ）」で折れないように */
  .is-phone .demo-device-text b {
    font-size: 13px;
    white-space: nowrap;
  }

  .demo-start-card {
    padding: 24px 18px 20px;
  }

  .demo-start-card h3 {
    font-size: 20px;
  }

  .demo-explain {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 説明ナビは、画面の下を取りすぎないように詰める(手順の番号は見出しの「STEP」だけにする) */
  .demo-navi {
    bottom: 8px;
    margin-top: 14px;
    border-radius: 14px;
  }

  .demo-navi-row {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 12px 12px;
  }

  .demo-navi-num {
    display: none;
  }

  .demo-navi-title {
    font-size: 15px;
  }

  .demo-navi-step {
    margin-right: 6px;
  }

  .demo-navi-text {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .demo-navi-todo {
    margin-top: 6px;
    padding: 5px 12px 5px 8px;
    font-size: 13px;
  }

  /* 最後の「体験はここまで」は、下のボタンで分かるので出さない(ハンディとウォッチを隠しすぎないように) */
  .demo-navi-todo.is-done {
    display: none;
  }

  .demo-navi-ff {
    gap: 6px 10px;
    margin-top: 6px;
  }

  .demo-navi-legend {
    gap: 4px 10px;
  }

  .demo-navi-legend li {
    font-size: 12px;
  }

  .demo-navi-side {
    width: 100%;
    flex-direction: row;
  }

  .demo-navi-side > * {
    flex: 1;
  }

  .demo-navi-side .demo-btn-primary,
  .demo-navi-side .demo-btn-ghost {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .is-phone .demo-bezel {
    width: 180px;
  }

  .is-watch .demo-bezel {
    width: 70px;
  }
}

/* ==========================================================================
   動き
   ========================================================================== */

@keyframes demo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 159, 209, 0.85); }
  70% { box-shadow: 0 0 0 12px rgba(11, 159, 209, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 159, 209, 0); }
}

@keyframes demo-arrive {
  0% { filter: drop-shadow(0 0 0 rgba(47, 210, 255, 0.9)); }
  35% { filter: drop-shadow(0 0 14px rgba(47, 210, 255, 0.9)); }
  100% { filter: drop-shadow(0 0 0 rgba(47, 210, 255, 0)); }
}

@keyframes demo-tab-arrive {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes demo-buzz {
  0% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-2px) rotate(-1.5deg); }
  75% { transform: translateX(2px) rotate(1.5deg); }
  100% { transform: translateX(0) rotate(0); }
}

@keyframes demo-tap {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(0, 0, 0, 0.35); }
  100% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0), 0 4px 14px rgba(0, 0, 0, 0.35); }
}

@keyframes demo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes demo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

@keyframes demo-navi-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes kd-frame-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
  50% { box-shadow: 0 0 0 0.25em rgba(248, 113, 113, 0.35); }
}

@keyframes tb-added {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes tb-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes tb-pop {
  from { opacity: 0; transform: translateY(0.6em) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes kd-in {
  0% { opacity: 0; transform: translateY(-0.6em) scale(0.96); }
  60% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}

@keyframes kd-out {
  0% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0; }
}

@keyframes kd-bell-ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-18deg); }
  50% { transform: rotate(14deg); }
  75% { transform: rotate(-8deg); }
}

@keyframes hd-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes hd-banner-in {
  from { opacity: 0; transform: translateY(-1.5em); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-pulse,
  .demo-device.is-buzz .demo-bezel,
  .demo-device.is-arrive .demo-bezel,
  .demo-navi-main.is-enter,
  .demo-spin,
  .kd-bell.is-ringing .kd-bell-icon,
  .kd-group.tier-critical,
  .ex-group.tier-critical,
  .demo-navi-legend li.tier-critical.is-now i {
    animation: none;
  }
}
