:root {
  --bg: #fffaf4;
  --paper: #ffffff;
  --ink: #2e2b28;
  --muted: #6d6258;
  --line: #eadfd3;
  --accent: #7b6250;
  --accent-2: #3f7467;
  --soft: #f5ebe0;
  --notice: #eef6f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 250, 244, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
  white-space: nowrap;
}
.global-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.global-nav a, .site-footer a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .94rem;
}
.global-nav a:hover, .site-footer a:hover { background: var(--soft); color: var(--ink); }
.hero {
  padding: 58px 0 40px;
  background: linear-gradient(180deg, #fffaf4 0%, #f7eee6 100%);
  border-bottom: 1px solid var(--line);
}
.hero.compact { padding: 42px 0 32px; }
.crumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .9rem;
}
.crumb a { color: var(--muted); }
.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 8px;
}
h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: 0;
}
.lead {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}
.page-grid { padding: 36px 0 56px; }
.article {
  max-width: 900px;
  margin: 0 auto;
}
.content-section, .card-section, .faq-block, .related, .notice, .support-block {
  margin: 0 0 24px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content-section h2, .card-section h2, .faq-block h2, .related h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.4;
}
.content-section p { margin: 0 0 12px; }
.content-section p:last-child { margin-bottom: 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.card {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: #fffdf9;
}
.card span { font-weight: 800; }
.card small { color: var(--muted); }
.card:hover { border-color: #cbb7a4; background: var(--soft); }
.notice {
  background: var(--notice);
  border-color: #cfe3da;
}
.support-block {
  background: #fffdf9;
}
.support-block h2 {
  margin: 0 0 10px;
  font-size: 1.32rem;
}
.support-block p {
  margin: 0 0 12px;
  color: var(--muted);
}
.support-block ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding-left: 20px;
}
.support-block a {
  color: var(--accent);
  font-weight: 700;
}
.notice strong {
  display: block;
  margin-bottom: 8px;
  color: #24584e;
}
.notice p { margin: 0; }
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
details:first-of-type { border-top: 0; }
summary {
  cursor: pointer;
  font-weight: 700;
}
details p {
  margin: 8px 0 0;
  color: var(--muted);
}
.related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-left: 20px;
  margin: 0;
}
.related a { color: var(--accent); font-weight: 700; }
.site-footer {
  padding: 34px 0;
  background: #2f2a25;
  color: #f8efe6;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-brand {
  margin: 0 0 6px;
  font-weight: 800;
}
.site-footer p { margin: 0; color: #d9cfc4; }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.site-footer a { color: #f8efe6; }
@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 6px; padding: 12px 0; }
  .global-nav { justify-content: flex-start; }
  .global-nav a { padding: 6px 8px; font-size: .9rem; }
  .hero { padding: 34px 0 28px; }
  h1 { font-size: 2rem; }
  .content-section, .card-section, .faq-block, .related, .notice, .support-block { padding: 18px; }
  .cards, .related ul, .support-block ul { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .site-footer nav { justify-content: flex-start; }
}
