/* Layout: operator console — filterable case list on the left, dossier-style detail on the right; a cross-case comparison view as a second tab. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --sunken: #f3f3f3;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #d4d4d4;
  --accent: #111111;
  --accent-soft: #f3f3f3;
  --neutral-soft: #f3f3f3;
  --seg1: #bdbdbd;
  --crit: #9b2c1f; --crit-soft: #fdecea; --crit-line: #e8b4ae;
  --warn: #8a5a12; --warn-soft: #fbf3e4; --warn-line: #e6d3a8;
  --ok: #1d6b42; --ok-soft: #e8f5ee; --ok-line: #b7ddc8;
  --acc: #0a5f78; --acc-soft: #e7f3f6; --acc-line: #b7d5de;
  --atk-access: #1d4e89; --atk-access-bg: #e7f0fa; --atk-access-line: #b9cfe6;
  --atk-vuln: #9a4d12; --atk-vuln-bg: #fbeede; --atk-vuln-line: #e6c9a4;
  --atk-cred: #6b3fa0; --atk-cred-bg: #f3eafa; --atk-cred-line: #d4c0e8;
  --atk-malware: #8a3d55; --atk-malware-bg: #fbeaf0; --atk-malware-line: #e4b8c6;
  --atk-config: #5c5314; --atk-config-bg: #f6f3e4; --atk-config-line: #ddd4a8;
  --atk-insider: #7a3e2e; --atk-insider-bg: #f8ebe6; --atk-insider-line: #e4c4b8;
  --atk-loss: #3e5160; --atk-loss-bg: #eef2f5; --atk-loss-line: #c5d0d8;
  --atk-ddos: #0e5f6b; --atk-ddos-bg: #e5f4f6; --atk-ddos-line: #b5d5db;
  --font-body: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --r: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --surface: #111111; --sunken: #1c1c1c; --ink: #f5f5f5; --muted: #a3a3a3; --line: #333333;
    --accent: #f5f5f5; --accent-soft: #2a2a2a;
    --neutral-soft: #1c1c1c; --seg1: #737373;
    --crit: #f0a99a; --crit-soft: #3a1814; --crit-line: #6b342c;
    --warn: #e2b86a; --warn-soft: #33250e; --warn-line: #6b5424;
    --ok: #8dccab; --ok-soft: #10301f; --ok-line: #2d5c42;
    --acc: #8ec4d4; --acc-soft: #11303a; --acc-line: #2a5564;
    --atk-access: #9ec0e8; --atk-access-bg: #15283d; --atk-access-line: #2c4d73;
    --atk-vuln: #e2b07a; --atk-vuln-bg: #3a2814; --atk-vuln-line: #6b4a28;
    --atk-cred: #d0b3ee; --atk-cred-bg: #2c1d3d; --atk-cred-line: #553a72;
    --atk-malware: #e7b0c0; --atk-malware-bg: #3a1c28; --atk-malware-line: #6b3a4c;
    --atk-config: #ddd6a4; --atk-config-bg: #2e2a14; --atk-config-line: #5c5428;
    --atk-insider: #e4b8aa; --atk-insider-bg: #3a221c; --atk-insider-line: #6b4034;
    --atk-loss: #c5d0d8; --atk-loss-bg: #1c242b; --atk-loss-line: #3d4c58;
    --atk-ddos: #9ed4dc; --atk-ddos-bg: #123238; --atk-ddos-line: #2a5560;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --surface: #111111; --sunken: #1c1c1c; --ink: #f5f5f5; --muted: #a3a3a3; --line: #333333;
  --accent: #f5f5f5; --accent-soft: #2a2a2a;
  --neutral-soft: #1c1c1c; --seg1: #737373;
  --crit: #f0a99a; --crit-soft: #3a1814; --crit-line: #6b342c;
  --warn: #e2b86a; --warn-soft: #33250e; --warn-line: #6b5424;
  --ok: #8dccab; --ok-soft: #10301f; --ok-line: #2d5c42;
  --acc: #8ec4d4; --acc-soft: #11303a; --acc-line: #2a5564;
  --atk-access: #9ec0e8; --atk-access-bg: #15283d; --atk-access-line: #2c4d73;
  --atk-vuln: #e2b07a; --atk-vuln-bg: #3a2814; --atk-vuln-line: #6b4a28;
  --atk-cred: #d0b3ee; --atk-cred-bg: #2c1d3d; --atk-cred-line: #553a72;
  --atk-malware: #e7b0c0; --atk-malware-bg: #3a1c28; --atk-malware-line: #6b3a4c;
  --atk-config: #ddd6a4; --atk-config-bg: #2e2a14; --atk-config-line: #5c5428;
  --atk-insider: #e4b8aa; --atk-insider-bg: #3a221c; --atk-insider-line: #6b4034;
  --atk-loss: #c5d0d8; --atk-loss-bg: #1c242b; --atk-loss-line: #3d4c58;
  --atk-ddos: #9ed4dc; --atk-ddos-bg: #123238; --atk-ddos-line: #2a5560;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: auto; min-height: 100%; }
html { scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.8; }
strong, b { font-weight: 700; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mono { font-variant-numeric: tabular-nums; }

.app { display: flex; flex-direction: column; }
.topbar { border-bottom: 1px solid var(--ink); background: var(--surface); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 24px; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.topbar-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 24px; }
.topbar-meta { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px 10px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.brand, .brand-name { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit; }
.brand-read { margin: 0; font-size: 12px; line-height: 1.3; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.brand h1, .brand-title, .brand-name { margin: 0; font-size: 17px; line-height: 1.15; font-weight: 900; letter-spacing: 0.02em; }
.brand-name .brand-read { display: inline; font-size: 12px; font-weight: 400; }
.brand .count { font-size: 14px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.tabs a { border: 0; background: transparent; padding: 4px 0; font-size: 14px; color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--ink); }
.topbar .spacer { flex: 1; }
.asof { font-size: 14px; color: var(--muted); }
.topbar .operator { font-size: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 4px 10px; cursor: pointer; font: inherit; font-size: 16px; white-space: nowrap; }
.share-btn:hover { background: var(--sunken); }
.share-btn svg { width: 16px; height: 16px; display: block; }
.share[hidden] { display: none; }

.main { display: flex; flex-direction: column; }
.listpane { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.filters { padding: 12px 16px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.filters input[type=search], .filters select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters label.chk { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.list { overflow: visible; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.pager[hidden] { display: none; }
.pager button { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; padding: 6px 10px; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: default; }
.item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px 16px 14px 13px; cursor: pointer; border-left: 3px solid transparent; color: inherit; text-decoration: none; }
.item:hover { background: var(--sunken); }
.item[aria-current="true"] { background: var(--surface); border-left-color: var(--ink); }
.item .top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.item .org { font-weight: 700; font-size: 16px; margin-top: 2px; }
.item .ttl { font-size: 16px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.item .chips { margin-top: 6px; }
.empty { padding: 24px 16px; color: var(--muted); font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 1.5; padding: 2px 8px; border-radius: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); white-space: nowrap; }
a.chip { text-decoration: none; }
.chip.crit { background: var(--crit-soft); color: var(--crit); box-shadow: inset 0 0 0 1px var(--crit-line); }
.chip.warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.chip.ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.chip.acc { background: var(--acc-soft); color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc-line); }
.chip.line { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.chip.atk-access { background: var(--atk-access-bg); color: var(--atk-access); box-shadow: inset 0 0 0 1px var(--atk-access-line); }
.chip.atk-vuln { background: var(--atk-vuln-bg); color: var(--atk-vuln); box-shadow: inset 0 0 0 1px var(--atk-vuln-line); }
.chip.atk-cred { background: var(--atk-cred-bg); color: var(--atk-cred); box-shadow: inset 0 0 0 1px var(--atk-cred-line); }
.chip.atk-malware { background: var(--atk-malware-bg); color: var(--atk-malware); box-shadow: inset 0 0 0 1px var(--atk-malware-line); }
.chip.atk-supply { background: var(--acc-soft); color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc-line); }
.chip.atk-config { background: var(--atk-config-bg); color: var(--atk-config); box-shadow: inset 0 0 0 1px var(--atk-config-line); }
.chip.atk-insider { background: var(--atk-insider-bg); color: var(--atk-insider); box-shadow: inset 0 0 0 1px var(--atk-insider-line); }
.chip.atk-loss { background: var(--atk-loss-bg); color: var(--atk-loss); box-shadow: inset 0 0 0 1px var(--atk-loss-line); }
.chip.atk-ddos { background: var(--atk-ddos-bg); color: var(--atk-ddos); box-shadow: inset 0 0 0 1px var(--atk-ddos-line); }

.dossier { max-width: 1280px; padding-block: 28px 64px; padding-inline: 32px; }
.back { display: inline-block; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0; margin-bottom: 12px; cursor: pointer; font-size: 16px; }
.eyebrow { font-size: 14px; color: var(--muted); letter-spacing: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dossier h2 { font-size: 28px; font-weight: 700; line-height: 1.45; margin: 8px 0 10px; }
.pubdate { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.orgline { font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.summary { font-size: 16px; margin: 16px 0 0; }

.facts { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.facts .frow { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.facts .frow + .frow { border-top: 1px solid var(--line); }
.fact { padding: 10px 14px; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
@media (max-width: 640px) { .facts .frow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact + .fact { border-left: 0; } .fact { border-bottom: 1px solid var(--line); } }
.fact .k { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.fact .v { font-size: 16px; font-variant-numeric: tabular-nums; }
.fact .v.big { font-size: 20px; font-weight: 700; }
.fact .s { font-size: 14px; color: var(--muted); }

section.blk { margin-top: 36px; }
section.blk > h3 { font-size: 18px; letter-spacing: 0; color: var(--ink); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-weight: 700; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; }
.kv > dt { font-size: 14px; color: var(--muted); padding-top: 2px; }
.kv > dd { margin: 0; min-width: 0; }
.note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.vuln { border: 1px solid var(--line); border-radius: 0; padding: 8px 12px; background: var(--surface); margin-bottom: 6px; }
.vuln .h { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 188px 1fr; gap: 16px; padding: 6px 0; position: relative; }
.timeline li .at { font-size: 14px; color: var(--muted); text-align: right; padding-top: 1px; }
.timeline li .ev { border-left: 1px solid var(--line); padding-left: 16px; position: relative; min-width: 0; }
.timeline li .ev::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink); }
.timeline li.key .ev::before { background: var(--ink); }
.refs { display: inline-flex; gap: 3px; margin-left: 4px; }
.ref { border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; padding: 0 5px; border-radius: 0; cursor: pointer; line-height: 1.6; vertical-align: 1px; text-decoration: none; }
.ref:hover { background: var(--ink); color: var(--surface); }

.analysis article { margin-bottom: 22px; }
.analysis h4 { font-size: 18px; font-weight: 700; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.analysis p { margin: 0; white-space: pre-wrap; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: 0; background: var(--sunken); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

ol.qs { margin: 0; padding-left: 1.4em; }
ol.qs li { margin-bottom: 6px; }
ul.plain { margin: 0; padding-left: 1.2em; }
ul.plain li { margin-bottom: 4px; }

.sources { list-style: none; margin: 0; padding: 0; }
.sources li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 6px 8px; border-radius: 0; }
.sources li.flash { background: var(--sunken); }
.sources .n { font-size: 14px; color: var(--muted); text-align: right; padding-top: 2px; }
.sources .t a { word-break: break-all; }
.sources .m { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* home */
.home { flex: 1; min-height: 0; overflow-y: auto; background: var(--surface); }
.home-inner { max-width: 1680px; padding-block: 28px 64px; padding-inline: 32px; }
.home .hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 32px 48px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.home .kicker { font-size: 14px; color: var(--muted); }
.home .hero h2 { font-size: 28px; font-weight: 700; line-height: 1.45; margin: 8px 0 12px; }
.home .lead { margin: 0; color: var(--muted); max-width: 46em; }
.home .cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.home .btn { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; font: inherit; font-size: 16px; }
.home .btn.primary { background: var(--ink); color: var(--bg); }
.home .hero .facts { margin-top: 0; }
.home section.blk > h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.home section.blk > h3 a { font-size: 16px; font-weight: 400; }
.home .lead2 { margin: 0 0 4px; color: var(--muted); }
.home .prose p { margin: 0 0 10px; }
.home .prose p:last-child { margin-bottom: 0; }
.home article { margin: 0; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.home article h4 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.home article p { margin: 0; }
.home article .en { margin-top: 2px; font-size: 14px; color: var(--muted); }
.home article .body { margin-top: 8px; }
.home article .tip { margin-top: 10px; font-size: 14px; }
.home article .tip .k { color: var(--ok); font-weight: 700; margin-right: 6px; }
.home .cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
.home .termgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; align-items: stretch; }
.home .termgrid article { margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--acc); background: var(--surface); }
.home .scope { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px 16px; margin: 16px 0 0; }
.home .scope dt { color: var(--muted); font-size: 14px; }
.home .scope dd { margin: 0; }
.home .notice { border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 16px 20px; }
.home .notice ol { margin: 0; padding-left: 1.3em; }
.home .notice li + li { margin-top: 8px; }
.home .contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.home .contact dt { font-weight: 700; }
.home .contact dd { margin: 0 0 12px; color: var(--muted); }
.sr-footer { border-top: 1px solid #333; background: #111; color: #ddd; }
.sr-footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 12px; line-height: 1.8; }
.sr-footer-note { flex: 1 0 100%; display: flex; flex-direction: column; gap: 8px; }
.sr-footer-note h2 { margin: 0; font-size: 13px; font-weight: 700; color: #fff; }
.sr-footer-note ul { margin: 0; padding-left: 1.2em; }
.sr-footer-note li + li { margin-top: 4px; }
.sr-footer a { color: #fff; }
.sr-footer a:hover { color: #ddd; }
.sr-footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; width: 100%; }
.sr-footer-note + .sr-footer-bar { margin-top: 4px; padding-top: 16px; border-top: 1px solid #333; }
.home .homefoot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.home .homefoot a { color: var(--muted); }
.recents { list-style: none; margin: 0; padding: 0; }
.recents li + li { border-top: 1px solid var(--line); }
.recents a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 0; cursor: pointer; color: inherit; text-decoration: none; }
.recents a:hover { background: var(--sunken); }
.crawl-index { max-width: 1280px; padding: 28px 32px 64px; }
.crawl-index ul { list-style: none; margin: 0; padding: 0; }
.crawl-index li + li { border-top: 1px solid var(--line); }
.crawl-index a { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 10px 0; color: inherit; text-decoration: none; }
.crawl-index .ttl { grid-column: 1 / -1; color: var(--muted); }
.recents .when { color: var(--muted); }
.recents .org { font-weight: 700; }
.recents .ttl { grid-column: 1 / -1; color: var(--muted); }

@media (max-width: 860px) {
  .topbar-inner { position: relative; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 0; }
  .brand, .brand-name { flex-direction: column; align-items: flex-start; gap: 2px; max-width: 100%; }
  .topbar-inner:has(.share:not([hidden])) .brand,
  .topbar-inner:has(.share:not([hidden])) .brand-name { max-width: calc(100% - 88px); }
  .brand-title, .brand-read, .brand-name > span { white-space: nowrap; }
  .brand h1, .brand-title, .brand-name { font-size: 15px; }
  .brand-read, .brand-name .brand-read { font-size: 11px; }
  .topbar-end { display: block; width: calc(100% + 32px); margin: 0 -16px; min-width: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; gap: 0 20px; width: 100%; padding: 2px 16px 10px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; }
  .share:not([hidden]) { position: absolute; top: 10px; right: 16px; }
  .dossier, .crawl-index { padding-inline: 16px; }
  .home-inner { padding-inline: 16px; }
  .home .hero, .home .cols, .home .termgrid, .home .contact { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv > dd { margin-bottom: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .timeline li .at { text-align: left; padding-left: 18px; }
  html, body, .app { height: auto; min-height: 100%; }
  .topbar { position: sticky; top: 0; z-index: 2; }
  .list { overflow: visible; flex: none; }
}
@media (prefers-reduced-motion: no-preference) { .sources li { transition: background .4s; } }
