/* 2026-07-11: final overflow guard. This file intentionally loads last. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

main,
section,
.section-pad,
.hero,
.hero-grid,
.hero-copy,
.hero-media,
.gtm-visual,
.hero-bridge-visual,
.company-proof-inner,
.support-section,
.support-grid,
.launch-panel,
.pain-panel,
.proof-photo-strip,
.owned-section,
.why-layout,
.about-grid,
.contact-panel,
.site-footer {
  min-width: 0 !important;
  max-width: 100% !important;
}

.hero h1,
.hero-lede,
.hero-proof-line,
.section-intro h2,
.launch-panel h2,
.pain-panel h2,
.owned-section h2,
.why-section h2,
.about-section h2,
.contact-panel h2,
.contact-panel p,
.proof-list p,
.launch-panel li,
.support-grid h3,
.support-grid li {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  letter-spacing: 0 !important;
}

html[lang="ja"] .hero h1,
html[lang="ja"] .section-intro h2,
html[lang="ja"] .launch-panel h2,
html[lang="ja"] .pain-panel h2,
html[lang="ja"] .owned-section h2,
html[lang="ja"] .why-section h2,
html[lang="ja"] .about-section h2,
html[lang="ja"] .contact-panel h2 {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-break: strict !important;
  text-wrap: auto !important;
}

.hero h1 .hero-title-line,
.hero h1 .hero-title-line > span,
.hero-lede-line,
.jp-heading-line {
  display: block !important;
  max-width: 100% !important;
}

.hero-actions,
.contact-actions {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.hero-actions .button,
.contact-panel .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

html[lang="ja"] .company-proof-copy h2,
html[lang="ja"] .company-proof-copy > p,
html[lang="ja"] .company-proof-list li,
html[lang="ja"] .company-proof-metrics article,
html[lang="ja"] .company-proof-metrics strong,
html[lang="ja"] .company-proof-metrics span {
  letter-spacing: 0 !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  line-break: strict !important;
}

html[lang="ja"] .company-proof-photo figcaption:empty {
  display: none !important;
}

@media (min-width: 981px) {
  html[lang="ja"] .hero-grid {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%) !important;
    gap: clamp(40px, 4vw, 72px) !important;
    align-items: center !important;
  }

  html[lang="ja"] .hero-copy {
    width: 100% !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .hero h1 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(44px, 3.35vw, 64px) !important;
    line-height: 1.12 !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .hero h1 .hero-title-line > span {
    width: fit-content !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  html[lang="ja"] .hero-lede,
  html[lang="ja"] .hero-proof-line {
    max-width: 720px !important;
    font-size: clamp(20px, 1.25vw, 24px) !important;
    line-height: 1.75 !important;
  }

  html[lang="ja"] .launch-panel,
  html[lang="ja"] .why-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 40%) minmax(0, 52%) !important;
    column-gap: 8% !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .launch-panel h2,
  html[lang="ja"] .why-section h2 {
    font-size: clamp(38px, 3vw, 54px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }

  html[lang="ja"] .pain-panel h2,
  html[lang="ja"] .owned-section h2,
  html[lang="ja"] .about-section h2 {
    font-size: clamp(42px, 4vw, 68px) !important;
    line-height: 1.16 !important;
  }

  html[lang="ja"] .company-proof.section-pad {
    padding-top: clamp(68px, 6vw, 104px) !important;
    padding-bottom: clamp(68px, 6vw, 104px) !important;
  }

  html[lang="ja"] .company-proof-inner {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr) !important;
    gap: clamp(44px, 4.2vw, 68px) !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .company-proof-copy {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .company-proof h2 {
    max-width: 580px !important;
    font-size: clamp(36px, 2.8vw, 50px) !important;
    line-height: 1.16 !important;
    text-wrap: balance !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html[lang="ja"] .company-proof-copy > p:not(.eyebrow) {
    max-width: 620px !important;
    font-size: clamp(18px, 1.2vw, 22px) !important;
    line-height: 1.85 !important;
  }

  html[lang="ja"] .company-proof-list {
    gap: 14px !important;
    max-width: 620px !important;
  }

  html[lang="ja"] .company-proof-list li {
    padding: 18px 22px 18px 56px !important;
    font-size: clamp(15px, 0.95vw, 17px) !important;
    line-height: 1.58 !important;
  }

  html[lang="ja"] .company-proof-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  html[lang="ja"] .company-proof-metrics article {
    padding: 20px 16px !important;
    min-height: 118px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  html[lang="ja"] .company-proof-metrics strong {
    font-size: clamp(16px, 1vw, 18px) !important;
    line-height: 1.25 !important;
  }

  html[lang="ja"] .company-proof-metrics span {
    margin-top: 10px !important;
    font-size: clamp(13px, 0.82vw, 15px) !important;
    line-height: 1.5 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html[lang="ja"] .contact-panel h2 {
    max-width: 860px !important;
    font-size: clamp(44px, 4.2vw, 70px) !important;
    line-height: 1.14 !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  html[lang="ja"] .hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px !important;
    width: 100% !important;
  }

  .hero-copy,
  .gtm-visual,
  .hero-bridge-visual,
  .company-proof-inner,
  .support-section,
  .section-intro,
  .section-intro.compact,
  .launch-panel,
  .pain-panel,
  .owned-section,
  .why-layout,
  .about-grid,
  .contact-panel {
    width: min(100%, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  .section-intro,
  .section-intro.compact {
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .launch-panel,
  .why-layout,
  .about-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero h1 {
    font-size: clamp(42px, 10.6vw, 54px) !important;
    line-height: 1.07 !important;
  }

  html[lang="ja"] .hero h1 {
    width: 100% !important;
    font-size: clamp(40px, 10vw, 48px) !important;
    line-height: 1.1 !important;
  }

  html[lang="ja"] .hero h1 .hero-title-line > span {
    width: fit-content !important;
    max-width: 100% !important;
    white-space: nowrap !important;
  }

  html[lang="ja"] .hero-lede,
  html[lang="ja"] .hero-proof-line {
    font-size: clamp(17px, 4.5vw, 21px) !important;
    line-height: 1.75 !important;
    overflow-wrap: anywhere !important;
  }

  .hero-actions,
  .contact-actions,
  .contact-panel .contact-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-actions .button,
  .contact-panel .button,
  .contact-panel .contact-mail,
  .contact-panel .contact-book {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .launch-panel,
  .contact-panel {
    padding: clamp(34px, 8vw, 52px) clamp(18px, 5vw, 28px) !important;
  }

  html[lang="ja"] .section-intro h2,
  html[lang="ja"] .launch-panel h2,
  html[lang="ja"] .pain-panel h2,
  html[lang="ja"] .owned-section h2,
  html[lang="ja"] .why-section h2,
  html[lang="ja"] .about-section h2,
  html[lang="ja"] .contact-panel h2 {
    font-size: clamp(28px, 7vw, 36px) !important;
    line-height: 1.24 !important;
    overflow-wrap: anywhere !important;
  }

  html[lang="ja"] .company-proof h2 {
    max-width: 100% !important;
    font-size: clamp(30px, 7.4vw, 38px) !important;
    line-height: 1.2 !important;
  }

  html[lang="ja"] .contact-panel h2 {
    font-size: clamp(25px, 6.2vw, 31px) !important;
  }

  .proof-list > div {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  .proof-list p,
  .launch-panel li,
  .tag-cloud span {
    overflow-wrap: anywhere !important;
  }

  .proof-photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .proof-photo-strip figcaption {
    font-size: clamp(13px, 3.5vw, 16px) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 430px) {
  .hero-copy,
  .gtm-visual,
  .hero-bridge-visual,
  .company-proof-inner,
  .support-section,
  .section-intro,
  .section-intro.compact,
  .launch-panel,
  .pain-panel,
  .owned-section,
  .why-layout,
  .about-grid,
  .contact-panel {
    width: min(100%, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(36px, 9.5vw, 42px) !important;
  }

  html[lang="ja"] .hero-lede,
  html[lang="ja"] .hero-proof-line {
    font-size: 17px !important;
  }

  html[lang="ja"] .section-intro h2,
  html[lang="ja"] .launch-panel h2,
  html[lang="ja"] .pain-panel h2,
  html[lang="ja"] .owned-section h2,
  html[lang="ja"] .why-section h2,
  html[lang="ja"] .about-section h2 {
    font-size: clamp(25px, 6.8vw, 32px) !important;
  }

  html[lang="ja"] .contact-panel h2 {
    font-size: clamp(22px, 5.9vw, 28px) !important;
  }
}

/* Final Japanese balance pass: keep headings inside their columns in Firefox/Safari. */
html[lang="ja"] .company-proof-copy h2,
html[lang="ja"] .launch-panel h2,
html[lang="ja"] .pain-panel h2,
html[lang="ja"] .why-section h2,
html[lang="ja"] .contact-panel h2 {
  max-width: 100% !important;
  letter-spacing: 0 !important;
  line-break: strict !important;
  word-break: auto-phrase !important;
  overflow-wrap: anywhere !important;
  text-wrap: pretty !important;
}

html[lang="ja"] .company-proof-copy > p,
html[lang="ja"] .company-proof-list li,
html[lang="ja"] .company-proof-metrics article,
html[lang="ja"] .proof-list p,
html[lang="ja"] .launch-panel li {
  min-width: 0 !important;
  letter-spacing: 0 !important;
  line-break: strict !important;
  word-break: auto-phrase !important;
  overflow-wrap: anywhere !important;
  text-wrap: pretty !important;
}

@media (min-width: 981px) {
  html[lang="ja"] .company-proof-inner {
    grid-template-columns: minmax(0, 0.96fr) minmax(380px, 0.76fr) !important;
    gap: clamp(34px, 3.2vw, 56px) !important;
    align-items: center !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .company-proof-copy,
  html[lang="ja"] .launch-panel > div:first-child {
    min-width: 0 !important;
    max-width: 620px !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .company-proof h2 {
    max-width: 540px !important;
    font-size: clamp(34px, 2.45vw, 46px) !important;
    line-height: 1.18 !important;
  }

  html[lang="ja"] .company-proof-copy > p:not(.eyebrow) {
    max-width: 580px !important;
    font-size: clamp(17px, 1.06vw, 20px) !important;
    line-height: 1.82 !important;
  }

  html[lang="ja"] .company-proof-list {
    max-width: 580px !important;
  }

  html[lang="ja"] .company-proof-list li {
    padding: 17px 20px 17px 54px !important;
    font-size: clamp(15px, 0.92vw, 17px) !important;
    line-height: 1.58 !important;
  }

  html[lang="ja"] .company-proof-metrics article {
    min-height: 108px !important;
    padding: 18px 14px !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  html[lang="ja"] .company-proof-metrics strong {
    white-space: nowrap !important;
  }

  html[lang="ja"] .company-proof-metrics span {
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html[lang="ja"] .launch-panel {
    grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.9fr) !important;
    gap: clamp(38px, 4vw, 64px) !important;
    overflow: hidden !important;
  }

  html[lang="ja"] .launch-panel h2 {
    max-width: 500px !important;
    font-size: clamp(34px, 2.7vw, 48px) !important;
    line-height: 1.2 !important;
  }

  html[lang="ja"] .proof-list > div {
    min-width: 0 !important;
  }
}

@media (max-width: 980px) {
  html[lang="ja"] .company-proof-inner,
  html[lang="ja"] .launch-panel,
  html[lang="ja"] .pain-panel,
  html[lang="ja"] .why-layout,
  html[lang="ja"] .contact-panel {
    overflow: hidden !important;
  }

  html[lang="ja"] .company-proof h2,
  html[lang="ja"] .launch-panel h2,
  html[lang="ja"] .pain-panel h2,
  html[lang="ja"] .why-section h2,
  html[lang="ja"] .contact-panel h2 {
    max-width: 100% !important;
    font-size: clamp(25px, 6.8vw, 34px) !important;
    line-height: 1.22 !important;
  }

  html[lang="ja"] .company-proof-copy > p:not(.eyebrow),
  html[lang="ja"] .company-proof-list li,
  html[lang="ja"] .proof-list p,
  html[lang="ja"] .launch-panel li {
    font-size: clamp(15px, 4vw, 18px) !important;
    line-height: 1.7 !important;
  }
}

@media (max-width: 520px) {
  html[lang="ja"] .company-proof-metrics {
    grid-template-columns: 1fr !important;
  }

  html[lang="ja"] .company-proof-metrics article {
    min-height: auto !important;
    padding: 18px 20px !important;
  }

  html[lang="ja"] .proof-list > div {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 14px !important;
  }
}
