:root {
  color-scheme: light;
  --bg: #f4f2ec;
  --surface: #fbfaf7;
  --surface-strong: #ffffff;
  --ink: #202723;
  --muted: #66706a;
  --line: #d9ddd7;
  --accent: #496b5c;
  --accent-deep: #345044;
  --accent-soft: #dce8e1;
  --warm: #9b795d;
  --shadow: 0 22px 60px rgba(31, 45, 37, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 8%, rgba(220, 232, 225, 0.8), transparent 31rem),
    var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

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

a:focus-visible {
  outline: 3px solid rgba(73, 107, 92, 0.34);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}

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

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(32, 39, 35, 0.08);
}

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

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-decoration: none;
}

.site-nav,
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a,
.footer-inner a {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.hero {
  min-height: 620px;
  padding-block: clamp(6rem, 14vw, 10rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.35;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.7rem;
  font-family: Georgia, "Yu Mincho", "YuMincho", serif;
  font-size: clamp(2.7rem, 7.2vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.18rem);
}

.status {
  margin-top: 2.2rem;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(73, 107, 92, 0.22);
  border-radius: 999px;
  background: rgba(251, 250, 247, 0.66);
  color: var(--accent-deep);
  font-size: 0.84rem;
}

.status-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(73, 107, 92, 0.1);
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 2.5rem;
}

.lead-prose {
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.prose p {
  color: var(--muted);
}

.prose p:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--accent-deep);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 230px;
  padding: 1.7rem;
  border: 1px solid rgba(32, 39, 35, 0.09);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 247, 0.78);
}

.card-number {
  display: block;
  margin-bottom: 3.6rem;
  color: var(--warm);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-panel {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-panel p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.contact-panel .eyebrow {
  color: #a7cab9;
}

.button {
  flex: none;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: var(--accent-deep);
}

.site-footer {
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Legal and disclosure pages */
.page-hero {
  padding-block: clamp(4.5rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5rem);
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
}

.page-hero .intro {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 760px);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.document-meta {
  position: sticky;
  top: 2rem;
  padding-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.document-meta p {
  margin: 0 0 0.35rem;
}

.document {
  padding: clamp(1.7rem, 5vw, 3.4rem);
  border: 1px solid rgba(32, 39, 35, 0.08);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document section + section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.document h3 {
  margin: 1.7rem 0 0.55rem;
  font-size: 1rem;
}

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

.document ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.document li + li {
  margin-top: 0.5rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 1.2rem 1.3rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.notice p {
  margin: 0;
  color: inherit;
}

.page-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-deep);
  font-weight: 700;
}

@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .document-meta {
    position: static;
  }
}

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

  .header-inner {
    min-height: auto;
    padding-block: 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    gap: 1rem;
  }

  .hero {
    min-height: 560px;
  }

  h1 br {
    display: none;
  }

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

  .card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 2rem;
  }

  .contact-panel,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .footer-inner nav {
    gap: 1rem;
  }
}

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