/* ハンバーガーメニューに関するCSS */

/* チェックボックスを非表示にする */
.drawer_hidden {
  display: none;
}

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

  @media screen and (min-width: 961px) {
    /* pc */
    margin-right: 50px;
  }
  @media screen and (max-width: 960px) {
    /* tab */
    margin-right: 50px;
  }
  @media screen and (max-width: 520px) {
    /* phone */
    margin-right: 50px;
  }
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: "";
  display: block;
  height: 2.5px;
  width: 35px;
  border-radius: 5px;
  /* background: #333; */
  transition: 0.5s;
  position: absolute;

  @media screen and (min-width: 961px) {
    /* pc */
  }
  @media screen and (max-width: 960px) {
    /* tab */
  }
  @media screen and (max-width: 520px) {
    /* phone */
  }
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 12px;

  @media screen and (min-width: 961px) {
    /* pc */
  }
  @media screen and (max-width: 960px) {
    /* tab */
  }
  @media screen and (max-width: 520px) {
    /* phone */
  }
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 12px;

  @media screen and (min-width: 961px) {
    /* pc */
  }
  @media screen and (max-width: 960px) {
    /* tab */
  }
  @media screen and (max-width: 520px) {
    /* phone */
  }
}

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

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

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

  @media screen and (max-width: 1800px) {
    /* phone */
    height: 2500px;
  }
  @media screen and (min-width: 1801px) and (max-width: 2400px) {
    /* desktop */
    height: 1800px;
  }
  @media screen and (min-width: 2401px) {
    /* surface */
    height: 2500px;
  }
}

/* メニュー黒ポチを消す */
.nav_list {
  list-style: none;
}

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

.marginNav{
  @media screen and (max-width: 1800px) {
    /* phone */
    margin-top: 100px;
  }
  @media screen and (min-width: 1801px) and (max-width: 2400px) {
    /* desktop */
    margin-top: 100px;
  }
  @media screen and (min-width: 2401px) {
    /* surface */
    margin-top: 200px;
  }
}
