* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root{
  --bg: #F5F5F5;
  --mint: #DFF3EA;
  --mint2: #EAF7F0;
  --text: #0b1b33;
  --muted: rgba(11,27,51,.72);
  --line: rgba(11,27,51,.12);
  --card: #fff;

  --primary: #1585FF;
  --primary2: #0B6DE0;

  --radius: 16px;
  --shadow: 0 12px 26px rgba(11,27,51,.08);

  --container: 1040px;
  --pad: 20px;

  /* Spacing scale */
  --section-pad: 56px;
  --card-pad: 16px;
  --gap-lg: 24px;
  --gap-md: 16px;

}

body{
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", Inter, system-ui, -apple-system, "Hiragino Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =============================
   Header
   ============================= */
.header{
  position: static; /* not sticky */
  background: #fff;
  border-bottom: 1px solid rgba(11,27,51,.08);
}
.header__inner{
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand,
.header__brand{
  font-weight: 700;
  letter-spacing: .01em;
}
.nav,
.header__nav{
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 14px;
  opacity: .86;
}
.header__link{
  padding: 6px 2px;
  font-weight: 700;
}

/* =============================
   Buttons
   ============================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11,27,51,.14);
  background: #fff;
  font-weight: 800;
  font-size: 14px;
}
.btn--primary{
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(11,27,51,.08);
}
.btn--primary:hover{ background: var(--primary2); }
.btn--lg{ height: 44px; padding: 0 18px; }
.btn--block{ width: 100%; }

/* =============================
   Shared section typography
   ============================= */
.section{ padding: var(--section-pad) 0; }
.section--mint{ background: linear-gradient(var(--mint2), var(--mint)); }

.section-title{
  text-align: center;
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: .02em;
  font-weight: 700;
}
.section-lead{
  text-align: center;
  margin: 0 auto 26px;
  max-width: 780px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* =============================
   Hero
   ============================= */
.hero{
  padding: 54px 0 40px;
  background: #fff;
}
.hero__inner{ max-width: 980px; margin: 0 auto; }
.hero__title{
  text-align: center;
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
}
.hero__lead{
  text-align: center;
  margin: 0 auto 22px;
  max-width: 820px;
  color: var(--muted);
  font-size: 14px;
}

.video-embed{
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(11,27,51,.10);
  box-shadow: var(--shadow);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* =============================
   CTA
   ============================= */
.cta{
  padding: 32px 0;
  background: linear-gradient(#fff 0%, #fff 35%, var(--mint) 100%);
}
.cta__inner{
  text-align: center;
  background: linear-gradient(180deg, #EAF4FF 0%, #F3F8FF 55%, #FFFFFF 100%);
  border: 1px solid rgba(21,133,255,.18);
  border-radius: var(--radius);
  padding: 18px 16px;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: 0 10px 22px rgba(11,27,51,.06);
}
.cta__title{ margin: 0 0 10px; font-size: 16px; }
.cta__note{ margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.cta__subnote{ margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* =============================
   Cards + grids
   ============================= */
.card{
  background: var(--card);
  border: 1px solid rgba(11,27,51,.10);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: 0 10px 22px rgba(11,27,51,.06);
}

.problems{ padding: var(--section-pad) 0; background: var(--mint); }
.problems__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-lg);
}
.problem__title{ margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.problem__text{ margin: 0; font-size: 13px; color: var(--muted); }

.features{ padding: var(--section-pad) 0; background: var(--mint); }
.feature{
  background: var(--card);
  border: 1px solid rgba(11,27,51,.10);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: 0 10px 22px rgba(11,27,51,.06);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--gap-lg);
  align-items: center;
  margin-top: var(--gap-lg);
}
.feature:first-of-type{ margin-top: 0; }
.feature__title{ margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.feature__eyebrow{ margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 800; }
.feature__text{ margin: 0; font-size: 13px; color: var(--muted); }
.feature__note{ margin: 12px 0 0; font-size: 12px; color: rgba(11,27,51,.55); }
.feature__media img{
  border-radius: 14px;
  border: 1px solid rgba(11,27,51,.10);
  background: #fff;
}

.domains{ padding: var(--section-pad) 0; background: var(--mint); }
.domains__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-md);
}
.domain{ text-align: center; padding: 18px 14px; }
.domain__title{ margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.domain__text{ margin: 0; font-size: 12px; color: var(--muted); }
.domain--soon .domain__text{ color: rgba(11,27,51,.45); }

.safety{ padding: var(--section-pad) 0; background: var(--mint); }
.safety__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-lg);
}
.safety-item__title{ margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.safety-item__text{ margin: 0; font-size: 13px; color: var(--muted); }

.pricing{ padding: var(--section-pad) 0; background: linear-gradient(var(--mint) 0%, #fff 35%); }
.pricing__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-lg);
  align-items: stretch;
}
.plan{
  position: relative;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}
.plan:hover,
.plan:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11,27,51,.10);
}
.plan:active{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(11,27,51,.09);
}
@media (prefers-reduced-motion: reduce){
  .plan,
  .plan:hover,
  .plan:focus-within,
  .plan:active{
    transition: none;
    transform: none;
  }
}
.plan__name{ margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.plan__price{ margin: 0; font-size: 36px; font-weight: 900; letter-spacing: .01em; }
.plan__unit{ font-size: 14px; font-weight: 800; color: var(--muted); margin-left: 4px; }
.plan__list{
  margin: 14px 0 16px;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 2.0;
}
.plan--highlight{ border-color: rgba(21,133,255,.35); }
.plan__badge{
  position: absolute;
  right: 16px;
  top: -14px;
  background: #39B54A;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(57,181,74,.18);
}
.pricing__footnote{
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.pricing__footnote p{ margin: 6px 0; }

.faq{ padding: var(--section-pad) 0; background: #fff; }
.faq-wrap{
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.faq-scroll{
  max-height: 520px;
  overflow: auto;
  padding: 4px;
}
.faq__item{
  background: #fff;
  border: 1px solid rgba(11,27,51,.10);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(11,27,51,.06);
  margin-bottom: 10px;
}
.faq__item summary{ cursor: pointer; font-weight: 700; font-size: 14px; }
.faq__item p{ margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.faq-wrap::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.footer{
  background: #082E8A;
  color: rgba(255,255,255,.92);
  padding: 28px 0;
}
.footer__inner{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
}
.footer__title{ font-weight: 700; margin-bottom: 10px; }
.footer__link{
  display: inline-block;
  font-size: 13px;
  opacity: .9;
  padding: 4px 0;
}
.footer__text{ margin: 8px 0 0; font-size: 13px; opacity: .85; }

@media (max-width: 980px){
  .nav, .header__nav{ display: none; }
  .feature{ grid-template-columns: 1fr; }
  .domains__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing__grid{ grid-template-columns: 1fr; }
  .problems__grid{ grid-template-columns: 1fr; }
  .safety__grid{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .hero__title{ font-size: 30px; }
  .footer__inner{ grid-template-columns: 1fr; }
}

/* =============================
   Typography (match Figma)
   ============================= */

/* Base body typography */
body{
  font-size: 16px;
  line-height: 26px;
}

/* Main hero headline: prevent overlap when it wraps */
.hero__title{
  font-size: 40px;
  line-height: 1.25; /* avoids Japanese bold overlap */
  font-weight: 700;
  letter-spacing: .01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.section-title{
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
}

.section-lead{
  font-size: 14px;
  line-height: 22.8px;
  font-weight: 500;
}

.problem__text,
.safety-item__text,
.domain__text{
  font-size: 14px;
  line-height: 20px;
}

.pricing__footnote,
.cta__note,
.cta__subnote{
  font-size: 14px;
  line-height: 22.8px;
}

/* =============================
   Mobile (smartphone-first check)
   ============================= */
@media (max-width: 520px){
  :root{
    --pad: 16px;
    --section-pad: 44px;
    --gap-lg: 16px;
    --gap-md: 12px;
    --card-pad: 14px;
  }

  .header__inner{
    height: 60px;
    gap: 10px;
    justify-content: space-between;
  }
  /* Prevent header text/button wrapping on small screens */
  .brand,
  .header__brand{
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .btn{
    font-size: 13px;
    padding: 0 12px;
    height: 38px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero{ padding: 34px 0 26px; }
  .hero__title{
    font-size: 30px;
    line-height: 1.3;
  }
  .hero__lead{ margin-bottom: 16px; }

  .cta{ padding: 22px 0; }
  .cta__inner{ padding: 16px 14px; }

  /* Keep cards nicely spaced */
  .card{ padding: var(--card-pad); }

  /* FAQ scroll: make it feel natural on small screens */
  .faq-wrap{ max-width: 100%; }
  .faq-scroll{ max-height: 420px; }
  .faq-wrap::after{ height: 44px; }
}