:root {
  --green: #1fa05a;
  --green-dark: #167a43;
  --green-light: #e8f6ec;
  --yellow: #ffd21f;
  --yellow-dark: #f2bd00;
  --yellow-light: #fff7d1;
  --navy: #12432b;
  --text: #25322b;
  --muted: #62736a;
  --bg: #fff;
  --tint: #fbfbef;
  --line: #dfe8d8;
  --danger: #d33a3a;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(720px, 100% - 32px); }

/* buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--green);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  text-align: center;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--green); }
.btn--ghost:hover { background: var(--green-light); color: var(--green-dark); }
.btn--small { padding: 8px 18px; font-size: .9rem; }
.header .btn--small { background: var(--yellow); border-color: var(--yellow); color: #3a2f00; }
.header .btn--small:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn--large { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { display: block; width: 100%; }

/* header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.header { padding-top: env(safe-area-inset-top); }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.logo span { color: var(--green); }
.nav { margin-left: auto; display: flex; gap: 24px; font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--green); }

/* hero */
.hero { background: linear-gradient(135deg, #1fa05a 0%, #3bb54a 55%, #9bc92b 100%); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: var(--yellow); opacity: .35; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero__badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: rgba(255,255,255,.2); font-size: .85rem; font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.7rem, 5.6vw, 2.9rem); line-height: 1.4; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--yellow); font-size: 1.15em; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.hero__lead { margin: 20px 0 28px; font-size: clamp(.95rem, 2.8vw, 1.05rem); opacity: .95; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn { background: var(--yellow); border-color: var(--yellow); color: #3a2f00; box-shadow: 0 4px 0 var(--yellow-dark); }
.hero .btn:hover { background: #ffdf55; border-color: #ffdf55; }
.hero .btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.hero .btn--ghost:hover { background: rgba(255,255,255,.15); }
.hero .note { color: rgba(255,255,255,.8); }
.hero__visual { position: relative; margin: 0; }
.hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 6px solid #fff; box-shadow: 0 20px 44px rgba(0,0,0,.22); }
.hero__shield { position: absolute; left: -18px; bottom: 22px; width: 84px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }
.hero__visual figcaption { margin-top: 8px; text-align: right; font-size: .72rem; color: rgba(255,255,255,.8); }

.nb { display: inline-block; }
.note { margin-top: 16px; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.note--center { text-align: center; }

/* stats */
.stats { background: var(--yellow-light); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats__grid div { padding: 24px 8px; }
.stats strong { display: block; font-size: 1.6rem; color: var(--green); line-height: 1.4; }
.stats span { font-size: .85rem; color: var(--muted); }

/* sections */
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.section__title { text-align: center; font-size: clamp(1.4rem, 4.6vw, 1.8rem); text-wrap: balance; color: var(--navy); margin-bottom: 44px; line-height: 1.4; }
.section__title small { display: block; font-size: .78rem; letter-spacing: .2em; color: var(--green); margin-bottom: 6px; }
.section__title::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--yellow); margin: 14px auto 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.card__icon {
  width: 68px; height: 68px; margin: 0 auto 12px; display: grid; place-items: center;
  border-radius: 50%; background: var(--yellow-light); color: var(--green-dark);
}
.card__icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--muted); text-align: left; }

/* needs */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 28px; }
.people img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 4px solid #fff; box-shadow: 0 8px 20px rgba(18,67,43,.12); }
.people p { margin-top: 10px; text-align: center; font-weight: 700; color: var(--green-dark); text-wrap: balance; }
.needs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.need {
  position: relative; display: block; padding: 28px 24px 24px 96px; background: #fff;
  border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.need:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(18,67,43,.12); }
.need--kids, .need--income { border-left-color: var(--yellow-dark); }
.need__icon {
  position: absolute; left: 22px; top: 26px; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--yellow-light); color: var(--green-dark);
}
.need__icon svg { width: 30px; height: 30px; }
.need h3 { text-wrap: balance; font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; line-height: 1.5; }
.need p { font-size: .9rem; color: var(--muted); }
.need__go { display: inline-block; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--green-dark); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; display: flex; flex-direction: column; text-align: center;
}
.plan--featured { border: 3px solid var(--green); box-shadow: 0 12px 30px rgba(31,160,90,.22); background: linear-gradient(180deg, var(--yellow-light), #fff 40%); }
.plan__ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #3a2f00; font-size: .8rem; font-weight: 700; padding: 2px 16px; border-radius: 999px;
}
.plan h3 { color: var(--navy); font-size: 1.2rem; }
.plan__target { font-size: .85rem; color: var(--muted); }
.plan__price { margin: 16px 0; font-size: clamp(2.2rem, 8vw, 2.6rem); font-weight: 800; color: var(--green); line-height: 1.2; }
.plan__price span { font-size: .85rem; color: var(--muted); font-weight: 500; margin-right: 6px; }
.plan__price small { font-size: 1rem; }
.plan ul { margin-bottom: 24px; text-align: left; flex: 1; }
.plan li { padding: 8px 0 8px 26px; border-top: 1px dashed var(--line); font-size: .92rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { position: relative; padding: 28px 18px 20px; border-radius: var(--radius); background: var(--green-light); text-align: center; }
.steps__no {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 8px;
  border-radius: 50%; background: var(--yellow); color: #3a2f00; font-weight: 800;
}
.steps h3 { font-size: 1.05rem; color: var(--navy); }
.steps p { font-size: .85rem; color: var(--muted); }

/* faq */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green); }
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 20px 18px; font-size: .92rem; color: var(--muted); }

/* form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 8px 24px rgba(20,50,74,.06); }
.field { margin-bottom: 22px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; padding: 0; }
.req, .opt { font-size: .7rem; padding: 1px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.req { background: var(--danger); color: #fff; }
.opt { background: #e6ecf0; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
.field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
.field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,160,90,.18); }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,160,90,.18); }
.field.invalid input[type="text"], .field.invalid input[type="email"], .field.invalid input[type="date"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: .82rem; min-height: 0; margin-top: 4px; }
.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radios label { cursor: pointer; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios span {
  display: block; text-align: center; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 700; font-size: .92rem; line-height: 1.5; transition: .15s;
}
.radios small { font-weight: 500; color: var(--muted); }
.radios input:checked + span { border-color: var(--green); background: var(--yellow-light); color: var(--green-dark); }
.radios input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,160,90,.3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--green); }

.done { text-align: center; padding: 48px 24px; border: 2px solid var(--green); border-radius: var(--radius); background: var(--green-light); }
.done[hidden] { display: none; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; font-weight: 800; }
.done h3 { color: var(--navy); margin-bottom: 8px; }

/* footer */
.footer { background: var(--navy); color: #cfdbe4; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.logo--footer { color: #fff; margin-bottom: 12px; }
.footer__legal { font-size: .75rem; max-width: 720px; margin: 0 auto 12px; opacity: .8; line-height: 1.7; text-align: left; }
.footer__copy { font-size: .75rem; opacity: .6; }

/* menu toggle (mobile) */
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.is-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* responsive */
@media (max-width: 1080px) {
  .hero__inner { gap: 32px; }
}
@media (max-width: 820px) {
  .header__inner { gap: 8px; }
  .header .btn--small { margin-left: auto; padding: 10px 16px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 4px 16px 12px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(18,67,43,.12);
  }
  .is-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .hero { padding: 40px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { max-width: 620px; margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
  .hero__shield { width: 60px; left: -6px; bottom: 26px; }
  .cards, .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .needs { grid-template-columns: repeat(2, 1fr); }
  .need { padding: 22px 20px; }
  .need__icon { position: static; margin-bottom: 10px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .section__title { margin-bottom: 32px; }
  .form { padding: 22px 16px; }
}
@media (max-width: 600px) {
  .needs { grid-template-columns: 1fr; }
  .need { padding: 20px 18px; }
}
@media (max-width: 600px) {
  br.pc { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
  .radios { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .plan { padding: 28px 18px; }
  .stats strong { font-size: 1.3rem; }
  .footer__legal { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
