/*
 * カメレーダー（サイバー攻撃・脆弱性・情報漏洩 特設サイト）
 * 暗い背景に細い線と少ない差し色。データ（グラフ・重要度）だけが目立つようにする。
 * 書体は端末の標準（Web フォントは読み込まない。読み込み中に字が動かないように）。
 */

:root {
  color-scheme: dark;
  --bg: #050912;
  --bg-2: #070d18;
  --surface: #0b1220;
  --surface-2: #0f1829;
  --surface-3: #15223a;
  --line: #1b2a42;
  --line-2: #273a5c;
  --text: #e8eef7;
  --text-2: #b4c0d3;
  --muted: #8592a8;
  --accent: #22d3ee;
  --accent-ink: #04151b;
  --accent-wash: rgba(34, 211, 238, 0.12);
  --accent-line: rgba(34, 211, 238, 0.45);
  --live: #34d399;
  --warn-ink: #fbbf24;

  /* 重要度（状態の色。必ず文字のラベルと一緒に使う） */
  --sev-critical: #d03b3b;
  --sev-high: #ec835a;
  --sev-medium: #fab219;
  --sev-low: #7b8aa3;
  --sev-none: #4b5568;

  /* 系列（この順に割り当てる。暗い面 #0b1220 で検証済み） */
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #008300;
  --s7: #9085e9;
  --s8: #e66767;

  --radius: 12px;
  --radius-sm: 7px;
  --font: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --wrap: 1280px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }

body {
  margin: 0;
  background-color: var(--bg);
  /* 方眼の背景（ごく薄く） */
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; letter-spacing: 0.02em; }
p { margin: 0 0 0.8em; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.93em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hair { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* ------------------------------------------------------------------ ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 9, 18, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 18px; letter-spacing: 0.08em; white-space: nowrap; }
.brand-text small { font-size: 10.5px; color: var(--text-2); letter-spacing: 0.04em; white-space: nowrap; }
.brand-mark {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 1px solid var(--accent-line);
  background:
    radial-gradient(circle, transparent 0 30%, rgba(34, 211, 238, 0.18) 31% 32%, transparent 33% 62%, rgba(34, 211, 238, 0.18) 63% 64%, transparent 65%),
    radial-gradient(circle, rgba(34, 211, 238, 0.10), transparent 70%);
  overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.55), rgba(34, 211, 238, 0) 25%, transparent 100%);
  animation: sweep 3.6s linear infinite;
}
.brand-mark::before {
  content: ""; position: absolute; left: 60%; top: 30%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 6px var(--live); z-index: 1;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.header-search { flex: 1; display: flex; justify-content: flex-end; min-width: 0; }
.header-search form { position: relative; width: 100%; max-width: 360px; }
.header-search input {
  width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: 14px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.header-search .icon { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.live {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-2); letter-spacing: 0.04em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.live.is-stale .live-dot { background: var(--warn-ink); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }
.motion-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2);
  font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.motion-toggle:hover { border-color: var(--accent-line); color: var(--text); }
.motion-toggle svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .live-text { display: none; }
  .motion-toggle span { display: none; }
}
@media (max-width: 520px) {
  .header-row { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-search form { max-width: none; }
  .brand-text strong { font-size: 16px; }
  .brand-text small { font-size: 10px; letter-spacing: 0; }
}

/* ------------------------------------------------------------------ タブ */
.tabs-bar { border-bottom: 1px solid var(--line); background: rgba(7, 13, 24, 0.92); position: sticky; top: var(--header-h); z-index: 30; }
@media (max-width: 520px) { .tabs-bar { position: static; } }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px 11px;
  color: var(--text-2); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent;
}
.tab svg { width: 16px; height: 16px; opacity: 0.8; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.tab .tab-note { font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 7px; line-height: 18px; }

/* ------------------------------------------------------------------ 速報の流れる帯 */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 12px; height: 38px; }
.ticker-label { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 5px; padding: 0 7px; line-height: 20px; }
.ticker-track { position: relative; flex: 1; overflow: hidden; height: 100%; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-run { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 28px; white-space: nowrap; animation: ticker 90s linear infinite; }
.ticker:hover .ticker-run, .no-motion .ticker-run { animation-play-state: paused; }
.no-motion .brand-mark::after { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.ticker-item a { color: var(--text-2); }
.ticker-item a:hover { color: var(--text); }
.ticker-item time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------ 本文 */
main.app-main { padding-top: 28px; padding-bottom: 64px; min-height: 60vh; }
.view { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.no-motion .view { animation: none; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; }
@media (min-width: 768px) { .page-head h1 { font-size: 28px; } }
.page-head .lead { color: var(--text-2); max-width: 760px; margin: 8px 0 0; font-size: 14.5px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 6px; display: block; }

.section { margin-top: 34px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; }
.section-head h2 .count { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.section-head .more { font-size: 13px; white-space: nowrap; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.span-2 { grid-column: 1 / -1; }

.panel {
  background: linear-gradient(180deg, rgba(21, 34, 58, 0.35), rgba(11, 18, 32, 0) 120px), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-head h3 { font-size: 15px; }
.panel-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.panel-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }
.panel-foot a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ 概況の最初の画面 */
.hero { display: grid; gap: 24px; align-items: center; margin-bottom: 8px; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero h1 { font-size: 28px; line-height: 1.35; letter-spacing: 0.04em; }
@media (min-width: 768px) { .hero h1 { font-size: 36px; } }
.hero .lead { color: var(--text-2); font-size: 15px; margin-top: 12px; max-width: 640px; }
.entry-cards { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 600px) { .entry-cards { grid-template-columns: 1fr 1fr; } }
.entry-card {
  display: block; padding: 16px 16px 14px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); transition: border-color 0.15s, transform 0.15s;
}
.entry-card:hover { text-decoration: none; border-color: var(--accent-line); transform: translateY(-1px); }
.entry-card .who { font-size: 12px; color: var(--muted); }
.entry-card strong { display: block; font-size: 16px; margin: 4px 0 6px; }
.entry-card p { color: var(--text-2); font-size: 13px; margin: 0; }
.entry-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent); font-size: 13px; white-space: nowrap; }
.entry-card .go svg, .btn svg, a svg { width: 14px; height: 14px; flex: none; }

.radar-box { position: relative; aspect-ratio: 1 / 1; max-width: 420px; width: 100%; margin: 0 auto; }
.radar-box svg { width: 100%; height: 100%; display: block; }
.radar-sweep { transform-origin: 50% 50%; animation: sweep 6s linear infinite; }
.no-motion .radar-sweep { animation-play-state: paused; }
.radar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.radar-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* ------------------------------------------------------------------ 数字のタイル */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tiles.tiles-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; min-width: 0; display: flex; flex-direction: column; }
.tile .label { font-size: 12.5px; color: var(--text-2); line-height: 1.45; min-height: 2.9em; }
.tile .value { font-size: 28px; font-weight: 600; line-height: 1.15; margin-top: 6px; letter-spacing: 0.01em; }
.tile .value small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.tile .delta { font-size: 12px; margin-top: 4px; color: var(--muted); }
.tile .delta b { font-weight: 600; color: var(--text); }
.tile .spark { margin-top: 8px; height: 28px; }
.tile .src { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 8px; line-height: 1.5; }
.tile a.tile-link { color: inherit; }

/* ------------------------------------------------------------------ バッジ */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 5px;
  font-size: 11.5px; line-height: 1; white-space: nowrap; font-weight: 600; letter-spacing: 0.02em;
}
.sev-critical { background: var(--sev-critical); color: #fff; }
.sev-high { background: var(--sev-high); color: #1c0b03; }
.sev-medium { background: var(--sev-medium); color: #1f1400; }
.sev-low { background: var(--sev-low); color: #0b1220; }
.sev-none, .sev-unknown { background: var(--surface-3); color: var(--text-2); font-weight: 500; }
.badge .score { font-family: var(--mono); font-weight: 600; }
.badge-kev { background: transparent; color: #ff8f8f; border: 1px solid rgba(230, 103, 103, 0.65); }
.badge-ai { background: transparent; color: #c3bbff; border: 1px solid rgba(144, 133, 233, 0.6); }
.badge-en { background: transparent; color: var(--muted); border: 1px solid var(--line-2); font-weight: 500; }
.badge-src { background: var(--surface-3); color: var(--text-2); font-weight: 500; }
.badge-kind { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); font-weight: 500; }
.badge-status-active { background: rgba(230, 103, 103, 0.14); color: #ffb0b0; border: 1px solid rgba(230, 103, 103, 0.45); }
.badge-status-disrupted { background: rgba(52, 211, 153, 0.10); color: #9be9c9; border: 1px solid rgba(52, 211, 153, 0.4); }
.badge-status-defunct, .badge-status-unknown, .badge-status-rebranded { background: var(--surface-3); color: var(--text-2); font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--accent-line); color: var(--text); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--accent-wash); border-color: var(--accent); color: var(--text); }
.chip .n { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.chip-sm { height: 24px; padding: 0 9px; font-size: 12px; }
.fw-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 11.5px; white-space: nowrap; }
a.fw-chip:hover { text-decoration: none; border-color: var(--accent-line); color: var(--text); }

/* ------------------------------------------------------------------ 絞り込みの行 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 16px; }
.filters .grow { flex: 1 1 220px; min-width: 0; }
.filters label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.select, .input {
  height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 13.5px; padding: 0 10px; min-width: 0;
}
.select { padding-right: 28px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px; background-size: 5px 5px; background-repeat: no-repeat; }
.input { width: 100%; }
.select:focus, .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: 13px; height: 32px; padding: 0 12px; cursor: pointer; white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--accent-wash); color: var(--text); }

/* ------------------------------------------------------------------ 一覧 */
.list { display: flex; flex-direction: column; }
.row {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 4px;
  border-top: 1px solid var(--line); color: var(--text);
}
.row:first-child { border-top: 0; }
.row:hover { background: rgba(34, 211, 238, 0.04); }
.row:focus-within { box-shadow: inset 0 0 0 2px var(--accent-line); }
.row .r-sev { padding-top: 1px; min-width: 70px; }
.row .r-title { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; color: var(--text); }
.row .r-title:hover { text-decoration: none; }
.row .r-title:focus-visible { outline: none; }
/* 題名のリンクで行全体を押せるようにする（行の中に Google 翻訳の帰属表示のリンクを置けるよう、行そのものはリンクにしない） */
.row .r-title::after { content: ""; position: absolute; inset: 0; }
.gt-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; line-height: 0; }
.gt-badge img { height: 16px; width: auto; max-width: none; display: block; }
.orig-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 10px; overflow-wrap: anywhere; }
.mt-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.row .r-meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.row .r-meta .id { font-family: var(--mono); color: var(--text-2); letter-spacing: 0; }
.row .r-meta .chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.row .r-meta .r-url { font-family: var(--mono); font-size: 11px; letter-spacing: 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .r-meta { grid-column: 1; }
  .row .r-sev { min-width: 0; }
}
.list-empty { padding: 26px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 事案のカード */
.incident { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px 16px; }
.incident:first-child { border-top: 0; }
@media (min-width: 760px) { .incident { grid-template-columns: 110px minmax(0, 1fr); } }
.incident .when { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); letter-spacing: 0; padding-top: 2px; }
.incident .when small { display: block; color: var(--muted); font-family: var(--font); }
.incident h3 { font-size: 15px; line-height: 1.5; }
.incident .org { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.incident p { color: var(--text-2); font-size: 13.5px; margin: 6px 0 4px; }
.incident .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.incident .records { font-family: var(--mono); color: var(--text); font-size: 12.5px; }
.incident .sources { font-size: 12px; }
.incident .sources a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* フレームワークのカード */
.fw-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.fw-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0; }
a.fw-card:hover { text-decoration: none; border-color: var(--accent-line); }
.fw-card .fw-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.fw-card h3 { font-size: 14.5px; line-height: 1.4; }
.fw-card .grp { font-size: 11.5px; color: var(--muted); }
.fw-card .nums { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.fw-card .nums b { display: block; font-size: 18px; color: var(--text); font-weight: 600; line-height: 1.2; }
.fw-card .flags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 21px; }
.fw-card .spark { height: 30px; }
.fw-card .last { font-size: 11.5px; color: var(--muted); }

/* マルウェアのカード */
.mw-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mw-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.mw-card .mw-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mw-card h3 { font-size: 16px; margin-right: 4px; }
.mw-card .aliases { font-size: 12px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.mw-card p { font-size: 13.5px; color: var(--text-2); margin: 8px 0 0; }
.mw-card details { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.mw-card summary { cursor: pointer; color: var(--text); font-size: 13px; }
.mw-card .kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin-top: 10px; font-size: 12.5px; }
.mw-card .kv dt { color: var(--muted); }
.mw-card .kv dd { margin: 0; color: var(--text-2); }
.mw-card .refs { margin: 8px 0 0; padding-left: 1.2em; font-size: 12.5px; }
.mw-card .refs li { margin: 2px 0; overflow-wrap: anywhere; }

/* AI の年表 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -18px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--s7); }
.tl-item.case::before { border-color: var(--s8); }
.tl-item.imp1::before { background: var(--s7); }
.tl-item time { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0; }
.tl-item h4 { font-size: 14px; margin: 2px 0 2px; line-height: 1.5; }
.tl-item p { font-size: 13px; color: var(--text-2); margin: 2px 0 0; }
.tl-item .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------------------ グラフ */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis text, .chart text.axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .tick-num { font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .baseline { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; opacity: 0; pointer-events: none; }
.chart.is-hover .crosshair { opacity: 0.7; }
.chart .mark-hit { fill: transparent; }
.chart .bar:hover, .chart .bar.is-hot { filter: brightness(1.25); }
.chart .event-line { stroke: var(--s7); stroke-width: 1; opacity: 0.55; }
.chart .event-line.imp1 { opacity: 0.95; }
.chart .event-dot { fill: var(--surface); stroke: var(--s7); stroke-width: 2; cursor: pointer; }
.chart .event-dot.imp1 { fill: var(--s7); }
.chart .era { fill: rgba(144, 133, 233, 0.06); }
.chart .era-label { fill: var(--muted); font-size: 11px; }
.chart .end-label { fill: var(--text-2); font-size: 11.5px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: 12.5px; color: var(--text-2); }
.chart-legend .key { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.chart-legend .sw { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.chart-legend .ln { width: 14px; height: 2px; border-radius: 1px; flex: none; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 140px; max-width: 280px;
  background: rgba(10, 16, 28, 0.97); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px;
  font-size: 12px; color: var(--text-2); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.08s;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip .tt-head { color: var(--text); font-weight: 600; margin-bottom: 4px; font-size: 12.5px; }
.chart-tip .tt-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px; line-height: 1.7; }
.chart-tip .tt-row .ln { width: 12px; height: 2px; border-radius: 1px; }
.chart-tip .tt-row b { color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 12px; text-align: right; }
.chart-tip .tt-note { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.chart-tools { display: flex; gap: 6px; flex: none; }
.btn-mini { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.btn-mini:hover { border-color: var(--accent-line); color: var(--text); }
.btn-mini[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th, table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data th { color: var(--muted); font-weight: 500; background: var(--surface-2); position: sticky; top: 0; }
table.data td { font-variant-numeric: tabular-nums; color: var(--text-2); }
table.data td.text { text-align: left; white-space: normal; min-width: 180px; }
table.data tr:last-child td { border-bottom: 0; }

/* 10大脅威の順位の表 */
.rank-table td.rank { font-family: var(--mono); text-align: center; font-weight: 600; color: var(--text); }
.rank-table td.rank.r1 { background: rgba(57, 135, 229, 0.42); }
.rank-table td.rank.r2 { background: rgba(57, 135, 229, 0.32); }
.rank-table td.rank.r3 { background: rgba(57, 135, 229, 0.24); }
.rank-table td.rank.r4 { background: rgba(57, 135, 229, 0.17); }
.rank-table td.rank.r5 { background: rgba(57, 135, 229, 0.11); }
.rank-table td.rank.out { color: var(--muted); font-weight: 400; }

/* 増えているもの */
.growth { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.growth-card { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-width: 0; }
.growth-card .g-name { font-size: 13px; color: var(--text); line-height: 1.45; }
.growth-card .g-pct { font-size: 22px; font-weight: 600; margin-top: 4px; }
.growth-card .g-pct .arrow { display: inline-block; width: 0; height: 0; margin-right: 6px; vertical-align: 3px; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.growth-card .g-pct.up .arrow { border-bottom: 9px solid var(--sev-high); }
.growth-card .g-pct.down .arrow { border-top: 9px solid var(--s3); }
.growth-card .g-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* ------------------------------------------------------------------ 詳細（右から出る） */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(2, 5, 10, 0.62); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); z-index: 61; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  transform: translateX(102%); transition: transform 0.2s ease; padding: 0 0 40px;
}
.drawer.is-open { transform: none; }
.drawer-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: rgba(11, 18, 32, 0.96); border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px; }
.drawer h2 { font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.drawer .badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.drawer .kv { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px 14px; font-size: 13.5px; margin: 14px 0; }
.drawer .kv dt { color: var(--muted); }
.drawer .kv dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.drawer .summary { font-size: 14px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; white-space: pre-line; }
.drawer .lang-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--accent-line); }
.icon-btn svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ ボタン・フォーム */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--accent-line); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: transparent; border-color: rgba(230, 103, 103, 0.7); color: #ffb0b0; }
.btn-ghost { background: transparent; }
.link-danger { color: #ff9c9c; font-size: 13px; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.field > span { color: var(--text); font-size: 13.5px; }
.field input[type="email"], .field input[type="text"], .field select {
  height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; padding: 0 12px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.field-row { display: grid; gap: 14px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.check input { margin-top: 4px; accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 0; min-width: 0; }
legend { padding: 0 6px; font-size: 13.5px; color: var(--text); }
.fw-group { margin-bottom: 12px; }
.fw-group h3 { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
.chip-check input:checked + span { background: var(--accent-wash); border-color: var(--accent); color: var(--text); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.notice { border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 14px; }
.notice-ok { background: rgba(52, 211, 153, 0.10); border: 1px solid rgba(52, 211, 153, 0.45); color: #c4f5df; }
.notice-ng { background: rgba(230, 103, 103, 0.10); border: 1px solid rgba(230, 103, 103, 0.5); color: #ffc9c9; }
.notice-info { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.form-error { color: #ffb0b0; font-size: 12.5px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 相談先 */
.help-box { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.help-box h3 { font-size: 15px; margin-bottom: 8px; }
.help-box ul { margin: 0; padding-left: 1.2em; font-size: 13.5px; color: var(--text-2); }
.help-box li { margin: 4px 0; }

/* 出典 */
.src-table td { white-space: normal; vertical-align: top; text-align: left; }
.src-table td.state { white-space: nowrap; }
.state-ok { color: var(--live); }
.state-ng { color: #ff9c9c; }
.state-off { color: var(--muted); }
.legal { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.legal p { margin: 0 0 6px; }

/* ------------------------------------------------------------------ フッター */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 12.5px; background: rgba(5, 9, 18, 0.9); }
.site-footer .cols { display: grid; gap: 18px; }
@media (min-width: 900px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr; } }
.site-footer p { margin: 0 0 6px; line-height: 1.7; }
.site-footer a { color: var(--text-2); }
.site-footer .nvd { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); letter-spacing: 0; }

/* 準備中・読み込み */
.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 14px; }
.loading::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: sweep 0.9s linear infinite; }
.is-refreshing { opacity: 0.55; transition: opacity 0.15s; }

/* 通知の設定ページ（notify.php） */
.notify-main { padding: 32px 16px 60px; max-width: 860px; }
.notify-panel { padding: 22px; }
.notify-title { font-size: 22px; margin-bottom: 14px; }
.notify-form { display: grid; gap: 16px; margin-top: 10px; }
.notify-form .field input, .notify-form .field select { height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; padding: 0 12px; }
.notify-form .actions { margin-top: 4px; }

@media print {
  .site-header, .tabs-bar, .ticker, .site-footer, .chart-tools { display: none !important; }
  body { background: #fff; color: #000; }
}
