@charset "utf-8";
/* CSS Document */
/*==================================================
　5-2-8 3本線が横方向に回転して×に
===================================*/
/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn {
  /*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
  position: fixed;
  top: 15px;
  right: 10px;
  z-index: 9999;
  background: #bd6856;
  cursor: pointer;
  width: 40px;
  height: 40px;
 }
/*ボタン内側*/
.openbtn .openbtn-area {
  transition: all .6s; /*アニメーションの設定*/
  width: 40px;
  height: 40px;
}
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 11px;
  height: 3px;
  border-radius: 2px;
  background: #fbfbfb;
  width: 45%;
}
.openbtn span:nth-of-type(1) {
  top: 12px;
}
.openbtn span:nth-of-type(2) {
  top: 18.4px;
}
.openbtn span:nth-of-type(3) {
  top: 24.8px;
}
/*activeクラスが付与されると .openbtn-areaが360度回転し、その中の線が回転して×に*/
.openbtn.active .openbtn-area {
  transform: rotate(360deg);
}
.openbtn.active span:nth-of-type(1) {
  top: 12px;
  left: 12px;
  transform: translateY(6px) rotate(-45deg);
  width: 40%;
}
.openbtn.active span:nth-of-type(2) {
  opacity: 0;
}
.openbtn.active span:nth-of-type(3) {
  top: 24px;
  left: 12px;
  transform: translateY(-6px) rotate(45deg);
  width: 40%;
}
.mail-button {
  position: fixed;
  z-index: 9999;
  top:63px;
  right: 10px;
  
}
@media(min-width:769px) {
  .openbtn {
    transform: scale(1.8, 1.8);
    top: 40px;
    right: 50px;
     }
  .mail-button {
    top: 130px;
    right: 50px;
  }
  
  
  
  
}