:root {
  --bg: #f5efe6;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #fffdf8;
  --ink: #183731;
  --muted: #5d6e68;
  --green: #1f7a6b;
  --green-deep: #14584d;
  --gold: #e0a53b;
  --line: rgba(24, 55, 49, 0.09);
  --shadow: 0 24px 60px rgba(24, 55, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(224, 165, 59, 0.26), transparent 20rem),
    radial-gradient(circle at top right, rgba(31, 122, 107, 0.12), transparent 24rem),
    linear-gradient(180deg, #f3ebde 0%, var(--bg) 46%, #eadfce 100%);
}

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

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.brand,
h1,
h2,
h3 {
  letter-spacing: -0.03em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  box-shadow: 0 10px 24px rgba(24, 55, 49, 0.18);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.hero-copy {
  padding: 4rem 0 3rem;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  line-height: 1.03;
}

.lead,
.section-note,
.helper-copy,
.form-note,
.metrics p,
.legal p {
  color: var(--muted);
  line-height: 1.9;
}

.lead {
  max-width: 45rem;
  font-size: 1.05rem;
}

.cta-row,
.membership-actions,
.mode-switch {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

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

.button,
.mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0 1.3rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.mode-chip:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: default;
  opacity: 0.45;
  transform: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.button.subtle {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.button.wide {
  width: 100%;
}

.panel {
  margin: 1.2rem auto;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metrics article,
.plan-card,
.auth-card,
.membership-card {
  background: var(--panel-strong);
  border-radius: 1.45rem;
  padding: 1.25rem;
}

.metrics article strong {
  display: block;
  margin-bottom: 0.45rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0.35rem 0 0.2rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

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

.auth-card {
  display: grid;
  gap: 1rem;
}

.auth-card h3,
.membership-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.mode-switch {
  margin-bottom: 1rem;
}

.mode-chip {
  background: rgba(255, 255, 255, 0.58);
  border-color: var(--line);
  color: var(--ink);
}

.mode-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

input,
select {
  min-height: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 0 0.9rem;
  font: inherit;
  background: #fbfaf6;
}

.membership-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.membership-row:last-of-type {
  border-bottom: 0;
}

.membership-row .label {
  color: var(--muted);
}

.membership-actions {
  margin-top: 1.2rem;
}

.plan-card.accent {
  background: linear-gradient(180deg, #fff4d9 0%, #ffffff 100%);
}

.price {
  margin: 0.4rem 0 0.8rem;
  font-weight: 800;
  font-size: 1.7rem;
}

ul {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 860px) {
  .metrics,
  .account-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .cta-row,
  .membership-actions,
  .mode-switch {
    flex-direction: column;
  }

  .panel {
    padding: 1.3rem;
    border-radius: 1.5rem;
  }
}
