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


/*ハンバーガーメニュー 画面全体にメニューが広がる*/
/*-----------------------------------------*/

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

/* ハンバーガーボタン */
.menu-toggle-2 {
  display: flex; /* ←追加 */
  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;
}

/* ハンバーガーボタンの線 */
.menu-toggle-2 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-2.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

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

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

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

#scroll-nav-list-2{
  display: flex;
  flex-direction: row;
  /* background-color: #00ACEA; */
  flex-wrap: wrap;
  max-width:1240px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  top: -100px;
}

#scroll-nav-list-2 > div{

width:25%;
min-width: 300px;
/* background-color: antiquewhite; */
margin-bottom: 20px;
padding-left: 100px; /* メニューテキスト量で調整 */
box-sizing:border-box;
}



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

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

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

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

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

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

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

.mido-menu-all-set h2{
border-bottom: #aaaaaa solid 1px;

}


.primary-menu-all-class li {
  position: relative;
  padding: 10px 20px 10px 0px;
  
}

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


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



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







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


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

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


