/*========= ナビゲーションのための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: linear-gradient(90deg,#ffe9e0 0%,#f7f7eb 50%,#ccf1f2 90%) 0 /200% 100%;
  /*丸のスタート位置と形状*/
  transform: scale(0);/*scaleをはじめは0に*/
  right: 0px;
  top: 0px;
  transition: all .25s ease-in;
}
@keyframes bg-gradient {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}
.circle_bg.circleactive{
  transform: scale(50);/*クラスが付与されたら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: 18px;
  right: 18px;
  z-index: 9999;/*ボタンを最前面に*/
  cursor: pointer;
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background: var(--green);
}
.g_nav.fixed .openbtn{
  top: 10px;
  width: 60px;
  height: 60px;
  border-radius: 30px;
}
/* ×に変化 */  
.openbtn span{
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 27px;
  width: 44%;
  height: 2px;
  border-radius: 0;
  background-color: #fff;
}
.openbtn.active{
  background: var(--green);
}
.openbtn.active span{
  background-color: #fff;
}
.openbtn span:nth-of-type(1){
  top: 42px;  
}
.openbtn span:nth-of-type(2){
  top: 56px;
}
.openbtn.active span:nth-of-type(1){
  top: 43px;
  transform: translateY(6px) rotate(-45deg);
}
.openbtn.active span:nth-of-type(2){
  top: 55px;
  transform: translateY(-6px) rotate(45deg);
}
.openbtn.active span:nth-of-type(1),
.openbtn.active span:nth-of-type(2){
  left: 27px;
  width: 44%;
}

@media screen and (max-width: 650px){
  .openbtn{
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
  }
  .openbtn span{
    left: 16px;
    width: 44%;
  }
  .openbtn span:nth-of-type(1){
    top: 24px;  
  }
  .openbtn span:nth-of-type(2){
    top: 35px;
  }
  .openbtn.active span:nth-of-type(1){
    top: 23px;
  }
  .openbtn.active span:nth-of-type(2){
    top: 35px;
  }
  .openbtn.active span:nth-of-type(1),
  .openbtn.active span:nth-of-type(2){
    left: 16px;
  }
}

/* 追従メニュー */
.g_nav.fixed .openbtn span{
	left: 16px;
	width: 44%;
}
.g_nav.fixed .openbtn span:nth-of-type(1){ top: 24px; }
.g_nav.fixed .openbtn span:nth-of-type(2){ top: 35px; }