/* まもるチェック Web。mock/web_mock.html・mock/report_mock.html と同じトーン。明るい配色のみ。 */
:root {
  color-scheme: light;
  --bg: #f1f3f6; --panel: #ffffff; --ink: #18202b; --sub: #5a6574; --line: #d6dbe2;
  --head: #1d2b3e; --head-ink: #ffffff; --head-sub: #a9b6c8; --accent: #1f4e8c; --accent-bg: #e8eef7;
  --pass: #237a46; --pass-bg: #e6f2ea; --crit: #c4302b; --crit-bg: #fbe8e7; --high: #c8641a; --high-bg: #fcefe3;
  --mid: #a17a00; --mid-bg: #faf3d9; --low: #6b7684; --low-bg: #eef0f3; --code-bg: #f7f8fa;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans JP", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.8; }
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }

.bar { background: var(--head); color: var(--head-ink); }
.bar-in { max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.bar .brand { color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: .85rem; }
.bar nav a { color: var(--head-sub); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.bar nav a.on, .bar nav a:hover { color: #fff; border-color: #fff; }
.bar nav form { margin: 0; }
.bar nav button { font: inherit; background: none; border: 0; color: var(--head-sub); cursor: pointer; padding: 0; }
.bar nav button:hover { color: #fff; }

main.page { max-width: 960px; margin: 0 auto; display: grid; gap: 22px;
  padding-block: 24px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.title { display: grid; gap: 4px; }
.title h1 { font-size: 1.3rem; }
.title p { color: var(--sub); font-size: .9rem; }
.title-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
h2 { font-size: 1rem; padding-bottom: 6px; border-bottom: 2px solid var(--head); display: flex; align-items: baseline; gap: 12px; }
h2 .en { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--sub); letter-spacing: .12em; text-transform: uppercase; }
section { display: grid; gap: 14px; min-width: 0; }

.msgs { display: grid; gap: 6px; }
.msg { padding: 10px 14px; border-radius: 0 4px 4px 0; font-size: .88rem; border-left: 4px solid var(--accent); background: var(--accent-bg); }
.msg.error { border-color: var(--crit); background: var(--crit-bg); }
.msg.success { border-color: var(--pass); background: var(--pass-bg); }
.msg.warning { border-color: var(--high); background: var(--high-bg); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 18px 20px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.panel h3 { font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }
form.stack { display: grid; gap: 12px; margin: 0; }
label { font-size: .82rem; font-weight: 700; display: grid; gap: 4px; }
label.inline { display: flex; gap: 8px; align-items: center; font-weight: 500; }
input[type=text], input[type=email], input[type=url] { font: inherit; font-size: .95rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; width: 100%; background: #fff; color: var(--ink); }
.btn { font: inherit; font-size: .88rem; font-weight: 700; padding: 8px 18px; border-radius: 3px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; justify-self: start; text-decoration: none; display: inline-block; line-height: 1.5; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--accent); }
.btn.small { padding: 3px 10px; font-size: .78rem; font-weight: 500; }
.btn.danger { background: #fff; color: var(--crit); border-color: var(--crit); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row form { margin: 0; }
.note { font-size: .8rem; color: var(--sub); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--sub); font-size: .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.oauth { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; font-size: .9rem; padding: 9px; border: 1px solid var(--line); background: #fff; border-radius: 3px; color: var(--ink); text-decoration: none; }
.oauth.off { color: var(--sub); background: var(--low-bg); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 0 8px; border-radius: 2px; border: 1px solid currentColor; white-space: nowrap; }
.tag.pass { color: var(--pass); background: var(--pass-bg); } .tag.crit { color: var(--crit); background: var(--crit-bg); }
.tag.high { color: var(--high); background: var(--high-bg); } .tag.mid { color: var(--mid); background: var(--mid-bg); }
.tag.low { color: var(--low); background: var(--low-bg); } .tag.wait, .tag.na { color: var(--accent); background: var(--accent-bg); }
.tag.fail { color: var(--crit); background: #fff; }

.keybox { font-family: var(--font-mono); font-size: clamp(1rem, 3vw, 1.35rem); background: var(--code-bg); border: 1px dashed var(--accent); border-radius: 4px; padding: 14px 16px; overflow-wrap: anywhere; }
.keybox span { display: inline-block; }
.keybox span + span::before { content: "-"; color: var(--sub); padding: 0 2px; }
.store { width: 100%; border-collapse: collapse; font-size: .85rem; }
.store th, .store td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.store thead th { border-top: 0; background: var(--accent-bg); font-size: .76rem; color: var(--head); }
.no { color: var(--crit); font-weight: 700; } .yes { color: var(--pass); font-weight: 700; }
.steps { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--panel); font-size: .82rem; justify-self: start; }
.steps span { padding: 6px 14px; border-left: 1px solid var(--line); color: var(--sub); }
.steps span:first-child { border-left: 0; }
.steps span.on { background: var(--head); color: #fff; }
.steps span.done { color: var(--pass); }
.sidecar { border-left: 4px solid var(--accent); background: var(--accent-bg); padding: 10px 14px; font-size: .85rem; border-radius: 0 4px 4px 0; }
.warn { border-left: 4px solid var(--high); background: var(--high-bg); padding: 10px 14px; font-size: .85rem; border-radius: 0 4px 4px 0; }
.kv { display: grid; grid-template-columns: 7em 1fr; gap: 6px 14px; margin: 0; font-size: .88rem; }
.kv dt { color: var(--sub); font-weight: 700; font-size: .8rem; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv dd.url { font-family: var(--font-mono); font-size: .85rem; }
.kv dd.url ul { margin: 0; padding: 0; list-style: none; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }
.copyline { display: flex; gap: 8px; align-items: center; }
.copyline code { font-family: var(--font-mono); font-size: .85rem; overflow-wrap: anywhere; flex: 1; min-width: 0; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
table.list { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .88rem; }
table.list th, table.list td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.list thead th { border-top: 0; background: var(--accent-bg); color: var(--head); font-size: .76rem; }
table.list td.dom { font-family: var(--font-mono); font-weight: 500; }
table.list td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.list td.acts { white-space: nowrap; }
table.list td.acts .row { flex-wrap: nowrap; gap: 6px; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: 4px; padding: 24px; text-align: center; color: var(--sub); display: grid; gap: 10px; justify-items: center; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.kpis div { padding: 12px 16px; border-left: 1px solid var(--line); display: grid; }
.kpis div:first-child { border-left: 0; }
.kpis .l { font-size: .76rem; color: var(--sub); }
.kpis .n { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; line-height: 1.3; }
.kpis .n.text { font-size: 1rem; padding-top: 6px; }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis div:nth-child(3) { border-left: 0; } .kpis div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 16px; display: grid; gap: 8px; align-content: start; }
.plan.cur { border: 2px solid var(--accent); }
.plan .price { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; }
.plan .price small { font-family: var(--font-body); font-size: .8rem; color: var(--sub); }
.plan ul { margin: 0; padding-left: 1.1em; font-size: .85rem; display: grid; gap: 2px; }
.plan form { margin: 0; }

/* レポート */
.head { background: var(--head); color: var(--head-ink); border-radius: 4px; overflow: hidden; }
.head-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: var(--head-sub); }
.head-top b { color: var(--head-ink); letter-spacing: .08em; }
.head-main { padding: 20px; display: grid; gap: 14px; }
.head h1 { font-family: var(--font-mono); font-weight: 500; font-size: clamp(1.4rem, 4vw, 1.9rem); word-break: break-all; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 24px; margin: 0; font-size: .85rem; }
.meta div { display: flex; gap: 12px; } .meta dt { color: var(--head-sub); min-width: 5em; } .meta dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.verdict { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--pass); border-radius: 4px; padding: 16px 20px; display: grid; gap: 6px; }
.verdict.crit { border-left-color: var(--crit); } .verdict.high { border-left-color: var(--high); }
.verdict .label { font-size: .75rem; color: var(--sub); letter-spacing: .08em; }
.verdict b { font-size: 1.15rem; } .verdict p { color: var(--sub); font-size: .9rem; }
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.count { padding: 12px 16px; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.count:first-child { border-left: 0; }
.count .l { font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.count .n { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.count .n small { font-family: var(--font-body); font-size: .8rem; margin-left: 4px; color: var(--sub); }
.count .d { font-size: .74rem; color: var(--sub); line-height: 1.5; }
.count.zero .n { color: var(--sub); opacity: .5; }
.sq { width: 10px; height: 10px; display: inline-block; flex: none; border-radius: 1px; }
.sq.crit { background: var(--crit); } .sq.high { background: var(--high); } .sq.mid { background: var(--mid); } .sq.low { background: var(--low); }
@media (max-width: 560px) { .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .count:nth-child(3) { border-left: 0; } .count:nth-child(n+3) { border-top: 1px solid var(--line); } }
.disclaimer { font-size: .8rem; color: var(--sub); }
table.checks { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
table.checks th, table.checks td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.checks thead th { border-top: 0; background: var(--accent-bg); color: var(--head); font-size: .78rem; }
table.checks td.no { font-family: var(--font-mono); color: var(--sub); width: 3em; font-weight: 400; }
table.checks td.name { font-weight: 700; white-space: nowrap; }
table.checks td.scope { color: var(--sub); font-size: .82rem; }
table.checks td.scope ul { margin: 4px 0 0; padding-left: 1.1em; }
table.checks td.res { white-space: nowrap; width: 8.5em; }
.diff { display: grid; gap: 8px; }
.diff div { display: grid; grid-template-columns: 5.5em auto 1fr; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font-size: .9rem; }
.diff .k { font-size: .76rem; font-weight: 700; }
.diff .k.new { color: var(--crit); } .diff .k.fixed { color: var(--pass); }
.filters { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; justify-self: start; background: var(--panel); }
.filter { font: inherit; font-size: .82rem; font-weight: 500; padding: 6px 14px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.filter:first-child { border-left: 0; }
.filter[aria-pressed="true"] { background: var(--head); color: var(--head-ink); }
.flist { display: grid; gap: 10px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; border-left: 4px solid var(--low); }
.item.mid { border-left-color: var(--mid); } .item.high { border-left-color: var(--high); } .item.crit { border-left-color: var(--crit); }
.item summary { list-style: none; cursor: pointer; padding: 12px 16px; display: grid; grid-template-columns: 3.2em auto 1fr auto; gap: 8px 12px; align-items: center; }
.item summary::-webkit-details-marker { display: none; }
.item .id { font-family: var(--font-mono); font-size: .8rem; color: var(--sub); }
.item h3 { font-size: .98rem; min-width: 0; }
.item .cat { display: block; font-size: .75rem; color: var(--sub); font-weight: 400; }
.item .newmark { font-size: .7rem; color: var(--crit); font-weight: 700; margin-left: 6px; }
.toggle { font-size: .78rem; color: var(--accent); white-space: nowrap; }
.toggle::after { content: "詳細 ▾"; } .item[open] .toggle::after { content: "閉じる ▴"; }
@media (max-width: 560px) { .item summary { grid-template-columns: auto 1fr auto; } .item .id { display: none; } }
.ibody { border-top: 1px solid var(--line); padding: 14px 16px 16px; display: grid; gap: 12px; }
.fix { border: 1px solid var(--line); border-radius: 4px; background: var(--code-bg); }
.fix-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.fix-head p { font-size: .8rem; font-weight: 700; color: var(--head); }
.fix-head p span { font-weight: 400; color: var(--sub); margin-left: 6px; }
.copy { font: inherit; font-size: .8rem; font-weight: 500; padding: 4px 14px; border-radius: 3px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; }
.copy.done { background: var(--pass); border-color: var(--pass); }
.fix pre { margin: 0; padding: 12px; font-family: var(--font-body); font-size: .85rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.out ul { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; font-size: .88rem; color: var(--sub); }
footer.foot { max-width: 960px; margin: 0 auto; font-size: .78rem; color: var(--sub); padding: 0 16px 32px; }
