:root {
  color-scheme: light;
  --ink: #25221e;
  --muted: #706a60;
  --paper: #fffdf8;
  --line: #e7e0d5;
  --accent: #e76f51;
  --accent-dark: #bd4d34;
  --leaf: #356859;
  --soft: #f8efe5;
  --shadow: 0 16px 45px rgba(54, 40, 22, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a { color: inherit; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(231, 111, 81, .45);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 224, 213, .9);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(12px);
}

.header-inner, .page, .footer-inner {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 11px 11px 14px 14px;
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 -4px 0 rgba(102, 39, 20, .16);
  font-size: 18px;
}

nav { display: flex; align-items: center; gap: 18px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

nav a:hover, nav a[aria-current="page"] { color: var(--accent-dark); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 86px;
  background: linear-gradient(135deg, #fff8ee 0%, #f7ecde 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -120px;
  bottom: -155px;
  border: 42px solid rgba(53, 104, 89, .11);
  border-radius: 50%;
}

.hero-inner { position: relative; z-index: 1; width: min(100% - 40px, 920px); margin: 0 auto; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.35; letter-spacing: -.035em; }

h1 { max-width: 720px; margin: 0; font-size: clamp(36px, 6vw, 62px); }
h2 { margin: 52px 0 16px; font-size: 25px; }
h3 { margin: 28px 0 8px; font-size: 18px; }
p { margin: 0 0 17px; }

.lead { max-width: 650px; margin-top: 22px; color: #4e4840; font-size: 18px; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 720;
  transition: transform .18s ease, background .18s ease;
}

.button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.secondary:hover { background: var(--soft); }

.page { padding: 64px 0 88px; }

.intro { max-width: 690px; margin-bottom: 30px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card, .notice, .policy-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card { min-height: 190px; padding: 24px; text-decoration: none; }
.card:hover { border-color: #e2b9a8; }
.card-icon { display: block; margin-bottom: 15px; font-size: 26px; }
.card h2 { margin: 0 0 7px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.notice { margin: 42px 0 0; padding: 23px 25px; background: #f4f8f5; box-shadow: none; }
.notice strong { color: var(--leaf); }

.document-title { margin-bottom: 10px; font-size: clamp(34px, 5vw, 48px); }
.updated { margin-bottom: 38px; color: var(--muted); font-size: 14px; }
.policy-block { padding: 30px 34px; box-shadow: none; }
.policy-block h2:first-child { margin-top: 0; }

ul, ol { margin: 0 0 19px; padding-left: 1.35em; }
li { margin: 7px 0; }

.toc { margin: 30px 0 36px; padding: 22px 25px; border-left: 4px solid var(--accent); background: var(--soft); }
.toc p { margin-bottom: 5px; font-weight: 720; }
.toc ol { margin: 0; columns: 2; }
.toc a { color: var(--accent-dark); text-underline-offset: 3px; }

.callout { margin-top: 34px; padding: 22px 24px; border-radius: 14px; background: #fff5ec; }
.callout p:last-child { margin-bottom: 0; }

details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--ink); font-weight: 700; }
details p { margin: 12px 0 0; color: #514c44; }

.site-footer { border-top: 1px solid var(--line); background: #fbf7f0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }

@media (max-width: 680px) {
  .header-inner, .page, .footer-inner, .hero-inner { width: min(100% - 28px, 920px); }
  .header-inner { min-height: 60px; }
  nav { gap: 13px; }
  nav a { font-size: 12px; }
  .hero { padding: 72px 0 64px; }
  .lead { font-size: 16px; }
  .page { padding: 42px 0 60px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .policy-block { padding: 25px 20px; }
  .toc ol { columns: 1; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
}
