:root { --blue: #2563eb; --ink: #1f2937; --ink2: #6b7280; --line: #e5e7eb; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif; color: var(--ink); background: #f8fafc; }
button { font: inherit; cursor: pointer; }
.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 18px; color: var(--blue); white-space: nowrap; }
.demo-tag { font-size: 11px; color: var(--ink2); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; margin-left: 4px; vertical-align: middle; font-weight: 400; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.ghost { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.call-btn { display: inline-flex; align-items: center; gap: 6px; background: #06a35a; color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.call-btn:hover { background: #058a4c; }
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.lead { color: var(--ink2); margin: 0 0 16px; }
section { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
label { font-size: 12px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; }
input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.primary { background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 9px 22px; font-weight: 600; }
.results ul { list-style: none; margin: 0; padding: 0; }
.results li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.results li div { display: flex; flex-direction: column; }
.results li span { color: var(--ink2); font-size: 13px; }
.results em { font-style: normal; font-weight: 700; color: var(--blue); }
.howto ol { margin: 0; padding-left: 20px; line-height: 1.9; }
.note { color: var(--ink2); font-size: 13px; margin: 10px 0 0; }

/* ---- 通話画面（見た目だけのデモ） ---- */
.call { position: fixed; inset: 0; z-index: 100; color: #fff; display: flex; flex-direction: column; align-items: center;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow: hidden; animation: up .25s ease-out; }
.call[hidden] { display: none; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.call-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #4b5a6b 0%, #2f3a47 55%, #1f262f 100%); }
.call-bg::after { content: ""; position: absolute; inset: -20%; background: radial-gradient(circle at 50% 28%, rgba(255,255,255,.18), transparent 45%); filter: blur(20px); }
.call-demo { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 2px 8px; }
.call-top { width: 100%; max-width: 480px; padding: 12px 14px; }
.call-min { background: none; border: 0; color: #fff; opacity: .9; padding: 4px; }
.call-person { margin-top: 6vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; background: #8796a8; overflow: hidden; box-shadow: 0 0 0 6px rgba(255,255,255,.08); }
.avatar svg { width: 100%; height: 100%; }
.call.connected .avatar { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(255,255,255,.05); } }
.name { font-size: 26px; font-weight: 600; margin-top: 8px; }
.timer { font-size: 16px; opacity: .85; font-variant-numeric: tabular-nums; }
.call-controls { margin-top: auto; width: 100%; max-width: 420px; display: flex; justify-content: space-around; padding: 0 20px; }
.ctl { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; }
.ctl .circle { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; transition: background .15s; }
.ctl .circle svg { width: 28px; height: 28px; }
.ctl[aria-pressed="true"] .circle { background: #fff; color: #2f3a47; }
.ctl .lbl { font-size: 12px; opacity: .9; }
.call-end { padding: 28px 0 max(40px, calc(env(safe-area-inset-bottom) + 24px)); }
.end { width: 72px; height: 72px; border-radius: 50%; border: 0; background: #ef4444; color: #fff; display: grid; place-items: center; }
.end:active { transform: scale(.95); }
@media (min-height: 800px) { .call-person { margin-top: 10vh; } }
