:root {
  --bg: #f7f3ec;
  --paper: #fffdf8;
  --ink: #1f1b16;
  --muted: #5c564c;
  --line: #e4dcd0;
  --accent: #b5441d;
  --accent-soft: #f8ece6;
  --link: #8a3416;
  --ok: #2c6e49;
  --max: 42rem;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  width: min(52rem, calc(100% - 2rem));
  margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  align-items: baseline; justify-content: space-between;
  padding: 0.85rem 0;
}
.logo {
  font-weight: 700; color: var(--ink); text-decoration: none;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); text-decoration: underline; }
main { padding: 2rem 0 3.5rem; }
h1 { font-size: 1.55rem; line-height: 1.45; margin: 0 0 1rem; letter-spacing: 0.01em; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.8rem; padding-top: 0.3rem; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
p, li { overflow-wrap: anywhere; }
.lead { font-size: 1.02rem; }
.muted { color: var(--muted); }
.points, .toc, .note, .sources, .booth-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
}
.points ul, .toc ul, .sources ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.points h2, .toc h2, .sources h2 { border: 0; margin: 0 0 0.4rem; font-size: 1rem; }
.note { background: var(--accent-soft); border-color: #e8cfc4; }
.note strong { color: var(--accent); }
table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: var(--paper); margin: 1rem 0;
}
th, td { border: 1px solid var(--line); padding: 0.45rem 0.55rem; text-align: left; vertical-align: top; }
th { background: #f3eee6; }
.cards { display: grid; gap: 0.9rem; margin: 1.2rem 0; }
.card {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.1rem; text-decoration: none; color: inherit;
}
.card:hover { border-color: #d2b7a8; }
.card h2 { border: 0; margin: 0 0 0.3rem; font-size: 1.05rem; }
.kicker { font-size: 0.8rem; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; }
.booth-cta-label { font-weight: 700; margin: 0 0 0.3rem; }
.booth-cta-pending { color: var(--muted); margin-bottom: 0; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 999px; padding: 0.45rem 1rem; font-weight: 700;
}
.btn:hover { filter: brightness(1.05); }
.site-footer {
  border-top: 1px solid var(--line); padding: 1.4rem 0 2rem;
  color: var(--muted); font-size: 0.88rem;
}
.site-footer .inner {
  width: min(52rem, calc(100% - 2rem)); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: space-between;
}
.site-footer a { color: var(--muted); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 1rem; }
.updated { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.prose img { max-width: 100%; }
@media (max-width: 640px) {
  html { font-size: 17px; }
  h1 { font-size: 1.35rem; }
  main { padding-top: 1.4rem; }
}
