

.menubtn_wrap{
	display:block;
	padding:5px;
	/*background:#acc;*/
	background:#000;
	}

/* ハンバーガーアイコン */
.hamburger-icon {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 25px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2001;
}

/* ハンバーガーの線 */
.hamburger-icon span {
  width: 30px;
  height: 3px;
  /*background: #333;*/
  background:#fff;
  transition: transform 0.3s, opacity 0.3s;
  position: absolute;
}

/* 1本目（上の線） */
.hamburger-icon span:nth-child(1) {
  top: 0;
}

/* 2本目（中央の線） */
.hamburger-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

/* 3本目（下の線） */
.hamburger-icon span:nth-child(3) {
  bottom: 0;
}

/* フルスクリーンメニュー */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  z-index: 1901;/* PCの左右を隠す*/

}

/* メニューが開いたとき */
.menu.active {
  opacity: 1;
  visibility: visible;
}

/* メニューのリンク */
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.menu li {
  margin: 20px 0;
}

.menu a {
  color: #fff;
  font-size: 21px;
  text-decoration: none;
  transition: color 0.3s;
}

.menu a:hover {
  color: #ddd;
}
.hamburger-menu.active .hamburger-icon span {
  background: #fff;
}
/* ハンバーガーアイコンが「×」に変形 */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

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