@charset "utf-8";

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

}

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

  .openbtn {
    display: none;
  }

}

/*ボタン内側*/
.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: 16px;
}

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

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

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

.openbtn.active span:nth-of-type(1) {
  top: 21px;
  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: 33px;
  left: 21px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}