/* Responsive enhancements; desktop layout remains in styles.css and hero.css. */
.page-top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.mobile-actions,
.menu-backdrop { display: none; }
.menu-backdrop[hidden] { display: none !important; }

@media (max-width: 900px) {
  html { scroll-padding-top: 0; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.mobile-menu-open { overflow: hidden; }
  section[id], .business-copy, .site-footer { scroll-margin-top: 88px; }
  .container { width: min(1170px, calc(100% - 40px)); }
  .site-header, .site-header.compact { height: 72px; }
  .header-inner { align-items: center; gap: 0; }
  .site-header .brand, html[lang='en'] .site-header .brand {
    min-width: 0; flex: 1 1 auto; gap: 8px; margin-right: 8px;
  }
  .site-header .brand-mark, .site-header.compact .brand-mark {
    width: 40px; height: 40px; font-size: 14px; flex: 0 0 40px;
  }
  .site-header .brand-copy { min-width: 0; }
  .site-header .brand-copy strong, .site-header.compact .brand-copy strong {
    font-size: 18px; line-height: 1.3; letter-spacing: 1px; white-space: nowrap;
  }
  .site-header .brand-copy small {
    font-size: 8px; line-height: 1.3; letter-spacing: .1px; margin-top: 4px;
  }
  html[lang='en'] .site-header .brand-copy strong,
  html[lang='en'] .site-header.compact .brand-copy strong { font-size: 15px; letter-spacing: 0; }
  html[lang='en'] .site-header .brand-copy small { max-width: 175px; font-size: 7px; }
  .language-switch { margin: 0; padding: 0; gap: 0; border-radius: 7px; }
  .language-switch button { min-width: 39px; min-height: 44px; padding: 9px 7px; font-size: 11px; }
  .language-switch button[aria-pressed='true'] { border-radius: 6px; }
  .menu-toggle {
    position: relative; display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; margin-left: 6px; padding: 0; border-radius: 7px;
    color: #285675; background: #f2f6fa; font-size: 24px; cursor: pointer;
  }
  .menu-toggle[aria-expanded='true'] { font-size: 0; background: #e7f0f8; }
  .menu-toggle[aria-expanded='true']::after { content: '×'; font-size: 32px; line-height: 1; }
  .site-nav.open {
    display: flex; position: fixed; top: 72px; left: 16px; right: 16px;
    max-height: calc(100dvh - 164px); margin: 0; padding: 8px;
    overflow: auto; overscroll-behavior: contain; border: 1px solid #e3ebf2;
    border-radius: 10px; background: #fff; box-shadow: 0 12px 36px rgba(7, 30, 50, .22);
  }
  .site-nav > a, .site-nav > a:hover, .site-nav > a.active,
  .site-header.compact .site-nav > a, html[lang='en'] .site-nav > a {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 54px; flex-shrink: 0; padding: 14px 16px; border: 0;
    border-radius: 6px; text-align: left; color: #314b60; font-size: 15px;
  }
  .site-nav > a + a { margin-top: 3px; }
  .site-nav > a.active, .site-nav > a:hover { background: #edf5fb; color: #17689e; }
  .site-nav > a small, .site-nav > a.active small, .site-nav > a:hover small {
    margin: 0; color: #8a9ba9; font-size: 10px;
  }
  .menu-backdrop:not([hidden]) {
    display: block; position: fixed; inset: 72px 0 0; z-index: 19;
    width: 100%; height: calc(100dvh - 72px); padding: 0; border: 0;
    background: rgba(5, 22, 37, .48); cursor: pointer; touch-action: none;
  }
  .hero { touch-action: pan-y; }
  .btn, .outline-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
  .btn:hover { transform: none; }
  .outline-btn { font-size: 13px; padding: 12px 18px; }
  .section { padding: 58px 0 48px; }
  .section h2 { line-height: 1.5; }
  .section-subtitle { margin-bottom: 30px; line-height: 1.8; }
  .company-intro, .section-intro, .business-copy > p { font-size: 15px; line-height: 1.9; }
  .company-intro, .business-copy > p { text-align: left; }
  .intro-values { gap: 16px; }
  .intro-values article { padding: 22px; }
  .intro-values p { font-size: 14px; }
  .product-grid { gap: 28px 20px; }
  .product-card { min-height: 0; padding: 24px 20px; border: 1px solid rgba(179, 221, 240, .22); background: rgba(255, 255, 255, .035); border-radius: 8px; }
  .product-card h3, html[lang='en'] .product-card h3 { min-height: 0; line-height: 1.55; }
  .product-card > p, html[lang='en'] .product-card > p { min-height: 0; font-size: 14px; line-height: 1.9; }
  .product-icon { width: 110px; height: 110px; font-size: 48px; margin-bottom: 20px; }
  .product-icon:hover { transform: none; }
  .product-tags { gap: 7px; margin: 16px 0 8px; }
  .product-tags li, html[lang='en'] .product-tags li { font-size: 11px; line-height: 1.5; }
  .product-note { font-size: 13px; line-height: 1.9; }
  .quality-layout { grid-template-columns: 1fr; gap: 30px; }
  .quality-feature { padding: 28px; }
  .quality-feature h3, html[lang='en'] .quality-feature h3 { font-size: 25px; }
  .quality-feature p, .quality-points p { font-size: 15px; }
  .quality-points article { gap: 18px; padding: 20px 0; }
  .quality-points article > span { flex-shrink: 0; }
  .growth-panel p, html[lang='en'] .growth-panel p { font-size: 15px; }
  .growth-tabs { gap: 8px; }
  .growth-tabs button, html[lang='en'] .growth-tabs button { min-height: 44px; padding: 11px 18px; border-radius: 4px; font-size: 13px; }
  .application-grid { gap: 18px; }
  .application-grid article { padding: 25px; }
  .application-grid p { font-size: 15px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .process-grid h3, html[lang='en'] .process-grid h3,
  .process-grid p, html[lang='en'] .process-grid p { min-height: 0; }
  .process-grid p { font-size: 14px; }
  .process-grid small { font-size: 12px; }
  .recruit-grid { gap: 14px; border: 0; }
  .recruit-grid article { border: 1px solid var(--line); border-radius: 6px; padding: 25px 18px; min-height: 0; }
  .recruit-grid p { color: #647481; font-size: 14px; line-height: 1.8; }
  .recruit-grid article:hover p { color: #647481; }
  .team-grid { gap: 24px; }
  .team-grid h3, html[lang='en'] .team-grid h3 { min-height: 0; }
  .team-grid p { font-size: 14px; text-align: left; }
  .inquiry-layout { grid-template-columns: 1fr; gap: 30px; }
  .inquiry-layout > div > p { font-size: 15px; }
  .inquiry-checklist span { font-size: 14px; line-height: 1.75; }
  .faq-list summary { min-height: 56px; line-height: 1.65; }
  .faq-list p { font-size: 15px; line-height: 1.9; }
  .contact-strip a { padding: 23px 20px; font-size: 15px; line-height: 1.9; }
  .footer-grid { gap: 34px; }
  .footer-brand { max-width: 100%; }
  .site-footer { font-size: 14px; padding-top: 35px; }
  .site-footer .contact-list { padding-left: 18px; overflow-wrap: anywhere; }
  .footer-links { gap: 8px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid #344453; border-radius: 4px; font-size: 12px; }
  .go-top { min-height: 60px; padding: 20px; }
  .mobile-actions {
    position: fixed; z-index: 18; left: 0; right: 0; bottom: 0; display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .98); border-top: 1px solid #dce6ee;
    box-shadow: 0 -3px 20px rgba(11, 40, 61, .09);
  }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 7px 6px; border-radius: 6px; font-size: 13px; line-height: 1.4; color: #426581; text-align: center; }
  .mobile-actions a[aria-current='location'] { color: #1267a0; background: #eaf3fa; }
  .mobile-actions a[href='#contact'] { color: #fff; background: #377fae; }
  .mobile-actions a[href='#contact'][aria-current='location'] { background: #1e689b; }
  .product-dialog {
    width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 40px);
    margin: auto; padding: 30px 28px 26px; border-radius: 10px;
    overscroll-behavior: contain; scroll-padding-top: 50px;
  }
  .dialog-close {
    position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center;
    width: 44px; height: 44px; margin: -12px -12px 0 6px; padding: 0;
    border: 1px solid #dce6ee; border-radius: 50%; background: #fff; color: #426581;
    font-size: 30px; line-height: 1;
  }
  .product-dialog h2 { clear: both; margin-top: 24px; font-size: 24px; line-height: 1.5; }
  .product-dialog > p { font-size: 15px; }
  .detail-columns { gap: 20px; }
  .detail-columns ul { font-size: 14px; }
  .product-dialog .detail-note { font-size: 13px; }
  .product-dialog .btn { min-height: 48px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .site-header .container { width: calc(100% - 28px); }
  .site-header .brand-mark, .site-header.compact .brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 13px; }
  .site-header .brand-copy strong, .site-header.compact .brand-copy strong { font-size: 17px; letter-spacing: .5px; }
  html[lang='en'] .site-header .brand-copy strong,
  html[lang='en'] .site-header.compact .brand-copy strong { font-size: 13px; }
  html[lang='en'] .site-header .brand-copy small { max-width: 128px; }
  .site-header .brand-copy small { font-size: 7px; }
  .hero { height: min(650px, calc(100svh - 136px)); min-height: 560px; }
  .hero .hero-slide { background-position: 65% center; }
  .hero .slide-a { background-image: linear-gradient(180deg, rgba(3,13,25,.06), rgba(3,13,25,.1) 23%, rgba(3,13,25,.68) 46%, rgba(3,13,25,.96)), url('assets/hero-switchgear.webp'); }
  .hero .slide-b { background-image: linear-gradient(180deg, rgba(3,13,25,.08), rgba(3,13,25,.12) 23%, rgba(3,13,25,.72) 46%, rgba(3,13,25,.96)), url('assets/hero-grid.webp'); }
  .hero .slide-c { background-image: linear-gradient(180deg, rgba(3,13,25,.07), rgba(3,13,25,.1) 23%, rgba(3,13,25,.7) 46%, rgba(3,13,25,.96)), url('assets/hero-automation.webp'); }
  .hero-overlay, html[lang='en'] .hero-overlay { width: calc(100% - 44px); justify-content: flex-end; padding: 150px 0 88px; }
  .hero-overlay h1 { font-size: clamp(30px, 8.7vw, 42px); line-height: 1.32; letter-spacing: .5px; margin: 18px 0; }
  html[lang='en'] .hero-overlay h1 { font-size: clamp(30px, 8.4vw, 39px); line-height: 1.22; letter-spacing: -.5px; }
  .hero-overlay > span { font-size: 9px; letter-spacing: 2px; gap: 10px; }
  .hero-overlay > span::before { width: 22px; }
  .hero-overlay p, html[lang='en'] .hero-overlay p { margin-bottom: 23px; font-size: 14px; line-height: 1.75; }
  .hero-overlay .btn { min-height: 48px; font-size: 14px; }
  .hero-arrow { top: auto; bottom: 22px; width: 44px; height: 44px; margin: 0; }
  .hero-arrow.prev { left: 20px; }
  .hero-arrow.next { right: 20px; }
  .hero-dots { left: 50%; bottom: 22px; transform: translateX(-50%); gap: 5px; }
  .hero-dots button { width: 44px; height: 44px; }
  .hero-dots button::before { top: 21px; left: 7px; width: 30px; }
  .section { padding: 48px 0 42px; }
  .section h2 { font-size: 23px; padding-bottom: 17px; }
  .section h2 span { display: block; margin: 5px 0 0; font-size: 12px; }
  .section-subtitle { font-size: 14px; margin-bottom: 25px; }
  .company-intro p { text-indent: 0; margin-bottom: 17px; }
  .company-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 0; margin: 27px auto 32px; padding: 24px 0; }
  .company-facts > div:nth-child(3) { border-left: 0; }
  .company-facts strong { font-size: 31px; }
  .company-facts p { font-size: 13px; }
  .business-copy h3 { font-size: 21px; }
  .business-copy h3 small { display: block; margin: 7px 0 0; }
  .business-copy > p { text-indent: 0; }
  .intro-values { grid-template-columns: 1fr; margin: 25px auto; }
  .intro-values article { padding: 22px; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-card { padding: 25px 22px; }
  .product-card h3 { font-size: 18px; }
  .product-card > p { max-width: 400px; margin: 16px auto; }
  .product-icon { width: 96px; height: 96px; font-size: 44px; }
  .product-card .outline-btn { min-width: 180px; }
  .quality-feature { padding: 25px 23px; }
  .quality-feature h3, html[lang='en'] .quality-feature h3 { font-size: 23px; }
  .quality-points article { gap: 15px; }
  .quality-points h3 { font-size: 17px; }
  .growth-stage { height: 370px; }
  .growth-panel { padding: 28px 22px; }
  .growth-panel h3, html[lang='en'] .growth-panel h3 { font-size: 24px; line-height: 1.5; }
  .growth-panel p, html[lang='en'] .growth-panel p { font-size: 15px; line-height: 1.85; }
  .growth-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .growth-tabs button, html[lang='en'] .growth-tabs button { padding: 11px 10px; font-size: 13px; }
  .application-grid { grid-template-columns: 1fr; gap: 16px; }
  .application-grid article { padding: 24px; }
  .application-grid h3 { font-size: 20px; }
  .application-tags { font-size: 13px; }
  .process-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .process-grid li { position: relative; padding: 23px 22px 22px 66px; border-bottom-width: 1px; border-radius: 4px; }
  .process-grid li > span { position: absolute; top: 20px; left: 20px; float: none; font-size: 26px; }
  .process-grid h3 { margin: 0 0 10px; font-size: 18px; }
  .process-grid p { margin: 0 0 11px; }
  .recruit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0; }
  .recruit-grid article { padding: 22px 13px; }
  .recruit-avatar { width: 68px; height: 68px; font-size: 15px; }
  .recruit-grid h3, html[lang='en'] .recruit-grid h3 { min-height: 0; font-size: 15px; line-height: 1.6; }
  .recruit-grid p { font-size: 13px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .culture-symbol { width: 72px; height: 72px; font-size: 28px; }
  .team-grid h3 { font-size: 17px; }
  .team-grid p { font-size: 13px; }
  .faq-list summary { padding: 20px 35px 20px 0; font-size: 16px; }
  .faq-list summary::after { right: 5px; top: 17px; }
  .faq-list p { padding: 0 10px 22px 0; }
  .inquiry h2, html[lang='en'] .inquiry h2 { font-size: 27px; margin: 16px 0; }
  .inquiry-checklist { padding: 25px 23px; }
  .inquiry-checklist h3 { font-size: 18px; line-height: 1.5; }
  .inquiry-checklist b { font-size: 15px; }
  .contact-strip .container { width: 100%; }
  .contact-strip span { display: none; }
  .footer-grid { gap: 30px; }
  .footer-brand .brand-copy strong { font-size: 19px; }
  .footer-brand .brand-copy small { max-width: 230px; font-size: 10px; line-height: 1.5; letter-spacing: 0; }
  .footer-slogan { font-size: 13px; letter-spacing: 1px; }
  .site-footer h3 { font-size: 19px; }
  .product-dialog { width: calc(100% - 24px); padding: 25px 20px 24px; max-height: calc(100dvh - 24px); }
  .product-dialog .eyebrow { font-size: 10px; letter-spacing: .8px; }
  .product-dialog h2 { font-size: 22px; }
  .detail-columns { grid-template-columns: 1fr; gap: 0; }
  .detail-columns h3 { font-size: 17px; margin: 20px 0 10px; }
  .detail-columns ul { margin-top: 0; }
  .product-dialog .btn { width: 100%; }
  .mobile-actions { gap: 6px; padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 360px) {
  .site-header .container { width: calc(100% - 24px); }
  .site-header .brand { gap: 6px; margin-right: 5px; }
  .site-header .brand-copy strong, .site-header.compact .brand-copy strong { font-size: 16px; }
  html[lang='en'] .site-header .brand-copy strong,
  html[lang='en'] .site-header.compact .brand-copy strong { font-size: 12px; }
  .site-header .brand-copy small { display: none; }
  .language-switch button { min-width: 34px; padding: 9px 5px; }
  .menu-toggle { margin-left: 5px; }
  .container { width: calc(100% - 32px); }
  .hero-overlay, html[lang='en'] .hero-overlay { width: calc(100% - 40px); }
  .hero-overlay h1, html[lang='en'] .hero-overlay h1 { font-size: 29px; }
  .section h2 { font-size: 22px; }
  .recruit-grid { grid-template-columns: 1fr; }
  .recruit-grid article { padding: 22px; }
  .recruit-grid p { font-size: 14px; }
  .team-grid { grid-template-columns: 1fr; gap: 27px; }
  .team-grid p { font-size: 14px; text-align: center; }
  .mobile-actions a { font-size: 12px; }
}

@media (max-width: 600px) and (max-height: 700px) {
  .hero { height: max(440px, calc(100svh - 136px)); min-height: 440px; }
  .hero-overlay, html[lang='en'] .hero-overlay { padding: 70px 0 80px; }
  .hero-overlay h1, html[lang='en'] .hero-overlay h1 { font-size: 29px; margin: 14px 0; }
  .hero-overlay p, html[lang='en'] .hero-overlay p { margin-bottom: 18px; }
}
