/* =====================================================
   SCROLL FIX – 最小パッチ
   既存CSS・デザインを一切壊さない
===================================================== */

/* 1) html / body のスクロールを強制的に解放 */
html,
body {
  position: static !important;
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 2) fixed で全面を塞いでいる疑いのある疑似要素を無効化 */
html::before,
html::after,
body::before,
body::after {
  position: static !important;
  height: 0 !important;
  pointer-events: none !important;
  content: none !important;
}

/* 3) ナビが閉じている時は絶対にスクロールを殺さない */
.global-nav:not(.active) {
  pointer-events: none !important;
}

/* 4) iOS / Chrome 共通の「見えない固定レイヤー」対策 */
body > * {
  max-height: none !important;
}

/* END */