/*----------------------custom-css-m-slide-menu--------------*/
.header.-sticky {
  z-index:99999999;
}
.header.-mobile .menu li > ul {
  gap: 4px;
    display: flex;
    flex-direction: column;
}

@media screen and (min-width:992px) {
  a.m-header-jbm {
      display: none;
  }
}

@media screen and (max-width:991px) {

  .right-part .icon-button, .mobile-hamburger.-right {
    min-width: 44px !important;
    width: 44px;
  }

  .m-header-jbm span {
      font-size: 0;
      background: url(/wp-content/themes/ohio-child/assets/custom-icon/JBM-LOGO.svg) no-repeat center / contain;
      width: 74px;
      height: 18px;
      vertical-align: middle;
      display: block;
  }
  a.m-header-jbm {
    padding: 0 10px;
  }

  .slide-in .slide-in-overlay .overlay, .is-mobile-menu .slide-in-overlay .overlay {
    height: 100vh !important;
    background-color: color-mix(in srgb, var(--clb-color-overlay) 95%, transparent) !important;

    z-index: 8;
  }

  /* 오버레이 컨테이너: 전체 화면 덮되 패널/좌측 분리 */
  .menu-slide-in-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    /* 패널 폭 변수 (원래 쓰던 값으로 조정 가능) */
    --panel-w: min(86vw, 360px);
    touch-action: none;            /* 빈영역 스와이프 차단 */
    
  }
  .menu-slide-in-overlay.visible { display: block; height:100vh !important;}
  .slide-in .slide-in-overlay, .is-mobile-menu .slide-in-overlay {
    height: 100vh !important;
  }

  /* 오른쪽 고정 패널(= holder를 패널로 사용) */
  .menu-slide-in-overlay .holder {
    width:70% !important;
    height: 100vh !important;
    position: fixed !important;
    z-index:9 !important;
    top: 0; right: 0; bottom: 0;
    width: var(--panel-w);
    background: #fff;               /* 필요 시 유지 */
    overflow: auto;                 /* 패널 내부만 스크롤 */
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    box-shadow: -12px 0 24px rgba(0,0,0,.18); /* 슬라이드 느낌 */
  }
  /* 왼쪽 빈영역을 덮는 ‘투명’ 차단 레이어 */
  .menu-slide-in-overlay .overlay {
    position: fixed !important;
    top: 0; bottom: 0; left: 0;
    right: var(--panel-w);          /* 패널을 제외한 나머지 */
    background: transparent;        /* 아래 레이어 ‘보이게’ 유지 */
    pointer-events: auto;
    height:100vh;
  }
  /* 상단 close-bar가 있다면 패널 안에서 정렬되도록 (선택) */
  .menu-slide-in-overlay .close-bar {
    position: sticky; top: 0; 
    z-index: 99;
    background: inherit;
    width: 80px;
  }

  /* 바디 잠금 (JS에서 .body-lock 토글) */
  .body-lock {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }
  button.icon-button.-overlay-button {
    margin-right: -8px;
  }

  .wpml-ls-legacy-list-horizontal a {
    font-size:18px;
  }
  .wpml-ls-legacy-list-horizontal {
    padding: 32px 8px;
  }

  /*-------슬라이드 JBM 매뉴----*/
  .menu-jbm {
    margin:0 6px 16px -3px !important;
  }
  .menu-jbm a {
    min-height: 2.8rem !important;
  }
  .menu-jbm span {
      width: 120px !important;
      height: 20px !important;
  }
  .header ul#mobile-menu ul.menu-depth-1.sub-menu a span {
        color: var(--basic-white);
        font-weight:600;
        font-size: 22px;
        margin-bottom: 0;
  }
  .header ul#mobile-menu ul.menu-depth-1.sub-menu a {
      margin-bottom:0;
  }
  .has-submenu.active ul.menu-depth-1.sub-menu {
      margin-bottom: 40px;
  }
  ul.menu-depth-1.sub-menu {
      border-left: 1px solid;
      padding-left: 0 !important;
      margin-left: 20px !important;
  }
  .header.-mobile .menu li.active > a {
      background-color: unset;
  }

  .menu-slide-in-overlay .holder {
      display: flex;
      flex-direction: column;
  }
  .menu-slide-in-overlay .copyright {
      margin-top: auto;
      padding: 0 12px;
  }
  .menu-slide-in-overlay .copyright p {
      font-size:10px;
      margin-bottom:80px;
      font-weight: 500;

  }
  .header.-mobile .menu li a {
    padding:0 16px;
    margin-bottom: 14px;
  }



}


/*----------------------//custom-css-m-slide-menu--------------*/