/* V8.7: guard the approved desktop composition as effective viewport width narrows. */
html, body { overflow-x: clip; }
nav button { white-space: nowrap; }
.en-hero-tablet, .en-hero-mobile { display: none; }

@media (max-width: 1160px) {
  header { position: relative; width: min(100% - 48px, 1080px); height: 76px; }
  header nav, .header-cta { display: none; }
  header nav.open { display: flex; position: absolute; z-index: 70; top: 70px; left: 0; right: 0; margin: 0; padding: 18px 20px; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 28px #12364b18; }
  header nav.open button { width: 100%; min-height: 44px; text-align: left; }
  .menu-toggle { display: grid; width: 44px; height: 44px; place-items: center; flex: 0 0 44px; }
  .locale-switch { margin-left: auto; margin-right: 14px; }
  .hero { grid-template-columns: 1fr; gap: 42px; min-height: 0; padding-top: 58px; }
  .hero-copy { max-width: 760px; }
  .hero h1 { max-width: 760px; font-size: clamp(44px, 5.25vw, 60px); line-height: 1.01; }
  .en-hero-desktop { display: none; }
  .en-hero-tablet { display: inline; }
  .hero-visual { width: min(100%, 760px); height: auto; aspect-ratio: 1.58; }
  .actions { flex-wrap: wrap; row-gap: 12px; column-gap: 23px; }
  .actions .button, .actions .text-button { max-width: 100%; white-space: normal; }
  .floating-lead { right: 18px; bottom: 18px; padding: 13px 18px; font-size: 14px; }
}

@media (max-width: 900px) {
  .section-wrap { width: min(100% - 48px, 760px); }
  .hero { padding-top: 48px; padding-bottom: 62px; gap: 36px; }
  .hero h1 { font-size: clamp(42px, 6.2vw, 54px); }
  .hero-text { margin-top: 24px; margin-bottom: 26px; }
  .hero-visual { aspect-ratio: 1.42; }
}

@media (max-width: 800px) {
  .en-hero-tablet { display: none; }
  .en-hero-mobile { display: inline; }
  .hero h1 { font-size: clamp(38px, 10.8vw, 52px); letter-spacing: -2px; }
  .actions { align-items: flex-start; }
  .floating-lead { right: 14px; bottom: 14px; padding: 11px 14px; font-size: 13px; }
}

@media (max-width: 430px) {
  header { width: min(100% - 32px, 620px); }
  .locale-switch { margin-right: 8px; }
  .hero h1 { font-size: clamp(37px, 10.4vw, 43px); line-height: 1.04; }
  .actions .button { padding-inline: 20px; }
  .floating-lead { padding: 10px 13px; font-size: 12px; }
  .floating-lead span { font-size: 13px; }
}
