:root {
  --ink: #16291f;
  --muted: #64766c;
  --brand: #0d4a30;
  --green: #2dbb6c;
  --green-soft: #e8f8ee;
  --amber: #bd7a17;
  --amber-soft: #fff4d9;
  --line: #dce6df;
  --surface: #ffffff;
  --canvas: #eef5f0;
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at top right, #f8fbf9 0, var(--canvas) 42rem); }
a { color: #176a40; }
.hidden { display: none !important; }
.site-header { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(22px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid rgba(18,62,39,.1); background: rgba(249,252,250,.94); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.brand span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--green); font-weight: 900; }
.brand strong { font-size: 14px; }
.header-meta { text-align: right; }
.header-meta small, .header-meta b { display: block; }
.header-meta small { color: #4d916c; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.header-meta b { margin-top: 2px; font-size: 11px; }
main { width: min(1160px, calc(100% - 34px)); margin: 26px auto 60px; }
.card { margin-bottom: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 14px 38px rgba(21,55,36,.055); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; }
.eyebrow { margin: 0 0 7px; color: #4c936c; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.04em; }
h2 { margin-bottom: 6px; font-size: 22px; letter-spacing: -.025em; }
.muted, .caution { color: var(--muted); font-size: 11px; line-height: 1.7; }
.public-badge, .count { flex: 0 0 auto; padding: 6px 10px; border-radius: 99px; color: #17663c; background: var(--green-soft); font-size: 10px; font-weight: 850; }
.public-badge { display: flex; align-items: center; gap: 7px; }
.public-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.method { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; align-items: center; gap: 30px; }
.method p { margin-bottom: 0; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head p:last-child { margin-bottom: 0; }
.non-buzz .count { color: #7c520d; background: var(--amber-soft); }
.factor { margin: 9px 0; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; background: white; }
.factor.negative { border-left-color: #d69b45; }
.factor > summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) 70px; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.factor > summary::-webkit-details-marker, .all-factors > summary::-webkit-details-marker, .diagnostic-item > summary::-webkit-details-marker { display: none; }
.rank { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; background: #197348; font-size: 11px; font-weight: 900; }
.negative .rank { background: var(--amber); }
.factor-heading { min-width: 0; }
.factor-heading h3 { margin: 0 0 2px; font-size: 14px; }
.factor-heading p { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.confidence { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; gap: 0 5px; text-align: right; }
.confidence span { color: var(--muted); font-size: 8px; }
.confidence b { color: var(--brand); font-size: 20px; line-height: 1; }
.confidence small { grid-column: 1 / -1; color: #28734b; font-size: 9px; font-weight: 900; }
.negative .confidence b, .negative .confidence small { color: #895a0d; }
.factor-body { padding: 1px 16px 18px 64px; border-top: 1px solid #edf2ee; }
.rule { display: grid; gap: 4px; margin: 15px 0; padding: 13px 15px; border-left: 4px solid var(--green); border-radius: 8px; background: var(--green-soft); }
.negative .rule { border-left-color: var(--amber); background: var(--amber-soft); }
.rule span { color: #28744b; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.negative .rule span { color: #82540b; }
.rule b { font-size: 14px; line-height: 1.55; }
.factor-body h4 { margin-bottom: 5px; font-size: 12px; }
.detail { margin-bottom: 12px; font-size: 12px; font-weight: 650; line-height: 1.65; }
.interpretation { margin: 13px 0 18px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; background: #fcfdfc; }
.interpretation-card { padding: 14px 0; }
.interpretation-card + .interpretation-card { border-top: 1px solid #e7ede9; }
.interpretation-card > span { display: block; margin-bottom: 5px; color: #50675a; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.interpretation-card p { margin: 0; color: #233a2e; font-size: 12px; font-weight: 560; line-height: 1.75; }
.state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.state { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid #e0e7e2; border-radius: 7px; background: white; }
.state.high { border-left: 3px solid #55a477; }
.state.low { border-left: 3px solid #c79443; }
.state small { color: var(--muted); font-size: 8px; font-weight: 850; }
.state b { font-size: 10px; line-height: 1.45; }
.measurement-note { border-top: 1px solid #e7ede9; }
.measurement-note > summary { padding: 11px 0; color: #667a6f; cursor: pointer; font-size: 9px; font-weight: 800; }
.measurement-note p { margin: 0; padding: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.evidence-title { margin-top: 17px; }
.metrics, .coverage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.metric { display: grid; gap: 2px; padding: 9px; border-radius: 8px; background: #f4f8f5; }
.metric span { color: var(--muted); font-size: 8px; }
.metric b { font-size: 10px; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; }
.evidence-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfb; }
.evidence-card video { width: 100%; height: 240px; display: block; background: #0a1710; object-fit: contain; }
.media-missing { min-height: 160px; display: grid; place-items: center; color: #819087; background: #eaf0ec; font-size: 10px; }
.evidence-body { padding: 11px; }
.evidence-body > b { display: block; margin-bottom: 8px; font-size: 10px; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.evidence-links a { font-size: 9px; }
.coverage h2 { margin-bottom: 13px; }
.coverage-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.all-factors { padding: 0; }
.all-factors > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 22px; cursor: pointer; list-style: none; }
.all-factors > summary b, .all-factors > summary small { display: block; }
.all-factors > summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.diagnostics-body { padding: 0 22px 24px; border-top: 1px solid var(--line); }
.diagnostics-intro { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.diagnostic-group { margin-top: 24px; }
.diagnostic-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.diagnostic-group-heading h3 { margin: 0; font-size: 16px; }
.diagnostic-group-heading span { color: var(--muted); font-size: 9px; font-weight: 750; }
.diagnostic-item { margin: 6px 0; border: 1px solid var(--line); border-radius: 9px; }
.diagnostic-item[open] { border-color: #c9dace; box-shadow: 0 10px 28px rgba(21,55,36,.06); }
.diagnostic-item > summary { display: grid; grid-template-columns: 28px minmax(0, 1fr) 205px; align-items: center; gap: 11px; padding: 11px 13px; cursor: pointer; list-style: none; }
.diagnostic-rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #397053; background: #e8f4ec; font-size: 9px; font-weight: 900; }
.diagnostic-heading { min-width: 0; }
.diagnostic-heading b, .diagnostic-heading small { display: block; }
.diagnostic-heading b { font-size: 11px; }
.diagnostic-heading small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.diagnostic-scores { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.diagnostic-score { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px; color: var(--muted); }
.diagnostic-score small { font-size: 8px; }
.diagnostic-score b { color: var(--brand); font-size: 15px; }
.diagnostic-tier { max-width: 128px; padding: 4px 7px; overflow: hidden; border-radius: 99px; color: #28734b; background: var(--green-soft); font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.diagnostic-item-body { padding: 0 15px 17px; border-top: 1px solid #edf2ee; }
.diagnostic-rule { display: grid; gap: 4px; margin: 14px 0; padding: 12px 14px; border-left: 4px solid var(--green); border-radius: 8px; background: var(--green-soft); }
.diagnostic-rule span { color: #28744b; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.diagnostic-rule b { font-size: 12px; line-height: 1.55; }
.diagnostic-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.diagnostic-comparison-title { margin: 19px 0 8px; font-size: 13px; }
.diagnostic-evidence-comparison { display: grid; gap: 14px; }
.diagnostic-evidence-group { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #f9fcfa; }
.diagnostic-evidence-group.bottom { background: #fffcf6; }
.diagnostic-evidence-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--green-soft); }
.diagnostic-evidence-group.bottom .diagnostic-evidence-heading { background: var(--amber-soft); }
.diagnostic-evidence-heading h4 { margin: 0; font-size: 11px; }
.diagnostic-evidence-heading span { color: var(--muted); font-size: 8px; font-weight: 800; }
.diagnostic-evidence-group .evidence-grid { margin: 0; padding: 11px; }
.error { color: #7f2929; border-color: #e6bcbc; background: #fff4f4; }
footer { display: flex; justify-content: center; gap: 13px; padding: 26px; color: #6f8176; font-size: 9px; }
footer b { color: var(--brand); }

@media (max-width: 820px) {
  .header-meta { display: none; }
  main { width: min(100% - 22px, 1160px); margin-top: 12px; }
  .card { padding: 17px; border-radius: 13px; }
  .hero { align-items: flex-start; padding: 21px; }
  .public-badge { display: none; }
  .method { grid-template-columns: 1fr; gap: 3px; }
  .factor > summary { grid-template-columns: 29px minmax(0, 1fr) 58px; gap: 8px; padding: 12px 10px; }
  .rank { width: 27px; height: 27px; }
  .confidence b { font-size: 16px; }
  .factor-body { padding: 1px 10px 14px; }
  .metrics, .coverage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card video { height: min(70vh, 520px); }
  .section-head { align-items: flex-start; }
  .diagnostic-item > summary { grid-template-columns: 24px minmax(0, 1fr) 54px; gap: 7px; padding: 10px 8px; }
  .diagnostic-heading small, .diagnostic-tier { display: none; }
  .diagnostic-scores { gap: 0; }
  .diagnostic-score { grid-template-columns: 1fr; justify-items: end; gap: 0; }
  .diagnostic-score b { font-size: 14px; }
  .diagnostic-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnostic-item-body { padding: 0 10px 13px; }
  .interpretation { padding: 0 11px; }
  .interpretation-card { padding: 12px 0; }
  .state-grid { grid-template-columns: 1fr; }
  .diagnostic-evidence-group .evidence-grid { padding: 8px; }
  footer { flex-direction: column; text-align: center; }
}
