:root { color-scheme: light; --ink: #1d3044; --muted: #52677a; --line: #d5e0e8; --accent: #145e76; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f5f7fa; font-family: system-ui, -apple-system, "Noto Sans JP", sans-serif; line-height: 1.8; }
header, main, footer { max-width: 1120px; margin: auto; padding: 32px; }
header { padding-top: 40px; padding-bottom: 16px; }
a { color: #075c82; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #d17616; outline-offset: 4px; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.35; margin: 12px 0 20px; letter-spacing: -.03em; }
h2 { font-size: 1.35rem; margin: 0 0 20px; line-height: 1.5; }
h3 { font-size: 1.1rem; margin: 10px 0; }
p { margin: 12px 0; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 750; letter-spacing: .12em; margin-top: 32px; }
.lead { font-size: 1.15rem; max-width: 850px; }
.meta, .note, .sources, footer { font-size: .88rem; color: var(--muted); }
section { margin-bottom: 28px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article { padding: 20px; border-radius: 10px; background: #f1f6f8; }
.cards p { font-size: .94rem; }
.tag { font-size: .75rem; font-weight: 700; color: var(--accent); }
.flow { padding: 24px 0 8px; }
.node { border: 1px solid #b8ccd8; background: #f8fafc; border-radius: 10px; padding: 18px; text-align: center; font-weight: 700; }
.node small { display: block; font-size: .85rem; font-weight: 400; margin-top: 5px; color: #465d6c; }
.start { max-width: 360px; margin: auto; }
.accent { background: #e9f5f7; border-color: #5495a5; }
.warning { background: #fff7e9; border-color: #c99a4d; }
.branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.outcomes { grid-template-columns: repeat(3, 1fr); }
.arrow { text-align: center; font-size: .85rem; font-weight: 650; margin: 14px 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 14px; vertical-align: top; min-width: 120px; }
th { background: #edf3f7; font-weight: 650; }
code { background: #edf2f6; padding: 2px 5px; border-radius: 4px; font-size: .85em; overflow-wrap: anywhere; }
.pipeline { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin: 24px 0; }
.pipeline .node { padding: 14px 8px; }
.connector { font-size: 1.3rem; color: var(--accent); text-align: center; }
.relation { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 24px 0; }
.relation .node { flex: 1; max-width: 300px; }
.relation strong { white-space: nowrap; }
.question { border-left: 5px solid var(--accent); background: #eaf4f7; }
.sources ul { padding-left: 22px; }
footer { padding-top: 0; padding-bottom: 40px; }
@media (max-width: 720px) {
  header, main, footer { padding: 20px 16px; }
  section { padding: 22px 16px; border-radius: 12px; }
  .cards, .branches, .outcomes { grid-template-columns: 1fr; gap: 12px; }
  .pipeline { grid-template-columns: 1fr; }
  .connector { transform: rotate(90deg); }
  .relation { flex-direction: column; gap: 12px; }
  .relation .node { width: 100%; }
  th, td { padding: 10px; }
}
