@charset "UTF-8";

/* ---------------------------------------------------------------------------
   member-hamburger.css
   出所: 旧 WPCode スニペット560「ハンバーガーメニュー（メンバー専用）」の <style>。
   内容は変更していない。
   --------------------------------------------------------------------------- */

.mh-wrapper{
  position:relative;
  z-index:9999;
  font-family:"M PLUS 1p","Mplus 1",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

/* ハンバーガーアイコン（共通） */
.mh-hamburger-icon{
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  width:32px;
  height:26px;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
}
.mh-hamburger-icon span{
  display:block;
  width:100%;
  height:3px;
  border-radius:2px;
  background:#ffffff !important; /* PC/SPとも白 */
}

/* SP: 50x50 / 背景 #0097D7 */
@media (max-width:1024px){
  .mh-wrapper.sp .mh-hamburger-icon.sp{
    width:50px;
    height:50px;
    background:#0097D7;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0;
  }
  .mh-wrapper.sp .mh-hamburger-icon.sp span{ width:24px; }
}

/* メニュー本体 */
.mh-menu{
  background:#fff;
  color:#999;
  box-shadow:0 0 24px rgba(0,0,0,.18);
}

/* ヘッダー */
.mh-menu-header{
  height:56px;
  display:flex;
  align-items:center;
  padding:0 12px;
  border-bottom:1px solid #EDEDED;
  background:#fff;
}
.mh-menu-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  gap:12px;
}
.mh-menu-header__left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.mh-menu-header__logo-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  flex:0 0 auto;
}
.mh-menu-header__site-logo{
  display:block;
  width:120px;
  height:auto;
}
/* SPロゴ 60*27 */
@media (max-width:1024px){
  .mh-menu-header__site-logo{
    width:60px !important;
    height:27px !important;
    object-fit:contain !important;
  }
}
.mh-menu-header__title{
  font-size:12px;
  font-weight:700;
  color:#111;
  line-height:1.2;
  white-space:normal;
  overflow:hidden;
}

/* 閉じる（×）ボタン：グレー固定 */
.mh-close-menu{
  border:none;
  background:transparent;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  padding:0 4px;
  color:#9a9a9a !important; /* ★グレーに固定 */
}

/* メニューリスト */
.mh-menu-list{
  list-style:none;
  margin:0 20px 12px;
  padding:0;
  font-size:14px;
  color:#999;
}
.mh-menu-list > li{ border-bottom:1px solid #E2E2E2; }
.mh-menu-list > li > a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  text-decoration:none;
  color:#999;
}
.mh-menu-list > li.current-menu-item > a,
.mh-menu-list > li.current_page_item > a,
.mh-menu-list > li.current-menu-ancestor > a,
.mh-menu-list > li.current-menu-parent > a{
  color:#000;
  font-weight:700;
}
.mh-menu-list li.menu-item-has-children > a{ cursor:pointer; }

.mh-menu-list .sub-menu{
  list-style:none;
  margin:0;
  padding:0 0 8px 16px;
  display:none;
  font-size:13px;
  color:#999;
}
.mh-menu-list .sub-menu li a{
  padding:6px 0;
  text-decoration:none;
  color:#999;
  display:block;
}
.mh-menu-list .sub-menu.active{ display:block; }

.mh-submenu-toggle{
  margin-left:8px;
  font-size:16px;
  color:#999;
}

/* 検索フォーム（区切り線削除：PC/SP共通） */
.mh-search{
  padding:12px 20px 18px;
  border-top:none !important;
}
.mh-search__form{
  position:relative;
  display:flex;
  align-items:center;
  background:#f3f4f6;
  border-radius:999px;
  padding:4px 10px;
  border:none;
  box-shadow:none;
}
.mh-search__input{
  border:none;
  background:transparent;
  width:100%;
  font-size:13px;
  padding:4px 6px;
  outline:none;
  box-shadow:none;
  color:#999;
}
.mh-search__button{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mh-search__icon{ font-size:16px; color:#999; }

.mh-sr-only{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* オーバーレイ（共通） */
.mh-overlay{
  position:fixed;
  left:0;
  right:0;
  background:rgba(0,0,0,.36);
  opacity:0;
  visibility:hidden;
  transition:opacity .3s ease;
  z-index:-1;
  top:0;
  bottom:0;
}
.mh-overlay.active{
  opacity:1;
  visibility:visible;
  z-index:10000;
}

html.mh-menu-open,
body.mh-menu-open{
  overflow:hidden;
  overscroll-behavior:contain;
}

/* SP: 上からスライド */
.mh-wrapper.sp{ display:block; --mh-sp-height:80vh; }

.mh-wrapper.sp .mh-menu.sp{
  position:fixed;
  left:0; right:0; top:0;
  height:var(--mh-sp-height);
  transform:translateY(-100%);
  overflow:hidden;
  transition:none;
  z-index:10001; /* overlayより上 */
}
.mh-wrapper.sp .mh-menu.sp.active{ transform:translateY(0); }

/* ★SPオーバーレイ領域を小さく：メニューの“下”だけ覆う */
.mh-wrapper.sp .mh-overlay.sp{
  top: var(--mh-sp-height) !important;
  bottom: 0 !important;
}

/* PC: 右からスライド */
.mh-wrapper.pc{
  display:none;
  --mh-pc-width:650px;
}
@media (min-width:1025px){
  .mh-wrapper.pc{ display:block; }
  .mh-wrapper.sp{ display:none; }
  .mh-wrapper.pc .mh-menu-list{ font-size:18px; }
  .mh-wrapper.pc .mh-menu-list .sub-menu{ font-size:16px; }
  .mh-menu-header__title{ font-size:13px; }
}

.mh-wrapper.pc .mh-menu.pc{
  position:fixed;
  top:0; right:0;
  width:var(--mh-pc-width);
  height:100vh;
  transform:translateX(100%);
  transition:none;
  overflow-y:auto;
  padding-top:0;
  z-index:10001; /* overlayより上 */
}
.mh-wrapper.pc .mh-menu.pc.active{ transform:translateX(0); }

/* PC overlay（メニュー幅分だけ右を空ける） */
.mh-wrapper.pc .mh-overlay.pc{
  right:var(--mh-pc-width);
}
