/* Preserve the site's typography and palette; adapt spacing and controls to the viewport. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 2000;
  padding: 12px 18px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
#main-content { scroll-margin-top: var(--header-height); }
.menu-toggle { width: 44px; height: 44px; }
.section-heading h1 { margin: 0; font-weight: 500; }
.rich-content, .detail-copy, .footer-contact, .footer-scope { min-width: 0; overflow-wrap: anywhere; }
.rich-content img { height: auto; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; }
.rich-content iframe, .rich-content video { max-width: 100%; }
.pagination { flex-wrap: wrap; }
.pagination a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.footer-nav a { color: #aaa; width: fit-content; }

@media (min-width: 821px) and (max-width: 1180px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-scope { grid-column: 1 / -1; max-width: 60ch; }
}

@media (max-width: 820px) {
  .inner-hero, .contact-banner { min-height: clamp(320px, 52svh, 480px); }
  .inner-hero__english, .contact-banner__english {
    position: static;
    width: auto;
    margin: 0 0 14px;
    transform: none;
    background: none;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(16px, 3.8vw, 24px);
    line-height: 1.3;
    letter-spacing: .06em;
    white-space: normal;
    display: block;
  }
  .inner-hero h1, .contact-banner__copy h1 { font-size: clamp(34px, 8vw, 52px); line-height: 1.2; }
  .inner-hero__copy p:not(.section-kicker) { font-size: 15px; }
  .section-heading h1 { font-size: clamp(28px, 6.5vw, 40px); line-height: 1.4; }
  .content-section { padding-block: 56px; }
  .site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  .footer-nav { gap: 4px; }
  .footer-nav a { display: flex; align-items: center; min-height: 44px; }
  .footer-contact p, .footer-scope p, .case-card__copy p { font-size: 14px; line-height: 1.8; }
  .back-to-top { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .contact-form .field input, .contact-form .field textarea, .site-search-form input { font-size: 16px; }
  .contact-form .field input { min-height: 48px; }
  .button, .hero-button { min-height: 44px; }
  .product-summary, .product-types, .product-notes p, .product-specs > div, .materials-list dd { font-size: 15px; }
  .home-page .eupro-hero { min-height: 440px; height: calc(100svh - var(--header-height)); }
  .home-page .hero-left .hero-title { font-size: clamp(32px, 8.7vw, 40px); }
  .home-page .hero-frame { top: 53%; }
  .home-page .hero-right { margin-top: 24px; }
  .home-page .hero-button { display: inline-flex; align-items: center; justify-content: center; }
  .home-page .eupro-hero .hero-dots { gap: 0; bottom: 12px; }
  .home-page .eupro-hero .hero-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; }
  .home-page .eupro-hero .hero-dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
  .home-page .eupro-hero .hero-dots button.is-active::after { background: var(--brand-green); }
  .home-page .industry-item p { font-size: 14px; line-height: 1.75; }
  .home-page .industry-list { padding-block: 56px; gap: 44px; }
  .home-page .product-stage { height: 75svh; min-height: 480px; max-height: 700px; }
  .home-page .service-card { height: auto; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .home-page .eupro-hero { min-height: 330px; }
  .home-page .hero-frame { top: 50%; }
  .home-page .hero-left .hero-title { font-size: 32px; }
}
