/*
 * Aurant デモ共通スタイル（assets/demos/_shared/demo.css）
 *
 * - 配色・字体は page-solution-detail.php の .aus と同じトークン（暖色クリーム基調・アクセント #E4590E）
 * - 外部フォント・外部CDNは使わない。ライトテーマのみ（サイト本体に合わせる）
 * - 部品：
 *     上端の「デモ（架空の店舗・データ）」表示 …… .dm-flag
 *     見出し ………………………………………………… .dm-head / .dm-ey / .dm-lead
 *     スマホ枠＋画面 …………………………………… .dm-stage > .dm-device > .dm-phone > .dm-screen
 *     トーク風の画面 …………………………………… .dm-status / .dm-appbar / .dm-chat / .dm-row / .dm-bub / .dm-rich / .dm-qr / .dm-input
 *     ミニアプリ風の画面（下から出るシート） ……… .dm-sheet（.open で表示）
 *     通知（画面上部のバナー） ……………………… .dm-toast（.show で表示）
 *     説明パネル・出典 ………………………………… .dm-side > .dm-panel / .dm-src
 *     判定表示（できる／できない） ……………… .dm-judge.ok / .dm-judge.ng
 *     一覧カード ……………………………………………… .dm-cards > .dm-card
 * - 使い方は me/lp_template_spec.md（社内の手順書）を参照
 */
:root{
  --paper:#FAF7F2; --surface:#FFFFFF; --sand:#F3ECE0; --ink:#1A1712; --ink2:#2A251E;
  --body:#544C40; --muted:#8B8173; --line:#E8DFD1; --hair:#EFE8DC;
  --accent:#E4590E; --accent2:#F08A2A; --accent-ink:#8F3806; --accent-soft:#FBEEE2; --accent-line:#F1D3BC;
  --ng:#B23A2E; --ng-soft:#F8E7E4;
  --chat:#EDE5D8; --me:#FCE4D0; --me-line:#F2CDB0;
  --shadow:0 1px 2px rgba(40,28,12,.04),0 8px 24px -12px rgba(40,28,12,.13);
  --shadow-lg:0 2px 4px rgba(40,28,12,.05),0 26px 50px -20px rgba(40,28,12,.20);
  --r:14px; --r-lg:20px;
  --disp:"Yu Gothic","YuGothic","Hiragino Kaku Gothic ProN","Noto Sans JP",system-ui,sans-serif;
  --body-f:"Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP",system-ui,sans-serif;
  --mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--body);font-family:var(--body-f);font-size:15px;line-height:1.75;-webkit-font-smoothing:antialiased;letter-spacing:.005em}
a{color:var(--accent-ink);text-underline-offset:3px}
a:hover{color:var(--accent)}
button{font:inherit}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.dm-w{max-width:1140px;margin:0 auto;padding:0 24px}
.dm-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- 上端：デモであることの表示（常に見える） ---------- */
.dm-flag{position:sticky;top:0;z-index:60;background:var(--accent-soft);border-bottom:1px solid var(--accent-line);color:var(--accent-ink);font-size:12.5px;line-height:1.5}
.dm-flag .dm-w{display:flex;align-items:center;gap:10px 14px;min-height:42px;padding-top:6px;padding-bottom:6px;flex-wrap:wrap}
.dm-flag .dm-w>span{flex:1 1 420px;min-width:0}
.dm-flag b{font-family:var(--mono);font-size:11px;letter-spacing:.1em;color:#fff;background:var(--accent);border-radius:5px;padding:3px 8px;font-weight:600;white-space:nowrap}
.dm-flag .dm-nav{margin-left:auto;display:flex;gap:16px;flex-wrap:wrap}
.dm-flag .dm-nav a{color:var(--accent-ink);font-weight:700;text-decoration:none;white-space:nowrap}
.dm-flag .dm-nav a:hover{color:var(--accent);text-decoration:underline}
@media (max-width:600px){
  .dm-flag{position:static}
  .dm-flag .dm-nav{margin-left:0;width:100%;gap:14px}
}

/* ---------- 見出し ---------- */
.dm-head{padding:4px 0 0;min-width:0}
.dm-ey{font-family:var(--mono);font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);font-weight:500;display:inline-flex;align-items:center;gap:10px;margin:0 0 12px}
.dm-ey::before{content:"";width:26px;height:1.5px;background:var(--accent)}
.dm-head h1{font-family:var(--disp);color:var(--ink);font-weight:800;font-size:clamp(23px,3.2vw,32px);line-height:1.4;letter-spacing:-.01em;margin:0 0 10px;text-wrap:balance}
.dm-lead{font-size:15px;max-width:46em;margin:0}

/* ---------- ステージ（左：スマホ／右：見出し＋説明。スマホ幅では 見出し→スマホ→説明 の順） ---------- */
.dm-stage{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"device head" "device side";grid-template-rows:auto 1fr;gap:22px 40px;align-items:start;padding:22px 0 56px}
.dm-stage>.dm-head{grid-area:head}
.dm-stage>.dm-device{grid-area:device}
.dm-stage>.dm-side{grid-area:side}
.dm-device{position:sticky;top:56px;display:flex;flex-direction:column;align-items:center;gap:10px}
.dm-hint{font-size:12px;color:var(--muted);margin:0;text-align:center;max-width:360px}
.dm-phone{width:372px;height:min(760px,calc(100vh - 96px));min-height:560px;background:#2A251E;border-radius:46px;padding:10px;box-shadow:var(--shadow-lg)}
.dm-screen{position:relative;width:100%;height:100%;border-radius:37px;overflow:hidden;background:var(--chat);display:flex;flex-direction:column;isolation:isolate}
@media (max-width:900px){
  .dm-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "device" "side";grid-template-rows:auto;gap:22px}
  .dm-device{position:static}
}
@media (max-width:480px){
  .dm-w{padding:0 16px}
  .dm-stage{padding-top:18px}
  .dm-phone{width:100%;height:min(640px,calc(100svh - 70px));min-height:540px;padding:0;background:transparent;border-radius:20px;box-shadow:var(--shadow-lg)}
  .dm-screen{border-radius:20px;border:1px solid var(--line)}
}

/* ---------- PC・業務画面の枠（スマホ以外のデモ：ダッシュボード・管理画面・Excel/Teams風など） ---------- */
/* 使い方：<main class="dm-w dm-stage wide"> にし、.dm-device の中に .dm-window を置く */
.dm-stage.wide{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "device" "side";grid-template-rows:auto}
.dm-stage.wide>.dm-device{position:static;align-items:stretch}
.dm-stage.wide>.dm-side{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start}
.dm-window{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);overflow:hidden;display:flex;flex-direction:column;min-height:420px}
.dm-window-bar{flex:0 0 auto;display:flex;align-items:center;gap:7px;height:38px;padding:0 14px;background:var(--paper);border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.dm-window-bar i{width:10px;height:10px;border-radius:50%;background:var(--line);display:inline-block;flex:0 0 auto}
.dm-window-bar b{margin-left:8px;color:var(--ink2);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-window-b{flex:1 1 auto;overflow:auto;padding:16px;-webkit-overflow-scrolling:touch}
@media (max-width:480px){.dm-window{min-height:0;border-radius:12px}.dm-window-b{padding:12px}}

/* ---------- トーク風の画面 ---------- */
.dm-status{flex:0 0 auto;height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;font-size:12px;font-weight:700;color:var(--ink);background:var(--surface);letter-spacing:.02em}
.dm-status i{display:inline-block;width:22px;height:10px;border:1.5px solid var(--ink);border-radius:3px;position:relative;font-style:normal}
.dm-status i::after{content:"";position:absolute;left:1px;top:1px;bottom:1px;width:60%;background:var(--ink);border-radius:1px}
.dm-appbar{flex:0 0 auto;height:50px;display:flex;align-items:center;gap:8px;padding:0 10px 0 6px;background:var(--surface);border-bottom:1px solid var(--hair)}
.dm-appbar .back{width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:var(--ink);flex:0 0 auto}
.dm-appbar .back svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.dm-appbar .t{flex:1;min-width:0;font-weight:800;color:var(--ink);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:var(--disp)}
.dm-appbar .t small{display:block;font-weight:500;font-size:10.5px;color:var(--muted);font-family:var(--body-f);line-height:1.2}
.dm-appbar .ico{width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:var(--ink2)}
.dm-appbar .ico svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.dm-chat{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:14px 12px 12px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.dm-day{align-self:center;font-size:10.5px;color:var(--body);background:rgba(255,255,255,.7);border-radius:999px;padding:2px 10px}
.dm-row{display:flex;gap:8px;align-items:flex-end;max-width:100%;animation:dm-in .22s ease-out}
.dm-row.me{justify-content:flex-end}
.dm-ava{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:0 0 auto;align-self:flex-start;font-family:var(--disp)}
.dm-msgcol{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:80%}
.dm-bub{background:var(--surface);border:1px solid var(--hair);border-radius:16px;border-top-left-radius:5px;padding:9px 12px;font-size:13.5px;line-height:1.62;color:var(--ink2);word-break:break-word;white-space:pre-line}
.dm-row.me .dm-bub{background:var(--me);border-color:var(--me-line);border-radius:16px;border-top-right-radius:5px;max-width:80%}
.dm-time{font-size:10px;color:var(--muted);white-space:nowrap;flex:0 0 auto}
.dm-typing{display:inline-flex;gap:4px;padding:12px 14px}
.dm-typing span{width:6px;height:6px;border-radius:50%;background:var(--muted);animation:dm-dot 1s infinite}
.dm-typing span:nth-child(2){animation-delay:.15s}
.dm-typing span:nth-child(3){animation-delay:.3s}
@keyframes dm-dot{0%,80%,100%{opacity:.25}40%{opacity:1}}
@keyframes dm-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* メッセージ内のカード（画像つきメッセージ・カードタイプ風） */
.dm-mcard{background:var(--surface);border:1px solid var(--hair);border-radius:16px;overflow:hidden;width:232px;max-width:100%}
.dm-mcard .mh{background:var(--sand);padding:14px 14px 12px;border-bottom:1px solid var(--hair)}
.dm-mcard .mh .k{font-family:var(--mono);font-size:10px;letter-spacing:.12em;color:var(--accent);font-weight:600}
.dm-mcard .mh b{display:block;font-family:var(--disp);font-size:15px;color:var(--ink);line-height:1.4;margin-top:2px}
.dm-mcard .mb{padding:10px 14px;font-size:12.5px;color:var(--body);line-height:1.6}
.dm-mcard .mb dl{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;margin:0}
.dm-mcard .mb dt{color:var(--muted)}
.dm-mcard .mb dd{margin:0;color:var(--ink2);font-weight:700}
.dm-mcard .mf{border-top:1px solid var(--hair);display:grid}
.dm-mcard .mf button{appearance:none;border:0;background:var(--surface);color:var(--accent-ink);font-weight:700;font-size:13px;padding:10px;cursor:pointer}
.dm-mcard .mf button+button{border-top:1px solid var(--hair)}
.dm-mcard .mf button:hover{background:var(--accent-soft)}

/* クイックリプライ */
.dm-qr{flex:0 0 auto;display:flex;gap:8px;overflow-x:auto;padding:8px 12px 10px;scrollbar-width:none}
.dm-qr::-webkit-scrollbar{display:none}
.dm-qr button{flex:0 0 auto;border:1.5px solid var(--accent);color:var(--accent-ink);background:var(--surface);border-radius:999px;padding:6px 14px;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.dm-qr button:hover{background:var(--accent-soft)}

/* リッチメニュー */
.dm-rich{flex:0 0 auto;background:var(--surface);border-top:1px solid var(--line)}
.dm-rich-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.dm-rich-btn{appearance:none;border:0;border-right:1px solid var(--hair);border-bottom:1px solid var(--hair);background:var(--surface);padding:11px 4px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11.5px;font-weight:700;color:var(--ink2);cursor:pointer;min-height:70px;line-height:1.3}
.dm-rich-btn:nth-child(3n){border-right:0}
.dm-rich-btn svg{width:25px;height:25px;stroke:var(--accent);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dm-rich-btn:hover{background:var(--accent-soft)}
.dm-rich-btn.hot{background:var(--accent-soft)}
.dm-rich-bar{display:flex;align-items:center;justify-content:center;gap:6px;height:30px;font-size:11.5px;color:var(--muted);background:var(--surface)}

/* 入力欄（飾り） */
.dm-input{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 12px 12px;background:var(--surface);border-top:1px solid var(--hair)}
.dm-input .box{flex:1;height:34px;border-radius:17px;background:var(--paper);border:1px solid var(--hair);display:flex;align-items:center;padding:0 14px;color:var(--muted);font-size:12.5px}
.dm-input svg{width:20px;height:20px;stroke:var(--muted);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* ---------- ミニアプリ風の画面（下から出るシート） ---------- */
.dm-sheet{position:absolute;left:0;right:0;bottom:0;top:30px;z-index:20;background:var(--surface);display:flex;flex-direction:column;transform:translateY(103%);transition:transform .32s cubic-bezier(.2,.8,.2,1);border-radius:18px 18px 0 0;box-shadow:0 -10px 30px rgba(40,28,12,.18);visibility:hidden}
.dm-sheet.open{transform:none;visibility:visible}
.dm-sheet-h{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--hair)}
.dm-sheet-h .t{flex:1;min-width:0}
.dm-sheet-h .t b{display:block;font-size:14px;color:var(--ink);font-family:var(--disp);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-sheet-h .t span{display:block;font-size:10.5px;color:var(--muted);line-height:1.3}
.dm-x{appearance:none;border:0;background:var(--paper);width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:18px;line-height:1;color:var(--ink2);flex:0 0 auto}
.dm-x:hover{background:var(--accent-soft)}
.dm-sheet-b{flex:1 1 auto;overflow-y:auto;padding:16px;-webkit-overflow-scrolling:touch}
.dm-sheet-f{flex:0 0 auto;padding:12px 16px 14px;border-top:1px solid var(--hair);background:var(--surface)}
.dm-sheet h3{font-family:var(--disp);font-size:15px;color:var(--ink);margin:0 0 8px}
.dm-sheet p{font-size:13px;margin:0 0 10px}
.dm-lbl{display:block;font-size:12px;font-weight:700;color:var(--ink2);margin:14px 0 6px}
.dm-field{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px;background:var(--surface);color:var(--ink)}
.dm-field:focus{border-color:var(--accent);outline:none}
.dm-check{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;margin:14px 0 0}
.dm-check input{margin-top:4px;accent-color:var(--accent)}
.dm-stepper{display:flex;gap:6px;margin:0 0 14px}
.dm-stepper span{flex:1;height:4px;border-radius:2px;background:var(--line)}
.dm-stepper span.on{background:var(--accent)}

/* 選択肢 */
.dm-choice{display:grid;gap:8px}
.dm-opt{appearance:none;display:block;width:100%;text-align:left;border:1.5px solid var(--line);background:var(--surface);border-radius:12px;padding:11px 14px;cursor:pointer;color:var(--ink2);font-size:13.5px;line-height:1.5}
.dm-opt small{display:block;color:var(--muted);font-size:11.5px}
.dm-opt:hover{border-color:var(--accent-line)}
.dm-opt[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.dm-opt[disabled]{opacity:.45;cursor:not-allowed;text-decoration:line-through}
.dm-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.dm-chip{appearance:none;flex:0 0 auto;border:1.5px solid var(--line);background:var(--surface);border-radius:10px;padding:6px 10px;cursor:pointer;text-align:center;font-size:12px;color:var(--ink2);line-height:1.35;min-width:52px}
.dm-chip b{display:block;font-size:15px;color:var(--ink)}
.dm-chip[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}
.dm-slots{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.dm-slot{appearance:none;border:1.5px solid var(--line);background:var(--surface);border-radius:9px;padding:8px 0;cursor:pointer;font-size:13px;font-weight:700;color:var(--ink2)}
.dm-slot[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:#fff}
.dm-slot[disabled]{background:var(--paper);color:#C8BFB2;cursor:not-allowed;font-weight:500}

/* ---------- 画面上部の通知バナー ---------- */
.dm-toast{position:absolute;left:10px;right:10px;top:36px;z-index:40;background:rgba(255,255,255,.98);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg);padding:10px 12px;display:flex;gap:10px;align-items:flex-start;transform:translateY(-160%);transition:transform .35s cubic-bezier(.2,.8,.2,1);cursor:pointer;text-align:left;width:auto;appearance:none}
.dm-toast.show{transform:none}
.dm-toast .ava{width:30px;height:30px;border-radius:8px;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;flex:0 0 auto}
.dm-toast .tx{min-width:0;font-size:12px;line-height:1.5;color:var(--ink2)}
.dm-toast .tx b{display:block;font-size:12px;color:var(--ink)}

/* ---------- ボタン ---------- */
.dm-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-weight:700;font-size:14px;line-height:1.3;padding:12px 18px;cursor:pointer;text-decoration:none;box-shadow:0 8px 18px -10px rgba(228,89,14,.7);transition:background .15s,transform .15s}
.dm-btn:hover{background:var(--accent-ink);color:#fff}
.dm-btn:active{transform:translateY(1px)}
.dm-btn.block{display:flex;width:100%}
.dm-btn.ghost{background:var(--surface);color:var(--ink);border:1.5px solid var(--line);box-shadow:none}
.dm-btn.ghost:hover{border-color:var(--accent);color:var(--accent-ink);background:var(--surface)}
.dm-btn.sm{font-size:12.5px;padding:8px 12px;border-radius:8px}
.dm-btn[disabled]{opacity:.4;cursor:not-allowed;box-shadow:none;transform:none}
.dm-btnrow{display:flex;gap:8px;flex-wrap:wrap}

/* ---------- 説明パネル ---------- */
.dm-side{display:grid;gap:18px;min-width:0}
.dm-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 24px;box-shadow:var(--shadow);min-width:0}
.dm-panel>h2{font-family:var(--disp);font-size:17px;color:var(--ink);margin:0 0 10px;font-weight:800;letter-spacing:-.01em;line-height:1.45}
.dm-panel h3{font-family:var(--disp);font-size:14.5px;color:var(--ink);margin:16px 0 6px;font-weight:800}
.dm-panel p{font-size:13.5px;margin:0 0 10px}
.dm-panel p:last-child{margin-bottom:0}
.dm-panel ul,.dm-panel ol{margin:0;padding:0;list-style:none;display:grid;gap:7px}
.dm-panel li{position:relative;padding-left:18px;font-size:13.5px;line-height:1.7}
.dm-panel ul>li::before{content:"";position:absolute;left:0;top:12px;width:9px;height:1.5px;background:var(--accent)}
.dm-panel ol{counter-reset:dm}
.dm-panel ol>li{counter-increment:dm;padding-left:30px}
.dm-panel ol>li::before{content:counter(dm);position:absolute;left:0;top:2px;width:21px;height:21px;border-radius:50%;border:1.5px solid var(--accent);color:var(--accent);font-family:var(--disp);font-weight:800;font-size:11.5px;display:flex;align-items:center;justify-content:center;line-height:1}
.dm-panel ol>li.done::before{background:var(--accent);color:#fff}
.dm-panel ol>li.now{font-weight:700;color:var(--ink)}
.dm-note{font-size:12px;color:var(--muted);margin:10px 0 0}
.dm-tag{display:inline-block;font-size:11px;font-weight:700;border-radius:6px;padding:1px 8px;background:var(--paper);border:1px solid var(--line);color:var(--body);white-space:nowrap;line-height:1.7}
.dm-tag.dev{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-ink)}
.dm-kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:13px}
.dm-kv dt{color:var(--muted);white-space:nowrap}
.dm-kv dd{margin:0;color:var(--ink2);font-weight:700;min-width:0}

/* 表 */
.dm-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.dm-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:420px}
.dm-table th,.dm-table td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--hair);vertical-align:top;line-height:1.55}
.dm-table thead th{font-size:11px;color:var(--muted);font-weight:600;background:var(--paper);white-space:nowrap}
.dm-table tbody tr:last-child th,.dm-table tbody tr:last-child td{border-bottom:0}
.dm-table td.num,.dm-table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.dm-table tr.hl td,.dm-table tr.hl th{background:var(--accent-soft)}
.dm-table tr.muted td,.dm-table tr.muted th{color:var(--muted)}

/* 判定（できる／できない） */
.dm-judge{border:1.5px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface)}
.dm-judge .jh{display:flex;align-items:center;gap:10px;font-family:var(--disp);font-weight:800;font-size:16px;color:var(--ink)}
.dm-judge .jh::before{content:"";width:26px;height:26px;border-radius:50%;flex:0 0 auto;background:var(--line);display:flex}
.dm-judge.ok{border-color:var(--accent);background:linear-gradient(180deg,var(--accent-soft),var(--surface))}
.dm-judge.ok .jh::before{content:"\2713";background:var(--accent);color:#fff;font-size:14px;align-items:center;justify-content:center}
.dm-judge.ng{border-color:var(--ng);background:var(--ng-soft)}
.dm-judge.ng .jh{color:var(--ng)}
.dm-judge.ng .jh::before{content:"\00d7";background:var(--ng);color:#fff;font-size:16px;align-items:center;justify-content:center}
.dm-judge ul{margin-top:10px}
.dm-rule{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:1.6;padding:6px 0;border-top:1px dashed var(--line)}
.dm-rule:first-child{border-top:0}
.dm-rule .m{flex:0 0 auto;font-family:var(--mono);font-weight:700;width:16px;text-align:center}
.dm-rule.ok .m{color:var(--accent)}
.dm-rule.ng .m{color:var(--ng)}
.dm-rule.na{color:var(--muted)}
.dm-rule.wn .m{color:var(--accent2)}

/* 棒グラフ（横） */
.dm-bars{display:grid;gap:8px}
.dm-bar{display:grid;grid-template-columns:minmax(0,11.5em) 1fr auto;gap:10px;align-items:center;font-size:12.5px}
.dm-bar .n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink2)}
.dm-bar .g{height:12px;background:var(--hair);border-radius:6px;overflow:hidden}
.dm-bar .g i{display:block;height:100%;background:var(--accent);border-radius:6px;transition:width .4s}
.dm-bar.other .g i{background:var(--muted)}
.dm-bar .v{font-variant-numeric:tabular-nums;font-weight:700;color:var(--ink);min-width:3.2em;text-align:right}

/* 操作部品（管理画面風） */
.dm-ctrl{display:grid;gap:12px}
.dm-ctrl label{font-size:12.5px;font-weight:700;color:var(--ink2)}
.dm-seg{display:inline-flex;border:1.5px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);flex-wrap:wrap}
.dm-seg button{appearance:none;flex:1 1 auto;border:0;border-right:1px solid var(--line);background:var(--surface);padding:8px 12px;font-size:12.5px;font-weight:700;color:var(--body);cursor:pointer}
.dm-seg button:last-child{border-right:0}
.dm-seg button[aria-pressed="true"]{background:var(--accent);color:#fff}
.dm-checks{display:flex;flex-wrap:wrap;gap:6px}
.dm-checks label{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);border-radius:9px;padding:5px 10px;font-weight:600;font-size:12.5px;cursor:pointer;background:var(--surface);color:var(--ink2)}
.dm-checks label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.dm-checks input{accent-color:var(--accent);margin:0}
.dm-select{border:1.5px solid var(--line);border-radius:9px;padding:7px 10px;font-size:13px;background:var(--surface);color:var(--ink)}
.dm-range{width:100%;accent-color:var(--accent)}
.dm-big{font-family:var(--disp);font-weight:800;color:var(--ink);font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums}
.dm-big small{font-size:14px;color:var(--muted);font-weight:700;margin-left:4px}
.dm-meter{height:10px;border-radius:5px;background:var(--hair);overflow:hidden;margin:6px 0 4px}
.dm-meter i{display:block;height:100%;background:var(--accent);transition:width .35s}
.dm-meter.ng i{background:var(--ng)}

/* ---------- 出典 ---------- */
.dm-src{font-size:12px;color:var(--muted);line-height:1.65}
.dm-src h2{font-size:14px!important}
.dm-src ul{gap:6px!important}
.dm-src li{font-size:12px!important;padding-left:14px!important}
.dm-src li::before{top:10px!important;width:6px!important;background:var(--muted)!important}
.dm-src a{color:var(--accent-ink);word-break:break-all}

/* ---------- 下部（相談への導線） ---------- */
.dm-foot{border-top:1px solid var(--line);background:var(--surface)}
.dm-foot .dm-w{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding-top:26px;padding-bottom:30px}
.dm-foot p{margin:0;font-size:13px;color:var(--muted);max-width:40em}
.dm-foot b{display:block;font-family:var(--disp);font-size:16px;color:var(--ink);margin-bottom:2px}

/* ---------- 一覧カード ---------- */
.dm-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;padding:22px 0 56px}
.dm-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden;transition:transform .16s,box-shadow .16s;color:inherit;text-decoration:none;min-width:0}
.dm-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);color:inherit}
.dm-card .th{display:block;aspect-ratio:16/10;background:var(--sand);border-bottom:1px solid var(--hair)}
.dm-card .th svg{display:block;width:100%;height:100%}
.dm-card .bd{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.dm-card .no{font-family:var(--mono);font-size:11px;letter-spacing:.14em;color:var(--accent);font-weight:600}
.dm-card h2{font-family:var(--disp);font-size:16.5px;color:var(--ink);margin:0;line-height:1.45}
.dm-card p{font-size:13px;margin:0;color:var(--body);line-height:1.7}
.dm-card .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:10px}
.dm-card .go{font-size:13px;font-weight:700;color:var(--accent-ink);margin-top:6px}
.dm-card:hover .go{color:var(--accent)}
.dm-card.wide{grid-column:1/-1;flex-direction:row}
.dm-card.wide .th{flex:0 0 52%;aspect-ratio:auto;border-bottom:0;border-right:1px solid var(--hair);min-height:220px}
@media (max-width:720px){.dm-card.wide{flex-direction:column}.dm-card.wide .th{flex:none;aspect-ratio:16/10;min-height:0;border-right:0;border-bottom:1px solid var(--hair)}}

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