@charset "utf-8";
/* CSS Document */
.hamburgerBox{
	position: absolute;
	width: 60px;
  height: 70px;
	right: 2vw;
}
.hamburger{
  position: relative;/*ボタン内側の基点となるためrelativeを指定*/
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: block;
	z-index: 100000;

}

/*ボタン内側*/
.hamburger span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 0;
      right:0;
    height: 3px;
    border-radius:0px;
  background: #0fa8df;
    width: auto;
  }

.hamburger span:nth-of-type(1) {
  top:21px; 
}

.hamburger span:nth-of-type(2) {
  top:32px;
  margin-left: 20%;
}

.hamburger span:nth-of-type(3) {
  top:43px;
  margin-left: 35%;
}

/*activeクラスが付与されると線が回転して×に*/
.hamburger.active span{background: #FFFFFF;}
.hamburger.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 80%;
}

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

.hamburger.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 80%;
  margin-left: 0;
}
/*--------------SPスタイル--------------*/
@media screen and (max-width:750px){
	.hamburgerBox{
		width: 40px;
		height: 45px;
	}
	.hamburger span{
		height: 1px;
	}
	.hamburger span:nth-of-type(1){
		top: 25%;
	}
	.hamburger span:nth-of-type(2) {
    top: 45%;
}
	.hamburger span:nth-of-type(3){
		top:65%;
	}
}
