@import url("./fonts/noto-sans-jp.css");
@import url("./brand.css");

/* GATUN research report: a reading surface, a quiet index, and print-first pages. */
:root {
  --ink: var(--brand-navy); --body: var(--brand-body); --muted: var(--brand-muted); --accent: var(--brand-blue);
  --line: var(--brand-line); --paper: #fff; --wash: var(--brand-bg);
  --risk: #9a632d; --risk-soft: #f8f2e8;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --numbers: var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--brand-bg); color: var(--body); font: 14px/1.85 var(--font); overflow-wrap: anywhere; }
body[data-grade=S] { --risk: #a43c38; --risk-soft: #fcf0ed; }
body[data-grade=B] { --risk: var(--brand-blue); --risk-soft: var(--brand-tint); }
body[data-grade=C] { --risk: var(--brand-green-text); --risk-soft: #edf5ef; }
body[data-grade=pending] { --risk: var(--brand-muted); --risk-soft: var(--brand-bg); }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { color: var(--ink); }
a { color: var(--accent); text-underline-offset: 4px; }
button,input { font: inherit; }
a,button,input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mono { font-family: var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.muted { color: var(--muted); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 50; padding: 12px 20px; background: #fff; }

.toolbar { position: sticky; top: 0; z-index: 20; background: #fffffff5; border-bottom: 1px solid var(--brand-line); backdrop-filter: blur(12px); }
.toolbar-inner { width: min(1230px,100% - 64px); margin: auto; display: flex; align-items: center; gap: 20px; min-height: 78px; }
.tb-brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--ink); }
.tb-brand img { display: block; width: 140px; height: auto; }
.tb-brand > span { font-size: 12px; padding-left: 20px; border-left: 1px solid var(--line); }
.tb-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; font: bold 12px/1.4 var(--font); border: 1px solid var(--brand-blue); border-radius: 3px; padding: 12px 17px; cursor: pointer; background: var(--brand-blue); color: #fff; text-decoration: none; transition: background .15s; }
.tb-btn:hover { background: var(--brand-blue-hover); }
.tb-btn svg { width: 17px; height: 17px; }
.tb-btn.ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 0; }
.tb-btn.ghost:hover { text-decoration: underline; }
.demo-band { width: min(1230px,100% - 64px); margin: 22px auto 0; display: flex; align-items: baseline; gap: 12px; font-size: 11px; color: var(--brand-muted); }
.demo-band b { font-size: 10px; border: 1px solid var(--brand-line); padding: 1px 8px; white-space: nowrap; }
.pending-band { width: min(1230px,100% - 64px); margin: 16px auto 0; color: #785822; background: #fcf5e8; border: 1px solid #e9d9b7; padding: 12px 18px; font-size: 12px; }

.report-layout { display: grid; grid-template-columns: 178px minmax(0,1fr); gap: 38px; width: min(1230px,100% - 64px); margin: 27px auto 60px; align-items: start; }
.report-sidebar { position: sticky; top: 112px; padding-top: 12px; }
.sidebar-label { color: var(--muted); font-size: 11px; letter-spacing: .03em; padding: 0 0 18px 13px; }
.report-sidebar nav { display: grid; }
.report-sidebar a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0 11px 12px; border-left: 2px solid transparent; color: var(--brand-muted); text-decoration: none; font-size: 11px; line-height: 1.8; }
.report-sidebar a > span { font: 11px/1.8 var(--numbers); color: var(--brand-muted); }
.report-sidebar a:hover { color: var(--ink); }
.report-sidebar a[aria-current] { color: var(--brand-blue); font-weight: bold; border-color: var(--accent); background: var(--brand-tint); }
.sidebar-note { color: var(--muted); font-size: 10px; line-height: 2; border-top: 1px solid var(--brand-line); margin: 28px 0 0 13px; padding-top: 20px; }
.report { min-width: 0; }
.page { background: var(--paper); border: 1px solid var(--brand-line); padding: 48px 54px; margin-bottom: 24px; scroll-margin-top: 102px; }
.section-heading { display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding-bottom: 26px; border-bottom: 1px solid var(--ink); margin-bottom: 30px; }
.section-no { font: 400 28px/1.6 var(--numbers); color: var(--brand-teal); letter-spacing: -.06em; }
.section-heading h2 { font-size: 25px; font-weight: 700; line-height: 1.65; letter-spacing: -.04em; }
.section-heading div > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 8px; }
.page h3 { font-size: 17px; line-height: 1.7; }

/* The opening page is also the executive summary. */
.cover { position: relative; border-top: 4px solid var(--brand-blue); padding-top: 26px; }
.document-top { display: flex; justify-content: space-between; gap: 16px; font: 10px/1.6 var(--numbers); letter-spacing: .1em; color: var(--brand-muted); padding-bottom: 29px; }
.document-top > span:last-child { font-family: var(--font); letter-spacing: .02em; font-size: 10px; }
.document-divider { margin: 0 10px; color: var(--brand-muted-light); }
.cover-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cover .eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.cover h1 { font-family: var(--font); font-size: 38px; line-height: 1.5; letter-spacing: .005em; font-weight: 700; }
.report-edition { font: 11px/1.5 var(--font); color: var(--brand-muted); margin-bottom: 10px; }
.cover-intro { margin: 24px 0 29px; max-width: 52em; font-size: 14px; line-height: 2; }
.assessment { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; background: var(--risk-soft); border-left: 3px solid var(--risk); padding: 23px 26px; }
.assessment-label { color: var(--risk); font-size: 11px; font-weight: bold; margin-bottom: 5px; }
.assessment h2 { color: var(--ink); font-size: 21px; line-height: 1.65; margin: 0 0 7px; }
.assessment-copy > p:last-child { color: var(--brand-muted); font-size: 11px; }
.grade { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; min-width: 43px; height: 49px; color: var(--ink); line-height: 1; flex: none; padding: 0 8px; border: 1px solid currentColor; }
.grade b { font: 600 24px/1 var(--numbers); }
.grade small { font-size: 9px; font-weight: bold; margin-top: 5px; white-space: nowrap; }
.grade.big { min-width: 84px; height: 97px; border: 0; padding: 0; }
.grade.big b { font-size: 74px; font-weight: 400; letter-spacing: -.06em; }
.grade.big small { font-size: 11px; letter-spacing: .12em; margin-top: 8px; }
.g-s { color: #a43c38; background: #fcf0ed; }.g-a { color: #9a632d; background: #f8f2e8; }.g-b { color: var(--brand-blue); background: var(--brand-tint); }.g-c { color: var(--brand-green-text); background: #edf5ef; }.g-none { color: var(--brand-muted); background: var(--brand-bg); }
.risk-scale { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin: 14px 0 32px; }
.risk-level { display: flex; flex-wrap: wrap; gap: 5px 7px; align-items: baseline; position: relative; padding: 9px 10px; color: var(--brand-muted); border-top: 3px solid var(--brand-line); font-size: 10px; }
.risk-level b { font: 600 15px var(--numbers); }
.risk-level.current { border-color: var(--risk); color: var(--risk); background: var(--risk-soft); }
.risk-current { margin-left: auto; font-size: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 0; margin: 0; padding: 0 0 27px; border-bottom: 1px solid var(--line); }
.stats > div { padding: 0 23px; border-left: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { color: var(--muted); font-size: 11px; }
.stats dd { font: 500 39px/1.4 var(--numbers); color: var(--ink); margin: 7px 0 0; letter-spacing: -.04em; }
.stats dd small { color: var(--muted); font: 12px var(--font); letter-spacing: 0; }
.stats .stat-text { font: bold 22px/1.8 var(--font); letter-spacing: 0; }
.stats dd.warn { color: #9a632d; }
.first-actions { margin-top: 26px; }
.subheading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.subheading h3 { font-size: 14px; }
.subheading > span { font-size: 10px; color: var(--muted); }
.first-actions ol { list-style: none; margin: 13px 0 0; padding: 0; }
.first-actions li { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 11px; align-items: baseline; border-bottom: 1px solid var(--brand-line); padding: 11px 0; }
.action-order { font: 12px var(--numbers); color: var(--brand-muted); }
.first-actions a { text-decoration: none; font-size: 12px; color: var(--ink); }
.first-actions a:hover { text-decoration: underline; }
.action-duration { font: 11px var(--font); color: var(--muted); }
.first-action-note { font-size: 10px; color: var(--muted); margin-top: 12px; }
.partial-note { font-size: 12px; color: #785822; border-left: 2px solid #cba658; padding-left: 12px; margin-top: 20px; }
.cover-meta { margin: 29px 0 0; padding-top: 20px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 18px 36px; }
.cover-meta dt { font-size: 10px; color: var(--muted); }
.cover-meta dd { margin: 4px 0 0; font-size: 11px; color: var(--ink); }
.document-foot { font-size: 9px; color: var(--muted); margin-top: 18px; }

/* Evidence tables */
.addr { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.addr:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.addr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.addr-index { font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.addr-head h3 { font-size: 19px; word-break: break-all; }
.addr-count { font-size: 12px; margin-bottom: 10px; }
.addr-count b { color: var(--ink); }
.reasons { color: #705a3f; background: #f9f6f0; padding: 12px 16px 12px 30px; margin: 0 0 14px; font-size: 12px; }
.reasons li { padding-left: 2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th,.tbl td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-size: 10px; font-weight: 400; background: var(--brand-bg); }
.tbl td:first-child { width: 28%; }
.tbl td:nth-child(2) { width: 22%; }
.tbl tr:last-child td { border-bottom: 0; }
.domain { display: block; font-size: 10px; color: var(--muted); }
.chip { display: inline-block; padding: 2px 6px; margin: 2px 4px 2px 0; background: var(--brand-tint); color: var(--brand-body); font-size: 10px; white-space: normal; border: 1px solid var(--brand-line); border-radius: 2px; }
.chip.hot { background: #fbf0e5; color: #925922; border-color: #ecddc9; }
.empty-note,.clear-result { padding: 16px 18px; font-size: 12px; background: var(--brand-bg); color: var(--muted); }
.clear-result { color: var(--brand-green-text); background: #f0f6f1; }
.clear-result > span { margin-right: 8px; }

/* Incident chronicle */
.breach { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 24px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.breach:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.incident-date { border-top: 2px solid var(--brand-teal); padding-top: 11px; font-size: 12px; color: var(--ink); }
.incident-date small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.incident-no { color: var(--brand-muted); font: 10px var(--numbers); letter-spacing: .12em; }
.incident-content header h3 { margin: 6px 0 3px; font-size: 23px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 16px 0; }
.facts dt { color: var(--muted); font-size: 10px; }
.facts dd { margin: 3px 0 0; font-size: 12px; color: var(--ink); }
.explain { font-size: 13px; line-height: 2; margin-top: 17px; }

/* A working checklist, without storing personal data in the browser. */
.action-progress { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 25px; background: var(--brand-tint); }
.action-progress p { font-size: 12px; color: var(--accent); font-weight: bold; }
.action-progress > span { color: var(--muted); font-size: 10px; }
.actions { list-style: none; margin: 0; padding: 0; }
.actions > li { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); break-inside: avoid; scroll-margin-top: 102px; }
.actions > li:first-child { padding-top: 0; }
.actions > li:last-child { padding-bottom: 0; border-bottom: 0; }
.action-margin { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 2px; }
.num { font: 400 35px/1 var(--numbers); color: var(--brand-muted); letter-spacing: -.05em; }
.time { font-size: 9px; color: var(--muted); white-space: nowrap; }
.act-head h3 { font-size: 17px; line-height: 1.8; margin-bottom: 12px; }
.action-why { font-size: 13px; line-height: 1.95; margin-bottom: 14px; }
.action-steps { font-size: 12px; line-height: 1.9; padding-left: 22px; margin: 0; }
.action-steps li { padding: 3px 0 3px 4px; }
.action-steps li::marker { color: var(--brand-muted); font: 11px var(--numbers); }
.action-complete { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 7px 0; font-size: 11px; color: var(--accent); cursor: pointer; }
.action-complete input { width: 17px; height: 17px; margin: 0; accent-color: var(--brand-green-text); }
.actions > li.is-complete .num { color: var(--brand-green-text); }
.actions > li.is-complete .act-head h3::after { content: "対応済み"; display: inline-block; font-size: 10px; color: var(--brand-green-text); margin-left: 10px; padding: 1px 6px; border: 1px solid #b5cfc0; vertical-align: middle; font-weight: normal; }

.reading-page > h3 { font-size: 18px; margin: 30px 0 15px; }
.reading-page > p { font-size: 14px; line-height: 2.05; margin: 16px 0; }
.flow { display: flex; align-items: stretch; gap: 12px; margin: 25px 0; }
.flow div { flex: 1; text-align: center; padding: 19px 10px; color: var(--ink); background: var(--brand-bg); border-top: 2px solid var(--brand-line); font-size: 12px; line-height: 1.8; }
.flow .bad { color: #93483b; background: #faf0ec; border-color: #bc8474; }
.flow i { align-self: center; border: 5px solid transparent; border-right: 0; border-left-color: var(--brand-line); }
.guide { counter-reset: guide; }
.guide section { position: relative; padding: 0 0 23px 50px; margin-bottom: 23px; border-bottom: 1px solid var(--line); counter-increment: guide; break-inside: avoid; }
.guide section:last-child { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
.guide section::before { content: "0" counter(guide); position: absolute; top: 2px; left: 0; font: 22px var(--numbers); color: var(--brand-muted); }
.guide h3 { font-size: 17px; margin-bottom: 16px; }
.guide ul,.guide ol { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.95; }
.guide li { margin: 7px 0; padding-left: 4px; }
.guide section > p { font-size: 13px; background: var(--brand-bg); padding: 13px 16px; margin-top: 16px; }
.method-page > h3 { font-size: 16px; margin-bottom: 8px; }
.method-page > .muted { font-size: 12px; margin-bottom: 18px; }
.legend th { width: 70px; background: transparent; }
.legend td { width: auto !important; vertical-align: middle; font-size: 12px; }
.legend tr.selected { background: #f8f5ee; }
.method-notes { margin-top: 28px; }
.method-notes h3 { font-size: 15px; }
.notes { padding-left: 18px; margin-bottom: 0; font-size: 12px; line-height: 1.95; }
.notes li { margin: 10px 0; padding-left: 3px; }
.report-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--ink); font-size: 12px; }
.report-contact span { display: block; font-size: 10px; color: var(--muted); }
.report-contact b { display: block; margin-top: 4px; color: var(--ink); }
.report-contact a span { display: inline; margin-left: 12px; }
.report-footer { text-align: right; color: var(--brand-muted); font-size: 10px; letter-spacing: .02em; padding: 0 3px; }
.report-footer span { margin: 0 10px; }

@media (max-width: 1100px) {
 .report-layout { grid-template-columns: 155px minmax(0,1fr); gap: 24px; }
 .page { padding-inline: 35px; }
 .report-sidebar a { font-size: 10px; gap: 8px; padding-left: 9px; }
 .cover h1 { font-size: 32px; }
 .report-edition { display: none; }
 .assessment { padding: 20px; gap: 17px; }
 .assessment h2 { font-size: 19px; }
 .risk-current { display: block; width: 100%; margin: 0; }
}
@media (max-width: 850px) {
 .report-layout { grid-template-columns: 1fr; width: min(760px,100% - 40px); margin-top: 20px; }
 .report-sidebar { display: none; }
 .toolbar-inner { width: calc(100% - 40px); }
 .demo-band,.pending-band { width: calc(100% - 40px); }
 .page { padding: 35px; }
 .cover { padding-top: 25px; }
}
@media (max-width: 580px) {
 html { scroll-padding-top: 0; }
 body { font-size: 14px; }
 .toolbar-inner { width: calc(100% - 32px); min-height: 68px; gap: 12px; }
 .tb-brand img { width: 107px; }
 .tb-brand > span { display: none; }
 .tb-actions { gap: 12px; }
 .tb-btn { font-size: 10px; padding: 10px 12px; gap: 6px; }
 .tb-btn svg { width: 15px; height: 15px; }
 .tb-btn.ghost { font-size: 10px; min-height: 44px; }
 .desktop-label { display: none; }
 .demo-band,.pending-band { width: calc(100% - 32px); font-size: 10px; line-height: 1.9; margin-top: 16px; }
 .report-layout { width: calc(100% - 24px); margin: 20px auto 35px; }
 .page { padding: 26px 22px; margin-bottom: 16px; scroll-margin-top: 83px; }
 .document-top { font-size: 8px; padding-bottom: 26px; gap: 9px; }
 .document-top > span:last-child { font-size: 8px; }
 .document-divider { margin: 0 3px; }
 .cover .eyebrow { font-size: 10px; }
 .cover h1 { font-size: 29px; letter-spacing: -.04em; }
 .cover-intro { font-size: 13px; margin: 20px 0 24px; line-height: 2; }
 .assessment { padding: 18px 13px; gap: 14px; align-items: start; }
 .grade.big { min-width: 50px; height: 77px; }
 .grade.big b { font-size: 56px; }
 .grade.big small { font-size: 9px; margin-top: 5px; }
 .assessment-label { font-size: 10px; }
 .assessment h2 { font-size: 15px; line-height: 1.85; margin-bottom: 8px; }
 .assessment-copy > p:last-child { font-size: 10px; line-height: 1.8; }
 .risk-scale { gap: 4px; margin-bottom: 25px; }
 .risk-level { padding: 8px 3px; gap: 2px 5px; font-size: 9px; }
 .risk-level b { font-size: 12px; }
 .risk-current { font-size: 8px; }
 .stats { grid-template-columns: 1fr 1fr; row-gap: 20px; padding-bottom: 24px; }
 .stats > div { padding: 0 0 0 19px; }
 .stats > div:last-child { grid-column: 1 / -1; border-left: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
 .stats dt { font-size: 10px; }
 .stats dd { font-size: 34px; }
 .stats .stat-text { font-size: 15px; margin: 0; }
 .first-actions { margin-top: 23px; }
 .subheading h3 { font-size: 13px; }
 .subheading > span { font-size: 9px; }
 .first-actions li { gap: 8px; grid-template-columns: 18px minmax(0,1fr) auto; padding-block: 12px; }
 .first-actions a { font-size: 11px; }
 .first-action-note { font-size: 9px; }
 .action-duration { font-size: 9px; }
 .cover-meta { gap: 16px 25px; margin-top: 24px; }
 .document-foot { font-size: 9px; line-height: 1.9; }
 .section-heading { grid-template-columns: 30px 1fr; gap: 11px; padding-bottom: 20px; margin-bottom: 24px; }
 .section-no { font-size: 23px; }
 .section-heading h2 { font-size: 21px; }
 .section-heading div > p { font-size: 11px; }
 .addr-head h3 { font-size: 15px; }
 .addr-head { gap: 10px; }
 .addr .grade { min-width: 40px; height: 46px; }
 .address-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .address-table,.address-table tbody { display: block; }
 .address-table tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
 .address-table td { display: block; width: auto !important; border: 0; padding: 5px 0; }
 .address-table td::before { content: attr(data-label); display: block; font-size: 9px; color: var(--muted); margin-bottom: 4px; }
 .address-table td:first-child::before { display: none; }
 .reasons { font-size: 11px; padding: 12px 12px 12px 25px; }
 .empty-note,.clear-result { padding: 14px; font-size: 12px; }
 .breach { grid-template-columns: 1fr; gap: 15px; }
 .incident-date { display: flex; gap: 8px; align-items: baseline; width: fit-content; padding-top: 8px; }
 .incident-content header h3 { font-size: 24px; }
 .explain { font-size: 13px; }
 .actions > li { grid-template-columns: 1fr; gap: 14px; scroll-margin-top: 84px; }
 .action-margin { flex-direction: row; align-items: baseline; gap: 14px; }
 .num { font-size: 28px; }
 .time { font-size: 10px; }
 .act-head h3 { font-size: 16px; }
 .action-progress { padding: 12px; }
 .action-progress > span { font-size: 9px; }
 .reading-page > p { font-size: 13px; }
 .reading-page > h3 { font-size: 16px; }
 .flow { flex-direction: column; gap: 10px; }
 .flow div { padding: 15px; }
 .flow i { border: 5px solid transparent; border-bottom: 0; border-top-color: var(--brand-line); }
 .guide section { padding-left: 0; padding-top: 36px; }
 .guide section::before { top: 0; font-size: 22px; }
 .guide h3 { font-size: 16px; }
 .guide li,.guide section > p { font-size: 12px; }
 .legend th { width: 52px; padding-left: 0; }
 .legend td { font-size: 11px; padding-right: 0; }
 .notes { font-size: 11px; }
 .report-contact { gap: 16px; }
 .report-footer { font-size: 9px; }
}
@media (max-width: 359px) {
 .toolbar-inner { width: calc(100% - 24px); gap: 8px; }
 .tb-brand img { width: 90px; }
 .tb-actions { gap: 8px; }
 .tb-btn { padding-inline: 9px; }
 .tb-btn.ghost { font-size: 9px; }
 .page { padding-inline: 17px; }
 .cover h1 { font-size: 26px; }
 .assessment { gap: 10px; padding-inline: 10px; }
 .assessment h2 { font-size: 14px; }
 .risk-level { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }

/* A4 report. The same content is kept in print, including pending/sample status. */
@page {
 size: A4; margin: 15mm 15mm 17mm;
 @bottom-left { content: "GATUN / メールアドレス漏洩調査"; font-family: "Noto Sans JP",sans-serif; font-size: 7pt; color: var(--brand-muted); }
 @bottom-right { content: counter(page) " / " counter(pages); font-family: "Noto Sans JP",sans-serif; font-size: 8pt; color: var(--brand-muted); }
}
@media print {
 * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
 body { background: #fff; font-size: 9pt; line-height: 1.7; }
 .no-print,.report-sidebar,.report-footer { display: none !important; }
 .report-layout { display: block; width: auto; margin: 0; }
 .report { width: auto; }
 .page { border: 0; padding: 0; margin: 0; box-shadow: none; break-before: page; scroll-margin: 0; }
 .page:first-child { break-before: auto; }
 .demo-band { width: auto; margin: 0 0 5mm; font-size: 7pt; line-height: 1.6; }
 .demo-band b { font-size: 7pt; }
 .cover { min-height: 230mm; border-top: 3px solid var(--brand-blue); padding: 7mm 0 0; }
 .document-top { font-size: 8pt; padding-bottom: 9mm; }
 .document-top > span:last-child { font-size: 7pt; }
 .cover h1 { font-size: 28pt; }
 .cover .eyebrow { font-size: 9pt; }
 .report-edition { display: block; font-size: 8pt; }
 .cover-intro { font-size: 10pt; margin: 7mm 0; line-height: 1.9; }
 .assessment { padding: 6mm; gap: 6mm; }
 .assessment h2 { font-size: 16pt; }
 .assessment-label { font-size: 8pt; }
 .assessment-copy > p:last-child { font-size: 8pt; }
 .grade.big { min-width: 22mm; height: 24mm; }
 .grade.big b { font-size: 53pt; }
 .risk-scale { margin: 4mm 0 7mm; }
 .risk-level { font-size: 8pt; padding: 3mm 2mm; }
 .risk-current { display: inline; width: auto; margin-left: auto; font-size: 6pt; }
 .stats { grid-template-columns: 1fr 1fr 1.15fr; padding-bottom: 7mm; }
 .stats > div:last-child { display: block; grid-column: auto; padding: 0 23px; border-top: 0; border-left: 1px solid var(--line); }
 .stats dt { font-size: 8pt; }
 .stats dd { font-size: 28pt; }
 .stats .stat-text { font-size: 16pt; margin-top: 7px; }
 .first-actions { margin-top: 6mm; }
 .first-actions a { font-size: 9pt; }
 .first-actions li { padding: 2.5mm 0; }
 .first-action-note { font-size: 7pt; }
 .cover-meta { margin-top: 7mm; padding-top: 4mm; }
 .document-foot { font-size: 7pt; }
 .section-heading { padding-bottom: 5mm; margin-bottom: 7mm; grid-template-columns: 9mm 1fr; }
 .section-heading h2 { font-size: 20pt; }
 .section-heading div > p { font-size: 8.5pt; }
 .addr { break-inside: avoid; margin-bottom: 7mm; padding-bottom: 6mm; }
 .addr-head h3 { font-size: 14pt; }
 .address-table,.address-table tbody { display: table; width: 100%; }
 .address-table tbody { display: table-row-group; }
 .address-table thead { display: table-header-group; position: static; width: auto; height: auto; clip-path: none; }
 .address-table tr { display: table-row; }
 .address-table td { display: table-cell; padding: 3mm; border-bottom: 1px solid var(--line); }
 .address-table td::before { display: none; }
 .tbl { font-size: 9pt; }
 .chip { font-size: 7.5pt; }
 .reasons { font-size: 9pt; }
 .breach { grid-template-columns: 22mm minmax(0,1fr); gap: 6mm; margin-bottom: 7mm; padding-bottom: 7mm; }
 .incident-content header h3 { font-size: 19pt; }
 .incident-date { display: block; width: auto; }
 .explain { font-size: 9.5pt; }
 .actions > li { grid-template-columns: 14mm minmax(0,1fr); gap: 5mm; padding: 6mm 0; }
 .action-margin { flex-direction: column; align-items: flex-start; }
 .act-head h3 { font-size: 12pt; }
 .action-why { font-size: 9pt; }
 .action-steps { font-size: 9pt; }
 .action-complete { margin-top: 3mm; font-size: 8pt; }
 .reading-page > p { font-size: 10pt; }
 .reading-page > h3 { font-size: 13pt; }
 .flow { flex-direction: row; }
 .flow i { border: 5px solid transparent; border-right: 0; border-left-color: var(--brand-line); }
 .guide section { padding: 0 0 6mm 12mm; margin-bottom: 6mm; }
 .guide section::before { top: 0; }
 .guide h3 { font-size: 12pt; }
 .guide ul,.guide ol,.guide li,.guide section > p { font-size: 9pt; }
 .notes,.legend td { font-size: 8.5pt; }
 .method-notes { margin-top: 6mm; }
 .report-contact { margin-top: 6mm; padding-top: 4mm; }
 h2,h3 { break-after: avoid; }
 p,li { orphans: 3; widows: 3; }
 a { color: inherit; text-decoration: none; }
}

@media print {
 #addresses .addr { margin-bottom: 4mm; padding-bottom: 4mm; }
 #addresses .addr-head { margin-bottom: 2mm; }
 #addresses .addr-count { margin-bottom: 2mm; }
 #addresses .reasons { padding: 2.5mm 3mm 2.5mm 6mm; margin-bottom: 3mm; line-height: 1.6; }
 #addresses .address-table td { padding: 2mm; }
 #addresses .clear-result { padding: 3mm 4mm; }
}
