@charset "UTF-8";
/* CSS Document */
.navigation {
 

  background-color: rgba(0, 0, 0, 0.51);
  position: fixed;
  width: 90%;
  height: 100vh;
}
#global_nav:active {
  display: block;
}
/*==================================================
　5-2-1 3本線が×に
===================================*/
/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.open {
  /*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
  position: fixed;
  right: 24px;
  top: 30px;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  width: 70px;
  height: 100px;
  border-radius: 5px;
}
/*ボタン内側*/
.open span {
  display: inline-block;
  transition: all .4s; /*アニメーションの設定*/
  position: absolute;
  left: 14px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  width: 45%;
}
#drawer_toggle.open span:nth-of-type(1) {
  top: 15px;
}
#drawer_toggle.open span:nth-of-type(2) {
  top: 27px;
}
#drawer_toggle.open span:nth-of-type(3) {
  top: 42px;
}
/*activeクラスが付与されると線が回転して×に*/
#drawer_toggle.open.active span:nth-of-type(1) {
  top: 18px;
  left: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}
#drawer_toggle.open.active span:nth-of-type(2) {
  opacity: 0; /*真ん中の線は透過*/
}
#drawer_toggle.open.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
#global_nav.navigation.open.active {
  display: block;
  z-index: 9999;
}
