:root {
  --bg: #120800;
  --bg-soft: #271400;
  --bg-panel: rgba(33, 18, 5, 0.82);
  --bg-panel-strong: rgba(20, 10, 0, 0.92);
  --paper: #f5e7cf;
  --paper-soft: #e8d7bb;
  --muted: #c4aa83;
  --muted-strong: #e1c796;
  --gold: #c8922a;
  --gold-light: #e8c060;
  --gold-deep: #7a5818;
  --accent: #c03020;
  --accent-soft: #dd6f43;
  --pine: #517f59;
  --bamboo: #567c48;
  --indigo: #405f8b;
  --plum: #814453;
  --line: rgba(232, 192, 96, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at top left, rgba(232, 192, 96, 0.12), transparent 28rem),
    radial-gradient(circle at 85% 20%, rgba(192, 48, 32, 0.14), transparent 24rem),
    linear-gradient(180deg, #120800 0%, #1a0d02 45%, #271400 100%);
  line-height: 1.7;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
}

body::before {
  top: -8rem;
  right: -8rem;
  background: rgba(232, 192, 96, 0.32);
}

body::after {
  bottom: -8rem;
  left: -10rem;
  background: rgba(192, 48, 32, 0.22);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 8, 0, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-light);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 192, 96, 0.35);
  background: linear-gradient(135deg, rgba(232, 192, 96, 0.22), rgba(192, 48, 32, 0.22));
  color: var(--paper);
  font-size: 0.96rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #1b0d02;
  background: linear-gradient(135deg, var(--gold-light), #f4d889);
  box-shadow: 0 14px 32px rgba(232, 192, 96, 0.22);
}

.button-secondary {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(232, 192, 96, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 192, 96, 0.22);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-strong);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  padding: 5.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero-title {
  margin: 1rem 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-title .sub {
  display: block;
  margin-top: 1rem;
  color: var(--gold-light);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy,
.section-intro,
.panel p,
.legal-body p,
.legal-body li {
  color: var(--paper-soft);
}

.hero-copy {
  max-width: 60ch;
  font-size: 1.05rem;
}

.cta-row,
.pill-row,
.tag-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta-row {
  margin-top: 1.8rem;
}

.pill-row {
  margin-top: 1.5rem;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.56rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.hero-card,
.panel,
.stat-card,
.legal-card,
.toc {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(49, 27, 10, 0.78), rgba(20, 10, 0, 0.92));
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 30px;
}

.hero-card::before,
.panel::before,
.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 192, 96, 0.55), transparent);
  opacity: 0.7;
}

.card-label {
  color: var(--muted-strong);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.level-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.level-card h3,
.panel h3,
.section-heading,
.legal-title,
.card-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.level-card h3 {
  font-size: 1.35rem;
  color: var(--paper);
}

.level-card p {
  margin: 0;
  color: var(--paper-soft);
  font-size: 0.95rem;
}

.level-chip {
  display: inline-flex;
  width: fit-content;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-pine .level-chip {
  background: linear-gradient(135deg, #6ea26e, #45684d);
}

.level-indigo .level-chip {
  background: linear-gradient(135deg, #5d80b6, #2f456e);
}

.level-plum .level-chip {
  background: linear-gradient(135deg, #b1637b, #633040);
}

.hero-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.stats {
  padding-bottom: 2rem;
}

.stat-grid,
.feature-grid,
.flow-grid,
.link-grid,
.summary-grid {
  display: grid;
  gap: 1rem;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  padding: 1.35rem;
  border-radius: 24px;
}

.stat-value {
  display: block;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--paper-soft);
  font-size: 0.95rem;
}

.section {
  padding: 3.4rem 0;
}

.section-tight {
  padding-top: 0;
}

.section-heading {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1;
  color: var(--paper);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-intro {
  max-width: 58ch;
  margin: 0;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.legal-card,
.toc {
  position: relative;
  padding: 1.45rem;
  border-radius: 24px;
}

.card-title {
  margin-bottom: 0.6rem;
  color: var(--gold-light);
  font-size: 1.8rem;
  line-height: 1;
}

.panel p,
.panel li {
  margin: 0.5rem 0 0;
  font-size: 0.96rem;
}

.panel ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-band {
  padding: 1.55rem;
  border-radius: 28px;
  border: 1px solid rgba(232, 192, 96, 0.24);
  background:
    radial-gradient(circle at top right, rgba(232, 192, 96, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(192, 48, 32, 0.18), rgba(33, 18, 5, 0.86));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
}

.cta-band p {
  margin: 0;
  max-width: 52ch;
  color: var(--paper-soft);
}

.cta-band .cta-row {
  margin-top: 1.2rem;
}

.legal-shell {
  padding: 4rem 0 5rem;
}

.legal-header {
  max-width: 56rem;
  margin-bottom: 2rem;
}

.legal-title {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.legal-meta {
  margin-top: 1rem;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.summary-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-size: 0.95rem;
}

.summary-item span {
  color: var(--paper-soft);
  font-size: 0.9rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.toc {
  position: sticky;
  top: 6rem;
}

.toc h2 {
  margin: 0 0 0.8rem;
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 0.55rem 0;
  color: var(--paper-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 160ms ease, padding-left 160ms ease;
}

.toc a:last-child {
  border-bottom: 0;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--gold-light);
  padding-left: 0.2rem;
}

.legal-body {
  display: grid;
  gap: 1rem;
}

.legal-body section {
  position: relative;
  scroll-margin-top: 6.5rem;
}

.legal-body h2 {
  margin: 0 0 0.65rem;
  color: var(--gold-light);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
}

.legal-body p,
.legal-body li {
  margin: 0.55rem 0 0;
}

.legal-body ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.legal-note {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(232, 192, 96, 0.08);
  border: 1px solid rgba(232, 192, 96, 0.18);
  color: var(--paper-soft);
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--paper-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-light);
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .flow-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100%, calc(100% - 1.2rem));
  }

  .nav {
    padding: 0.75rem 0;
    align-items: start;
    flex-direction: column;
  }

  .hero {
    padding-top: 4rem;
  }

  .stat-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

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