.mobile-contact { display: none; }
@media (max-width: 1279px) {
  /* 固定表示（ハンバーガー／下部の問い合わせバー）を独立したレイヤーに載せ、スクロール中も画面に固定したまま動かさない。
     位置はスクロール量で切り替えず常に同じ（top: 12px）、位置のアニメーションもなし */
  .site-header, .site-header.is-scrolled {
    top: 12px;
    transition: none;
    transform: translate3d(-50%, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
  }
  .mobile-contact {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .mobile-contact { position: fixed; z-index: 95; inset: auto 0 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: #f0f8f6; border-top: 1px solid #cce5df; box-shadow: 0 -3px 16px rgba(24, 61, 64, .08); }
  .mobile-contact a { min-width: 0; min-height: 65px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; line-height: 1.4; transition: background-color .2s; }
  .mobile-contact__phone { color: var(--c-text-dark); background: #f0f8f6; }
  .mobile-contact small { display: block; font-size: 10px; font-weight: 500; }
  .mobile-contact strong { display: block; font-family: var(--ff-num); font-size: 16px; font-weight: 700; white-space: nowrap; }
  .mobile-contact__message { background: var(--c-teal); color: #fff; font-size: 14px; font-weight: 700; }
  .mobile-contact img, .mobile-contact svg { flex-shrink: 0; }
  .mobile-contact a:focus-visible { outline: 2px solid var(--c-text-dark); outline-offset: -4px; }
  .mobile-contact__phone:active { background: #dcefe9; }
  .mobile-contact__message:active { background: #087d79; }
  .page-top { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body:has(.global-nav.is-open) .mobile-contact, body:has(.video-modal[open]) .mobile-contact { visibility: hidden; pointer-events: none; }
}
@media (hover: hover) {
  .mobile-contact__phone:hover { background: #dcefe9; }
  .mobile-contact__message:hover { background: #087d79; }
}
@media (prefers-reduced-motion: reduce) { .mobile-contact a { transition: none; } }
/* Hide the page-top control at the site's smartphone breakpoint. */
@media (max-width: 767px) {
  .page-top { display: none; }
}
