:root {
  --navy: #123b65;
  --blue: #2f82bd;
  --sky: #e9f6fc;
  --mint: #eaf8ef;
  --yellow: #ffd85b;
  --orange: #ef9544;
  --ink: #18324a;
  --muted: #607487;
  --line: #d7e6ef;
  --white: #fff;
  --shadow: 0 12px 35px rgba(24, 70, 105, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fbfd;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
.site-header {
  min-height: 68px;
  padding: 12px max(20px, calc((100% - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.08rem;
}
.brand img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}
.store-link { color: var(--blue); font-weight: 800; text-underline-offset: 4px; }
main { overflow: hidden; }
.hero {
  padding: 82px 20px 70px;
  text-align: center;
  background:
    radial-gradient(circle at 8% 10%, #cfeefa 0 85px, transparent 86px),
    radial-gradient(circle at 93% 12%, #fff0ad 0 74px, transparent 75px),
    linear-gradient(145deg, #f4fbff, #fffdf5);
}
.eyebrow, .section-kicker {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
h1 { color: var(--navy); font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.25; margin: 10px 0 20px; }
h2 { color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.35; margin: 5px 0 12px; }
h3 { color: var(--navy); line-height: 1.45; }
.lead { max-width: 720px; margin: 0 auto 22px; font-size: 1.08rem; }
.hero-points { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points span { background: var(--white); color: var(--navy); border-radius: 999px; padding: 4px 16px; font-weight: 800; box-shadow: 0 5px 18px rgba(32, 104, 153, .09); }
.primary-button, .secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 12px 27px;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}
.primary-button { color: var(--white); background: var(--blue); box-shadow: 0 8px 22px rgba(47,130,189,.24); }
.primary-button:hover { background: #246b9d; transform: translateY(-1px); }
.secondary-button { background: var(--white); color: var(--navy); border: 2px solid var(--line); }
.note { color: var(--muted); font-size: .88rem; margin-top: 18px; }
.teacch-intro, .guide-section, .results {
  width: min(1040px, calc(100% - 32px));
  margin: 48px auto;
}
.teacch-intro {
  background: var(--white);
  padding: 34px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
}
.intro-mark {
  width: 88px; min-height: 68px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--navy);
  font-size: .95rem; font-weight: 950;
  line-height: 1.35;
  text-align: center;
  padding: 10px;
}
.principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.principles div { background: var(--sky); border-radius: 16px; padding: 17px; }
.principles b, .principles span { display: block; }
.principles b { color: var(--navy); margin-bottom: 3px; }
.principles span { font-size: .92rem; color: var(--muted); }
.section-heading { text-align: center; margin-bottom: 30px; }
.section-heading p:last-child { color: var(--muted); margin-top: 0; }
form { display: grid; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 28px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
legend { float: left; width: 100%; font-weight: 900; color: var(--navy); font-size: 1.13rem; margin-bottom: 18px; }
legend span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--white); background: var(--blue); margin-right: 8px; }
.choice-grid { clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span {
  display: flex;
  min-height: 60px;
  align-items: center;
  padding: 13px 16px 13px 46px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fbfdfe;
  position: relative;
  transition: .15s ease;
}
.choice-grid span::before {
  content: "";
  position: absolute; left: 15px;
  width: 19px; height: 19px;
  border-radius: 50%; border: 2px solid #a7bdcc;
  background: var(--white);
}
.choice-grid input:focus-visible + span { outline: 3px solid #ffd85b; outline-offset: 2px; }
.choice-grid input:checked + span { background: var(--sky); border-color: var(--blue); color: var(--navy); font-weight: 800; }
.choice-grid input:checked + span::before { border: 6px solid var(--blue); }
.submit-button { justify-self: center; min-width: 250px; margin-top: 8px; }
.form-error { color: #9f2e2e; background: #fff0f0; border-radius: 12px; padding: 12px 16px; text-align: center; font-weight: 800; }
.results { background: var(--white); border-radius: 28px; padding: 38px; box-shadow: var(--shadow); }
.result-block { margin-top: 34px; }
.result-block h3 { border-left: 6px solid var(--orange); padding-left: 12px; }
.primary-result h3 { border-color: var(--blue); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card { border: 2px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; background: #fbfdfe; }
.product-code { display: inline-block; align-self: flex-start; color: var(--blue); font-weight: 900; background: var(--sky); border-radius: 999px; padding: 2px 10px; margin-bottom: 7px; }
.product-card h4 { font-size: 1.08rem; color: var(--navy); margin: 2px 0 8px; line-height: 1.5; }
.product-card p { color: var(--muted); margin: 0 0 14px; font-size: .93rem; }
.product-card a { margin-top: auto; color: var(--blue); font-weight: 900; text-underline-offset: 4px; }
.compact-product h4 { font-size: 1rem; }
.related-extra { display: none; }
.related-extra.is-visible { display: flex; }
.more-button { display: block; margin: 1.25rem auto 0; }
.teacch-result { margin-top: 38px; padding: 28px; border-radius: 22px; background: var(--mint); }
.teacch-result h3 { margin-top: 0; }
.advice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.advice-card { background: var(--white); border-radius: 14px; padding: 16px; }
.advice-card b { display: block; color: var(--navy); margin-bottom: 4px; }
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
footer { text-align: center; padding: 45px 20px 60px; background: var(--navy); color: var(--white); }
footer p { margin: 4px 0; opacity: .85; }
footer a { color: #bfe9ff; }

@media (max-width: 720px) {
  .hero { padding-top: 58px; }
  .teacch-intro { padding: 24px; grid-template-columns: 1fr; }
  .intro-mark { width: 88px; min-height: 60px; }
  .principles { grid-column: 1; grid-template-columns: 1fr 1fr; }
  fieldset { padding: 22px 18px; }
  .choice-grid, .product-grid, .advice-grid { grid-template-columns: 1fr; }
  .results { padding: 27px 18px; }
}

@media (max-width: 430px) {
  .principles { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .site-header { min-height: 60px; }
}
