:root {
  --ink: #15211c;
  --muted: #637069;
  --paper: #f4f2eb;
  --surface: #fffef9;
  --line: #d6d8ce;
  --green: #175843;
  --green-2: #287359;
  --green-soft: #e2ece5;
  --amber: #d7aa55;
  --red: #9f423b;
  --blue: #365f7a;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: relative;
  padding: 20px 0;
  color: #f8f7f1;
  background: var(--ink);
  border-bottom: 3px solid var(--amber);
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-family: "Yu Mincho", serif; font-size: 1.2rem; font-weight: 700; }
.brand small { margin-left: 8px; color: #e0ba70; font-family: inherit; font-size: .65em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-nav a { color: #dbe4df; font-size: .8rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: #fff; }


.hero {
  padding: 84px 0 70px;
  color: #f8f7f1;
  background:
    linear-gradient(118deg, rgba(20, 55, 43, .98), rgba(30, 89, 68, .91)),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(255,255,255,.04) 96px);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 70px; align-items: end; }
.eyebrow { margin: 0 0 14px; color: #e7bc69; font-size: .74rem; font-weight: 900; letter-spacing: .14em; }
h1, h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.45rem, 6vw, 4.9rem); line-height: 1.08; letter-spacing: -.05em; }
.lead { max-width: 690px; margin: 27px 0 0; color: #d7e2dc; font-size: 1.05rem; line-height: 1.9; }
.hero-proof { padding: 24px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.hero-proof p { margin: 0; color: #dce6e1; font-size: .84rem; line-height: 1.7; }
.hero-proof strong { display: block; margin-bottom: 6px; color: #fff; font-size: 1.08rem; }
.hero-proof hr { margin: 18px 0; border: 0; border-top: 1px solid rgba(255,255,255,.18); }

.section { padding: 68px 0; }
.section.alt { background: #e9ebe4; }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.25; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.8; }

.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.asset-card { display: flex; flex-direction: column; min-height: 330px; padding: 30px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 50px rgba(31, 48, 40, .06); }
.asset-card .number { color: var(--amber); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
.asset-card h3 { margin: 22px 0 10px; font-size: 1.45rem; }
.asset-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.asset-card .meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag { padding: 5px 8px; border: 1px solid var(--line); color: var(--green); background: #f4f7f4; font-size: .68rem; font-weight: 800; }
.asset-link { align-self: flex-start; margin-top: auto; padding-top: 26px; color: var(--green); font-weight: 900; text-underline-offset: 5px; }
.asset-link::after { content: " →"; }

.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.evidence-card { padding: 25px; background: var(--surface); }
.evidence-card strong { display: block; margin-bottom: 9px; }
.evidence-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.evidence-card.fact { border-top: 4px solid var(--green); }
.evidence-card.estimate { border-top: 4px solid var(--amber); }
.evidence-card.unknown { border-top: 4px solid var(--red); }

.decision-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.decision-table th, .decision-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.decision-table th { color: var(--green); font-size: .78rem; }
.decision-table td { color: #45534c; font-size: .85rem; line-height: 1.65; }
.notice { margin-top: 28px; padding: 21px 24px; border-left: 4px solid var(--amber); background: #f4ead5; color: #5e4c2b; line-height: 1.75; }

.article-hero { padding: 64px 0 46px; background: var(--surface); border-bottom: 1px solid var(--line); }
.article-hero h1 { color: var(--ink); max-width: 900px; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.article-hero .lead { color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 25px; color: var(--muted); font-size: .76rem; }
.article-layout { display: grid; grid-template-columns: 230px minmax(0, 700px); gap: 60px; justify-content: center; padding: 55px 0 80px; }
.toc { position: sticky; top: 25px; align-self: start; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.toc p { margin: 0 0 10px; color: var(--green); font-size: .76rem; font-weight: 900; }
.toc ol { margin: 0; padding-left: 19px; }
.toc li { margin: 9px 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.toc a { text-underline-offset: 3px; }
.article-body { min-width: 0; }
.article-body h2 { margin: 54px 0 17px; font-size: 1.85rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 30px 0 12px; font-size: 1.15rem; }
.article-body p, .article-body li { color: #46544d; line-height: 1.9; }
.article-body pre { overflow-x: auto; padding: 20px; color: #e7eee9; background: var(--ink); font-size: .78rem; line-height: 1.7; }
.article-body code { font-family: Consolas, monospace; }
.article-body .callout { padding: 20px 22px; border: 1px solid #c8d7cc; background: var(--green-soft); }
.article-body .danger { border-color: #dfc5c2; background: #f4e6e3; }

.flow { display: grid; gap: 10px; margin: 25px 0; padding: 0; counter-reset: flow; }
.flow li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 15px; border: 1px solid var(--line); background: var(--surface); list-style: none; }
.flow li::before { counter-increment: flow; content: counter(flow); display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: var(--green); font-size: .76rem; font-weight: 900; }
.download-box { margin: 32px 0; padding: 25px; color: #eef4f0; background: var(--ink); }
.download-box strong { display: block; margin-bottom: 7px; font-size: 1.2rem; }
.download-box p { color: #cbd7d1; }
.download-box a { display: inline-block; margin: 8px 12px 0 0; padding: 10px 14px; color: var(--ink); background: #f2c775; font-size: .8rem; font-weight: 900; text-decoration: none; }

.policy { max-width: 800px; margin: 0 auto; padding: 60px 0 80px; }
.policy h1 { color: var(--ink); font-size: 3rem; }
.policy h2 { margin-top: 42px; }
.policy p, .policy li { color: #48564f; line-height: 1.85; }
.placeholder { padding: 2px 6px; color: #7b2f2a; background: #f2d7d3; font-weight: 800; }

.site-footer { padding: 35px 0 52px; color: #c8d2cd; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.site-footer p { margin: 0; font-size: .76rem; line-height: 1.75; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px; }
.footer-links a { color: #ecf1ee; font-size: .76rem; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .hero-grid, .section-heading, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .asset-grid, .evidence-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1120px); }
  .nav-wrap { align-items: flex-start; flex-direction: column; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { gap: 34px; }
  .section { padding: 48px 0; }
  .decision-table { display: block; overflow-x: auto; }
  .article-layout { gap: 24px; }
  .policy h1 { font-size: 2.35rem; }
}

.status-bar {
  padding: 9px 20px;
  color: #173f31;
  background: #dce9df;
  border-bottom: 1px solid #bdd0c3;
  font-size: .74rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 560px) {
  .decision-table,
  .decision-table tbody,
  .decision-table tr,
  .decision-table td {
    display: block;
    width: 100%;
  }
  .decision-table thead { display: none; }
  .decision-table tr {
    padding: 14px 13px;
    border-bottom: 1px solid var(--line);
  }
  .decision-table td {
    padding: 7px 0;
    border: 0;
    font-size: .84rem;
  }
  .decision-table td:first-child {
    color: var(--green);
    font-size: .95rem;
    font-weight: 900;
  }
  .decision-table td:nth-child(2)::before,
  .decision-table td:nth-child(3)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
  }
  .decision-table td:nth-child(2)::before { content: "向く状態"; }
  .decision-table td:nth-child(3)::before { content: "先に確認すること"; }
}
