/* ===== デザイントークン(metaSecure ブランドカラー基調) ===== */
:root {
  --brand: #004596;
  --brand-700: #00306b;
  --brand-600: #0a56b0;
  --brand-500: #1a6fd6;
  --brand-100: #dbe8fb;
  --brand-50: #eef5ff;
  --ink: #0f1f33;
  --text: #1f2a3a;
  --muted: #5f6f84;
  --line: #e2e8f0;
  --line-2: #eef2f7;
  --bg: #f5f7fb;
  --card: #ffffff;
  --crit: #d6336c;
  --high: #e8590c;
  --mid: #e0a100;
  --low: #7b8794;
  --good: #2b8a3e;
  --ph1: #e8590c;
  --ph2: #f2a20d;
  --ph3: #1a6fd6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 31, 51, .04), 0 6px 20px rgba(15, 31, 51, .06);
  --shadow-lg: 0 12px 40px rgba(0, 48, 107, .14);
  --task-w: 360px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html, body { overflow-x: clip; }
body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.75; font-size: 15px;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'palt';
}
a { color: var(--brand-600); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.danger { color: var(--crit); }
.req { background: var(--crit); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; letter-spacing: .05em; }

/* ===== ヘッダー・フッター ===== */
.header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 28px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { display: block; height: 32px; width: auto; }
.logo-divider { width: 1px; height: 22px; background: var(--line); }
.logo-service { color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
#nav, .header nav { display: flex; gap: 20px; align-items: center; font-size: 14px; }
.header nav a, .header .link { color: var(--muted); text-decoration: none; font-weight: 500; }
.header nav a:hover, .header .link:hover { color: var(--brand); }
.nav-company { color: var(--ink); font-weight: 600; padding-right: 16px; border-right: 1px solid var(--line); }
main { max-width: 1140px; margin: 0 auto; padding: 36px 24px 72px; }
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 24px; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 28px 24px; display: grid; gap: 8px; justify-items: start; color: var(--muted); font-size: 13px; }
.footer-inner img { height: 28px; width: auto; opacity: .9; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner nav a { color: var(--muted); }
.footer-inner .copy { font-size: 12px; color: #94a3b8; }
body.admin .footer { display: none; }

/* ===== ボタン・フォーム ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; line-height: 1.4; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(0, 69, 150, .25); }
.btn.primary:hover { background: var(--brand-600); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand-100); background: var(--brand-50); }
.btn.outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn.outline:hover { background: var(--brand-50); }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 15px 30px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, .link:focus-visible { outline: 3px solid rgba(26, 111, 214, .35); outline-offset: 2px; }
.link { background: none; border: 0; color: var(--brand-600); font: inherit; cursor: pointer; padding: 0; }
label { display: block; margin: 14px 0 0; font-weight: 600; font-size: 14px; color: var(--ink); }
input:not([type=checkbox]):not([type=radio]), select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #d5dde8; border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(26, 111, 214, .14); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--text); }
label.check input { margin-top: 4px; accent-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 18px 0 0; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--ink); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); }
.badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--muted); vertical-align: middle; margin-left: 6px; font-weight: 600; }
.badge.ai { background: linear-gradient(135deg, #e0edff, #ece6ff); color: #3b3fbf; }
.eyebrow { color: var(--brand-600); font-weight: 700; font-size: 12px; letter-spacing: .12em; margin: 0 0 6px; text-transform: uppercase; }

/* ===== トップ(LP) ===== */
.hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; padding: 28px 0 48px; }
.hero::before { content: ''; position: absolute; top: -36px; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; background: radial-gradient(900px 420px at 18% 30%, rgba(26, 111, 214, .10), transparent 70%), linear-gradient(180deg, #fff, var(--bg)); }
.hero h1 { font-size: 38px; line-height: 1.4; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; }
.accent { color: var(--brand); background: linear-gradient(transparent 70%, rgba(26, 111, 214, .18) 70%); }
.lead { font-size: 16px; color: #3a4859; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); }
.hero-points b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-size: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.trust svg { width: 14px; height: 14px; color: var(--brand); }
.register { box-shadow: var(--shadow-lg); border-color: var(--brand-100); padding: 30px; }
.register h2 { font-size: 20px; }
.steps { padding-top: 12px; }
.steps h2 { text-align: center; margin-bottom: 24px; font-size: 22px; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.step .num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.resume { background: #fff8eb; border: 1px solid #ffd99a; border-radius: 10px; padding: 12px 14px; margin: 12px 0 4px; }
.resume p { margin: 0 0 8px; font-size: 14px; }

/* ===== 進捗バー ===== */
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand)); border-radius: 99px; transition: width .35s ease; }
.progress.big { height: 12px; }
.qbar { position: sticky; top: 64px; z-index: 5; background: rgba(245, 247, 251, .95); backdrop-filter: blur(8px); padding: 14px 0 12px; margin: -14px 0 18px; }
.diag-main .qbar { background: rgba(255, 255, 255, .97); margin: -28px -30px 18px; padding: 18px 30px 14px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.qbar-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.qbar-top b { font-size: 24px; color: var(--brand); font-weight: 800; font-variant-numeric: tabular-nums; }
.qbar .progress { height: 10px; }
.qbar-sub { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ===== 簡易診断(1画面1問) ===== */
.quick { max-width: 700px; margin: 0 auto; }
.qcard { padding: 34px; animation: qin .28s ease; }
@keyframes qin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qcat { display: flex; justify-content: space-between; color: var(--brand-600); font-weight: 700; font-size: 13px; margin: 0 0 10px; }
.qcat span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.qtitle { font-size: 22px; line-height: 1.55; }
.q-help { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.qchoices { display: grid; gap: 10px; margin-top: 20px; }
.qchoice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s, transform .05s; }
.qchoice:hover { border-color: var(--brand-500); background: var(--brand-50); }
.qchoice:active { transform: scale(.995); }
.qchoice kbd { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--line-2); color: var(--muted); font: 700 12px/1 inherit; flex: none; }
.qchoice.on { border-color: var(--brand); background: var(--brand-50); }
.qchoice.ans-yes.on { border-color: var(--good); background: #ebfbee; }
.qchoice.ans-partial.on { border-color: var(--mid); background: #fff9db; }
.qchoice.ans-no.on { border-color: var(--crit); background: #fff0f6; }
.qchoice.ans-unknown.on { border-color: var(--low); background: #f1f3f5; }
.qfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.saved { font-size: 12px; color: var(--good); }
.saved.center { display: block; text-align: center; margin: 14px 0 0; }

/* ===== 詳細診断 ===== */
.diag { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.diag-side { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; box-shadow: var(--shadow); }
.diag-side ol { margin: 0; padding-left: 22px; font-size: 13px; color: var(--muted); }
.diag-side li { padding: 5px 0; }
.diag-side li.cur { color: var(--brand); font-weight: 700; }
.diag-side li.done { color: var(--good); }
.diag-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.inherit { background: #ebfbee; color: #22693a; font-size: 13px; padding: 9px 13px; border-radius: 8px; }
.q { padding: 20px 0; border-bottom: 1px dashed var(--line); }
.q.missing { background: #fff5f8; outline: 2px solid #fcc2d7; border-radius: 10px; padding: 20px 14px; }
.q-text { font-weight: 700; margin: 0; color: var(--ink); }
.q-no { color: var(--brand-600); margin-right: 8px; }
.answers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ans { margin: 0; }
.ans input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.ans span { display: block; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; transition: .12s; }
.ans:hover span { border-color: var(--brand-500); }
.ans-yes input:checked + span { background: #ebfbee; border-color: var(--good); color: #22693a; }
.ans-partial input:checked + span { background: #fff9db; border-color: var(--mid); color: #845f00; }
.ans-no input:checked + span { background: #fff0f6; border-color: var(--crit); color: #a61e4d; }
.ans-unknown input:checked + span { background: #f1f3f5; border-color: var(--low); color: #343a40; }
.ans input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid rgba(26, 111, 214, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { margin: 0; }
.chip span { display: inline-block; padding: 8px 15px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; transition: .12s; }
.chip:hover span { border-color: var(--brand-500); }
.chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip input:checked + span::before { content: '✓ '; }
.nav-btns { display: flex; justify-content: space-between; margin-top: 28px; }
.analyzing { text-align: center; padding: 90px 20px; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 22px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== レポート ===== */
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.score-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 20px; }
.score-grid .card { margin-bottom: 20px; }
.label { font-size: 12px; color: var(--muted); font-weight: 700; margin: 0; letter-spacing: .04em; }
.hensachi { text-align: center; background: linear-gradient(155deg, var(--brand-700), var(--brand) 60%, var(--brand-600)); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.hensachi .label, .hensachi .muted { color: #c4d6f2; }
.hensachi .big { font-size: 76px; font-weight: 800; line-height: 1.05; margin: 12px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hensachi .rank { margin: 0; font-size: 15px; }
.hensachi .rank b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #2fbf71; font-size: 20px; margin-left: 6px; }
.rank-B .rank b { background: #1fa3d6; }
.rank-C .rank b { background: var(--high); }
.rank-D .rank b { background: var(--crit); }
.gauge { margin-top: 16px; }
.gauge-bar { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f06595, #fcc419 45%, #51cf66); }
.gauge-bar span { position: absolute; top: -5px; width: 4px; height: 18px; background: #fff; border-radius: 2px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--brand-700); }
.gauge-scale { display: flex; justify-content: space-between; font-size: 11px; color: #c4d6f2; margin-top: 4px; }
.radar { width: 100%; max-height: 280px; }
.radar .grid { fill: none; stroke: #e6ebf2; }
.radar .shape { fill: rgba(26, 111, 214, .16); stroke: var(--brand-500); stroke-width: 2; }
.radar .dot { fill: var(--brand); }
.radar text { font-size: 10px; fill: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: center; }
.mid { font-size: 32px; font-weight: 800; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.mid small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.mid.danger { color: var(--crit); }
.summary { font-size: 15px; margin: 0; white-space: pre-wrap; line-height: 1.9; }
.notice { margin: 12px 0 0; padding: 10px 14px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 8px; font-size: 13px; color: var(--brand-700); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 36px; align-items: center; gap: 10px; margin: 9px 0; font-size: 13px; }
.bar { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar div { height: 100%; border-radius: 99px; }
.bar .good { background: #40c057; }
.bar .ok { background: #fab005; }
.bar .bad { background: #f06595; }
.bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.risk { border-left: 4px solid var(--mid); padding: 4px 0 4px 14px; margin-bottom: 16px; }
.risk.sev-high { border-color: var(--crit); }
.risk.sev-low { border-color: var(--low); }
.risk h3 { margin-bottom: 2px; }
.risk p { margin: 0; font-size: 13px; color: #4a5768; }
.findings { margin: 0; padding-left: 20px; }
.findings li { margin: 6px 0; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--brand-50), #fff); border-color: var(--brand-100); }
.cta p { margin: 0; }
.upsell { display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 2px solid var(--brand-500); background: linear-gradient(135deg, var(--brand-50), #fff 70%); }
.upsell ul { margin: 6px 0 8px; padding-left: 20px; font-size: 14px; }
.upsell .btn { flex: none; }
.upsell-mini { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--brand-50); border-color: var(--brand-100); font-size: 14px; padding: 14px 20px; }

/* ===== ToDo / ロードマップ ===== */
.progress-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.service-box { border: 1px solid var(--brand-100); background: linear-gradient(180deg, #fff, var(--brand-50)); }
.service-box-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.svc h3 { color: var(--brand); }
.svc p { font-size: 13px; color: #4a5768; margin: 0 0 10px; flex: 1; }
.svc .svc-meta { flex: 0; font-weight: 600; color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; margin: 14px 0 18px; border-bottom: 2px solid var(--line); }
.tabs button { background: none; border: 0; padding: 11px 20px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.phase h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.phase h2 small { color: var(--muted); font-weight: 500; font-size: 13px; }
.phase-tag { color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; white-space: nowrap; letter-spacing: .03em; }
.phase-tag.ph1 { background: var(--ph1); }
.phase-tag.ph2 { background: var(--ph2); }
.phase-tag.ph3 { background: var(--ph3); }
.todo { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.todo.is-svc { border-left: 4px solid var(--brand); }
.todo.is-done { opacity: .55; }
.todo.is-done h3 { text-decoration: line-through; }
.todo-check { margin: 2px 0 0; flex: none; }
.todo-check input { position: absolute; opacity: 0; }
.todo-check span { display: block; width: 22px; height: 22px; border: 2px solid #c6d0dc; border-radius: 7px; cursor: pointer; background: #fff; transition: .12s; }
.todo-check:hover span { border-color: var(--brand-500); }
.todo-check input:checked + span { background: var(--good); border-color: var(--good); }
.todo-check input:checked + span::after { content: '✓'; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; height: 100%; }
.todo-check input:focus-visible + span { outline: 3px solid rgba(26, 111, 214, .35); }
.todo-body { flex: 1; min-width: 0; }
.todo-body h3 { margin: 4px 0; }
.todo-body p { margin: 0; font-size: 13px; color: #4a5768; }
.todo-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.todo-meta { margin-top: 6px !important; font-size: 12px !important; color: var(--muted) !important; }
.pri { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 5px; color: #fff; white-space: nowrap; }
.p-crit { background: var(--crit); }
.p-high { background: var(--high); }
.p-mid { background: var(--mid); }
.p-low { background: var(--low); }
.cat { font-size: 12px; color: var(--muted); }
.svc-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 10px 14px; background: var(--brand-50); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--brand-700); }

/* ロードマップ(ガントチャート) */
.roadmap { padding: 0; overflow: hidden; }
.rm-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 22px 24px 14px; }
.rm-header h2 { margin: 0; }
.rm-header p { margin: 2px 0 0; }
.rm-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.rm-legend li { display: flex; align-items: center; gap: 6px; }
.rm-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }
.rm-legend i.ph1 { background: var(--ph1); }
.rm-legend i.ph2 { background: var(--ph2); }
.rm-legend i.ph3 { background: var(--ph3); }
.rm-legend i.svcbar { background: repeating-linear-gradient(45deg, var(--brand), var(--brand) 4px, var(--brand-500) 4px, var(--brand-500) 8px); }
.rm-legend i.done { background: #40c057; }
.rm-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.rm { min-width: 1000px; }
.rm-row { display: grid; grid-template-columns: var(--task-w) 1fr; border-bottom: 1px solid var(--line-2); }
.rm-task { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 20px; background: #fff; border-right: 1px solid var(--line); min-width: 0; }
.rm-chart { position: relative; min-height: 44px; background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.rm-top { position: sticky; top: 0; z-index: 3; background: #f8fafd; }
.rm-top .rm-task { background: #f8fafd; font-size: 12px; color: var(--muted); }
.rm-months { display: grid; grid-template-columns: repeat(6, 1fr); background-image: none; }
.rm-month { padding: 8px 10px; border-left: 1px solid var(--line); font-size: 12px; line-height: 1.35; }
.rm-month b { display: block; color: var(--ink); }
.rm-month span { color: var(--muted); font-variant-numeric: tabular-nums; }
.rm-phase .rm-task { background: #fbfcfe; }
.rm-phase .rm-task b { font-size: 13px; color: var(--ink); }
.rm-count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rm-phase .rm-chart { background-color: #fbfcfe; }
.rm-band { position: absolute; top: 14px; height: 16px; border-radius: 4px; opacity: .14; }
.rm-band.ph1 { background: var(--ph1); }
.rm-band.ph2 { background: var(--ph2); }
.rm-band.ph3 { background: var(--ph3); }
.rm-milestone { position: absolute; top: 9px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 10px; color: var(--muted); }
.rm-milestone.end { transform: translateX(-100%); align-items: flex-end; padding-right: 2px; }
.rm-milestone i { width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; margin-bottom: 4px; }
.rm-milestone.ph1 i { background: var(--ph1); }
.rm-milestone.ph2 i { background: var(--ph2); }
.rm-milestone.ph3 i { background: var(--ph3); }
.rm-title { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; min-width: 0; flex: 1; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.rm-no { grid-row: 1 / 3; font-size: 11px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.rm-name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-title:hover .rm-name { color: var(--brand); }
.rm-meta { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 2px; }
.rm-meta .pri { font-size: 10px; padding: 0 6px; }
.rm-svc-tag { color: var(--brand); font-weight: 700; }
.rm-owner { white-space: nowrap; }
.rm-bar { position: absolute; top: 11px; height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; min-width: 30px; box-shadow: 0 1px 2px rgba(15, 31, 51, .12); }
.rm-bar.ph1 { background: var(--ph1); }
.rm-bar.ph2 { background: var(--ph2); }
.rm-bar.ph3 { background: var(--ph3); }
.rm-bar.svcbar { background: repeating-linear-gradient(45deg, var(--brand), var(--brand) 6px, var(--brand-500) 6px, var(--brand-500) 12px); }
.rm-bar.done { background: #40c057; }
.rm-item:hover .rm-task, .rm-item:hover .rm-chart { background-color: #f7faff; }
.rm-item.is-done .rm-name { text-decoration: line-through; color: var(--muted); }
.rm-item.is-svc .rm-task { box-shadow: inset 3px 0 0 var(--brand); }
.rm-item.open .rm-task, .rm-item.open .rm-chart { background-color: var(--brand-50); }
.rm-detail { grid-column: 1 / -1; padding: 12px 20px 16px calc(20px + 32px); background: var(--brand-50); border-top: 1px dashed var(--brand-100); font-size: 13px; }
.rm-detail p { margin: 0 0 4px; color: #3a4859; }
.rm-body { position: relative; }
.rm-overlay { position: absolute; inset: 0 0 0 var(--task-w); pointer-events: none; }
.rm-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--crit); }
.rm-today span { position: absolute; top: 2px; left: 4px; background: var(--crit); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

/* ===== 本人確認・ログイン ===== */
.center-card { max-width: 480px; margin: 40px auto; }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.modal.wide { width: min(820px, 100%); }
.modal.wide h3 { margin-top: 18px; }
.modal.wide ul { padding-left: 20px; font-size: 14px; }

/* ===== モーダル・通知 ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 31, 51, .55); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(2px); }
.modal { position: relative; background: #fff; border-radius: var(--radius); padding: 30px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal .close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.modal fieldset label.check { margin: 6px 0; font-size: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow-lg); }

/* ===== 表・管理画面 ===== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table th { color: var(--muted); font-size: 12px; white-space: nowrap; font-weight: 700; }
.table tbody tr:hover { background: #fafcff; }
.table select { margin: 0; padding: 5px 8px; }
.tag { display: inline-block; background: var(--brand-50); color: var(--brand-700); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px; margin: 0 4px 4px 0; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.kpis .card { margin-bottom: 20px; }
.admin main { max-width: 1320px; }
.login { max-width: 400px; margin: 60px auto; }
.funnel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.fstep p { margin: 0; }
.fbar { height: 6px; background: var(--line-2); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.fbar div { height: 100%; background: var(--brand-500); }
.tabs.flat { border: 0; margin: 0; flex-wrap: wrap; }
.tabs .count { display: inline-block; margin-left: 6px; background: var(--line-2); color: var(--muted); font-size: 11px; padding: 0 7px; border-radius: 99px; }
.stage { font-size: 12px; font-weight: 700; }
.s-detail_done, .s-quick_done { color: var(--good); }
.s-quick, .s-detail { color: var(--high); }
.mini-progress { width: 110px; height: 5px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 3px 0; }
.mini-progress div { height: 100%; background: var(--brand-500); }
tr.dropped { background: #fff7f9; }
.notify-status { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; font-size: 13px; }
.notify-status .ok { color: var(--good); font-weight: 700; }
.notify-status .ng { color: var(--muted); }
.notify-status .tiny { margin-left: 4px; font-weight: 400; }

/* ===== 文書ページ(プライバシーポリシー) ===== */
.doc { max-width: 880px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; margin-top: 32px; box-shadow: var(--shadow); }
.doc h2 { margin-top: 34px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .table th { white-space: nowrap; width: 1%; }
.todo-fill { background: #fff3cd; color: #8a5a00; font-weight: 700; }

/* ボット対策の入力欄(人には見せない) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ===== レスポンシブ ===== */
@media screen and (max-width: 900px) {
  .hero, .score-grid, .two-col, .diag { grid-template-columns: 1fr; }
  .hero { gap: 28px; }
  .hero h1 { font-size: 30px; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .diag-side { display: none; }
  .kpis, .funnel { grid-template-columns: repeat(2, 1fr); }
  :root { --task-w: 280px; }
}
@media screen and (max-width: 560px) {
  main { padding: 22px 16px 56px; }
  .header { padding: 0 16px; height: 56px; }
  .logo img { height: 26px; }
  .logo-divider, .logo-service, .nav-company { display: none; }
  #nav { gap: 14px; font-size: 13px; }
  .answers { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .diag-main, .card { padding: 18px; }
  .register { padding: 22px; }
  .bar-row { grid-template-columns: 110px 1fr 30px; }
  .cta, .upsell, .upsell-mini { flex-direction: column; align-items: stretch; }
  .qcard { padding: 24px 18px; }
  .qtitle { font-size: 18px; }
  .diag-main .qbar { margin: -18px -18px 16px; padding: 12px 18px 10px; }
  .qbar { top: 56px; }
  .hensachi .big { font-size: 62px; }
  .doc { padding: 22px; margin-top: 16px; }
  :root { --task-w: 210px; }
  .rm-meta .rm-owner { display: none; }
}

/* ===== 印刷(PDF保存) ===== */
@page { size: A4; margin: 10mm; }
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .header, .footer, .no-print, .tabs { display: none !important; }
  body { background: #fff; font-size: 12px; }
  main { padding: 0; max-width: none; }
  .card { break-inside: avoid; padding: 16px; margin-bottom: 12px; box-shadow: none; }
  .score-grid, .two-col { gap: 12px; }
  .hensachi .big { font-size: 56px; }
  .todo, .rm-row { break-inside: avoid; }
  .roadmap { overflow: visible; }
  .rm-scroll { overflow: visible; }
  .rm { min-width: 0; font-size: 10px; }
  :root { --task-w: 230px; }
  .rm-task, .rm-top { position: static; }
  .rm-chart { min-height: 30px; }
  .rm-bar { top: 6px; height: 16px; font-size: 9px; }
  .rm-detail { display: none !important; }
}
