:root {
  --bg: #f4f1ea;
  --paper: #fffcf6;
  --ink: #1c1a16;
  --muted: #5d574c;
  --line: #e4ddd0;
  --accent: #1e4b8c;
  --quiet-bg: #e7f3ea;
  --quiet-ink: #1b5a32;
  --alert-bg: #fdece8;
  --alert-ink: #8a2718;
  --chip: #efe8db;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem 3rem; }
header.site {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  font-weight: 650;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}
.nav { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}
.nav a:hover { background: var(--chip); }
.nav a.lang {
  background: var(--chip);
  font-weight: 600;
}
article.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.15rem 1.6rem;
  box-shadow: 0 1px 0 rgba(28, 26, 22, 0.03);
}
.kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.window {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.badge {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
}
.badge.quiet { background: var(--quiet-bg); color: var(--quiet-ink); }
.badge.attention { background: var(--alert-bg); color: var(--alert-ink); }
.prose h2 {
  margin: 1.7rem 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.prose h3 { margin: 1.3rem 0 0.4rem; font-size: 1.05rem; }
.prose p { margin: 0.7rem 0; }
.prose ul, .prose ol { margin: 0.5rem 0 0.9rem; padding-left: 1.25rem; }
.prose li { margin: 0.25rem 0; }
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
.table-wrap { overflow-x: auto; margin: 0.8rem 0 0.2rem; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
footer.site {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site p { margin: 0.25rem 0; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { border-bottom: 1px solid var(--line); }
.archive-list a {
  display: block;
  padding: 0.85rem 0;
  color: inherit;
  text-decoration: none;
}
.archive-list a:hover { color: var(--accent); }
.archive-list .meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}
.archive-list strong { font-weight: 650; }
.empty { color: var(--muted); }
.report-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.6rem;
  margin: 1.15rem 0 0;
}
.report-nav.bottom { margin: 1.15rem 0 0; }
.report-nav a,
.report-nav .placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  flex: 1 1 0;
  max-width: calc(50% - 0.3rem);
}
.report-nav .placeholder { visibility: hidden; pointer-events: none; }
.report-nav a {
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(28, 26, 22, 0.03);
}
.report-nav a:hover { text-decoration: none; border-color: var(--accent); }
.report-nav a.prev { text-align: left; align-items: flex-start; }
.report-nav a.next { text-align: right; align-items: flex-end; margin-left: auto; }
.report-nav .dir {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.3;
}
.report-nav .dest {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}
@media (min-width: 640px) {
  article.card { padding: 1.6rem 1.7rem 1.9rem; }
  h1 { font-size: 1.9rem; }
}
