:root {
  --navy: #102a56;
  --blue: #3157b7;
  --yellow: #ffd84d;
  --yellow-edge: #d9aa00;
  --ink: #14213d;
  --pale: #f7fbff;
  --line: #d8e6f7;
  --green: #11833b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #e7edf5; }
body {
  margin: 0;
  color: var(--ink);
  background: #e7edf5;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.lp-canvas {
  width: min(100%, 430px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 70px rgba(16, 42, 86, .18);
}
.preview-banner {
  position: relative;
  z-index: 5;
  margin: 0;
  padding: 7px 12px;
  color: #6b5314;
  background: #fff5c6;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}
.slice { position: relative; margin: 0; padding: 0; line-height: 1.45; }
.slice > img { display: block; width: 100%; height: auto; margin: 0; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.support-overlays {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  top: 67.2%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6%;
}
.support-overlays div {
  display: flex;
  min-width: 0;
  height: 119px;
  padding: 12px 7px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.support-overlays strong { color: var(--navy); font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.support-overlays span { margin-top: 5px; color: #52657d; font-size: 8px; font-weight: 700; line-height: 1.45; }
.photo-caption {
  position: absolute;
  left: 6.2%;
  right: 6.2%;
  bottom: 1.15%;
  display: flex;
  height: 8.5%;
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.photo-caption span { display: block; margin-top: 2px; color: #66788e; font-size: 7px; font-weight: 600; }

.slice-cta {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}
.conditions-cta {
  left: 3.5%;
  right: 3.5%;
  bottom: 4.8%;
  height: 10.2%;
  font-size: clamp(17px, 5vw, 20px);
}

.place-meta {
  position: absolute;
  left: 5.4%;
  right: 5.4%;
  bottom: 1.1%;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 2px 7px;
  min-height: 52px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(247, 251, 255, .90);
}
.place-meta span { color: var(--blue); font-size: 7px; font-weight: 900; }
.place-meta strong { color: var(--navy); font-size: 9px; line-height: 1.2; }

.faq-overlays { position: absolute; inset: 10.4% 4.8% auto; height: 48%; }
.faq-overlays article {
  position: absolute;
  left: 0;
  display: grid;
  width: 100%;
  height: 30.7%;
  padding: 0 16px 0 68px;
  grid-template-rows: 45% 55%;
}
.faq-overlays article:nth-child(1) { top: 0; }
.faq-overlays article:nth-child(2) { top: 34.5%; }
.faq-overlays article:nth-child(3) { top: 69%; }
.faq-overlays h3 {
  align-self: center;
  margin: 0;
  color: var(--navy);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.45;
}
.faq-overlays p {
  align-self: center;
  margin: 0;
  color: #53657b;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.5;
}
.final-slice-cta {
  left: 9.4%;
  right: 8.1%;
  bottom: 12.55%;
  height: 9.9%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe24a 0%, #ffd936 56%, #ffd126 100%);
  box-shadow: inset 0 -3px 0 rgba(201, 151, 0, .16);
  font-size: clamp(17px, 5vw, 20px);
}

footer {
  padding: 28px 22px 106px;
  color: #d5e1f3;
  background: #06142e;
  font-size: 10px;
  line-height: 1.7;
}
footer strong { color: #fff; font-size: 12px; }
footer p { margin: 8px 0; }
footer a { display: inline-block; margin-bottom: 10px; color: #fff; font-weight: 800; text-decoration: none; }
footer small { display: block; color: #8295b1; }

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 20;
  transform: translateX(-50%);
  width: min(calc(100% - 22px), 408px);
  min-height: 60px;
  padding: 9px 18px 10px;
  border: 1px solid var(--yellow-edge);
  border-radius: 16px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 12px 34px rgba(6, 20, 46, .35), inset 0 -3px 0 rgba(170, 125, 0, .18);
  cursor: pointer;
}
.sticky-cta small, .sticky-cta strong { display: block; }
.sticky-cta small { font-size: 8px; }
.sticky-cta strong { font-size: 14px; }

dialog {
  width: min(calc(100% - 28px), 420px);
  max-height: 88vh;
  overflow: auto;
  padding: 28px 22px;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(2, 8, 23, .40);
}
dialog::backdrop { background: rgba(2, 8, 23, .72); }
.dialog-close { position: absolute; top: 9px; right: 12px; border: 0; color: #607089; background: transparent; font-size: 28px; cursor: pointer; }
.dialog-kicker { margin: 0 0 5px; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
dialog h2 { margin: 0 0 12px; color: var(--navy); font-size: 25px; line-height: 1.25; }
.form-notice { padding: 11px 12px; border-radius: 11px; color: #6b5314; background: #fff7d6; font-size: 10px; line-height: 1.55; }
form label { display: block; margin: 12px 0; font-size: 10px; font-weight: 900; }
input, textarea { display: block; width: 100%; margin-top: 5px; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 13px; }
.dialog-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; border: 1px solid var(--yellow-edge); border-radius: 14px; color: var(--navy); background: var(--yellow); font-size: 13px; font-weight: 900; cursor: pointer; }
.form-result { margin: 10px 0 0; color: var(--blue); font-size: 10px; font-weight: 800; text-align: center; }
.phone-link { display: block; margin-top: 18px; color: var(--navy); font-size: 9px; text-align: center; text-decoration: none; }
.phone-link strong { display: block; font-size: 21px; }
.phone-link small { display: block; }

@media (min-width: 431px) {
  body { padding: 22px 0; }
  .lp-canvas { border-radius: 22px; }
}
@media (max-width: 389px) {
  .support-overlays div { height: 106px; padding-inline: 5px; }
  .support-overlays strong { font-size: 10px; }
  .support-overlays span { font-size: 7px; }
  .faq-overlays article { padding-left: 58px; }
  .faq-overlays h3 { font-size: 9px; }
  .faq-overlays p { font-size: 7px; }
  .conditions-cta, .final-slice-cta { font-size: 17px; }
}

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