:root {
  --bg: #f1e8d7;
  --bg-alt: #ebe0cb;
  --card: #ffffff;
  --banner: #fbe6e0;
  --text: #0e0e0e;
  --muted: #7a7268;
  --subtle: #a9a095;
  --accent: #ff3e2e;
  --line: rgba(14, 14, 14, 0.1);
  --shadow: 0 18px 50px rgba(14, 14, 14, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 62, 46, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

.site-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 1040px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.wordmark {
  align-items: flex-end;
  color: var(--text);
  display: inline-flex;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.wordmark-dot {
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  margin-bottom: 5px;
  margin-left: 2px;
  width: 7px;
}

.brand-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  padding-top: 12px;
}

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

.nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.hero,
.document,
.footer {
  margin-left: auto;
  margin-right: auto;
  max-width: 1040px;
}

.hero {
  background: var(--banner);
  border: 1px solid rgba(255, 62, 46, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 42px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 18px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  max-width: 760px;
}

.meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 14, 14, 0.08);
  border-radius: 999px;
  padding: 7px 12px;
}

.document {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px 42px 42px;
}

.notice {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  margin: 22px 0 8px;
  padding: 14px 16px;
}

section {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

section:first-of-type {
  border-top: 0;
}

h2 {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 22px 0 12px;
}

h3 {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 18px 0 8px;
}

p,
li {
  font-size: 15px;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

li + li {
  margin-top: 7px;
}

.contact-box {
  background: var(--text);
  border-radius: 16px;
  color: #fff;
  margin-top: 28px;
  padding: 22px;
}

.contact-box a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 18px;
  justify-content: space-between;
  padding: 24px 4px 8px;
}

@media (max-width: 720px) {
  .site-shell {
    padding: 14px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    border-radius: 20px;
    padding: 28px 22px;
  }

  .document {
    border-radius: 16px;
    padding: 8px 20px 28px;
  }

  h1 {
    font-size: 38px;
  }
}

@media print {
  .site-shell {
    padding: 0;
  }

  .topbar,
  .footer {
    display: none;
  }

  .hero,
  .document {
    border: 0;
    box-shadow: none;
    max-width: none;
  }
}
