/* 配置: 広い画面 = 左に説明の列・右に端末の枠 ／ スマホ = 画面いっぱいに経営アプリ */
:root {
  /* 端末の外側（説明の列・背景）— 共通デザインシステム LAYER 0-b */
  --surface-paper: #f7f9fb;
  --surface-card: #ffffff;
  --surface-line: #d8e2e7;
  --text-ink: #1d2b32;
  --text-ink-2: #48606b;
  --accent: #0090b0;
  --accent-strong: #006e87;
  --accent-soft: #e3f2f7;
  --frame: #1d2b32;
  --font-ui: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  /* 経営アプリの画面の色（本番と同じ。本番は明るい画面だけなので、端末の中はダークにしない） */
  --a: #00a4c5;
  --a-strong: #0083a0;
  --a-text: #00627b;
  --a-tint: #e6f7fa;
  --a-100: #b3e8f0;
  --a-200: #80d9e6;
  --on-a: #ffffff;
  --ink: #1f2937;
  --muted: #5f6672;
  --line: #e7eaed;
  --bg: #f9f9f9;
  --card: #ffffff;
  --danger: #991b1b;
  --danger-soft: #fee2e2;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --pl-cost: #7fb4c2;
  --pl-labor: #aacfd8;
  --pl-other: #d8dee2;
  --cam: #002031;
  --cam-2: #004156;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-paper: #10181c;
    --surface-card: #182229;
    --surface-line: #2b3a42;
    --text-ink: #dce7ea;
    --text-ink-2: #93aab4;
    --accent: #4cc3dd;
    --accent-strong: #7dd6e9;
    --accent-soft: #12303a;
    --frame: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface-paper: #10181c;
  --surface-card: #182229;
  --surface-line: #2b3a42;
  --text-ink: #dce7ea;
  --text-ink-2: #93aab4;
  --accent: #4cc3dd;
  --accent-strong: #7dd6e9;
  --accent-soft: #12303a;
  --frame: #000000;
  color-scheme: dark;
}
html, body { height: 100%; }
body { margin: 0; background: var(--surface-paper); color: var(--text-ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }

/* ── 外側: 説明の列と端末の枠 ── */
.page { min-height: 100%; box-sizing: border-box; display: flex; justify-content: center; align-items: flex-start; gap: 48px; padding-block: 32px; padding-inline: 24px; }
.side { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); }
.side-top { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent-strong); }
.side h1 { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.doc-dates { font-size: 12px; color: var(--text-ink-2); font-variant-numeric: tabular-nums; }
.lede { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-ink-2); }
.about { display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--surface-card); border: 1px solid var(--surface-line); border-radius: 14px; padding: 16px 18px; }
.panel h2 { margin: 0; font-size: 15px; font-weight: 700; }
details.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 8px; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid var(--text-ink-2); border-bottom: 2px solid var(--text-ink-2); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
details.panel[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.panel[open] > summary { margin-bottom: 8px; }
.about:not(.open) { display: none; }
.fold { align-self: flex-start; margin-top: 4px; }
.panel p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--text-ink-2); }
.panel p + p { margin-top: 6px; }
.panel b { color: var(--text-ink); }
.route { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: r; }
.route li { counter-increment: r; }
.route button { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-ink); }
.route button::before { content: counter(r); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-strong); }
.route button:hover { background: var(--accent-soft); }
.route .rt { min-width: 0; }
.route small { display: block; color: var(--text-ink-2); font-size: 12px; }
.route .go { font-size: 12px; font-weight: 700; color: var(--accent-strong); white-space: nowrap; }
.side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.s-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--surface-line); background: var(--surface-card); font-size: 13px; font-weight: 700; color: var(--text-ink); }
.s-btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--surface-card); }
.src { margin: 0; font-size: 12px; line-height: 1.7; color: var(--text-ink-2); }
.start-btn { display: none; }
.mbar { display: none; }

/* 業種のタブ（端末の上）。押すと飲食店・店舗ビジネス・フリーランスの版に切り替わる */
.stage { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ind-tabs { display: flex; gap: 4px; width: 410px; max-width: 100%; box-sizing: border-box; padding: 4px; border: 1px solid var(--surface-line); border-radius: 999px; background: var(--surface-card); }
.ind-tabs button { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--text-ink-2); white-space: nowrap; cursor: pointer; }
.ind-tabs button:hover { background: var(--accent-soft); color: var(--text-ink); }
.ind-tabs button[aria-selected="true"] { background: var(--accent-strong); color: var(--surface-card); }
.ind-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.device { position: relative; flex: 0 0 auto; width: 390px; height: min(844px, calc(100vh - 116px)); min-height: 640px; border: 10px solid var(--frame); border-radius: 46px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 48px rgba(16, 24, 28, .18); }

/* ── 端末の中: 経営アプリ ── */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; color-scheme: light; overflow: hidden; }
.sbar { flex: 0 0 34px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 4px; font-size: 13px; font-weight: 700; background: var(--card); font-variant-numeric: tabular-nums; }
.sbar .bat { display: inline-flex; gap: 6px; align-items: center; }
.sbar .bat i { display: inline-block; width: 22px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; box-sizing: border-box; }
.sbar .bat i::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: var(--ink); border-radius: 1px; }
.scr { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; position: relative; }
.body { padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 12px; }
.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.ic-s { width: 16px; height: 16px; }
.ic-m { width: 20px; height: 20px; }

.hd { background: var(--card); border-bottom: 1px solid var(--line); padding: 6px 12px 12px 16px; position: sticky; top: 0; z-index: 5; }
.hd-top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.logo img { height: 22px; width: auto; display: block; }
.hd-ic { display: flex; gap: 2px; }
.icbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.icbtn:hover { background: var(--bg); }
.icbtn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--card); }
.greet { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-right: 4px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--a); color: var(--on-a); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: 0 0 auto; }
.greet .who { flex: 1 1 auto; min-width: 0; }
.greet .store { font-size: 16px; font-weight: 700; line-height: 1.35; }
.greet .org { font-size: 12px; color: var(--muted); }
.greet .hello { font-size: 12px; color: var(--ink); }
.greet .date { font-size: 12px; color: var(--muted); white-space: nowrap; align-self: flex-start; padding-top: 2px; }
.hd-store { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sh { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px 0 4px; background: var(--card); border-bottom: 1px solid var(--line); }
.sh h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.page-title h2 { margin: 0; font-size: 20px; font-weight: 700; }
.desc { margin: 0; font-size: 13px; color: var(--muted); }

.card { background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(31, 41, 55, .07); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 .grow { flex: 1 1 auto; }
.card.line-l { border-left: 4px solid var(--a); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.big { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.mid { font-size: 20px; font-weight: 700; line-height: 1.3; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 2px 0; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--a-text); font-weight: 700; font-size: 14px; }
.link .ic-s { margin-top: 1px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; box-sizing: border-box; }
.p-neutral { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.p-info { background: var(--a-tint); color: var(--a-text); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-danger { border: 1px solid var(--danger); color: var(--danger); background: var(--card); }
.p-todo { background: var(--danger-soft); color: var(--danger); }
.p-done { background: var(--a-tint); color: var(--a-text); }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; width: 100%; box-sizing: border-box; }
.btn-fill { background: var(--a-strong); color: var(--on-a); }
.btn-fill:hover { background: var(--a-text); }
.btn-line { border: 2px solid var(--a); color: var(--a-text); background: var(--card); }
.btn-quiet { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1 1 0; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg); text-align: left; width: 100%; box-sizing: border-box; }
.tile .ibox { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--a-tint); color: var(--a-text); flex: 0 0 auto; }
.tile .t { flex: 1 1 auto; min-width: 0; }
.tile .t b { display: block; font-size: 14px; }
.tile .t span { display: block; font-size: 12px; color: var(--muted); }
.tile .chev { color: var(--muted); }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; min-width: 0; }
.li:first-child { border-top: 0; }
.li .t { flex: 1 1 auto; min-width: 0; }
.li .t b { display: block; font-size: 14px; font-weight: 500; }
.li .t span { display: block; font-size: 12px; color: var(--muted); }
.li .v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; }
.seg button { min-height: 34px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 8px; white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--a-text); font-weight: 700; box-shadow: 0 1px 2px rgba(31, 41, 55, .12); }

/* ホームの売上カード */
.kpi-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.kpi-pills .pill { background: var(--card); border: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-pills .pill .ic-s { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.grid2 > div { padding: 10px 0 2px; min-width: 0; }
.grid2 > div:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 14px; }
.grid2 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.grid2 .k { font-size: 12px; color: var(--muted); }
.grid2 .v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.grid2 .s { font-size: 12px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.grid3 > div { padding: 10px 0 2px; min-width: 0; }
.grid3 > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.grid3 .k { font-size: 12px; color: var(--muted); }
.grid3 .v { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.grid3 .s { font-size: 12px; color: var(--muted); }
.bad { color: var(--danger); }

/* グラフ */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .base { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.chart .thr { stroke: var(--danger); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .tick { fill: var(--muted); font-size: calc(12px * var(--fit, 1)); font-variant-numeric: tabular-nums; }
.chart .xl { fill: var(--muted); font-size: calc(12px * var(--fit, 1)); }
.chart .xl.cur { fill: var(--ink); font-weight: 700; }
.chart .vl { fill: var(--ink); font-size: calc(12px * var(--fit, 1)); font-weight: 700; }
.chart .b-food { fill: var(--a); }
.chart .b-labor { fill: var(--a-200); }
.chart .b-past { fill: var(--a-200); }
.chart .b-cur { fill: var(--a); }
.chart .hit { fill: var(--a); fill-opacity: 0; cursor: pointer; outline: none; }
.chart .hit:hover, .chart .hit:focus-visible, .chart .hit.on { fill-opacity: .08; }
.grow-y { transform-box: fill-box; transform-origin: 50% 100%; animation: growY .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* 数字タブ: グラフは画面に入るまで伸ばさず、同じ画面の描き直しでは伸ばし直さない。月ごとの一覧は入ったら順に出す */
.chart.wait .grow-y { animation-play-state: paused; }
.chart.still .grow-y { animation: none; }
.chart .vl { transition: opacity .4s ease .7s; }
.chart.wait .vl { opacity: 0; transition: none; }
.mcard.wait { opacity: 0; }
.mcard.rise { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw-food { background: var(--a); }
.sw-labor { background: var(--a-200); }
.sw-thr { width: 14px; height: 0; border-top: 2px dashed var(--danger); border-radius: 0; }
.sw-cost { background: var(--pl-cost); }
.sw-lab2 { background: var(--pl-labor); }
.sw-oth { background: var(--pl-other); }
.sw-op { background: var(--a); }
.tip { position: absolute; z-index: 40; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 20px rgba(31, 41, 55, .16); padding: 8px 10px; font-size: 12px; line-height: 1.5; min-width: 120px; }
.tip .tv { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tip .tr { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.tip .tm { color: var(--muted); }
.tip .k { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.tip .k-food { background: var(--a); }
.tip .k-labor { background: var(--a-200); }

.meter { position: relative; height: 10px; border-radius: 999px; background: var(--a-tint); margin: 6px 0 18px; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--a); transition: width .6s ease; }
.meter .fill.w { background: var(--warn); }
.meter .fill.d { background: var(--danger); }
.meter .mk { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
.meter .mk span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.band { display: flex; gap: 2px; height: 28px; }
.band > div { min-width: 2px; transition: flex-grow .6s ease; }
.band > div:first-child { border-radius: 4px 0 0 4px; }
.band > div:last-child { border-radius: 0 4px 4px 0; }
.pl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pl td { padding: 7px 0; border-top: 1px solid var(--line); }
.pl td:nth-child(2), .pl td:nth-child(3) { text-align: right; white-space: nowrap; }
.pl td:nth-child(3) { color: var(--muted); width: 56px; }
.pl tr.sum td { font-weight: 700; }
.pl tr.op td { font-weight: 700; color: var(--a-text); }
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { width: 128px; height: 128px; flex: 0 0 auto; }
.ring .trk { stroke: var(--a-tint); }
.ring .val { stroke: var(--a); transition: stroke-dashoffset 1s cubic-bezier(.2, .7, .2, 1); }
.ring .g1 { fill: var(--ink); font-size: 26px; font-weight: 700; }
.ring .g2 { fill: var(--muted); font-size: 12px; }
.sub-bars { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sub-bars .sb-k { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sub-bars .sb-t { height: 6px; border-radius: 999px; background: var(--a-tint); overflow: hidden; }
.sub-bars .sb-t i { display: block; height: 100%; background: var(--a); border-radius: 999px; transition: width .8s ease; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: 22px 1fr 64px; gap: 8px; align-items: center; font-size: 12px; }
.hbar .tr { height: 16px; }
.hbar .tr i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--a); transition: width .6s ease; }
.hbar .tr i.lo { background: var(--a-200); }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.brandbox { background: var(--a-strong); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--on-a); }
.brandbox h3 { margin: 0; font-size: 14px; font-weight: 700; }
.brandbox .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brandbox .tl { background: var(--card); color: var(--ink); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.brandbox .tl.full { grid-column: 1 / -1; }
.brandbox .tl .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.brandbox .tl .v { font-size: 18px; font-weight: 700; }
.brandbox .tl .s { font-size: 12px; color: var(--muted); }
.mcard { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(31, 41, 55, .07); }
.mcard .t { flex: 1 1 auto; min-width: 0; }
.mcard .t b { font-size: 14px; }
.mcard .t .r { display: flex; gap: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.mcard .t .r b { font-size: 13px; color: var(--ink); }

/* 記録 */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .h { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 2px; }
.cal button, .cal .x { min-height: 48px; border-radius: 10px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cal .x { background: transparent; }
.cal .d { color: var(--muted); }
.cal .v { font-weight: 700; font-size: 12px; color: var(--ink); }
.cal .off { color: var(--muted); font-size: 12px; }
.cal .today { box-shadow: inset 0 0 0 2px var(--a); }
.cal .miss .v { color: var(--danger); font-weight: 500; font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--muted); }
.inp { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 12px; min-height: 48px; }
.inp:focus-within { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-tint); }
.inp input, .inp select { border: 0; outline: 0; background: transparent; flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 10px 0; font-variant-numeric: tabular-nums; }
.inp .u { color: var(--muted); font-size: 14px; }
.inp.lg input { font-size: 24px; font-weight: 700; }
/* minmax(0, 1fr): 入力欄の元の幅（約 255px）より列が縮まないと、スマホの幅で右の列（カード・電子マネー）が切れる */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chk input { width: 20px; height: 20px; accent-color: var(--a-strong); }
.okbox { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 8px 0; }
.okbox .ok-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--a-tint); color: var(--a-text); display: grid; place-items: center; }
.okbox .ok-ic .ic { width: 30px; height: 30px; }
.streak { display: inline-flex; align-items: center; gap: 6px; background: var(--a-tint); color: var(--a-text); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.stepper { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.stepper:first-child { border-top: 0; }
.stepper .nm { font-size: 14px; }
.stepper .nm span { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper .ctl { display: flex; align-items: center; gap: 4px; }
.stepper .ctl button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--a-text); background: var(--card); }
.stepper .ctl input { width: 48px; text-align: center; border: 1px solid var(--line); border-radius: 10px; height: 36px; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--card); }
.diff { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.diff .k { color: var(--muted); }
.diff .v { text-align: right; font-weight: 700; }
.diff .tot { font-size: 18px; }
.note-ok { background: var(--a-tint); color: var(--a-text); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--ink); }
.chip.on { border-color: var(--a); background: var(--a-tint); color: var(--a-text); font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.steps .t { flex: 1 1 auto; min-width: 0; }
.steps .t span { display: block; font-size: 12px; color: var(--muted); }
.rcpt { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.rcpt:first-child { border-top: 0; }
.rcpt .dt { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.3; }
.rcpt .dt b { display: block; font-size: 16px; color: var(--ink); }
.rcpt .t { min-width: 0; }
.rcpt .t b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcpt .t .row { gap: 6px; margin-top: 2px; }
.rcpt .amt { font-weight: 700; font-variant-numeric: tabular-nums; }

/* AI に相談 */
.partners { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.partners::-webkit-scrollbar { display: none; }
.partners .chip { flex: 0 0 auto; }
.chat { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.7; white-space: normal; word-break: break-word; }
.bubble.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--a-strong); color: var(--on-a); border-top-right-radius: 4px; }
.bubble .who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--a-text); margin-bottom: 2px; }
.bubble .rel { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.bubble .rel button { font-size: 12px; font-weight: 700; color: var(--a-text); background: var(--a-tint); border-radius: 999px; padding: 4px 10px; }
/* 見せ場の後の相談のボタン（吹き出しの外）。会話と同じ左右の余白で中央に置く */
.chat + .dk-ask-line { margin: 0 0 4px; padding: 0 16px; text-align: center; }
/* AI の答えの 2 段: 何を見ているか（点の動き）→ 流して出す。流し終わったら参照したデータ */
.bubble .wait { display: flex; align-items: center; gap: 8px; }
.bubble .seeing { font-size: 13px; color: var(--muted); }
.bubble .src { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-note { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 16px 10px; }
.composer { position: sticky; bottom: 0; background: var(--bg); padding: 8px 12px 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
/* 会話が短いときも、入力欄を画面の一番下に置く（チャットアプリの普通の形）。途中に止まると、入力欄の下が空き、
   スマホ幅では右下のボタンのための注意書きの下の空きだけが浮いて見える。会話が長いときは今までどおり下に貼り付く */
.scr:has(> .composer) { display: flex; flex-direction: column; }
.scr:has(> .composer) > * { flex-shrink: 0; }
.scr > .composer { margin-top: auto; }
/* 入力欄は一番下にあり、右下のデモ用のボタンはその上に持ち上がる（パソコン幅でも、電話の枠の入力欄に重なるときは持ち上がる）。
   最後の注意書きがボタンの上までスクロールできるよう、ボタンの高さぶんを空ける。会話が短いときは入力欄との間の空きに収まる */
.ai-note { padding-bottom: calc(10px + var(--dk-fab-space, 0px)); }
.composer .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.composer .chips::-webkit-scrollbar { display: none; }
.composer .chip { flex: 0 0 auto; }
.composer form { display: flex; gap: 8px; }
.composer .inp { flex: 1 1 auto; min-height: 44px; border-radius: 999px; }
.composer .inp input { font-size: 15px; }
.send { width: 44px; height: 44px; border-radius: 50%; background: var(--a-strong); color: var(--on-a); display: grid; place-items: center; flex: 0 0 auto; }

/* 下のタブ */
.nav { flex: 0 0 auto; height: 61px; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); position: relative; z-index: 6; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); min-width: 0; }
.nav button .ic { transition: transform .15s ease; }
.nav button.on { color: var(--a-text); font-weight: 700; }
.nav button.on .ic { transform: scale(1.1); }
.nav .fab { width: 52px; height: 52px; border-radius: 50%; background: var(--a); color: var(--on-a); display: grid; place-items: center; margin-top: -28px; box-shadow: 0 8px 16px rgba(0, 98, 123, .3); border: 3px solid var(--card); box-sizing: border-box; }
.nav .fab .ic { width: 24px; height: 24px; }
.nav span { white-space: nowrap; }

/* 重ねる部品 */
.toast { position: absolute; left: 16px; right: 16px; bottom: 76px; z-index: 60; background: var(--ink); color: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; box-shadow: 0 10px 24px rgba(31, 41, 55, .25); display: flex; gap: 8px; align-items: flex-start; }
.toast .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--a-200); }
.sheet-bg { position: absolute; inset: 0; z-index: 50; background: rgba(31, 41, 55, .42); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 82%; overflow-y: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 8px 16px 20px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; animation: up .25s ease-out both; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; margin-bottom: 2px; }
.sheet h3 { margin: 0; font-size: 16px; font-weight: 700; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.cam { position: absolute; inset: 0; z-index: 70; background: var(--cam); color: var(--on-a); display: flex; flex-direction: column; }
.cam-top { display: flex; align-items: center; gap: 6px; padding: 10px 8px 6px; }
.cam-top .icbtn { color: var(--on-a); }
.cam-top .icbtn:hover { background: var(--cam-2); }
.cam-top b { font-size: 16px; }
.cam-sub { font-size: 12px; opacity: .85; padding: 0 16px; }
.vf { position: relative; flex: 1 1 auto; margin: 14px 22px; border-radius: 16px; background: var(--cam-2); display: grid; place-items: center; overflow: hidden; min-height: 0; }
.vf .corner { position: absolute; width: 26px; height: 26px; border-color: var(--on-a); border-style: solid; border-width: 0; }
.vf .c1 { top: 14px; left: 14px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 8px; }
.vf .c2 { top: 14px; right: 14px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 8px; }
.vf .c3 { bottom: 14px; left: 14px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 8px; }
.vf .c4 { bottom: 14px; right: 14px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 8px; }
.paper { width: 62%; max-width: 200px; background: var(--card); color: var(--ink); border-radius: 4px; padding: 14px 14px 18px; font-size: 12px; line-height: 1.55; transform: rotate(-2deg); box-shadow: 0 10px 22px rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums; }
.paper .pt { text-align: center; font-weight: 700; font-size: 13px; }
.paper .pr { display: flex; justify-content: space-between; }
.paper .pl2 { border-top: 1px dashed var(--muted); margin: 6px 0; }
.paper .pa { font-weight: 700; font-size: 13px; }
.scan { position: absolute; left: 10%; right: 10%; height: 3px; border-radius: 2px; background: var(--a); box-shadow: 0 0 12px var(--a); top: 20%; animation: scan 1.1s ease-in-out infinite alternate; }
@keyframes scan { to { top: 78%; } }
.flash { position: absolute; inset: 0; background: var(--card); animation: flash .35s ease-out both; pointer-events: none; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.cam-tips { display: flex; justify-content: center; gap: 14px; font-size: 12px; opacity: .9; padding: 0 12px; flex-wrap: wrap; }
.cam-bottom { display: flex; align-items: center; justify-content: center; padding: 18px 0 22px; position: relative; }
.shutter { width: 72px; height: 72px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 4px var(--cam), 0 0 0 7px var(--card); }
.shutter:active { transform: scale(.94); }
.cam-mode { position: absolute; right: 22px; font-size: 12px; font-weight: 700; color: var(--on-a); border: 1px solid var(--a-200); border-radius: 999px; padding: 6px 12px; }
.cam-result { background: var(--bg); color: var(--ink); flex: 1 1 auto; overflow-y: auto; border-radius: 20px 20px 0 0; }
.rf { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rf:first-child { border-top: 0; }
.rf .k { font-size: 12px; color: var(--muted); }
.rf .v { font-weight: 700; font-size: 15px; min-width: 0; }
.rf .v input { width: 100%; box-sizing: border-box; border: 1px solid var(--a); border-radius: 8px; padding: 6px 8px; font-size: 15px; font-weight: 700; }
.rf button { font-size: 12px; font-weight: 700; color: var(--a-text); padding: 4px 8px; border-radius: 999px; background: var(--a-tint); }
.progress { width: 70%; height: 6px; border-radius: 999px; background: var(--cam); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--a); animation: prog 1.2s linear both; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.reading { display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; }
.stage { display: flex; flex-direction: column; gap: 0; }
.stage .st { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.stage .st::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.stage .st:last-child::before { display: none; }
.stage .dotc { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); box-sizing: border-box; margin-top: 2px; }
.stage .st.past .dotc { background: var(--a-200); border-color: var(--a-200); }
.stage .st.now .dotc { background: var(--a); border-color: var(--a); box-shadow: 0 0 0 4px var(--a-tint); }
.stage .st b { font-size: 14px; }
.stage .st span { display: block; font-size: 12px; color: var(--muted); }
.doc-paper { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.doc-paper .dh { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.doc-paper h3 { font-size: 20px; }
.bul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.bul b { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* スマホ: 端末の枠を外し、アプリを画面いっぱいに */
@media (max-width: 820px) {
  .page { display: block; padding: 0; }
  .side { position: static; gap: 0; }
  .mbar { display: flex; align-items: center; gap: 10px; height: 52px; padding-inline: 16px; background: var(--surface-card); border-bottom: 1px solid var(--surface-line); box-sizing: border-box; }
  .mbar .t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-top { display: none; }
  .about { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; top: calc(52px + env(safe-area-inset-top, 0px)); overflow-y: auto; background: var(--surface-paper); padding: 16px 16px calc(24px + var(--dk-fab-space, 0px) + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  .about:not(.open) { display: none; }
  /* チャット以外の画面も、最後の行が右下のボタンの上までスクロールできるよう、枠の中（.scr）の最後を空ける。
     20px は、下のメニューの真ん中の丸い「AIに相談」が上へはみ出していて、右下のボタンがそのぶん高く持ち上がる分。チャットは入力欄が下に貼り付くので、上の注意書きで空ける */
  .scr:not(:has(> .composer))::after { content: ''; display: block; flex: none; height: calc(var(--dk-fab-space, 0px) + 20px); }
  /* ページの最後の空の箱（右下のボタンの高さぶん）は、スマホの幅では要らない（中身は端末の枠の中でスクロールする）。残すとページが箱の高さだけ動き、下のメニューが持ち上げた右下のボタンの下に入る */
  .dk-space { display: none; }
  .side h1.m-h1 { display: block; }
  .start-btn { display: flex; }
  .stage { display: block; }
  .ind-tabs { width: auto; margin: 6px 16px; }
  /* 52px = 上の帯、58px = 業種のタブ（高さ 46px ＋ 上下 6px） */
  .device { width: 100%; height: calc(100vh - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); height: calc(100dvh - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .sbar { display: none; }
}

/* ── 手続きカレンダーと、知識とよくある質問（経営アプリの /calendar・/knowledge の見本）。色は端末の中の変数だけ ── */
.ln { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
/* 誰がやるかの札（経営アプリと同じ: お店・社会保険労務士は薄い地の太字、担当に確認は点線）と、分野の札 */
.txwho { display: inline-flex; align-items: center; font-size: 12px; line-height: 1.5; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.txwho.shop, .txwho.sr { background: var(--a-tint); color: var(--a-text); font-weight: 700; }
.txwho.staff { border: 1px solid var(--line); color: var(--ink); }
.txwho.ask { border: 1px dashed var(--muted); color: var(--muted); }
.txcat { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.txshift { display: block; font-size: 12px; color: var(--muted); }
.txdays { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.txdays.urgent { color: var(--a-text); font-weight: 700; }

/* ホームの次の期限 */
.txnext { display: flex; flex-direction: column; gap: 8px; }
.txnext-go { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; }
.txnext-go > b { font-size: 16px; }
.txnext-go small.muted { font-size: 12px; }
.txnext-go > b small, .txrow .t > b small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }

/* 期限の行 */
.txmhead { padding: 4px 2px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.txrow { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: left; }
.txrow .d { text-align: center; line-height: 1.2; font-variant-numeric: tabular-nums; }
.txrow .d b { display: block; font-size: 18px; }
.txrow .d small { font-size: 12px; color: var(--muted); }
.txrow .d small.red { color: var(--danger); }
.txrow .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.txrow .t > b { font-size: 14px; }

/* 絞り込みの札は 1 段で横に流す */
.chips.txone { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips.txone::-webkit-scrollbar { display: none; }
.chips.txone > * { flex: none; }

/* 折りたたみ・日付を出せない手続き */
.txfold { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.txfold summary { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 13px; cursor: pointer; }
.txfold summary small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.txfold .in { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; font-size: 13px; }
.txfold .in a { color: var(--a-text); word-break: break-all; }
.txnl summary > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.txnl-pv { font-size: 12px; color: var(--muted); }
.txnl[open] .txnl-pv { display: none; }
.txleft { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; font-size: 14px; }

/* 月の升目 */
.txgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-variant-numeric: tabular-nums; }
.txgrid .h { padding-bottom: 2px; font-size: 12px; color: var(--muted); }
.txgrid .c { position: relative; padding: 7px 0 10px; border-radius: 8px; font-size: 13px; color: var(--ink); }
.txgrid .c.off { cursor: default; }
.txgrid .c.red { color: var(--danger); }
.txgrid .c.today { box-shadow: inset 0 0 0 1px var(--muted); }
.txgrid .c.on { background: var(--a-tint); box-shadow: inset 0 0 0 1.5px var(--a); font-weight: 700; }
.txgrid .c .dots { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 2px; }
.txgrid .c .dots i, .txlegend i { width: 6px; height: 6px; border-radius: 50%; }
.dt-money { background: var(--warn); }
.dt-doc { background: var(--a); }
.txlegend { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.txlegend i { display: inline-block; margin-right: 4px; vertical-align: 1px; }

/* 1 年の帯（色は塗らない。上の行が手続きの件数、下の 2 行はそのうちの数） */
/* 列の数は期間の月の数（12 か 13）。demo.js が style で入れる */
.txband { display: grid; gap: 2px; align-items: center; font-size: 12px; }
.txband .lab { font-size: 12px; line-height: 1.2; color: var(--muted); }
.txband .lab small { display: block; font-size: 12px; }
.txband .mh { font-size: 12px; color: var(--muted); text-decoration: underline; }
.txband .cell { height: 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.txband .cell.total { color: var(--ink); font-weight: 700; }

/* よくある質問（その場で開く）・結論の枠 */
.txfaq { display: flex; flex-direction: column; gap: 6px; }
.txfaq .q { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 13px; text-align: left; }
.txfaq .q i, .txq { margin-right: 6px; font-style: normal; font-weight: 700; color: var(--a-text); }
.txfaq .q small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.txfaq .a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--a-tint); font-size: 13px; }
.txconcl { border: 1.5px solid var(--a); background: var(--a-tint); }
.txconcl ol { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-left: 18px; }

/* AIに相談のよく聞かれる質問 */
.txchatfaq { display: flex; flex-direction: column; gap: 6px; margin: 0 12px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.txchatfaq .chips { flex-wrap: wrap; }
.txchatfaq .chip { height: auto; min-height: 34px; padding: 6px 12px; text-align: left; line-height: 1.4; }
