/* 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;
}

@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"] .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,
  .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;
  }

  .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"] .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,
  .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;
  }
}
