:root {
  color-scheme: light;
  --paper: #f3efe4;
  --ink: #102638;
  --accent: #ef5b2a;
  --green: #216551;
  --soft-line: rgba(16, 38, 56, 0.25);
  --white: #fffdf6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(16, 38, 56, 0.035) 32px),
    var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

a { color: inherit; }

.site-header,
footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding: 22px 0 16px;
  border-bottom: 2px solid var(--ink);
  font: 800 0.78rem/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.09em;
}

.site-header a { text-decoration: none; }
main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: clamp(64px, 9vw, 120px) 0 68px; }
.eyebrow { margin: 0 0 24px; color: var(--accent); font: 800 0.78rem/1 ui-monospace, monospace; letter-spacing: 0.13em; }
.hero h1 { margin: 0; font-size: clamp(3rem, 7.8vw, 7.2rem); line-height: 0.94; letter-spacing: -0.065em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { width: min(660px, 100%); margin: 38px 0 0 auto; font-size: 1.08rem; line-height: 1.9; }

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  border: 2px solid var(--ink);
  background: var(--white);
}

.form-column,
.result-column { padding: clamp(24px, 4vw, 52px); }
.result-column { color: var(--white); background: var(--ink); }

.section-label { display: flex; gap: 14px; align-items: baseline; margin-bottom: 34px; }
.section-label span { color: var(--accent); font: 800 0.75rem/1 ui-monospace, monospace; }
.section-label h2 { margin: 0; font-size: 1.1rem; }
.section-label.inverse h2 { color: var(--white); }

label { display: block; }
label > span:first-child { display: block; margin-bottom: 8px; font-weight: 700; }
.primary-field > span:first-child { font-size: 1.05rem; }
.input-wrap { display: grid; grid-template-columns: 1fr auto; align-items: baseline; border-bottom: 2px solid var(--ink); }
.input-wrap input { width: 100%; min-width: 0; padding: 6px 4px; color: var(--ink); border: 0; outline: 0; background: transparent; font: 800 clamp(2rem, 6vw, 4.2rem)/1 ui-monospace, monospace; }
.input-wrap b { font-size: 1rem; }

details { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--soft-line); }
summary { cursor: pointer; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 28px; }
.detail-grid label > span:first-child { font-size: 0.82rem; }
.detail-grid .input-wrap input { font-size: 1.5rem; }
.privacy-note { margin: 28px 0 0; color: rgba(16, 38, 56, 0.7); font-size: 0.76rem; line-height: 1.6; }

.result-caption { margin: 0; color: rgba(255, 253, 246, 0.68); font-size: 0.82rem; }
.annual-result { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 34px; }
.annual-result strong { color: var(--accent); font: 800 clamp(4.6rem, 10vw, 8.4rem)/0.95 ui-monospace, monospace; letter-spacing: -0.08em; }
.annual-result span { font-size: 1.15rem; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.result-grid > div { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.result-grid > div:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.25); }
.result-grid > div:nth-child(even) { padding-left: 22px; }
.result-grid span { display: block; margin-bottom: 5px; color: rgba(255, 253, 246, 0.65); font-size: 0.75rem; }
.result-grid strong { font: 800 2rem/1 ui-monospace, monospace; }
.result-grid small { margin-left: 4px; }
.result-summary { margin: 26px 0 0; line-height: 1.7; }
.copy-button { margin-top: 22px; padding: 11px 0; color: var(--white); border: 0; border-bottom: 1px solid var(--white); background: transparent; cursor: pointer; font-weight: 700; }
.copy-status { min-height: 1.4em; margin: 8px 0 0; color: rgba(255, 253, 246, 0.7); font-size: 0.75rem; }

.offers,
.method { padding: 74px 0; border-bottom: 2px solid var(--ink); }
.ad-disclosure { font-size: 0.78rem; }
.offer-link { display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--soft-line); text-decoration: none; }
.offer-link:hover strong { color: var(--accent); }
.offer-link span { line-height: 1.6; }
.offer-link b { font-size: 2rem; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.method h3 { margin: 0 0 12px; font-size: 1.02rem; }
.method article p,
.disclaimer { margin: 0; line-height: 1.85; }
.disclaimer { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--soft-line); font-size: 0.78rem; }

footer { margin-top: 60px; padding-bottom: 40px; border: 0; }

@media (max-width: 820px) {
  .calculator { grid-template-columns: 1fr; }
  .result-column { order: -1; }
  .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1160px); }
  .hero { padding-top: 54px; }
  .lead { margin-left: 0; }
  .calculator { margin-inline: -14px; border-inline: 0; }
  .form-column,
  .result-column { padding: 28px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
  .annual-result strong { font-size: clamp(4.2rem, 24vw, 6.3rem); }
  .offer-link { grid-template-columns: 1fr auto; }
  .offer-link span { grid-column: 1 / -1; }
}

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

