/* アプリの画面のデモ（2026-11-25）：スタッフの画面（スマホ）と管理画面（PC）。色は theme.css の変数だけを使う */
body.is-app { background: #EFEAE6; }
body.is-app .site-footer, body.is-app .fixed-bar { display: none; }
.ka-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 上の細い帯（サイトのヘッダーの代わり） */
.kab { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--border); }
.kab-inner { display: flex; align-items: center; gap: 14px; max-width: 1400px; margin: 0 auto; padding: 8px 16px; min-height: 56px; }
.kab-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; flex: none; }
.kab-logo img { width: 30px; height: 30px; border-radius: 6px; }
.kab-logo small { font-size: 11px; background: var(--primary); color: #fff; border-radius: 4px; padding: 1px 6px; }
.kab-title { font-size: 14px; font-weight: 700; margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kab-title small { display: block; font-size: 11px; font-weight: 500; color: var(--text-sub); line-height: 1.2; }
.kab-switch { display: flex; margin-left: auto; background: var(--bg-soft); border-radius: 999px; padding: 3px; flex: none; }
.kab-switch a { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-sub); text-decoration: none; line-height: 1.2; }
.kab-switch a.is-cur { background: var(--primary); color: #fff; }
.kab-switch small { font-size: 10px; font-weight: 500; opacity: .85; }
.kab-links { display: flex; gap: 8px; flex: none; }
.kab-links a { font-size: 13px; font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--primary); color: var(--primary-dark); line-height: 1.2; }
.kab-links a.is-cta { background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); border-color: transparent; color: var(--on-cta); }

/* 並べ方：スタッフの画面は「スマホの枠＋やってみること」、管理画面は「やってみること」の下に画面いっぱい */
.ka-stage { max-width: 1400px; margin: 0 auto; padding: 20px 16px 40px; }
.ka-stage.is-staff { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 360px); justify-content: center; gap: 32px; align-items: start; }
.ka-guide { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.ka-stage.is-admin .ka-guide { margin-bottom: 14px; }
.ka-guide summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-weight: 700; }
.ka-guide summary::-webkit-details-marker { display: none; }
.ka-guide summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-sub); border-bottom: 2px solid var(--text-sub); transform: rotate(45deg); margin-left: auto; transition: .2s; }
.ka-guide[open] summary::after { transform: rotate(-135deg); }
.ka-guide-h { color: var(--primary-dark); font-size: 15px; }
.ka-guide-n { font-size: 12px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 1px 10px; }
.ka-guide.is-clear .ka-guide-n { background: #DDEFE1; color: #23633A; }
.ka-missions { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ka-stage.is-admin .ka-missions { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ka-missions li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; background: var(--bg-soft); border-radius: 10px; padding: 9px 12px; }
.ka-missions li i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #C9C2BC; margin-top: 2px; position: relative; }
.ka-missions li.is-ok { background: #EAF5EC; color: #23633A; }
.ka-missions li.is-ok i { border-color: #2F8A4E; background: #2F8A4E; }
.ka-missions li.is-ok i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.ka-guide-note { font-size: 12px; color: var(--text-sub); margin-top: 12px; line-height: 1.7; }
.ka-guide-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.ka-next { font-weight: 700; font-size: 14px; text-decoration: none; background: var(--primary); color: #fff; border-radius: 999px; padding: 9px 16px; }
.ka-reset { font: inherit; font-size: 13px; background: none; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; color: var(--text-sub); cursor: pointer; }

/* スマホの枠（PCで開いたとき）。スマホで開いたときは枠を外して画面いっぱいにする */
.ka-phone { position: relative; height: 780px; background: #F7F5F3; border: 10px solid #1F1A17; border-radius: 44px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(42, 26, 20, .28); }
.ka-notch { display: flex; align-items: center; justify-content: space-between; padding: 8px 22px 2px; font-size: 12px; font-weight: 700; background: var(--primary); color: #fff; }
.ka-notch i { width: 86px; height: 20px; background: #1F1A17; border-radius: 999px; }
.ka-notch em { width: 22px; height: 10px; border: 1.5px solid #fff; border-radius: 3px; position: relative; }
.ka-notch em::after { content: ""; position: absolute; inset: 1px 5px 1px 1px; background: #fff; border-radius: 1px; }
.ka-appbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 12px; background: var(--primary); color: #fff; }
.ka-appbar p { display: flex; flex-direction: column; line-height: 1.3; }
.ka-appbar b { font-size: 17px; }
.ka-appbar small { font-size: 12px; opacity: .85; }
.ka-sample { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: rgba(255, 255, 255, .18); color: #fff; white-space: nowrap; }
.ka-phone .ka-screen { flex: 1; overflow-y: auto; padding: 14px 14px 20px; -webkit-overflow-scrolling: touch; }
.ka-tabbar { display: flex; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.ka-tabbar button { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; background: none; border: 0; font: inherit; font-size: 11px; font-weight: 700; color: #8A817B; cursor: pointer; min-height: 56px; }
.ka-tabbar button.is-cur { color: var(--primary); }
.ka-tabbar .ka-ic { width: 22px; height: 22px; }
.ka-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* 管理画面の枠 */
.ka-admin { position: relative; display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 720px; background: #fff; border: 1px solid #D9D2CC; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(42, 26, 20, .12); }
.ka-side { background: #2A1A14; color: #E9DFD9; padding: 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.ka-side-app { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 2px 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.ka-side-app .ka-ic { color: var(--accent); }
.ka-sidenav { display: grid; gap: 4px; }
.ka-sidenav button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; border-radius: 8px; background: none; color: #D8CBC3; font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.ka-sidenav button:hover { background: rgba(255, 255, 255, .06); }
.ka-sidenav button.is-cur { background: var(--primary); color: #fff; }
.ka-sidenav .ka-badge { position: static; margin-left: auto; }
.ka-side-role { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #BFB1A8; }
.ka-main { min-width: 0; display: flex; flex-direction: column; background: #FAF8F6; }
.ka-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; background: #fff; border-bottom: 1px solid var(--border); }
.ka-view-title { font-size: 18px; font-weight: 700; }
.ka-topbar .ka-sample { background: var(--primary-soft); color: var(--primary-dark); }
.ka-admin .ka-screen { flex: 1; padding: 18px 22px 28px; overflow-x: hidden; }

/* 画面の中の部品 */
.ka-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 8px; }
.ka-sec:first-child { margin-top: 0; }
.ka-sec-h { font-size: 15px; font-weight: 700; color: var(--ink); }
.ka-sec-h small { font-size: 12px; font-weight: 500; color: var(--text-sub); margin-left: 8px; }
.ka-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.ka-card.is-doing { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(226, 167, 46, .25); }
.ka-card.is-done { background: #F4F8F4; border-color: #CFE3D3; }
.ka-card.is-alert { border-color: #E3A39C; background: #FDF3F1; }
.ka-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.ka-card-sub { font-size: 12.5px; color: var(--text-sub); line-height: 1.6; margin-top: 2px; }
.ka-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ka-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.ka-btn.is-block { width: 100%; }
.ka-table .ka-btn { white-space: nowrap; }
.ka-btn.is-sm { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.ka-btn-main { background: var(--primary); border-color: var(--primary); color: #fff; }
.ka-btn-accent, .ka-btn-ai { background: linear-gradient(135deg, var(--cta-from), var(--cta-to)); border-color: transparent; color: var(--on-cta); }
.ka-btn-ghost { background: none; border-color: transparent; color: var(--primary); padding-left: 6px; padding-right: 6px; }
.ka-btn-danger { border-color: #E3A39C; color: #B3261E; background: #fff; }
.ka-btn:disabled { opacity: .45; cursor: default; }
.is-busy .ka-btn { pointer-events: none; }
.ka-chip { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; border-radius: 999px; padding: 1px 10px; background: #EEE9E5; color: #5C514B; white-space: nowrap; }
.ka-chip.is-ok { background: #DDEFE1; color: #23633A; }
.ka-chip.is-warn { background: #FBEBC8; color: #8A5A00; }
.ka-chip.is-ng { background: #F9DAD6; color: #B3261E; }
.ka-chip.is-info { background: #DDE9F5; color: #23527C; }
.ka-chip.is-ai { background: #2A1A14; color: var(--accent); }
.ka-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ka-kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ka-kpi span { font-size: 12px; color: var(--text-sub); font-weight: 700; }
.ka-kpi b { font-size: 26px; line-height: 1.2; font-family: "Inter", sans-serif; }
.ka-kpi b small { font-size: 13px; margin-left: 3px; font-weight: 700; }
.ka-kpi.is-ok b { color: #23633A; } .ka-kpi.is-warn b { color: #9A6400; } .ka-kpi.is-ng b { color: #B3261E; }
.ka-note { font-size: 13px; line-height: 1.7; border-radius: 10px; padding: 10px 12px; background: var(--bg-soft); margin: 10px 0; }
.ka-note.is-ok { background: #EAF5EC; color: #23633A; } .ka-note.is-warn { background: #FDF3DC; color: #7A5200; } .ka-note.is-ng { background: #FDF0EE; color: #A1241C; }
.ka-note.is-ai { background: #2A1A14; color: #F3E7D0; }
.ka-empty { font-size: 13.5px; color: var(--text-sub); text-align: center; padding: 26px 12px; border: 1.5px dashed #D9D2CC; border-radius: 12px; line-height: 1.8; }
.ka-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--text-sub); margin-bottom: 10px; }
.ka-field select, .ka-field input, .ka-field textarea, .ka-table select, .ka-table input { font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); border: 1.5px solid #D9D2CC; border-radius: 10px; padding: 9px 10px; background: #fff; width: 100%; min-height: 44px; }
.ka-table select, .ka-table input { min-height: 36px; padding: 5px 8px; font-size: 14px; }
.ka-stepper { display: inline-flex; align-items: center; gap: 10px; }
.ka-stepper button { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid #D9D2CC; background: #fff; font-size: 24px; font-weight: 700; color: var(--primary); cursor: pointer; line-height: 1; }
.ka-stepper output { min-width: 76px; text-align: center; font-size: 26px; font-weight: 700; font-family: "Inter", sans-serif; }
.ka-stepper output small { font-size: 13px; margin-left: 2px; }
.ka-bar { height: 8px; border-radius: 999px; background: #EAE4DF; overflow: hidden; }
.ka-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.ka-bar.is-ok i { background: #2F8A4E; } .ka-bar.is-warn i { background: var(--accent); } .ka-bar.is-ng i { background: #C8402E; }
.ka-grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ka-grid-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ka-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; margin-bottom: 12px; }
.ka-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ka-table th { text-align: left; font-size: 12px; color: var(--text-sub); background: #F5F1EE; padding: 9px 12px; white-space: nowrap; }
.ka-table td { padding: 9px 12px; border-top: 1px solid #EFEAE6; line-height: 1.5; vertical-align: middle; }
.ka-table td.num { text-align: right; font-family: "Inter", sans-serif; white-space: nowrap; }
.ka-table tr.is-hot td { background: #FFF8E8; }
.ka-table tr.is-ng td { background: #FDF3F1; }
.ka-log-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.ka-log-h small { margin-left: auto; color: var(--text-sub); font-size: 12px; }
.ka-log-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ka-log-steps li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.6; }
.ka-log-steps b { font-size: 11.5px; background: #2A1A14; color: var(--accent); border-radius: 6px; padding: 2px 6px; text-align: center; align-self: start; }
.ka-log-steps em { display: block; font-style: normal; color: var(--text-sub); font-size: 12px; }
.ka-log-steps li.is-warn em { color: #A1241C; font-weight: 700; }

/* 裏で動くAIエージェント（作業の様子）。スマホは下から、管理画面は右下に出る */
.ka-agent { position: absolute; z-index: 5; background: #2A1A14; color: #F3E9E2; box-shadow: 0 -8px 30px rgba(0, 0, 0, .3); }
.ka-phone .ka-agent { left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; padding: 14px 16px 18px; max-height: 62%; }
.ka-admin .ka-agent { right: 18px; bottom: 18px; width: 380px; border-radius: 14px; padding: 14px 16px 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.ka-agent[hidden] { display: none; }
.ka-agent-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--accent); }
.ka-agent-h { flex-wrap: wrap; }
.ka-agent-h b { white-space: nowrap; }
.ka-agent-h small { color: #D8CBC3; font-size: 12px; flex-basis: 100%; }
.ka-agent-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; max-height: 300px; overflow-y: auto; }
.ka-agent-log li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.55; }
.ka-agent-log b { font-size: 11px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 1px 6px; text-align: center; align-self: start; }
.ka-agent-log li.is-doing span::after { content: " …"; animation: ka-blink 1s infinite; }
.ka-agent-log li.is-ok b { background: var(--accent); color: #2A1A14; }
.ka-agent-log em { display: block; font-style: normal; font-size: 12px; color: #E9C877; }
.ka-agent-log li.is-warn em { color: #FFB4A8; font-weight: 700; }
@keyframes ka-blink { 50% { opacity: .2; } }
.ka-toast { position: absolute; z-index: 6; left: 50%; bottom: 76px; transform: translate(-50%, 10px); max-width: 86%; background: rgba(31, 26, 23, .94); color: #fff; font-size: 13px; line-height: 1.5; border-radius: 999px; padding: 8px 16px; opacity: 0; pointer-events: none; transition: .25s; text-align: center; }
.ka-admin .ka-toast { bottom: 24px; }
.ka-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 日程表（工程管理）ほか、課題ごとの絵 */
.ka-gt { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; overflow-x: auto; }
.ka-gt-in { min-width: 560px; }
.ka-gt-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 38px; }
.ka-gt-row > b { font-size: 12.5px; }
.ka-gt-lane { position: relative; height: 28px; background: repeating-linear-gradient(90deg, #F5F1EE 0, #F5F1EE calc(20% - 1px), #E3DCD6 calc(20% - 1px), #E3DCD6 20%); border-radius: 6px; }
.ka-gt-head .ka-gt-lane { background: none; height: 20px; }
.ka-gt-head span { position: absolute; top: 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-sub); }
.ka-gt-lane i { position: absolute; top: 3px; height: 22px; border-radius: 5px; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; overflow: hidden; white-space: nowrap; }
.ka-gt-lane i.is-done { opacity: .38; }
.ka-gt-lane i.is-doing { outline: 2px solid #2A1A14; outline-offset: 1px; }
.ka-gt-lane u { position: absolute; top: 0; height: 28px; background: repeating-linear-gradient(135deg, rgba(200, 64, 46, .25) 0 6px, rgba(200, 64, 46, .08) 6px 12px); border-radius: 5px; text-decoration: none; }
.ka-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--text-sub); }
.ka-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* 画面の写真を撮るとき（?shot=1）：画面だけにする */
.is-shot body { background: #fff; }
.is-shot .kab, .is-shot .ka-guide { display: none !important; }
.is-shot .ka-stage { display: block; max-width: none; padding: 0; }
.is-shot .ka-phone { height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
.is-shot .ka-notch { display: none; }
.is-shot .ka-admin { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }

/* スマホ・狭い画面 */
@media (max-width: 899px) {
  .ka-stage.is-staff { grid-template-columns: minmax(0, 390px); gap: 14px; }
  .ka-stage.is-staff .ka-guide { order: -1; }
  .kab-links a:not(.is-cta) { display: none; }
}
@media (max-width: 760px) {
  body.is-app { background: #F7F5F3; }
  .kab-inner { gap: 8px; padding: 6px 10px; min-height: 50px; flex-wrap: wrap; }
  .kab-logo span, .kab-links { display: none; }
  .kab-title { font-size: 13px; }
  .kab-switch a { padding: 7px 10px; font-size: 12px; }
  .kab-switch small { display: none; }
  .ka-stage { padding: 10px 10px 24px; }
  .ka-stage.is-staff { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .ka-stage.is-staff .ka-guide { border-radius: 0; border-width: 0 0 1px; padding: 10px 14px; }
  .ka-phone { height: auto; min-height: calc(100vh - 110px); min-height: calc(100dvh - 110px); border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  .ka-notch { display: none; }
  .ka-appbar { padding-top: 12px; }
  .ka-phone .ka-screen { overflow: visible; padding-bottom: 84px; }
  .ka-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
  .ka-phone .ka-agent { position: fixed; z-index: 25; }
  .ka-toast { position: fixed; bottom: 84px; }
  .ka-admin { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 12px; }
  .ka-side { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; overflow-x: auto; }
  .ka-side-app { border: 0; padding: 0 4px 0 0; flex: none; }
  .ka-side-app b, .ka-side-role { display: none; }
  .ka-sidenav { display: flex; gap: 6px; flex: none; }
  .ka-sidenav button { white-space: nowrap; padding: 8px 12px; font-size: 13px; background: rgba(255, 255, 255, .08); }
  .ka-sidenav .ka-ic { display: none; }
  .ka-topbar { padding: 10px 14px; }
  .ka-view-title { font-size: 16px; }
  .ka-admin .ka-screen { padding: 12px 12px 20px; }
  .ka-admin .ka-agent { position: fixed; left: 10px; right: 10px; bottom: 10px; width: auto; z-index: 25; }
  .ka-admin .ka-toast { position: fixed; }
  .ka-grid-2, .ka-grid-even { grid-template-columns: minmax(0, 1fr); }
  .ka-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ka-kpi b { font-size: 22px; }
  /* 表は1行を1枚のカードにする（1つ目のセルが題、残りは2列に並べて縦に長くしない） */
  .ka-table-wrap { background: none; border: 0; overflow: visible; }
  .ka-table thead { display: none; }
  .ka-table, .ka-table tbody { display: block; width: 100%; }
  .ka-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px 12px; margin-bottom: 8px; }
  .ka-table tr.is-hot { background: #FFF8E8; } .ka-table tr.is-ng { background: #FDF3F1; }
  .ka-table tr td { background: none !important; }
  .ka-table td { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; padding: 0; text-align: left; min-width: 0; }
  .ka-table td::before { content: attr(data-label); font-size: 11.5px; font-weight: 700; color: var(--text-sub); }
  .ka-table td:first-child { grid-column: 1 / -1; font-weight: 700; font-size: 15px; flex-direction: row; align-items: baseline; gap: 8px; }
  .ka-table td.num { text-align: left; }
  .ka-table select, .ka-table input { width: 100%; max-width: 160px; min-height: 40px; }
}
