/* Smartphone-only refinement for the hero business map. */
@media (max-width: 760px) {
  .hero-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-height: 0;
    margin-top: 12px;
    padding: 18px 0 4px;
    transform: none;
  }

  .hero-visual .orbit {
    display: none;
  }

  .visual-core {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    width: 128px;
    height: 128px;
    margin: 0 auto 8px;
    border-width: 7px;
    transform: none;
  }

  .visual-core strong {
    font-size: 31px;
  }

  .visual-core span {
    margin-top: 6px;
    font-size: 9px;
  }

  .visual-card,
  .card-telecom,
  .card-sales,
  .card-event {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    min-height: 116px;
    padding: 15px 14px;
    border: 1px solid rgba(8, 42, 87, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(8, 42, 87, 0.1);
  }

  .visual-card::after {
    display: none;
  }

  .visual-card strong {
    font-size: 15px;
    line-height: 1.45;
  }

  .visual-card small {
    font-size: 10px;
    line-height: 1.55;
  }

  .card-number {
    margin-bottom: 7px;
  }

  .card-event {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .hero-tags {
    gap: 8px;
    margin-top: 28px;
  }

  .hero-tags span {
    padding: 7px 12px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .hero-visual {
    grid-template-columns: 1fr;
  }

  .card-event {
    grid-column: auto;
  }
}

/* Detailed typography refinements requested during review. */
html body .hero-visual .card-number {
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.16em !important;
}

html body .hero-visual .visual-card strong {
  font-size: 18px !important;
  line-height: 1.45 !important;
}

html body .hero-visual .visual-card small {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

html body .hero-tags span {
  padding: 10px 18px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

html body .service-card li {
  font-size: 14px !important;
  line-height: 1.85 !important;
}

html body .strength-grid span {
  font-size: 16px !important;
  line-height: 1.4 !important;
}

html body .strength-grid p {
  font-size: 15px !important;
  line-height: 1.9 !important;
}

html body .company-table dt {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

html body .company-table > div:first-child dd {
  color: #445972 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

html body .contact-route p {
  font-size: 14px !important;
  line-height: 1.9 !important;
}

/* Layout fixes after mobile preview review. */
html body .company-lead,
html body .people-copy > p:not(.section-label),
html body .contact-box > div:last-child > p,
html body .intro-copy > p:not(.review-note) {
  max-width: none !important;
}

@media (max-width: 760px) {
  html body .service-card h3 {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    font-size: 24px !important;
    line-height: 1.45 !important;
  }

  html body .service-card > p:not(.service-index, .review-note) {
    min-height: auto !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  html body .section h2,
  html body .intro h2,
  html body .people-copy h2 {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body .company-lead,
  html body .people-copy > p:not(.section-label),
  html body .contact-box > div:last-child > p,
  html body .intro-copy > p:not(.review-note) {
    width: 100% !important;
    max-width: none !important;
  }

  html body .company-table > div {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile menu overlay fix. */
@media (max-width: 760px) {
  html body.menu-open {
    overflow: hidden !important;
  }

  html body.menu-open .draft-bar {
    display: none !important;
  }

  html body.menu-open .site-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 1003 !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(220, 229, 239, 0.95) !important;
  }

  html body.menu-open .header-inner {
    position: relative !important;
    z-index: 1004 !important;
    min-height: 76px !important;
  }

  html body .global-nav {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1001 !important;
    min-height: 100dvh !important;
    padding: 112px 28px 48px !important;
    background: #ffffff !important;
  }

  html body .global-nav.open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  html body .global-nav a {
    width: min(100%, 280px) !important;
    padding: 8px 0 !important;
    color: #082a57 !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  html body .global-nav .nav-cta {
    margin-top: 6px !important;
    padding: 16px 28px !important;
    color: #ffffff !important;
    font-size: 18px !important;
  }

  html body.menu-open .brand,
  html body.menu-open .menu-button {
    position: relative !important;
    z-index: 1005 !important;
  }
}

/* Contact heading line-break refinement. */
@media (max-width: 760px) {
  html body .contact-box h2 {
    max-width: 7em !important;
    font-size: clamp(38px, 10.2vw, 44px) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.04em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-wrap: auto;
  }
}

/* Final mobile headline balance pass. */
@media (max-width: 760px) {
  html body .hero h1 {
    font-size: clamp(44px, 12.5vw, 52px) !important;
    line-height: 1.12 !important;
  }

  html body .intro h2 {
    font-size: clamp(34px, 9.2vw, 36px) !important;
    line-height: 1.35 !important;
  }

  html body .services .section-heading h2 {
    max-width: 8.2em !important;
    font-size: clamp(36px, 10vw, 44px) !important;
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}

/* Hard-fixed mobile headline rendering. */
@media (max-width: 760px) {
  html body .hero h1 {
    font-size: 0 !important;
    line-height: 0 !important;
  }
  html body .hero h1::before {
    display: block;
    color: #082a57;
    content: "現場を動かす。";
    font-size: clamp(46px, 12vw, 52px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.05em;
  }
  html body .hero h1::after {
    display: block;
    color: #0f6fd6;
    content: "人で支える。";
    font-size: clamp(46px, 12vw, 52px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.05em;
  }

  html body .intro h2,
  html body .services .section-heading h2,
  html body .people-copy h2,
  html body .contact-box h2 {
    font-size: 0 !important;
    line-height: 0 !important;
  }

  html body .intro h2::before {
    display: block;
    color: #082a57;
    content: "任された業務を、\A現場で前に\A進める会社。";
    white-space: pre;
    font-size: clamp(36px, 9.5vw, 40px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.04em;
  }

  html body .services .section-heading h2::before {
    display: block;
    color: #082a57;
    content: "業務プロセスを、\A現場で動かす。";
    white-space: pre;
    font-size: clamp(38px, 10vw, 44px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.04em;
  }

  html body .people-copy h2::before {
    display: block;
    color: #ffffff;
    content: "一緒に動き、\A一緒に成長する。";
    white-space: pre;
    font-size: clamp(36px, 9.4vw, 40px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.04em;
  }

  html body .contact-box h2::before {
    display: block;
    color: #082a57;
    content: "仕事の相談も、\A働く相談も。";
    white-space: pre;
    font-size: clamp(38px, 10vw, 44px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.04em;
  }
}

@media (min-width: 761px) {
  html body .hero h1 {
    font-size: clamp(54px, 6.2vw, 82px) !important;
  }

  html body .people-copy h2 {
    font-size: clamp(42px, 4.2vw, 52px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.04em !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html body .contact-box h2 {
    font-size: 0 !important;
    line-height: 0 !important;
  }

  html body .contact-box h2::before {
    display: block;
    color: #082a57;
    content: "仕事の相談も、\A働く相談も。";
    white-space: pre;
    font-size: clamp(38px, 3.2vw, 44px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.05em;
  }
}
