/* Shared responsive refinements. Desktop rules deliberately stay in their source stylesheets. */
@media (max-width: 1100px) {
  .desktop-nav, .header-cta .btn:not(.mobile-only) { display: none; }
  .mobile-toggle { display: block; flex-shrink: 0; }
  .nav-wrap { padding-inline: 18px; gap: 12px; }
  .mobile-menu { max-height: calc(100svh - var(--header) - 12px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 1024px) {
  .container { width: min(var(--max), calc(100% - 40px)); }
  h1 { font-size: clamp(2.25rem, 4.8vw, 3.2rem); }
  .sec { padding-block: 56px; }
  .sec--tight { padding-block: 40px; }
  .page-intro, .hero:not(.hero--cinematic), .offer-hero { min-height: 0; padding-block: 48px; }
  .hero-grid, .service-hero, .concept-panel, .contact-layout, .sec-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sec-intro { margin-bottom: 28px; }
  .product-detail-shell { scroll-margin-top: calc(var(--header) + 16px); }
  .hero-grid > *, .contact-layout > *, .form-grid > *, .concept-panel > * { min-width: 0; }
  .content-grid, .about-rules, .cooperation-why, .offer-factors, .offer-decision { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-module { min-height: 0; }
  .offer-module span { margin-bottom: 18px; }
  .page-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .page-cta .btn-row { margin-top: 0; }
  .about-team { display: block; min-height: 0; width: calc(100% - 40px); max-width: var(--max); margin: 20px auto 0; border-radius: var(--r-xl); }
  .about-team__image { position: relative; z-index: -2; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 38%; }
  .about-team::after { display: none; }
  .about-team__content { position: relative; margin-top: -56px; padding: 56px 28px 28px; background: linear-gradient(180deg, transparent, var(--graphite) 56px); }
  .about-team > .about-team__content { width: 100%; }
  .about-team__title { font-size: clamp(2rem, 4.4vw, 3.2rem); }
  .about-team__note { margin-top: 16px; }
  /* Natural mobile flow: no sticky spacer or scroll-time video compositing. */
  .hero--cinematic { min-height: 0; padding: 0; }
  .hero__stage { position: relative; top: auto; min-height: 0; align-items: flex-start; }
  .hero__video { height: min(56.25vw, calc(100svh - var(--header) - 24px)); object-fit: contain; object-position: center top; transform: none; filter: none; }
  .hero__overlay { top: min(56.25vw, calc(100svh - var(--header) - 24px)); }
  /* Keep the copy stable while the video plays and the document scrolls. */
  .hero__copy {
    max-width: 100%; padding: calc(min(56.25vw, calc(100svh - var(--header) - 24px)) + 24px) 0 28px;
    opacity: 1; transform: none; transition: none;
  }
  .hero h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
  .hero .lead { font-size: 1rem; line-height: 1.6; margin-top: 16px; }
  .hero-kicker { margin-bottom: 16px; }
  .hero .btn-row { margin-top: 22px; }
  .industry-tabs, .concept-tabs { display: flex; flex-wrap: wrap; }
  .industry-tab, .concept-tab { width: auto; min-height: 44px; }
}
@media (min-width: 601px) and (max-width: 1024px) {
  .about-team { display: grid; grid-template-columns: minmax(0, 1fr); }
  .about-team__image { grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: 2 / 1; }
  .about-team::after { display: block; background: linear-gradient(180deg, transparent 35%, rgba(11,39,70,.45) 65%, var(--graphite)); }
  .about-team__content { grid-area: 1 / 1; align-self: end; margin-top: 0; padding: 28px; background: none; }
  .about-team__content .eyebrow { margin-bottom: 12px; }
  .about-team__title { max-width: 560px; }
  .btn-row { flex-direction: row; }
  .btn-row .btn { width: auto; }
  .home-work-grid, .content-mini-grid, .home-process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-work-card { min-height: 0; }
  .home-work-card:last-child:nth-child(odd), .content-mini:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .about-manifest, body .about-manifest, .about-contrast, .cooperation-models, .cooperation-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-contrast-card, .about-rule { min-height: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  h1, .page-intro h1 { font-size: clamp(2rem, 7.8vw, 2.65rem); }
  h2 { font-size: clamp(1.65rem, 6.5vw, 2.1rem); }
  h3 { overflow-wrap: anywhere; }
  .hero h1 { font-size: clamp(1.85rem, 7.5vw, 2.25rem); }
  .sec { padding-block: 40px; }
  .sec--tight { padding-block: 28px; }
  .page-intro, .hero:not(.hero--cinematic), .offer-hero { padding-block: 32px; }
  .sec-intro { gap: 14px; margin-bottom: 24px; }
  .lead { font-size: 1rem; line-height: 1.6; margin-top: 16px; }
  .eyebrow { max-width: 100%; font-size: .68rem; letter-spacing: .08em; padding: 8px 12px; margin-bottom: 16px; }
  .hero-kicker__text { font-size: .67rem; letter-spacing: .1em; }
  .hero-kicker__line { flex-shrink: 0; width: 24px; }
  .btn-row { flex-direction: column; gap: 10px; margin-top: 24px; }
  .btn { width: 100%; min-height: 48px; padding: 12px 20px; line-height: 1.35; text-align: center; }
  .btn--sm, .offer-mobile-detail .btn { min-height: 44px; }
  .mobile-toggle { width: 44px; height: 44px; }
  .language-switcher__button { min-height: 34px; }
  .nav-wrap { padding-inline: 16px; }
  .brand-cluster { gap: 8px; }
  .hero__copy { padding-bottom: 24px; }
  .hero__copy .btn-row { margin-top: 20px; }
  .home-work-card, .solution-card, .solution-card--compact, .content-card, .cooperation-card,
  .cooperation-choice__col, .cooperation-why__item, .about-contrast-card, .about-rule,
  .offer-factor, .offer-decision-card, .contact-aside, .form-card, .page-cta { padding: 22px; min-height: 0; }
  body .about-manifest > .reveal { min-height: 0; padding: 22px; }
  .about-manifest p { font-size: 1rem; line-height: 1.65; }
  .home-work-card__icon { margin-bottom: 16px; }
  .solution-card--primary, .solution-card--compact { grid-template-rows: auto 1fr; gap: 16px; }
  .solution-card .product-visual--photo { aspect-ratio: 16 / 10; min-height: 0; }
  .industry-panels, .concept-panels { padding: 12px; }
  .industry-panel, .concept-panel { padding: 18px; gap: 22px; border-radius: 20px; }
  .industry-panel h3, .concept-panel h2 { font-size: 1.5rem; }
  .industry-visual, .concept-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .concept-visual img { position: absolute; inset: 0; min-height: 0; }
  .industry-tech-list, .concept-tech-list { margin-block: 16px; }
  .content-board { min-height: 260px; }
  .ms--hero, .ms--product, .ms--app, .ms--gallery-lg { min-height: 300px; }
  .media-slot__content { inset-inline: 12px; bottom: 12px; padding: 12px; }
  .product-detail__hero, .product-detail__grid, .product-detail__service { padding: 22px; }
  .product-detail__visual { min-height: 0; aspect-ratio: 4 / 3; }
  .product-detail__block { padding-right: 0; }
  .about-team { width: calc(100% - 32px); margin-top: 16px; }
  .about-team__content { padding: 48px 22px 24px; margin-top: -48px; background: linear-gradient(180deg, transparent, var(--graphite) 48px); }
  .about-team__title { font-size: clamp(1.85rem, 7.5vw, 2.5rem); }
  .field input, .field select, .field textarea { min-width: 0; font-size: 16px; }
  .consent-row input { flex-shrink: 0; margin-top: 4px; }
  .file-picker-status, .footer-copy, .footer-bottom { overflow-wrap: anywhere; }
  .footer { padding-top: 36px; }
  .footer-grid { gap: 26px; }
  .footer .brand { width: 160px; height: 90px; }
  .footer-details { margin-top: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; margin-top: 28px; }
  .offer-comparison__feature-col { width: 28%; }
  .offer-comparison__package-col { width: 24%; }
  .offer-package strong { font-size: clamp(.6875rem, 3vw, .78rem); overflow-wrap: normal; }
  .offer-package__num { min-height: 24px; font-size: .625rem; }
  .offer-comparison tbody th { font-size: .75rem; line-height: 1.4; }
  .offer-mobile-detail p { font-size: .875rem; line-height: 1.55; }
  .mobile-rail-control { width: 44px; height: 44px; }
  .mobile-rail-controls { gap: 8px; }
  /* Keep existing swipe rails inside the page gutters; only the rail scrolls. */
  :is(.home-work-grid,.solutions-grid,.content-mini-grid,.home-process-flow,.about-manifest,.about-contrast,.about-rules,.view-grid,.product-catalog-grid,.product-help-grid,.product-purpose-grid,.product-combo-grid,.concept-goal-grid,.concept-process-grid,.concept-stack-grid,.concept-deliver-grid,.offer-modules,.offer-factors,.offer-decision,.start-boxes,.process-check-grid,.resp-layout,.cooperation-why,.cooperation-models,.cooperation-choice,.content-grid,.article-list) {
    width: 100%; margin-inline: 0; padding-right: 0; gap: 16px; scroll-padding-inline: 0;
  }
  :is(.home-work-grid,.solutions-grid,.content-mini-grid,.home-process-flow,.about-manifest,.about-contrast,.about-rules,.view-grid,.product-catalog-grid,.product-help-grid,.product-purpose-grid,.product-combo-grid,.concept-goal-grid,.concept-process-grid,.concept-stack-grid,.concept-deliver-grid,.offer-modules,.offer-factors,.offer-decision,.start-boxes,.process-check-grid,.resp-layout,.cooperation-why,.cooperation-models,.cooperation-choice,.content-grid,.article-list) > * { flex-basis: 88%; }
  .container:is(.article-list, .about-manifest),
  .container:is(.article-list, .about-manifest) + .mobile-rail-controls { width: calc(100% - 32px); margin-inline: auto; }
  .industry-tabs, .concept-tabs { flex-wrap: nowrap; }
}
@media (max-width: 375px) {
  .nav-wrap { padding-inline: 12px; }
  .brand { width: 100px; }
  .container, .container:is(.article-list, .about-manifest), .container:is(.article-list, .about-manifest) + .mobile-rail-controls { width: calc(100% - 28px); }
  .contact-aside, .form-card, .page-cta { padding: 18px; }
}
