/* チェックボックス非表示 */
.menu-checkbox {
  display: none;
}

/* バーガーアイコン */
.menu-button {
  box-sizing: border-box;
  position: absolute;
  top: 15px;
  right: 3%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #e62e8b;
  border-radius: 20px;
  width: 120px;
  height: 36px;
  cursor: pointer;
  z-index: 1020;
  gap: 5px;
}
.menu-icon{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.menu-icon span {
  display: block;
  width: 24px;
  height: 3px;
  background: #e62e8b;
  transition: 0.3s ease-in-out;
  border-radius: 2px;
}
.menu-text{
  color:#e62e8b;
  font-size:14px;
  font-weight:bold;
  letter-spacing:0.1em;
}

/* メニュー表示時の動作 */
.menu-checkbox:checked ~ .menu {
  top: 0;
}
.menu-checkbox:checked ~ .overlay {
  background: rgba(0, 0, 0, 0.5);
  visibility: visible;
  pointer-events: auto;
}
/* バーガーアイコンをバツに変形 */
.menu-checkbox:checked + .menu-button .menu-icon span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.menu-checkbox:checked + .menu-button .menu-icon span:nth-child(2){
  opacity:0;
}
.menu-checkbox:checked + .menu-button .menu-icon span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* ナビゲーションメニュー（上からスライド） */
.menu {
  box-sizing: border-box;
  position: fixed;
  top: calc(-100vh - 50px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 620px;
  width: 100%;
  height: 80dvh;
  overflow-y: auto;
  transition: top 0.4s ease-in-out;
  
  background: #e62e8b;
  border-radius: 30px;

  display: block;
  /* flex-direction: column;
  align-items: center;
  justify-content: flex-start; */
  padding: 40px 60px;
  z-index: 1001;
}
#menu-toggle:checked ~ .menu{
  top: 62px;
}
.menu_inner{
  width: 100%;
  height: 100%;
  padding: 0 30px;
  margin: 0;
}
.menu ul {
  position: relative;
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu ul li{
  width: 100%;
}
.menu ul li a{
  position: relative;
  display: block;
  width: 100%;
  color: #1d2088;
  text-decoration: none;
  font-size: 2.0rem;
  font-weight: 700;
  transition: 0.3s ease-in-out;
  margin-bottom: 0.5em;
  padding-left: 30px;
}
.menu ul li a::before{
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  background: #1d2088;
  border-radius: 50%;
  width: 20px;
  height: 20px;
}
.menu ul li a::after{
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  background: #fff;
  height: calc(12px / 2 * tan(60deg));
  width: 8px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.menu a:hover{
  opacity: 0.6;
}
/* ナビ画像 */
.navitem_img{
  display: block;
  width: auto;
  height: 40px;
  margin: 20px 0 10px;
}

@media screen and (max-width : 768px) {
  .menu-button{
    top: 12px;
  }
  .menu {
    width: 90%;
    height: 90dvh;
    right: 0;
    border-radius: 15px;
    padding: 15px 30px;
  }
  #menu-toggle:checked ~ .menu {
    top: 50px;
  }
  .bg_wht{
    padding: 30px 10px 30px 20px;
  }

  .menu ul li a{
    font-size: 1.8rem;
    padding-left: 20px;
    margin-bottom: 0.5em;
  }
  .menu ul li a::before{
    top: 7px;
    width: 15px;
    height: 15px;
  }
  .menu ul li a::after{
    top: 10px;
    left: 6px;
    height: calc(10px / 2 * tan(60deg));
    width: 5px;
  }
  .navitem_img{
    height: 30px;
  }

}



/* サブメニューのスタイル */
.menu ul li .submenu {
  padding: 0;
  margin: 0;
  width: 100%;
}
.menu ul li .submenu li a::before{
  content: "●";
  font-size: 1.4rem;
  vertical-align: middle;
  margin-right: 10px;
}
.menu ul li .submenu a{
  padding: 0 120px;
}

/* オーバーレイ（背景を暗くする） */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  z-index: 5;
  pointer-events: none;
}


