/*========= ナビゲーションのためのCSS ===============*/

/*アクティブになったエリア*/
#drawer_nav.panelactive{
  position: fixed;
  z-index: 999;
  top: 0;
  width: 100%;
  height: 100vh;
}
/*丸の拡大*/
.circle_bg{
  position: fixed;
  z-index: 3;
  /*丸の形*/
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: bg-gradient 5s linear infinite alternate;
  background-color: var(--red);
  /*丸のスタート位置と形状*/
  transform: scale(0);/*scaleをはじめは0に*/
  right: 0;
  top: 0;
  transition: all .25s ease-in;
}
@keyframes bg-gradient{
  0% {background-position: 0 0;}
  100% {background-position: 100% 0;}
}
.circle_bg.circleactive{
  transform: scale(0);/*クラスが付与されたらscaleを拡大*/
}

/*ナビゲーションの縦スクロール*/
#drawer_nav__list{
  display: none;
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  z-index: 999; 
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#drawer_nav.panelactive #drawer_nav__list{
  display: block; /*クラスが付与されたら出現*/
}
/*ナビゲーション*/
#drawer_nav ul{
  opacity: 0;/*はじめは透過0*/
  /*ナビゲーション天地中央揃え※レイアウトによって調整してください。不必要なら削除*/
/*   position: absolute; */
  z-index: 999;
/*
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
*/
}
/*背景が出現後にナビゲーションを表示*/
#drawer_nav.panelactive ul{
  opacity:1;
}
/* 背景が出現後にナビゲーション li を表示※レイアウトによって調整してください。不必要なら削除*/
#drawer_nav.panelactive ul li{
  animation-name: gnaviAnime;
  animation-duration: 1s;
  animation-delay: 0.1s;/*0.1 秒遅らせて出現*/
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes gnaviAnime{
  0%{
    opacity: 0;
  }100%{
    opacity: 1;
  }
}
/*リストのレイアウト設定*/
#drawer_nav li{
  text-align: center; 
  list-style: none;
}
#drawer_nav li a{
  text-decoration: none;
  display: block;
}
/*========= ボタンのためのCSS ===============*/
.openbtn{
  position:fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;/*ボタンを最前面に*/
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background-color: var(--font-black);
  transition: all .3s;
}
.openbtn:hover{
  background-color: #555;
}
.openbtn.active{
  border: 1px solid #fff;
  background: url(../img/cmn/noise.gif) repeat top left / 150px;
}

/* ×に変化 */  
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14.5px;
  width: 50%;
  height: 1px;
  border-radius: 0;
  background-color: #fff;/* 線の色 */
}
.openbtn span:nth-of-type(1){
  top: 23px;  
}
.openbtn span:nth-of-type(2){
  top: 35px;
}
.openbtn.active span:nth-of-type(1){
  top: 23px;
  transform: translateY(6px) rotate(-45deg);
}
.openbtn.active span:nth-of-type(2){
  top: 35px;
  transform: translateY(-6px) rotate(45deg);
}
.openbtn.active span:nth-of-type(1),
.openbtn.active span:nth-of-type(2){
  left: 14.5px;
  width: 50%;
}


@media screen and (max-width: 650px){
  .openbtn{
    top: 10px;
    right: 12px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
  }
  .openbtn:hover{
    background-color: var(--font-black);
  }
  .openbtn.active{
    border: none;
    background: none;
  }
  .openbtn span{
    left: 15px;
    width: 44%;
    height: 2px;
  }
  .openbtn span:nth-of-type(1){
    top: 21px;  
  }
  .openbtn span:nth-of-type(2){
    top: 31px;
  }
  .openbtn.active span:nth-of-type(1){
    top: 20px;
  }
  .openbtn.active span:nth-of-type(2){
    top: 32px;
  }
  .openbtn.active span:nth-of-type(1),
  .openbtn.active span:nth-of-type(2){
    left: 14px;
  }
}

/* 追従メニュー */