@charset "utf-8";


.openbtn {
  display: block;
  position: relative;
  
  cursor: pointer;
  width: 60px;
  height: 40px;
  z-index: 999;

}




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

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

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

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



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


@media screen and (min-width: 992px),
print {
    
    .openbtn {
  height: 30px;

}
    

.openbtn span {
    height: 2px;
  background:#ffffff;
}
    
    
    .openbtn span:nth-of-type(1) {
  top: 0px;
}

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

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



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

  }  
    
    