/* Final layout layer: content remains fluid without clipping or viewport-height heroes. */
body .site-header .nav-link,
body .site-header .nav-phone { color: #22314d; }
main img { max-width: 100%; }
main input, main select, main textarea { max-width: 100%; min-width: 0; }
.hero-grid > *, .about-hero-grid > *, .hero-form-grid > *,
.career-grid > *, .service-overview > *, .footer-grid > * { min-width: 0; }
.footer-links a, .footer-contact a, .footer-bottom-links a { overflow-wrap: anywhere; }
.site-footer .footer-bottom-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }

.home-hero.page-banner { padding: 48px 0; margin-bottom: 0; }
.home-hero .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; }
.home-hero .hero-copy { max-width: 650px; }
.home-hero h1 { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em; margin: 18px 0; text-wrap: balance; }
.home-hero .hero-copy > p { font-size: 1rem; line-height: 1.7; margin-bottom: 24px; max-width: 590px; }
.home-hero .hero-actions { margin-bottom: 0; gap: 12px; }
.home-hero .hero-visual { grid-template-columns: 1fr .8fr; gap: 12px; align-items: stretch; }
.home-hero .hero-main-img { height: 360px; width: 100%; object-fit: cover; border-radius: 16px; }
.home-hero .hero-stack { gap: 12px; grid-template-rows: 100px auto 100px; }
.home-hero .hero-stack img { height: 100px; width: 100%; object-fit: cover; border-radius: 12px; }
.home-hero .hero-note { padding: 14px; border-radius: 12px; }
.home-hero .hero-note strong { font-size: 1rem; line-height: 1.2; }
.home-hero .hero-note span { font-size: .8rem; line-height: 1.5; }
.home-proof-strip { padding: 24px 0 48px; }
.home-proof-strip .hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-proof-strip .hero-proof-card { padding: 16px 20px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; box-shadow: none; }
.home-proof-strip .hero-proof-card strong { color: #1e40af; font-size: 1rem; }
.home-proof-strip .hero-proof-card span { color: #475569; font-size: .85rem; }

@media (min-width: 1025px) and (max-width: 1439px) {
    body .site-header .nav-phone { display: none; }
    body .site-header .nav-inner { gap: 8px; }
    body .site-header .site-logo { margin-right: 0; }
    body .site-header .logo-text { font-size: 17px; max-width: 190px; }
    body .site-header .nav-link { padding: 10px 8px; font-size: 14px; }
    body .site-header .sub-menu { width: 280px; }
}
@media (max-width: 1024px) {
    body .site-header .nav-menu { height: 100dvh; max-height: 100dvh; overscroll-behavior: contain; }
    .page-banner { padding: 44px 0; margin-bottom: 48px; }
    .page-banner h1, .page-banner .banner-title { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; }
    .hero-grid, .about-hero-grid, .hero-form-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .home-hero .hero-copy { max-width: 760px; }
    .home-hero .hero-visual { display: none; }
    .home-hero h1 { max-width: 680px; }
    .home-hero .hero-copy > p { max-width: 680px; }
}
@media (max-width: 700px) {
    body .site-header .shared-container { padding: 0 16px; }
    body .site-header .nav-inner { gap: 10px; padding: 12px 0; }
    body .site-header .site-logo { flex-shrink: 1; min-width: 0; margin-right: 0; }
    body .site-header .logo-text { font-size: 15px; max-width: 175px; }
    body .site-header .logo-img { height: 34px; }
    body .site-header .nav-hamburger { flex-shrink: 0; margin-left: auto; }
    .container, .career-content, .service-content, .sitemap-content { width: calc(100% - 32px); }
    .page-banner { padding: 32px 0; margin-bottom: 36px; }
    .page-banner h1, .page-banner .banner-title { font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.18; overflow-wrap: break-word; }
    .home-hero.page-banner { padding: 32px 0; margin-bottom: 0; }
    .home-hero .eyebrow { font-size: 10px; padding: 8px 12px; letter-spacing: .035em; }
    .home-hero .hero-copy > p { font-size: .95rem; line-height: 1.65; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions a { width: 100%; text-align: center; }
    .home-proof-strip { padding: 20px 0 36px; }
    .home-proof-strip .hero-proof { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .home-proof-strip .hero-proof-card { padding: 12px 16px; }
    .hero-panel img, .about-hero-image { width: 100%; height: auto; max-height: 320px; object-fit: cover; }
    .form-panel { padding: 12px; width: 100%; }
    .consultation-form, .career-card { padding: 20px; }
    .form-grid, .service-picker, .career-grid { grid-template-columns: minmax(0, 1fr); }
    body .site-footer .footer-grid { grid-template-columns: minmax(0, 1fr); }
    body .site-footer .footer-bottom-inner { flex-direction: column; text-align: center; gap: 14px; }
    body .site-footer .footer-copyright { width: 100%; }
}
