:root {
  color-scheme: light dark;
  --page: #f3ebe4;
  --page-deep: #e7d9cc;
  --panel: rgba(255, 250, 246, 0.88);
  --panel-solid: #fffaf6;
  --ink: #241918;
  --muted: #705d59;
  --line: rgba(92, 27, 39, 0.17);
  --teal: #963f4f;
  --teal-deep: #5c1b27;
  --gold: #963f4f;
  --gold-soft: #ead8da;
  --shadow: 0 30px 80px rgba(36, 25, 24, 0.15);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 255, 255, 0.92), transparent 28%),
    radial-gradient(circle at 92% 24%, rgba(65, 109, 116, 0.1), transparent 28%),
    linear-gradient(145deg, var(--page) 0%, #f8f4ed 54%, var(--page-deep) 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Yu Gothic UI",
    Meiryo, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(64, 48, 38, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 48, 38, 0.026) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 84%, transparent);
  backdrop-filter: blur(22px) saturate(130%);
}

.header-shell,
.section-shell,
.footer-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(92, 27, 39, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.language-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-menu summary {
  min-width: 92px;
  padding: 8px 12px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  text-align: center;
  font-size: 0.86rem;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 156px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.language-list a {
  display: block;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
}

.language-list a:hover,
.language-list a:focus-visible,
.language-list a[aria-current="true"] {
  color: var(--ink);
  background: var(--gold-soft);
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  padding-block: 58px 74px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
  font-size: clamp(3.2rem, 7.2vw, 6.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-lead,
.page-hero > p:not(.eyebrow, .updated) {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 720;
}

.button-primary {
  color: #fff;
  background: var(--teal-deep);
  box-shadow: 0 15px 34px rgba(41, 79, 85, 0.19);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal);
}

.button-secondary {
  border-color: var(--line);
  background: var(--panel);
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-note span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6f9871;
  box-shadow: 0 0 0 5px rgba(111, 152, 113, 0.12);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.66;
  max-height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 42px;
  background: #d9d1c7;
  box-shadow: var(--shadow);
}

.hero-visual picture,
.hero-visual img {
  width: 100%;
  height: 100%;
}

.hero-visual img {
  object-fit: cover;
  object-position: center;
}

.visual-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 18px;
  color: #fff;
  background: rgba(21, 27, 28, 0.58);
  backdrop-filter: blur(15px);
  font-size: 0.86rem;
}

.statement-section,
.trust-section {
  padding-block: 100px;
}

.statement-section h2,
.visible-section h2,
.trust-section h2,
.policy-callout h2,
.legal-notes h2 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", "Noto Serif CJK SC", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-intro,
.section-heading > p:last-child {
  max-width: 710px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.pillar-card,
.plan-card,
.trust-link,
.document-notice {
  border: 1px solid var(--line);
  background: var(--panel);
}

.pillar-card {
  min-height: 264px;
  padding: 26px;
  border-radius: 28px;
}

.card-index {
  display: block;
  margin-bottom: 46px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.86rem;
}

.pillar-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.pillar-card p,
.visible-section > p,
.policy-callout p,
.legal-notes p {
  color: var(--muted);
}

.visible-section,
.policy-callout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 7vw, 92px);
  padding: 52px;
  border-radius: 34px;
  color: #f8f4ed;
  background: linear-gradient(135deg, #263f43, #182b2e);
  box-shadow: var(--shadow);
}

.visible-section .section-kicker,
.policy-callout .section-kicker {
  color: #d5b889;
}

.visible-section h2,
.policy-callout h2 {
  margin-bottom: 0;
  color: #fff;
}

.visible-section > p,
.policy-callout p {
  align-self: center;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
}

.trust-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 8vw, 100px);
}

.trust-grid {
  display: grid;
  gap: 12px;
}

.trust-link {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 22px;
  text-decoration: none;
}

.trust-link:hover,
.trust-link:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.trust-link strong,
.trust-link small {
  display: block;
}

.trust-link small {
  margin-top: 3px;
  color: var(--muted);
}

.page-hero {
  padding-block: 100px 58px;
}

.page-hero.narrow {
  max-width: 910px;
  margin-inline: auto;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 50px;
}

.plan-card {
  min-height: 286px;
  padding: 28px;
  border-radius: 28px;
}

.plan-card.featured {
  border-color: rgba(154, 111, 63, 0.58);
  background: linear-gradient(145deg, var(--panel-solid), var(--gold-soft));
}

.plan-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.plan-heading h2 {
  margin-bottom: 2px;
  font-size: 1.7rem;
}

.plan-heading p,
.plan-allowance {
  color: var(--muted);
}

.plan-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 750;
}

.plan-price {
  margin: 42px 0 3px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.plan-allowance {
  margin-bottom: 0;
}

.policy-callout {
  margin-top: 24px;
}

.policy-callout .notice {
  margin-top: 16px;
  color: #d9bd8f;
  font-weight: 670;
}

.legal-notes {
  max-width: 850px;
  padding-block: 80px 110px;
}

.legal-notes h2 {
  font-size: 2rem;
}

.document-hero {
  padding-bottom: 46px;
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.document-action {
  margin-top: 30px;
}

.document-action p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.document-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: center;
  gap: 72px;
  padding-bottom: 120px;
}

.document-index {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.document-index a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.document-index a:hover,
.document-index a:focus-visible {
  color: var(--ink);
  background: var(--gold-soft);
}

.document-notice {
  margin-bottom: 36px;
  padding: 20px 22px;
  border-left: 4px solid var(--gold);
  border-radius: 16px;
}

.document-notice p {
  margin: 5px 0 0;
  color: var(--muted);
}

.document-section {
  padding-block: 8px 34px;
  border-bottom: 1px solid var(--line);
}

.document-section + .document-section {
  padding-top: 36px;
}

.document-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
}

.document-section p,
.document-section li {
  color: var(--muted);
}

.document-section ul {
  padding-left: 1.3rem;
}

.document-section li + li {
  margin-top: 8px;
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.reference-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-deep);
  text-decoration: none;
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(232, 223, 211, 0.55);
}

.footer-shell {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 26px 60px;
  padding-block: 46px;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-shell p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #171110;
    --page-deep: #241918;
    --panel: rgba(42, 29, 30, 0.88);
    --panel-solid: #2b1d1f;
    --ink: #f3ebe4;
    --muted: #c6b1aa;
    --line: rgba(255, 255, 255, 0.13);
    --gold: #d58a99;
    --gold-soft: #43282e;
    --teal: #c36f80;
    --teal-deep: #963f4f;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  }

  .button-primary {
    background: #963f4f;
  }

  .site-header {
    background: rgba(23, 17, 16, 0.84);
  }

  .plan-card.featured {
    background: linear-gradient(145deg, var(--panel-solid), #3a2228);
  }

  .site-footer {
    background: rgba(12, 8, 8, 0.38);
  }
}

@media (max-width: 860px) {
  .header-shell {
    min-height: 70px;
    gap: 14px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding-bottom: 10px;
    overflow-x: auto;
  }

  .header-shell {
    flex-wrap: wrap;
    padding-top: 10px;
  }

  .language-menu {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .pillar-grid,
  .plans-grid,
  .visible-section,
  .policy-callout,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .document-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-shell,
  .section-shell,
  .footer-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand span:last-child {
    font-size: 1rem;
  }

  .site-nav {
    gap: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    border-radius: 30px;
  }

  .statement-section,
  .trust-section {
    padding-block: 72px;
  }

  .visible-section,
  .policy-callout {
    padding: 30px 24px;
    border-radius: 26px;
  }

  .plan-card {
    min-height: 250px;
    padding: 22px;
  }

  .document-index {
    display: flex;
    overflow-x: auto;
  }

  .document-index a {
    flex: 0 0 auto;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
