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

/* バーガーアイコン */
.menu-button {
  box-sizing: border-box;
  position: absolute;
  top: 10px;
  right: 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  box-shadow: 2px 2px 0px 0px rgba(10, 45, 136, 1);
  border: 2px solid #0a2d88;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 20;
  gap: 6px;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  background: #0a2d88;
  transition: 0.3s ease-in-out;
  border-radius: 2px;
}

/* ナビゲーションメニュー（左からスライド） */
.menu {
  position: fixed;
  /* top: -100%; */
  top: -150%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  height: 100vh;
  background: url(../images/nav_bg.jpg) no-repeat center top / cover;
  transition: 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
}
.menu ul {
  position: relative;
  list-style: none;
  background: #fff;
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 30px;
  margin: 0;
}
.menu ul li{
  width: 100%;
  /* display: flex; */
  justify-content: center;
  padding: 10px 0;
}
.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;
}
.menu ul li a::before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  background: url(../images/nav_icon.svg) no-repeat;
  width: 16px;
  height: 16px;
  margin-right: 10px;
}
.nav_org{
  color: #fa7041;
  font-family: "Open Sans", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
}
.menu a:hover{
  opacity: 0.6;
}
/* ナビ画像 */
.navitem_img{
  display: block;
  width: auto;
  height: 24px;
  margin-bottom: 10px;
}
.navmenu_leaf01{
  position: absolute;
  top: -30px;
  right: 60px;
  width: 100px;
  height: auto;
}
.navmenu_leaf02{
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 180px;
  height: auto;
}
@media screen and (max-width : 768px) {
  .navmenu_leaf01{
    top: -30px;
    width: 80px;
  }
  .navmenu_leaf02{
    bottom: -60px;
    right: -20px;
    width: 120px;
  }
}



/* サブメニューのスタイル */
.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;
}

/* メニュー表示時の動作 */
.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 span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-checkbox:checked + .menu-button span:nth-child(2) {
  opacity: 0;
}
.menu-checkbox:checked + .menu-button span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}



@media (max-width: 768px) {
  /* .menu{top: -150%;} */
  .menu-button{
    top: 5px;
  }
  .menu ul{
    box-sizing: border-box;
    width: 90%;
    padding: 30px 20px;
  }
  .menu ul li a{
    font-size: 1.8rem;
    margin-bottom: 0.5em;
  }

}