@charset "UTF-8";
/* CSS Document */


/*ハンバーガーメニュー*/
/*-----------------------------------------*/

body.admin-bar .menu-toggle {
  margin-top: 32px; /* 管理バーの高さ分だけ余白を作る */
}

/* ハンバーガーボタン */
.menu-toggle {
  display: none; /* ←追加 */
  flex-direction: column; /* ←追加 */
  justify-content: center; /* ←追加 */
  align-items: center; /* ←追加 */
  position: fixed;
  top: 6px;
  right: 16px;
  background: #00ACEA;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  padding: 6px 5px 5px;
  color: #3F3F3F;
  z-index: 100000;
}

/*design1テンプレート用 */
.design1 .menu-toggle {
 display:flex; /* ←追加 */
}

/* ハンバーガーボタンの線 */
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
  margin: 4px 0; /* ←変更 */
  position: relative;
  top: 0; /* ←変更 */
}

/* メニューが開いた時のボタンアニメーション */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/*-----------------------------------------*/
/* メニュー本体（スクロール可能にする） */
/*-----------------------------------------*/
.menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh; /* 画面全体の高さ */
  background-color: rgba(239,239,239,0.87);
  padding-top: 94px;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 5;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
  
  /* ★ 追加部分 ★ */
  max-height: 100vh; /* 画面いっぱいまでの高さ */
  overflow-y: auto; /* スクロール可能にする */
  -webkit-overflow-scrolling: touch; /* スマホでスムーズスクロール */
}

/* スクロールバーのデザイン調整 */
.menu-container::-webkit-scrollbar {
  width: 8px; /* スクロールバーの幅 */
}

.menu-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2); /* スクロールバーの色 */
  border-radius: 4px;
}

.menu-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05); /* スクロールバーの背景 */
}

/* メニューが開いたとき */
.menu-container.open {
  transform: translateX(0);
}

/* カレント表示の時に文字を太く PCメニューのみ */
.pc-nav-list .current-menu-parent{
font-weight: bold!important;

}
.pc-nav-list .current_page_item{
font-weight: bold!important;
}

 
/*-----------------------------------------*/
/* オーバーレイ（メニュー開いた時の背景ぼかし） */
/*-----------------------------------------*/
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);/* 実際の背景色は.menu-container-2で指定 */
  display: none;
  z-index: 4;

}

/* オーバーレイがアクティブなとき */
.menu-overlay.active {
  display: block;
}

/*-----------------------------------------*/
/* メニューのリストデザイン */
/*-----------------------------------------*/
.primary-menu-class {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-menu-class li {
  position: relative;
  padding: 10px 20px 10px 36px;
  border-top: 1px solid #676767;
}

/* メニューのリンクスタイル */
.primary-menu-class li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  display: block;
  transition: color 0.2s;
}


.primary-menu-class li a:hover {
  color: #007BFF;
}

/*-----------------------------------------*/
/* サブメニュー */
/*-----------------------------------------*/

/* サブメニュー（初期は非表示） */
.primary-menu-class .sub-menu {
  display: none;
  margin-left: 20px;
}

/* サブメニューを開いたとき */
.primary-menu-class .sub-menu.open {
  display: block;
}

/* サブメニューのデザイン */
.primary-menu-class .sub-menu li {
  border-top: none;
  padding-left: 10px;
  margin-left: -69px;
  list-style: none;
  margin-top: 6px;
  margin-bottom: -5px;
}

/* サブメニュー開閉ボタン（▶） */
.primary-menu-class li .submenu-toggle {
  position: absolute;
  left: -3px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  top: 5px;
  color: #333;
}

/* サブメニュー開閉ボタン（▶） */
.primary-menu-class li li .submenu-toggle {
  position: absolute;
  left: -27px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  top: 5px;
  color: #333;
}


/* サブメニュー開閉ボタン（開いたときの▼） */
.primary-menu-class li .submenu-toggle.open {
  transform: rotate(90deg);
}








/*-----------------------------------------*/







@media screen and (min-width: 37.5em) {
  /*QOLP追加*/
  /*QOLP追加おわり*/
  .menu-toggle {
  /* [disabled]display: block!important; */
  }
}


/* レスポンシブ */
@media screen and (max-width: 768px) {
  
  /* ハンバーガーボタン */
.menu-toggle {
  display: flex;

}
  body.admin-bar .menu-toggle {
  margin-top: 46px; /* 管理バーの高さ分だけ余白を作る */
}
 
}
  


