.animate-in {
  position: relative; /* 位置指定 */
  animation: anime1 0.6s ease; /* アニメーション指定 */
}

@keyframes anime1 {
  0% {
    opacity: 0; /* 透明度指定 */
    top: 75px; /* 位置指定 */
  }
  100% {
    opacity: 1; /* 透明度指定 */
    top: 75px; /* 位置指定 */
  }
}

.invisible {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.visible {
  transition: opacity 0.5s ease;
  opacity: 1;
}

.drawer {
  display: none;
}

@media (max-width: 768px) {
  .drawer {
    display: block;
  }
}

.menu-area {
  height: 100vh;
  font-size: 18px;
  max-width: 400px;
  margin: 0 auto;
  padding: 70px 0 0 0;
  /* overflow: scroll; */
}

.menu-area > li:hover {
  border-bottom: solid 3px #cb292e;
}

.menu-area > li {
  margin: 16px;
  font-weight: 500;
  display: table;
}

.sub_menu p {
  font-size: 16px;
  margin: 10px 0px;
}

.sub_menu li {
  font-size: 14px;
  margin: 5px 30px;
}

.sub_menu a:hover {
  text-decoration: underline;
}
/* チェックボックスは非表示に */
.drawer-hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer-open {
  display: flex;
  height: 40px;
  width: 40px;
  margin: 2px 8px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100; /* 重なり順を一番上に */
  cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.drawer-open span,
.drawer-open span:before,
.drawer-open span:after {
  content: "";
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: black;
  transition: 0.5s;
  position: absolute;
}

/* 三本線のうち一番上の棒の位置調整 */
.drawer-open span:before {
  bottom: 8px;
}

/* 三本線のうち一番下の棒の位置調整 */
.drawer-open span:after {
  top: 8px;
}

#drawer-check:checked ~ .drawer-open {
  position: fixed;
  top: 64px;
  right: 0px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer-check:checked ~ .drawer-open span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer-check:checked ~ .drawer-open span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#drawer-check:checked ~ .drawer-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* メニューのデザイン*/
.drawer-content {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 100%; /* メニューを画面の外に飛ばす */
  z-index: 99;
  background: #daeddb;
  padding: 0;
  transition: 0.5s;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer-check:checked ~ .drawer-content {
  left: 0; /* メニューを画面に入れる */
}
