:root {
  color-scheme: light;
  --cream: #fffefa;
  --cream-soft: #fff9ef;
  --cream-deep: #fff5e6;
  --green: #357d4e;
  --green-dark: #285f3b;
  --green-pale: #edf5eb;
  --muted: #647367;
  --ink: #293b30;
  --line: #dfE5d9;
  --error: #a1332b;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--green);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

figure,
p,
h1,
h2,
h3,
h4,
dl,
dd {
  margin: 0;
}

p + p {
  margin-top: 1em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.55;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.7rem);
  letter-spacing: 0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: 0.025em;
}

h3 {
  font-size: 1.25rem;
}

.container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding-block: 100px;
}

.section-tinted {
  background: var(--cream-soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading > p:last-child:not(.eyebrow) {
  margin-top: 20px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding-block: 18px;
}

.brand {
  display: grid;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-name {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 24px;
  font-size: 0.85rem;
}

.header-nav > a:not(.button) {
  color: var(--ink);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 15px 26px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled) {
  border-color: var(--green-dark);
  background: var(--green-dark);
  text-decoration: none;
}

.button-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.8rem;
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--green);
}

.button-secondary:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green-pale);
}

.button:disabled {
  border-color: #c6cec2;
  background: #e4e8df;
  color: #647060;
}

.hero {
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 56px;
}

.lead {
  margin-top: 26px;
  font-size: 0.98rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.92rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 700;
}

.cta-note {
  max-width: 480px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-figure img {
  aspect-ratio: 4 / 5;
  border-radius: 42% 42% 24px 24px;
  object-fit: cover;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
}

.step-number,
.card-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.steps h3 {
  margin-bottom: 12px;
}

.steps p {
  font-size: 0.9rem;
}

.mail-card {
  max-width: 850px;
  margin-inline: auto;
  padding: 42px 48px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px 8px var(--radius) var(--radius);
  background: var(--cream);
  box-shadow: 0 14px 40px rgb(59 74 45 / 5%);
}

.mail-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}

.badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-weight: 700;
}

.mail-card > h3 {
  font-size: 1.65rem;
}

.mail-conditions {
  margin-top: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.mail-card section {
  margin-top: 26px;
}

.mail-card h4 {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 1.08rem;
}

.mail-card section p {
  font-size: 0.9rem;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.criterion {
  grid-column: span 2;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-soft);
}

.criterion:nth-child(4) {
  grid-column: 2 / span 2;
}

.criterion h3 {
  margin-bottom: 14px;
}

.criterion p {
  font-size: 0.88rem;
}

.preference {
  margin-top: 32px;
  padding: 28px 32px;
  border-left: 3px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: var(--green-pale);
}

.preference h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.preference p {
  font-size: 0.9rem;
}

.wizard,
.completion {
  max-width: 860px;
  margin-inline: auto;
  padding: 40px 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 12px 32px rgb(59 74 45 / 4%);
}

.wizard-progress {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.wizard-progress h3 {
  margin-bottom: 18px;
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.98rem;
}

#step-heading,
.question,
.completion {
  scroll-margin-top: 28px;
}

#step-heading:focus,
.completion:focus {
  outline: none;
}

progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8ece2;
  accent-color: var(--green);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e8ece2;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--green);
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--green);
}

.question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.question + .question {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.question legend {
  width: 100%;
  padding: 0;
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.8;
}

.question-number {
  margin-right: 12px;
  color: var(--green);
}

.requirement {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}

.requirement.optional {
  background: #f0f0e9;
  color: var(--muted);
}

.question-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 15px;
  border: 1px solid #c8d2c3;
  border-radius: 13px;
  background: var(--cream);
  cursor: pointer;
  line-height: 1.65;
  transition: background 150ms ease, border-color 150ms ease;
}

.choice:hover {
  border-color: var(--green);
  background: var(--cream-soft);
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.choice input {
  position: relative;
  display: grid;
  flex: 0 0 22px;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid #899984;
  border-radius: 6px;
  appearance: none;
  background: #fff;
  cursor: pointer;
}

.choice input[type="radio"] {
  border-radius: 50%;
}

.choice input:checked {
  border-color: var(--green);
  background: var(--green);
}

.choice input:checked::after {
  width: 10px;
  height: 6px;
  transform: translateY(-1px) rotate(-45deg);
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
}

.choice span {
  font-size: 0.87rem;
}

.text-input,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #b9c5b4;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  min-height: 145px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #6d786b;
}

.question-error {
  margin-top: 10px;
  color: var(--error);
  font-size: 0.8rem;
}

.has-error .text-input {
  border-color: var(--error);
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

#back-button {
  margin-right: auto;
}

.submit-status:not(:empty),
.submit-error {
  margin-top: 20px;
  font-size: 0.88rem;
}

.submit-status {
  color: var(--muted);
}

.submit-error {
  padding: 16px;
  border: 1px solid #e5c1b9;
  border-radius: 12px;
  background: #fff3ef;
  color: var(--error);
}

.notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  border: 1px solid #dccba4;
  border-radius: 12px;
  background: var(--cream-deep);
  font-size: 0.85rem;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.review-list {
  margin: 0;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.review-row dt {
  font-size: 0.83rem;
  font-weight: 700;
}

.review-row dd {
  grid-column: 1;
  font-size: 0.93rem;
  white-space: pre-wrap;
}

.edit-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 52px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--cream-soft);
  color: var(--green);
  font-size: 0.8rem;
}

.edit-button:hover {
  border-color: var(--green);
  background: var(--green-pale);
}

.completion {
  text-align: center;
}

.completion-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-size: 1.8rem;
}

.completion h3 {
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.completion p {
  font-size: 0.92rem;
}

.completion > a {
  display: inline-block;
  margin-top: 26px;
}

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

.model-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.manufacturer {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.model-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
}

.model-card .model-height {
  margin-block: 16px;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
}

.model-card > p:not(.manufacturer, .model-height) {
  margin: 0 0 22px;
  font-size: 0.85rem;
}

.model-card > a {
  margin-top: auto;
  font-size: 0.78rem;
}

.section-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: start;
  gap: 64px;
}

.policy-list > div + div {
  margin-top: 26px;
}

.policy-list dt {
  margin-bottom: 8px;
  color: var(--green);
  font-weight: 700;
}

.policy-list dd {
  font-size: 0.9rem;
}

.policy-figure {
  margin-top: 65px;
}

.policy-figure img {
  aspect-ratio: 3 / 4;
  border-radius: 120px 120px 24px 24px;
  object-fit: cover;
}

.operator {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.operator h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.operator p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 23px 36px 23px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  right: 6px;
  color: var(--green);
  content: "+";
  font-size: 1.3rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > p {
  padding: 0 36px 24px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding-block: 44px 28px;
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-inner p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: 0.8rem;
}

.footer-inner small {
  width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

@media (max-width: 1080px) {
  .header-inner {
    align-items: flex-start;
  }

  .header-nav {
    gap: 12px 18px;
  }

  .hero-grid {
    gap: 32px;
  }

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

  .policy-grid {
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 40px, 600px);
  }

  .section {
    padding-block: 64px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-block: 18px;
  }

  .brand-name {
    font-size: 1.65rem;
  }

  .header-nav {
    justify-content: flex-start;
    gap: 10px 20px;
  }

  .header-nav .button {
    width: 100%;
    margin-top: 4px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy > .button {
    width: 100%;
  }

  .hero-figure {
    max-width: 460px;
    margin-inline: auto;
  }

  .hero-figure img {
    aspect-ratio: 5 / 4;
    border-radius: 28px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  .steps li {
    position: relative;
    padding-left: 52px;
  }

  .steps .step-number {
    position: absolute;
    top: -4px;
    left: 0;
  }

  .mail-card {
    padding: 26px 22px;
  }

  .mail-card > h3 {
    font-size: 1.4rem;
  }

  .criteria-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .criterion,
  .criterion:nth-child(4) {
    grid-column: auto;
    padding: 24px;
  }

  .card-number {
    margin-bottom: 8px;
    font-size: 1.4rem;
  }

  .preference {
    padding: 24px;
  }

  .wizard,
  .completion {
    padding: 26px 20px;
    border-radius: 20px;
  }

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

  .wizard-actions {
    gap: 10px;
  }

  .wizard-actions .button {
    padding-inline: 20px;
    font-size: 0.88rem;
  }

  #submit-button {
    flex: 1;
  }

  .policy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .policy-figure {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .policy-figure img {
    aspect-ratio: 1;
  }

  .section-heading {
    margin-bottom: 30px;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 32px);
  }

  .models-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .model-card {
    padding: 24px;
  }

  .wizard {
    padding-inline: 16px;
  }

  .wizard-actions {
    align-items: stretch;
  }

  #submit-button {
    flex-basis: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .choice:has(input:checked) {
    outline: 2px solid Highlight;
  }

  .choice input {
    appearance: auto;
  }

  .choice input:checked::after {
    display: none;
  }
}
