/* Timetech V7 responsive layout corrections */
html, body { max-width: 100%; overflow-x: clip; }
img, video, canvas, iframe { max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 1200px) {
  .brand img { width: 270px; }
  .nav-links { gap: 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: clamp(3rem, 5vw, 4.7rem); }
}
@media (max-width: 1000px) {
  .nav { min-height: 86px; }
  .brand img { width: min(250px, 62vw); max-height: 70px; }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 86px; left: 0; right: 0;
    padding: 20px; background: rgba(255,255,255,.98); flex-direction: column;
    align-items: stretch; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft);
    max-height: calc(100vh - 86px); overflow-y: auto;
  }
  .hero-grid, .problem-grid, .founder, .two-col { grid-template-columns: minmax(0,1fr); }
  .hero { min-height: auto; }
  .hero-art, .hero-art img { min-height: 330px; }
  .division-grid, .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .package-grid, .work-grid { grid-template-columns: minmax(0,1fr); }
  .method { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .article-list, .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav { min-height: 72px; gap: 12px; }
  .brand img { width: min(205px, 64vw); max-height: 58px; object-fit: contain; }
  .nav-links.open { top: 72px; max-height: calc(100dvh - 72px); }
  .hero-grid { grid-template-columns: minmax(0,1fr); padding: 52px 0 58px; }
  .hero h1 { font-size: clamp(2.35rem, 10vw, 3rem); line-height: 1.02; overflow-wrap: anywhere; }
  .hero p { font-size: .98rem; }
  .hero-art, .hero-art img { min-height: 260px; max-height: 420px; border-radius: 22px; }
  .hero-art img { object-fit: contain; }
  .section { padding: 58px 0; }
  .page-hero { padding: 64px 0 45px; }
  .section-head { display: block; }
  .division-grid, .service-grid, .problem-list, .method, .article-list,
  .form-grid, .footer-grid { grid-template-columns: minmax(0,1fr); }
  .method div { border-right: 0; border-bottom: 1px solid var(--line); }
  .method div:last-child { border-bottom: 0; }
  .field.full { grid-column: auto; }
  .work-card img { height: 220px; }
  .footer { padding: 44px 0 24px; }
  .footer-grid { gap: 26px; }
  .footer-bottom { overflow-wrap: anywhere; }
  .table-wrap, .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  input, select, textarea, button { max-width: 100%; }
}
