:root {
  color-scheme: dark;
  --ink: #f8f4ea;
  --muted: #cbc4b5;
  --subtle: #938b7d;
  --charcoal: #10110f;
  --coal: #171815;
  --panel: #22231d;
  --panel-2: #2b2a22;
  --paper: #fff7e5;
  --gold: #f3b33f;
  --gold-soft: #ffe0a2;
  --teal: #54d3c2;
  --coral: #ff8068;
  --sage: #b5cf83;
  --line: rgba(248, 244, 234, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --header-height: 72px;
  font-family:
    "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(16, 17, 15, 0), rgba(16, 17, 15, 0.96) 42rem),
    radial-gradient(circle at 82% 12%, rgba(84, 211, 194, 0.12), transparent 28rem),
    radial-gradient(circle at 12% 28%, rgba(243, 179, 63, 0.12), transparent 24rem),
    var(--charcoal);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.scroll-meter {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(248, 244, 234, 0.08);
}

.scroll-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--coral));
}

.site-header {
  position: fixed;
  z-index: 70;
  top: 3px;
  left: 0;
  display: grid;
  width: 100%;
  height: var(--header-height);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(248, 244, 234, 0.08);
  background: rgba(16, 17, 15, 0.32);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(248, 244, 234, 0.15);
  background: rgba(16, 17, 15, 0.9);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #1d1608;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 12px 26px rgba(243, 179, 63, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.header-cta,
.primary-button {
  color: #211709;
  background: var(--gold);
  box-shadow: 0 18px 34px rgba(243, 179, 63, 0.22);
}

.header-cta {
  min-width: 126px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.primary-button,
.secondary-button {
  min-width: 148px;
  border: 0;
  padding: 0 22px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.secondary-button {
  color: var(--ink);
  border: 1px solid rgba(248, 244, 234, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.secondary-button:hover {
  border-color: rgba(248, 244, 234, 0.38);
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(880px, 91vh);
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 54px) clamp(20px, 6vw, 92px) 78px;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(16, 17, 15, 0.98), rgba(16, 17, 15, 0.78) 39%, rgba(16, 17, 15, 0.2) 76%),
    linear-gradient(0deg, var(--charcoal), rgba(16, 17, 15, 0.12) 34%, rgba(16, 17, 15, 0.28));
}

.hero-content {
  width: min(810px, 100%);
}

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

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

h1 {
  max-width: 11ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8.3vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.92;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 0;
  overflow: hidden;
  border: 1px solid rgba(248, 244, 234, 0.12);
  border-radius: var(--radius);
  background: rgba(248, 244, 234, 0.12);
  box-shadow: var(--shadow);
}

.hero-stats div {
  min-width: 0;
  padding: 18px;
  background: rgba(16, 17, 15, 0.72);
}

.hero-stats dt {
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: clamp(1.04rem, 3vw, 1.34rem);
  font-weight: 900;
}

.notice-band {
  border-block: 1px solid var(--line);
  background: #f3b33f;
  color: #1d1608;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.notice-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
}

.notice-inner strong {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(29, 22, 8, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.notice-inner p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.8;
}

.section {
  padding: clamp(76px, 11vw, 132px) 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.closing-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.8vw, 4.55rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.closing-copy p,
.nisa-card p,
.list-card li,
.quote-panel span,
.form-message {
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 44px;
}

.principle-panel,
.nisa-card,
.plan-builder,
.data-table,
.list-card,
.lead-form,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.principle-panel {
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(145deg, rgba(84, 211, 194, 0.13), transparent 42%),
    var(--panel);
}

.principle-panel p {
  margin-bottom: 22px;
  color: var(--gold-soft);
  font-weight: 900;
}

.principle-panel ul,
.list-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle-panel li,
.list-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.75;
}

.principle-panel li::before,
.list-card li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.nisa-section,
.risk-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--coal);
}

.nisa-grid,
.pros-cons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.nisa-card,
.list-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.045);
}

.nisa-card span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 10px;
  border: 1px solid rgba(84, 211, 194, 0.3);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(84, 211, 194, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.nisa-card h3,
.list-card h3,
.data-table h3,
.lead-form h3 {
  margin-bottom: 14px;
  font-size: clamp(1.28rem, 2.2vw, 1.9rem);
  line-height: 1.28;
}

.warning-card span {
  border-color: rgba(255, 128, 104, 0.34);
  color: var(--coral);
  background: rgba(255, 128, 104, 0.08);
}

.monthly-section {
  background:
    linear-gradient(135deg, rgba(181, 207, 131, 0.09), transparent 34%),
    #151611;
}

.plan-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.045);
}

.plan-controls {
  display: grid;
  gap: 20px;
}

.control-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segmented button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 900;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.segmented button.is-active {
  border-color: rgba(243, 179, 63, 0.86);
  color: #211709;
  background: var(--gold);
}

.plan-result {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 182px;
  padding: 24px;
  border-radius: var(--radius);
  color: #211709;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    var(--gold);
}

.plan-result span,
.plan-result small {
  font-weight: 900;
  line-height: 1.6;
}

.plan-result strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.14;
}

.data-table {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}

.data-table h3 {
  margin: 0;
  padding: 24px 24px 16px;
}

.table-row {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.allocation-table .table-row {
  grid-template-columns: 0.65fr 1.25fr 1.25fr;
}

.rule-tables .table-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
}

.header-row {
  color: var(--gold-soft);
  background: rgba(243, 179, 63, 0.08);
  font-size: 0.86rem;
  font-weight: 900;
}

.table-row:last-child {
  border-bottom: 0;
}

.rules-section {
  overflow: hidden;
}

.rule-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.quote-panel {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(84, 211, 194, 0.1), rgba(255, 128, 104, 0.07)),
    rgba(255, 255, 255, 0.045);
}

.quote-panel p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.16;
}

.list-card h3 {
  color: var(--teal);
}

.warning-card h3 {
  color: var(--coral);
}

.warning-card li::before {
  background: var(--coral);
}

.closing-section {
  background:
    linear-gradient(180deg, rgba(16, 17, 15, 0.2), rgba(16, 17, 15, 0.96)),
    linear-gradient(90deg, rgba(243, 179, 63, 0.12), rgba(84, 211, 194, 0.09));
}

.closing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.closing-copy {
  max-width: 720px;
}

.closing-actions {
  margin-top: 30px;
}

.copy-status {
  min-height: 28px;
  margin-top: 18px;
  color: var(--gold-soft);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--panel);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
}

.lead-form input::placeholder {
  color: rgba(203, 196, 181, 0.62);
}

.lead-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    rgba(0, 0, 0, 0.22);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 12px) 20px,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

.form-message {
  min-height: 28px;
  margin: 0;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 28px clamp(20px, 6vw, 92px);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  background: #0d0e0c;
  font-size: 0.86rem;
  line-height: 1.8;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 3px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(16, 17, 15, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
    padding: 14px;
    border-bottom: 1px solid rgba(248, 244, 234, 0.08);
  }

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

  .header-cta {
    display: none;
  }

  .split-layout,
  .nisa-grid,
  .plan-builder,
  .rule-tables,
  .pros-cons,
  .closing-layout {
    grid-template-columns: 1fr;
  }

  .lead-form {
    max-width: 620px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 91vh;
    padding: calc(var(--header-height) + 42px) 20px 54px;
  }

  .hero-media img {
    object-position: 69% 50%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(16, 17, 15, 0.98), rgba(16, 17, 15, 0.78) 54%, rgba(16, 17, 15, 0.28)),
      linear-gradient(0deg, var(--charcoal), rgba(16, 17, 15, 0.12) 42%, rgba(16, 17, 15, 0.36));
  }

  .hero-lead {
    line-height: 1.8;
  }

  .hero-actions,
  .closing-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .notice-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-inner {
    width: min(100% - 32px, 1160px);
  }

  .section {
    padding-block: 70px;
  }

  .principle-panel,
  .nisa-card,
  .list-card,
  .lead-form {
    padding: 22px;
  }

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

  .segmented button {
    width: 100%;
  }

  .allocation-table .table-row,
  .rule-tables .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-row {
    padding: 16px;
  }

  .data-table h3 {
    padding: 22px 16px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
