/* LINE体験デモ。配色はラタトスクの正トークン（生成り×炭×深緑×照柿）。LINEのブランドカラー・ロゴは使わない */
:root {
  --paper: #F6F3EC;
  --paper-2: #EFE9DC;
  --talk: #E8E2D4;
  --white: #FFFFFF;
  --ink: #211E1A;
  --ink-2: #5B554D;
  --line: #E0D9CB;
  --line-2: #CFC6B4;
  --green: #0E5A45;
  --green-deep: #0A4232;
  --green-wash: #E4EEE9;
  --kaki: #D96A2F;
  --kaki-deep: #A84A1B;
  --kaki-wash: #F8E8DC;
  --slate: #34506B;
  --slate-wash: #E6ECF2;
  --danger: #8F2D14;
  --danger-wash: #F6E3DD;
  --row: 34px;
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.7; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--kaki); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 8px; }
.fine { font-size: 12px; color: var(--ink-2); line-height: 1.6; }

/* ---------- ボタン ---------- */
.btn-primary, .btn-secondary, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; line-height: 1.35; }
.btn-primary { background: var(--kaki-deep); color: #fff; border: 1px solid var(--kaki-deep); }
.btn-primary:hover { background: var(--kaki); border-color: var(--kaki); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--ink-2); }
.btn-secondary:hover { background: var(--paper-2); }
.btn-danger { background: var(--white); color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger-wash); }
.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-ghost { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--white); border-radius: 8px; font-size: 13px; }

/* ---------- ヘッダー ---------- */
.top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; }
.brand-name { display: none; font-weight: 700; font-size: 14px; }
.top-title { flex: 1; min-width: 0; }
.top h1 { font-size: 16px; line-height: 1.35; }
.top-sub { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); }
.top-lead { display: none; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.top-link { font-size: 13px; display: none; }

/* ---------- 案内バー ---------- */
.guide { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px 16px 8px; display: grid; gap: 4px; }
.guide-main { display: grid; gap: 4px; }
.guide-step { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.guide-k { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: var(--kaki-deep); color: #fff; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.guide-done { font-size: 14px; line-height: 1.6; }
.guide-done strong:first-child { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: var(--green); color: #fff; font-size: 12px; }
.guide-cta { display: flex; gap: 8px; margin-top: 2px; }
.guide-cta a { flex: 1 1 0; padding: 0 8px; font-size: 13.5px; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.guide-progress { display: flex; align-items: center; gap: 8px; }
.guide-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.guide-act:empty { display: none; }
.steps { display: flex; gap: 4px; padding: 0; margin: 0; list-style: none; }
.steps li { width: 22px; height: 5px; border-radius: 3px; background: var(--line-2); }
.steps li.on { background: var(--green); }
.steps-n { font-size: 11.5px; color: var(--ink-2); }
.clock { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.clock small { font-size: 11px; color: var(--ink-2); }
.clock em { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.btn-time { min-height: 44px; width: 100%; padding: 0 14px; border-radius: 8px; border: 1px solid var(--green-deep); background: var(--green-deep); color: #fff; font-weight: 700; font-size: 14px; }
.btn-time:hover { background: var(--green); }
.extras { font-size: 13px; }
.extras-sp { padding: 4px 16px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.extras-sp:empty { display: none; }
.extras-sp .extras summary { min-height: 40px; display: flex; align-items: center; }
.extras summary { cursor: pointer; color: var(--green); min-height: 28px; }
.extras ul { margin: 4px 0 4px; padding-left: 20px; }
.extras li { color: var(--ink-2); }
.extras li.on { color: var(--green-deep); }
.extras li.on::marker { content: '✓ '; }
.warn { font-size: 12px; color: var(--danger); }

/* ---------- 画面の切り替え（スマホ） ---------- */
.switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-bottom: 1px solid var(--line); }
.switch [role=tab] { position: relative; min-height: 44px; border: 0; border-bottom: 3px solid transparent; background: none; font-size: 14px; color: var(--ink-2); }
.switch [aria-selected=true] { border-bottom-color: var(--green); color: var(--ink); font-weight: 700; }
.dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--kaki-deep); vertical-align: 2px; }

.stage[data-view=phone] .admin { display: none; }
.stage[data-view=admin] .phone { display: none; }
.pane-label { display: none; }

/* ---------- お客様のスマホ ---------- */
.phone { height: var(--pane-h, 520px); }
.device { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--talk); }
.talk-head { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; background: var(--white); border-bottom: 1px solid var(--line); flex: none; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--kaki-wash); color: var(--kaki-deep); font-weight: 700; font-size: 14px; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; }
.talk-name { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.talk-name strong { font-size: 15px; }
.talk-name small { font-size: 11px; color: var(--ink-2); }
.badge-demo { flex: none; font-size: 11px; font-weight: 700; padding: 1px 8px; border: 1px solid var(--kaki-deep); color: var(--kaki-deep); border-radius: 4px; }

.friend { flex: 1; display: grid; place-items: center; padding: 20px; background: var(--white); overflow-y: auto; }
.friend-card { display: grid; justify-items: center; gap: 10px; max-width: 340px; text-align: center; }
.friend-name { font-size: 19px; font-weight: 700; }
.friend-intro { font-size: 13.5px; color: var(--ink-2); }
.friend-time { font-size: 13.5px; padding: 8px 12px; background: var(--paper-2); border-radius: 6px; line-height: 1.6; }
.friend-time strong { color: var(--green-deep); }
.friend-card .btn-primary { width: 100%; margin-top: 4px; }

.talk { flex: 1; overflow-y: auto; padding: 10px 12px 14px; overscroll-behavior: contain; }
.talk:focus-visible { outline-offset: -3px; }
.sep { text-align: center; margin: 10px 0 6px; }
.sep span, .sys span { display: inline-block; padding: 1px 10px; border-radius: 999px; background: rgba(33, 30, 26, .12); font-size: 11.5px; color: var(--ink); }
.sys { text-align: center; margin: 10px 0; }
.msg { display: flex; align-items: flex-end; gap: 6px; margin: 8px 0; }
.msg.fresh { animation: in .2s ease-out; }
.msg.me { justify-content: flex-end; }
.msg.shop .avatar { align-self: flex-start; }
.msg-body { max-width: 80%; min-width: 0; }
.msg-from { display: block; font-size: 11px; color: var(--ink-2); margin-bottom: 2px; }
.bubble { padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.6; }
.shop .bubble { background: var(--white); border: 1px solid var(--line); border-top-left-radius: 4px; }
.me .bubble { max-width: 80%; background: var(--green); color: #fff; border-top-right-radius: 4px; }
.mt { flex: none; font-size: 10.5px; color: var(--ink-2); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.act { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border: 1px solid var(--green); background: var(--white); color: var(--green); border-radius: 8px; font-weight: 700; font-size: 14px; }
.act:hover { background: var(--green-wash); }
.card { margin-top: 6px; padding: 12px; background: var(--white); border: 1px solid var(--line-2); border-radius: 10px; }
.card.stale { background: var(--paper); }
.card-title { font-size: 12px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.card-rows, .summary, .detail { margin: 0; display: grid; }
.card-rows div, .summary div, .detail div { display: grid; grid-template-columns: 5.2em 1fr; gap: 8px; padding: 3px 0; }
.card-rows dt, .summary dt, .detail dt { color: var(--ink-2); font-size: 12.5px; }
.card-rows dd, .summary dd, .detail dd { margin: 0; font-size: 14px; }
.card-acts { display: flex; gap: 6px; margin-top: 8px; }
.card-note { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.coupon-name { font-size: 15px; font-weight: 700; color: var(--kaki-deep); }
.chip { display: inline-block; margin-top: 6px; font-size: 11.5px; padding: 0 8px; border-radius: 4px; background: var(--paper-2); }
.chip.unused { background: var(--kaki-wash); color: var(--kaki-deep); }
.chip.applied, .chip.used { background: var(--green-wash); color: var(--green-deep); }
.menu-list { list-style: none; padding: 4px 12px; }
.menu-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.menu-list li:last-child { border-bottom: 0; }
.menu-list small { display: block; font-size: 11.5px; color: var(--ink-2); }

.notice { position: absolute; z-index: 6; top: 8px; left: 8px; right: 8px; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.45; box-shadow: 0 6px 18px rgba(33, 30, 26, .25); animation: drop .22s ease-out; pointer-events: none; }
.notice strong { font-size: 12px; }

.dock { flex: none; background: var(--white); border-top: 1px solid var(--line); }
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.qr { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--green); background: var(--white); color: var(--green); font-size: 13.5px; white-space: nowrap; }
.richmenu { display: grid; grid-template-columns: repeat(3, 1fr); }
.rm { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 62px; padding: 6px 4px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.rm:nth-child(3n) { border-right: 0; }
.rm:hover { background: var(--paper); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ask { display: flex; gap: 8px; padding: 8px 10px; }
.ask input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--paper); font-size: 16px; }
.ask button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--green); color: #fff; font-weight: 700; }
.ask-error { padding: 0 12px 8px; font-size: 12.5px; color: var(--danger); }
.dock-bar { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.dock-bar button { min-height: 40px; border: 0; background: var(--white); font-size: 13px; color: var(--ink-2); }
.dock-bar [aria-pressed=true] { color: var(--green); font-weight: 700; box-shadow: inset 0 3px 0 var(--green); }

/* 予約画面（シート） */
.sheet { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; background: var(--white); animation: up .2s ease-out; }
.sheet-head { display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-head h2 { font-size: 16px; text-align: center; }
.sheet-head h2:focus { outline: none; }
.sheet-back, .sheet-close { min-height: 44px; border: 0; background: none; font-size: 14px; color: var(--green); }
.sheet-close { font-size: 24px; line-height: 1; justify-self: end; width: 52px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 12px 16px 28px; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; gap: 12px; }
.sheet-note { font-size: 11.5px; color: var(--ink-2); padding: 6px 10px; background: var(--paper); border-radius: 6px; }
.sheet-error { padding: 8px 12px; border-radius: 6px; background: var(--danger-wash); color: var(--danger); font-size: 13.5px; font-weight: 600; }
.sheet-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.sheet-steps { display: flex; gap: 6px; padding: 0; margin: 0; list-style: none; }
.sheet-steps li { flex: 1; text-align: center; font-size: 12px; padding: 3px 0; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.sheet-steps li.on { background: var(--green); color: #fff; font-weight: 700; }
.sheet-steps li.done { background: var(--green-wash); color: var(--green-deep); }
.choices { display: grid; gap: 8px; }
.choice { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'main price' 'sub price'; align-items: center; gap: 0 10px; min-height: 64px; padding: 10px 14px; text-align: left; background: var(--white); border: 1px solid var(--line-2); border-radius: 10px; }
.choice:hover { border-color: var(--green); }
.choice.on { border: 2px solid var(--green); padding: 9px 13px; }
.c-main { grid-area: main; font-weight: 700; font-size: 15px; }
.c-sub { grid-area: sub; font-size: 12px; color: var(--ink-2); }
.c-price { grid-area: price; font-size: 15px; }
.dates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.date { flex: none; display: grid; justify-items: center; min-width: 58px; min-height: 64px; padding: 4px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); line-height: 1.3; }
.date small { font-size: 11px; color: var(--ink-2); }
.date strong { font-size: 15px; }
.date .mark { font-size: 12px; color: var(--green); }
.date.on { background: var(--green); border-color: var(--green); color: #fff; }
.date.on small, .date.on .mark { color: #fff; }
.date:disabled { background: var(--paper-2); color: var(--ink-2); }
.date:disabled .mark { color: var(--ink-2); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { display: grid; justify-items: center; min-height: 52px; padding: 4px; border: 1px solid var(--green); border-radius: 8px; background: var(--white); line-height: 1.3; }
.slot strong { font-size: 15px; color: var(--green-deep); }
.slot small { font-size: 10.5px; color: var(--ink-2); }
.slot:hover:not(:disabled) { background: var(--green-wash); }
.slot.ng { border-color: var(--line); background: var(--paper-2); }
.slot.ng strong { color: var(--ink-2); font-weight: 500; }
.slot.cur { border-style: dashed; border-color: var(--kaki-deep); background: var(--kaki-wash); }
.legend { font-size: 11.5px; color: var(--ink-2); margin-top: 8px; }
.summary { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.sheet-acts { display: grid; gap: 8px; }

/* ---------- お店の管理画面 ---------- */
.console { background: var(--white); height: var(--pane-h, 520px); display: flex; flex-direction: column; overflow: hidden; }
.console-head { display: none; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.console-head strong { font-size: 15px; }
.console-note { font-size: 11.5px; color: var(--ink-2); }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kpi-item { display: grid; padding: 8px 10px; border-right: 1px solid var(--line); line-height: 1.35; }
.kpi-item:last-child { border-right: 0; }
.kpi-item small { font-size: 11px; color: var(--ink-2); }
.kpi-item strong { font-size: 18px; }
.kpi-item span { font-size: 10.5px; color: var(--ink-2); }
.admin-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; }
.admin-tabs [role=tab] { flex: 1 0 auto; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; background: none; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.admin-tabs [aria-selected=true] { border-bottom-color: var(--green); color: var(--ink); font-weight: 700; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 4px; border-radius: 9px; background: var(--kaki-deep); color: #fff; font-size: 11px; font-weight: 700; }
.admin-body { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 28px; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; gap: 10px; }
.admin-body h4 { font-size: 14px; margin-top: 8px; }
.pane-help { font-size: 12.5px; color: var(--ink-2); padding-left: 10px; border-left: 3px solid var(--green-wash); line-height: 1.6; }
.empty { font-size: 13px; color: var(--ink-2); }
.daystrip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.day { position: relative; flex: none; display: grid; justify-items: center; min-width: 74px; min-height: 48px; padding: 4px 6px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); font-size: 13px; line-height: 1.3; }
.day small { font-size: 11px; color: var(--ink-2); }
.day.on { background: var(--green); border-color: var(--green); color: #fff; }
.day.on small { color: #fff; }
.mine-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--kaki-deep); }
.ledger-title { font-size: 14px; }
.timeline { display: grid; grid-template-columns: 44px 1fr; border-top: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--row) - 1px), var(--line) calc(var(--row) - 1px), var(--line) var(--row)); }
.tl-time { grid-column: 1; font-size: 11px; color: var(--ink-2); padding-top: 2px; }
.tl-item, .tl-free { grid-column: 2; margin: 2px 0 3px 4px; border-radius: 4px; text-align: left; }
.tl-item { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0 8px; padding: 3px 8px; overflow: hidden; border: 0; border-left: 4px solid var(--green); background: var(--green-wash); font-size: 12.5px; line-height: 1.45; }
.tl-item.you { border-left-color: var(--kaki-deep); background: var(--kaki-wash); }
.tl-item.blocked { border-left-color: var(--ink-2); background: var(--paper-2); }
.tl-when { font-weight: 700; }
.tl-who { font-weight: 700; }
.tl-free { border: 1px dashed var(--line-2); background: transparent; color: var(--ink-2); font-size: 12px; padding: 0 8px; }
.tl-free:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.tl-free.on { border: 2px solid var(--green); color: var(--green); }
.tl-free:disabled { border: 0; }
.new { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 3px; background: var(--kaki-deep); color: #fff; font-size: 10px; font-style: normal; vertical-align: 1px; }
.src { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 10.5px; line-height: 1.7; background: var(--paper-2); color: var(--ink); white-space: nowrap; }
.src-line { background: var(--green-wash); color: var(--green-deep); }
.src-tel { background: var(--kaki-wash); color: var(--kaki-deep); }
.src-web { background: var(--slate-wash); color: var(--slate); }
.src-block { background: var(--paper-2); color: var(--ink-2); }
.st { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 11px; line-height: 1.7; white-space: nowrap; }
.st.confirmed, .st.q-scheduled { background: var(--kaki-wash); color: var(--kaki-deep); }
.st.visited, .st.q-sent { background: var(--green-wash); color: var(--green-deep); }
.st.cancelled { background: var(--danger-wash); color: var(--danger); }
.st.q-skipped, .st.q-cancelled { background: var(--paper-2); color: var(--ink-2); }
.legend .src { margin-left: 2px; }
.pulse { animation: pulse 1.6s ease-out 1; }
.blockdraft { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--green); border-radius: 8px; }
.bd-title { font-weight: 700; font-size: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 13.5px; }
.opt.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.opt:hover:not(.on) { border-color: var(--green); }
.back { justify-self: start; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--green); font-size: 14px; }
.detail-title { font-size: 17px; }
.detail-title small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.detail { border-top: 1px solid var(--line); }
.detail div { border-bottom: 1px solid var(--line); padding: 6px 0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rows.log li span:first-child { color: var(--ink-2); font-size: 12px; }
.row-note { flex-basis: 100%; font-size: 11.5px; color: var(--ink-2); }
.row-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; width: 100%; min-height: 44px; padding: 4px 0; border: 0; background: none; text-align: left; font-size: 13.5px; }
.cust { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cust > li { padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.cust > li.you { box-shadow: inset 4px 0 0 var(--kaki-deep); padding-left: 12px; }
.cust-name { font-weight: 700; }
.cust-meta { font-size: 12px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink-2); }
.autos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.autos > li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.auto-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auto-name { display: grid; font-weight: 700; font-size: 14px; line-height: 1.4; }
.auto-name small { font-weight: 400; font-size: 12px; color: var(--ink-2); }
.auto-note { font-size: 11.5px; color: var(--kaki-deep); }
.switch-btn { flex: none; min-width: 68px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink-2); font-weight: 700; font-size: 13px; }
.switch-btn[aria-checked=true] { background: var(--green); border-color: var(--green); color: #fff; }
.autos details summary { font-size: 12.5px; color: var(--green); cursor: pointer; min-height: 28px; }
.preview { white-space: pre-wrap; font-size: 13px; padding: 10px; border-radius: 6px; background: var(--paper); }
.inbox-item { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; }
.inbox-meta { font-size: 11.5px; color: var(--ink-2); }
.inbox-text { font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.inbox-k { font-size: 12px; font-weight: 700; }

/* ---------- トースト ---------- */
.toast { position: fixed; z-index: 60; left: 12px; right: 12px; top: calc(var(--shell-h, 200px) + 4px); margin: 0 auto; max-width: 560px; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 13.5px; line-height: 1.5; box-shadow: 0 8px 24px rgba(33, 30, 26, .25); }
.toast span { flex: 1; }
.toast-go { flex: none; min-height: 40px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 700; }

/* ---------- ページ下部 ---------- */
.info { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.block { padding: 40px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 21px; line-height: 1.45; margin-bottom: 8px; }
.block h3 { font-size: 16px; margin-bottom: 8px; }
.lead { color: var(--ink-2); margin-bottom: 16px; }
.fgroups { display: grid; gap: 14px; margin-bottom: 12px; }
.fgroup { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.fgroup.fg-demo { background: transparent; border-style: dashed; }
.fgroup h3 { margin-bottom: 4px; }
.fg-desc { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.fg-list { margin: 0; }
.fg-list div { padding: 8px 0; border-top: 1px solid var(--line); }
.fg-list dt { font-weight: 700; font-size: 14px; }
.fg-list dd { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.kd { display: inline-block; justify-self: start; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.kd-std { background: var(--green-wash); color: var(--green-deep); }
.kd-build { background: var(--kaki-wash); color: var(--kaki-deep); }
.kd-ask { background: var(--slate-wash); color: var(--slate); }
.kd-demo { background: var(--white); color: var(--ink-2); border: 1px dashed var(--line-2); }
.cost-grid { display: grid; gap: 16px; }
.cost-item { padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.price { font-size: 32px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.price small { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-left: 4px; }
.plain { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.plain li { margin: 4px 0; }
.field { display: block; margin: 12px 0; font-size: 13.5px; font-weight: 700; }
.field .row { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-weight: 400; }
.field input[type=range] { flex: 1; accent-color: var(--green); min-height: 32px; }
.field select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); font-size: 15px; }
.field output { min-width: 56px; text-align: right; font-weight: 700; }
.calc-result { display: grid; gap: 4px; padding: 12px 14px; margin: 14px 0 10px; border-radius: 6px; background: var(--paper); }
.calc-total strong { font-size: 22px; margin-left: 4px; }
.calc-break, .calc-hint { font-size: 12.5px; color: var(--ink-2); }
.calc-plan { font-weight: 700; color: var(--green-deep); }
.calc-plan.paid { color: var(--kaki-deep); }
.concern-list { border-top: 1px solid var(--line); }
.concern { border-bottom: 1px solid var(--line); }
.concern summary { padding: 14px 4px; min-height: 48px; font-weight: 700; cursor: pointer; }
.concern p { padding: 0 4px 16px; color: var(--ink-2); font-size: 14.5px; }
.memo { display: grid; gap: 4px; }
.memo fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.memo legend { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font-size: 13.5px; }
.chip-opt input:checked + span { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.chip-opt input:checked + span::before { content: '✓'; margin-right: 4px; }
.chip-opt input:focus-visible + span { outline: 3px solid var(--kaki); outline-offset: 2px; }
.memo-label { font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.memo textarea { width: 100%; min-height: 220px; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); font-size: 15px; line-height: 1.7; resize: vertical; }
.copy-status { min-height: 1.5em; font-size: 13px; color: var(--green-deep); font-weight: 600; }
.memo-actions { display: grid; gap: 10px; }
.assure { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.assure li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 8px; }
.more { margin-top: 16px; font-size: 14px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 24px 16px 96px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); display: grid; gap: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.copy { margin-top: 4px; }
.noscript { padding: 20px 16px; background: var(--danger-wash); color: var(--danger); }

/* ---------- 動き ---------- */
@keyframes in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 3px var(--kaki); } 100% { box-shadow: 0 0 0 3px transparent; } }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--kaki); } 100% { box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 画面幅ごとの調整 ---------- */
@media (max-width: 359px) {
  .top-sub { display: none; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .kpi-item strong { font-size: 16px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .device { max-width: 480px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .console { max-width: 720px; margin: 0 auto; }
}
@media (min-width: 640px) {
  .brand-name { display: inline; }
  .top-lead { display: block; }
  .top-link { display: inline; }
  .memo-actions { display: flex; flex-wrap: wrap; }
  .fgroups { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .top { padding: 12px 24px; }
  .top h1 { font-size: 19px; }
  .top-lead { font-size: 13px; }
  .guide { position: sticky; top: 0; padding: 10px 24px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'main act' 'meta act'; align-items: center; column-gap: 24px; }
  .guide-main { grid-area: main; }
  .guide-meta { grid-area: meta; justify-content: flex-start; }
  .guide-act { grid-area: act; flex-direction: column; align-items: flex-end; }
  .btn-time { width: auto; }
  .extras-sp { display: none; }
  .guide .warn { grid-column: 1 / -1; }
  .guide-step, .guide-done { font-size: 15px; }
  .switch { display: none; }
  .stage { display: grid; grid-template-columns: 404px minmax(0, 1fr); gap: 28px; max-width: 1240px; margin: 0 auto; padding: 18px 24px 24px; align-items: start; }
  .stage[data-view] .phone, .stage[data-view] .admin { display: block; }
  .pane-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; margin-bottom: 6px; }
  .phone { height: auto; }
  .device { height: 760px; width: 404px; border: 8px solid var(--ink); border-radius: 30px; }
  .phone.flash .device, .admin.flash .console { animation: flash 1.4s ease-out 1; }
  .console { height: 760px; border: 1px solid var(--line-2); border-radius: 8px; }
  .console-head { display: grid; }
  .guide-cta a { flex: none; padding: 0 16px; font-size: 14px; }
  .admin-body { padding: 14px 20px 28px; }
  .cost-grid { grid-template-columns: 1fr 1.2fr; }
  .block { padding: 56px 0; }
  .block h2 { font-size: 24px; }
  .toast { left: auto; right: 24px; top: auto; bottom: 24px; }
}
@media (max-width: 359px) { .sub-more { display: none; } }
/* 背の低いスマホ（SE・横向きなど）でも、メニューと入力欄が1画面に入るように詰める */
@media (max-width: 1023px) and (max-height: 700px) {
  .top { padding: 6px 12px; }
  .brand-mark { width: 26px; height: 26px; font-size: 13px; }
  .top h1 { font-size: 15px; }
  .talk-head { min-height: 44px; padding: 4px 12px; }
  .talk-head .avatar { width: 26px; height: 26px; }
  .rm { min-height: 46px; padding: 3px 4px; gap: 0; font-size: 12px; }
  .ico svg { width: 20px; height: 20px; }
  .btn-time { min-height: 40px; }
}
