@charset "utf-8";

/*========= ドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
/*pc表示*/
#g-nav {
  background:#fff;
  color:#2F3B49;
  font-size: 0.9rem;
  text-align: center;
}

/*ナビゲーションを横並びに*/
#g-nav ul{
  /*2階層目の基点にするためrelativeを指定*/
  position: relative;
  list-style: none;
  display: flex;
  justify-content: center;
}

/*2階層目以降は横並びにしない*/
#g-nav ul ul{
  display: block;
}

/*ナビゲーションのリンク設定*/
#g-nav ul li a{
  /*矢印の基点にするためrelativeを指定*/
  position: relative;
  display: block;
  text-decoration: none;
  color: #2F3B49;
  padding:20px 45px;
  transition:all .3s;
}

/*ナビゲーションのリンクカレント設定*/
#g-nav ul .cr a{
  color: #17A1B7;
}

#g-nav ul li li a{
  padding:20px;
}


/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/

#g-nav ul li.has-child > a::before{
  content:'';
  position: absolute;
  left:15px;
  top:25px;
  width:6px;
  height:6px;
  border-top: 1px solid #17A1B7;
  border-right:1px solid #17A1B7;
  transform: rotate(135deg);
}

#g-nav ul li.has-child dt {
  overflow: hidden;
  height: auto;
  margin:0px auto 0px auto;
  font-weight: normal;
}

/*== 2層目の設定 */
#g-nav ul li.has-child dl {
/*bootstrap_customCSSのdl設定の干渉を無効化*/
  margin-bottom: 0;
}

#g-nav li.has-child ul{
  /*絶対配置で位置を指定*/
  position: absolute;
  left:5%;
  top:37px;
  z-index: 4;
  /*子要素を横並びに*/    
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /*形状を指定*/
  background: rgba(255, 255, 255, 0.8);
  width:100%;
  /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
  /*アニメーション設定*/
  transition: all .3s;
}

  /*hoverしたら表示*/
#g-nav li.has-child:hover > ul{
  visibility: visible;
  opacity: 1;
}

  /*各ナビゲーション横幅*/
#g-nav li.has-child ul li{
  width:18%;
}

/*ナビゲーションaタグの形状*/
#g-nav li.has-child ul li a{
  color: #2F3B49;
}

#g-nav li.has-child ul li a:hover,
#g-nav li.has-child ul li a:active{
  background:transparent;
}


/*==ナビ内ロゴ*/
#g-nav .hamburgerMenuLogo{
  display: none;
}


/*==1200px以下の形状*/
/*==タブレット＆SP*/
@media screen and (max-width:1200px){
  /*==ナビ内ロゴ*/
  #g-nav .hamburgerMenuLogo {
    display: block;
    margin:40px auto 20px auto;
    padding-left:3%;
    width:200px;
  }

  #g-nav ul{
    display: block;
    padding-left: 0;
  }

  #g-nav li.has-child ul{
    position: relative;
    left:0;
    top:0;
    width:100%;
    visibility:visible;/*JSで制御するため一旦表示*/
    opacity:1;/*JSで制御するため一旦表示*/
    display: none;/*JSのslidetoggleで表示させるため非表示に*/
    transition:none;/*JSで制御するためCSSのアニメーションを切る*/
  }

  #g-nav li.has-child ul li{
    width:100%;
    text-align: center;
    background: #C8E678;
  }

  #g-nav li.has-child ul li dl{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
  }

  #g-nav li.has-child ul li dt{
    width:100%;
    height: auto;
    margin: 10px 0;
  }

  #g-nav li.has-child ul li dd{
    width:64%;
  }

  #g-nav ul li a{
    padding: 10px 20px;
    border-bottom:1px solid #BAD860;
  }

  #g-nav ul li li a{
    padding: 0;
  }

  /*矢印の位置と向き*/

  #g-nav ul li.has-child > a::before{
    top:17px;
    left:20px;
    transform: rotate(135deg);
  }

  #g-nav ul li.has-child.active > a::before{
    transform: rotate(-45deg);
  }

  /* 1200pxの時に下からふわっと現れる */
  #g-nav.navFadeUp {
    animation-name:fadeUpAnime;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
    opacity:0;
  }

}

  @keyframes fadeUpAnime {
    from {
      opacity: 0;
      transform: translateY(100px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
      }
    }


/*==================================================
/*クリックしたら背景が出現*/
/*===================================*/

/*========= ボタンのためのCSS ===============*/
.openbtn {
  display: none;
}

@media screen and (max-width:1200px){
  .openbtn{
    display: inline-block;
    position:fixed;
    z-index: 998;/*ボタンをローディングアニメの次に前面に*/
    top:10px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height:50px;
  }

/*×に変化*/	
  .openbtn span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    width: 45%;
  }

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

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

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

  .openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
  }

  .openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }

  .openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
  }
}


/*========= ナビゲーションのためのCSS ===============*/
@media screen and (max-width:1200px) {
  #g-nav{
    display: none;
  }

/*アクティブになったエリア*/
  #g-nav.panelactive{
    display: block;
    background: #C8E678;
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 99;
    top: 0;
    left:0;
    width:100%;
    height: 100vh;
    overflow-y: scroll;
  }

/*丸の拡大*/
  .circle-bg{
    position: fixed;
    z-index:3;
    /*丸の形*/
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #C8E678;
    /*丸のスタート位置と形状*/
    transform: scale(0);/*scaleをはじめは0に*/
    right:-50px;
    top:-50px;
    transition: all .6s;/*0.6秒かけてアニメーション*/
  }

  .circle-bg.circleactive{
    transform: scale(50);/*クラスが付与されたらscaleを拡大*/
  }
}
