:root {
  color-scheme: light;
  --ink: #10233a;
  --muted: #5d6b7a;
  --line: #dce4ec;
  --soft: #f3f7fa;
  --green: #0abf53;
  --green-dark: #07883c;
  --navy: #0a1e33;
  --white: #fff;
  --shadow: 0 24px 70px rgba(16, 35, 58, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 190px; height: auto; }
.header-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.header-link:hover { color: var(--green-dark); }

.hero {
  padding: 76px max(24px, calc((100vw - 1160px) / 2)) 64px;
  background:
    radial-gradient(circle at 88% 18%, rgba(10,191,83,.12), transparent 24%),
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}
.hero-copy { max-width: 760px; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(38px, 5vw, 64px); line-height: 1.16; letter-spacing: -.035em; }
.hero-copy > p { max-width: 720px; margin: 26px 0 0; color: var(--muted); font-size: 18px; line-height: 1.9; }

.checkout-layout { display: grid; grid-template-columns: 1.02fr .98fr; max-width: 1160px; margin: 0 auto; padding: 88px 24px; gap: 0; }
.plan-panel, .form-panel { padding: clamp(32px, 5vw, 58px); }
.plan-panel { border-radius: 22px 0 0 22px; background: var(--navy); color: white; box-shadow: var(--shadow); }
.form-panel { border: 1px solid var(--line); border-left: 0; border-radius: 0 22px 22px 0; background: white; box-shadow: 20px 24px 70px rgba(16,35,58,.08); }
.section-label { margin: 0 0 10px; color: #8fcba7; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.plan-panel h2, .form-panel h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.35; letter-spacing: -.02em; }
.plan-description, .form-intro { margin: 13px 0 0; color: #aebbc9; font-size: 14px; }
.form-intro { color: var(--muted); }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; margin: 34px 0; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.price-row strong { display: inline-block; font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.price-row span { margin-left: 6px; color: #aebbc9; font-size: 12px; }
.price-row small { color: #aebbc9; font-size: 13px; }
.plan-details { margin: 0; }
.plan-details > div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 13px; }
.plan-details dt { color: #aebbc9; }
.plan-details dd { margin: 0; text-align: right; font-weight: 700; }
.limit-note { margin: 24px 0 0; padding: 15px 17px; border: 1px solid rgba(143,203,167,.25); border-radius: 9px; color: #c4cfda; background: rgba(255,255,255,.04); font-size: 12px; line-height: 1.75; }
.security-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 28px; color: #c4cfda; font-size: 12px; line-height: 1.6; }
.security-note svg { flex: 0 0 22px; width: 22px; fill: none; stroke: #8fcba7; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-note p { margin: 0; }
.security-note strong { color: white; }

.setup-notice { margin: 24px 0; padding: 16px 18px; border: 1px solid #f0d798; border-radius: 10px; background: #fff9e9; color: #654f18; font-size: 13px; }
.setup-notice p { margin: 3px 0 0; }
form { margin-top: 28px; }
form > label:not(.agreement) { display: block; margin: 19px 0 7px; font-size: 13px; font-weight: 800; }
input[type="text"], input[type="email"], input:not([type]) {
  width: 100%; height: 52px; padding: 0 15px; border: 1px solid #cbd6e1; border-radius: 9px; background: white; color: var(--ink); font: inherit; font-size: 15px; outline: 0;
}
input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(10,191,83,.12); }
.field-help { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.agreement { display: flex; gap: 10px; align-items: flex-start; margin: 25px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.agreement input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--green); }
.agreement a { color: var(--green-dark); font-weight: 700; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border: 0; border-radius: 9px; font-family: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.button-primary { width: 100%; color: white; background: var(--green); box-shadow: 0 12px 26px rgba(10,191,83,.2); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); }
.button-primary:disabled { color: #8895a2; background: #dce3e9; box-shadow: none; cursor: not-allowed; }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.submit-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

.support-band { padding: 72px max(24px, calc((100vw - 1160px) / 2)); background: var(--soft); }
.support-band h2 { margin: 0 0 34px; font-size: 28px; }
.support-band > div { border-top: 1px solid var(--line); }
.support-band p { display: grid; grid-template-columns: minmax(230px, .65fr) 1fr; gap: 40px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.support-band strong { font-size: 14px; }
.support-band span { color: var(--muted); font-size: 14px; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 30px max(24px, calc((100vw - 1160px) / 2)); color: var(--muted); font-size: 12px; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }

.result-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--soft); }
.result-card { width: min(560px, 100%); padding: 54px; border-radius: 20px; background: white; box-shadow: var(--shadow); text-align: center; }
.result-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 24px; border-radius: 50%; font-size: 26px; font-weight: 800; }
.result-icon.success { color: #087537; background: #ddf7e7; }
.result-icon.error { color: #a42a2a; background: #fde8e8; }
.result-icon.neutral { color: var(--ink); background: var(--soft); }
.result-card h1 { margin: 0; font-size: 30px; line-height: 1.4; }
.result-card p { margin: 18px 0 28px; color: var(--muted); }
.result-card .result-email { margin-top: -16px; font-size: 13px; }

@media (max-width: 820px) {
  .hero { padding-top: 54px; }
  .checkout-layout { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .plan-panel { border-radius: 18px 18px 0 0; }
  .form-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; }
}

@media (max-width: 560px) {
  .site-header { height: 66px; }
  .brand img { width: 152px; }
  .header-link { font-size: 12px; }
  .hero h1 { font-size: 39px; }
  .hero-copy > p { font-size: 15px; }
  .checkout-layout { padding-left: 16px; padding-right: 16px; }
  .plan-panel, .form-panel { padding: 30px 24px; }
  .price-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .plan-details > div { display: block; }
  .plan-details dd { margin-top: 2px; text-align: left; }
  .support-band p { grid-template-columns: 1fr; gap: 6px; }
  footer { display: block; }
  footer nav { flex-direction: column; gap: 4px; margin-top: 12px; }
  .result-card { padding: 38px 24px; }
  .result-card h1 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
