@charset "utf-8";

/*==================================================
　5-2-1 3本線が×に
===================================*/
/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn {
  display: block;
  position: relative;
  /*ボタン内側の基点となるためrelativeを指定*/
  cursor: pointer;
  width: 60px;
  height:55px;
  z-index: 20;
    color:#fff;

}

@media screen and (min-width: 992px),
print {

  .openbtn {

  }

}

/*ボタン内側*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  /*アニメーションの設定*/
  position: absolute;
  left: 17px;
  height: 3px;
  border-radius: 2px;
  background:#fff;
  width: 45%;
}

.openbtn span:nth-of-type(1) {
  top:18px;
}

.openbtn span:nth-of-type(2) {
  top:26px;
}

.openbtn span:nth-of-type(3) {
  top:34px;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn.active span:nth-of-type(1) {
  top: 23px;
  left: 21px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
  /*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3) {
  top:35px;
  left: 21px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

@media screen and (min-width: 992px),
print {
    .openbtn span:nth-of-type(1) {
  top:8px;
}

.openbtn span:nth-of-type(2) {
  top:16px;
}

.openbtn span:nth-of-type(3) {
  top:24px;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn.active span:nth-of-type(1) {
  top: 13px;
  left: 21px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.openbtn.active span:nth-of-type(2) {
  opacity: 0;
  /*真ん中の線は透過*/
}

.openbtn.active span:nth-of-type(3) {
  top:25px;
  left: 21px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
}





