/* ナビゲーションボタン */
.openbtn {
  position: relative;
  background: #44ba83;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 100px;
}

@media screen and (min-width: 1200px) {
  .openbtn {
    display: none;
  }
}

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

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

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

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

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

.openbtn.active span:nth-of-type(1) {
  top: 13px;
  left: 14px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
  border-radius: 2px;
  z-index: 2500;
}

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

.openbtn.active span:nth-of-type(3) {
  top: 25px;
  left: 14px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
  border-radius: 2px;
  z-index: 2500;
}

/* レスポンシブ */
@media screen and (min-width: 768px) {
  .openbtn {
    width: 56px;
    height: 56px;
  }

  .openbtn span {
    left: 15px;
  }

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

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

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

  /* ばつ */
  .openbtn.active span:nth-of-type(1) {
    top: 20px;
    left: 20px;
    z-index: 2500;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 32px;
    left: 20px;
    z-index: 2500;
  }
}
