:root {
  --bg: #fbfaf6;
  --paper: #ffffff;
  --ink: #1f1f1f;
  --muted: #6f6a62;
  --line: #e5dfd4;
  --accent: #1f1f1f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
.container { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,246,0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand img { width: 120px; display: block; }
.brand-text { font-weight: 700; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.hero { padding: 84px 0 70px; }
.hero-inner { text-align: center; width: min(820px, calc(100% - 40px)); }
.hero-logo { width: min(360px, 82vw); margin-bottom: 26px; }
.tagline { font-size: clamp(24px, 5vw, 42px); font-weight: 700; line-height: 1.35; margin: 0 0 20px; }
.lead { font-size: 18px; }
.section { padding: 64px 0; }
.section.muted { background: #f2eee5; }
.page-title { padding: 64px 0 24px; }
.page-title h1 { margin-bottom: 8px; }
h1, h2, h3 { line-height: 1.45; }
h1 { font-size: clamp(32px, 7vw, 56px); }
h2 { font-size: 26px; margin-top: 0; }
h3 { font-size: 19px; margin-top: 28px; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 36px; margin-top: 46px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.event-card { margin-top: 16px; }
.eyebrow { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.score { font-weight: 700; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.info-grid div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.info-grid dt {
  font-size: 13px;
  color: var(--muted);
}
.info-grid dd {
  margin: 0;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.button-primary {
  background: var(--ink);
  color: #fff;
}
.button-disabled {
  color: var(--muted);
  border-color: var(--line);
}
.text-link { font-weight: 700; }
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}
.list-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.list-item h2, .list-item h3 { margin: 0 0 8px; }
.date { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
  font-size: 14px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.record-logo { width: 180px; display: block; margin-bottom: 20px; }
.record-logo-large { width: 280px; display: block; margin: 0 auto 32px; }
.notice { color: var(--muted); }
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-card { width: min(420px, 100%); }
.admin-form {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
}
.admin-form label { display: grid; gap: 6px; font-weight: 700; }
.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.admin-form textarea { min-height: 120px; }
.admin-form .checkbox { display: flex; align-items: center; gap: 8px; }
.admin-form .checkbox input { width: auto; }
.error { color: #b00020; }
.success { background: #eef7ef; padding: 12px 16px; border-radius: 10px; }

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .nav { gap: 12px; }
  .two-col { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
