@charset "utf-8";
/* CSS Document */
/*===========================================================*/
/*機能編  5-1-1 ドロップダウンメニュー（上） */
/*===========================================================*/
/*========= ナビゲーションドロップダウンのためのCSS ===============*/
/*ナビゲーションを横並びに*/
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}
/*2階層目以降は横並びにしない*/
nav ul ul {
  display: block;
}
/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li {
  position: relative;
}
/*ナビゲーションのリンク設定*/
nav ul li a {
  display: block;
  text-decoration: none;
  color: #111;
  padding: 20px 25px;
  transition: all .3s;
}
nav ul li li a {
  padding: 10px 35px;
}
#g-nav {
  margin-left: auto;
}
@media screen and (max-width:1200px) {
  nav ul li a {
    padding: 20px;
  }
  nav ul li li a {
    padding: 10px 20px;
  }
}
nav ul li a:hover {
  color: #fff;
}
/*==矢印の設定*/
/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 30px;
  width: 6px;
  height: 6px;
  border-top: 2px solid #4bcc33;
  border-right: 2px solid #4bcc33;
  transform: rotate(135deg);
}
@media screen and (max-width:1279px) {
  nav ul li.has-child::before {
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
  }
}
/*== 2・3階層目の共通設定 */
/*下の階層を持っているulの指定*/
nav li.has-child ul {
  /*絶対配置で位置を指定*/
  position: absolute;
  left: 0;
  top: 62px;
  z-index: 4;
  /*形状を指定*/
  background: #4bcc33;
  width: 180px;
  /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
  /*アニメーション設定*/
  transition: all .3s;
}
/*hoverしたら表示*/
nav li.has-child:hover > ul, nav li.has-child ul li:hover > ul, nav li.has-child:active > ul, nav li.has-child ul li:active > ul {
  visibility: visible;
  opacity: 1;
}
/*ナビゲーションaタグの形状*/
nav li.has-child ul li a {
  color: #fff;
  border-bottom: solid 1px rgba(255,255,255,0.6);
}
nav li.has-child ul li:last-child a {
  border-bottom: none;
}
nav li.has-child ul li a:hover, nav li.has-child ul li a:active {
  background: rgba(255, 255, 255, 0.2);
}
/*==960px以下の形状*/
@media screen and (max-width:1279px) {
  nav {
    padding: 0;
  }
  nav ul {
    display: block;
  }
  nav ul li a {
    border-bottom: 1px solid #111;
  }
  nav ul li.has-child::before {
    /*display: none;*/
  }
  nav ul li.has-child {
    position: relative;
  }
  /*矢印の位置と向き*/
  nav ul li.has-child::before {
    top: 20px;
    left: auto;
    right: 8px !important;
  }
  nav ul ul li.has-child::before {
    transform: rotate(135deg);
    left: 20px;
  }
  nav ul li.has-child.active::before {
    transform: rotate(-45deg);
  }
  nav ul li.has-child ul li {
    text-indent: 8px;
  }
  nav ul li.has-child ul li a:before {
    content: "-";
    top: 18px;
    left: 0;
    margin-right: 8px;
  }
  nav ul li.has-child.active ul li:last-child {
    border-bottom: 1px solid #111;
  }
}
/*==================================================
機能編 　5-1-11 クリックしたらナビが上から下に出現
===================================*/
@media screen and (max-width:1279px) {
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    opacity: 0;
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: -999%;
    left: 0;
    width: 100%;
    background: #4bcc33;
    /*動き*/
    transition: all 0.6s;
  }
  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive {
    opacity: 1;
    top: 0;
  }
  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh; /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #4bcc33;
  }
  /*ナビゲーション*/
  #g-nav ul {
    /*ナビゲーション天地中央揃え*/
    width: 90%;
    margin: 100px auto 0 auto;
  }
  #g-nav ul ul {
    width: 100%;
    margin: 0;
  }
  /*プルダウンナビのCSS*/
  #g-nav ul 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のアニメーションを切る*/
    transform: none;
  }
  /*リストのレイアウト設定*/
  #g-nav li {
    list-style: none;
    text-align: left;
  }
  #g-nav li a {
    color: #111;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
}
/*==================================================
　機能編 5-2-7 3本線が奥行きを持って回転して×に
===================================*/
.g-nav-openbtn {
  display: none;
}
@media screen and (max-width:1279px) {
  .g-nav-openbtn {
    display: block;
    position: fixed;
    z-index: 9999; /*ボタンを最前面に*/
    top: 20px;
    right: 10px;
    cursor: pointer;
    width: 50px;
    height: 50px;
  }
  /*ボタン内側*/
  .g-nav-openbtn .openbtn-area {
    transition: all .4s;
  }
  .g-nav-openbtn span {
    display: inline-block;
    transition: all .4s; /*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #111;
    width: 45%;
  }
  .g-nav-openbtn span:nth-of-type(1) {
    top: 15px;
  }
  .g-nav-openbtn span:nth-of-type(2) {
    top: 23px;
  }
  .g-nav-openbtn span:nth-of-type(3) {
    top: 31px;
  }
  /*activeクラスが付与されると
線と周りのエリアが回転して×になる*/
  .g-nav-openbtn.active .openbtn-area {
    transform: rotateY(-360deg);
  }
  .g-nav-openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
  }
  .g-nav-openbtn.active span:nth-of-type(2) {
    opacity: 0;
  }
  .g-nav-openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
  }
}
@media screen and (max-width:960px) {
  .g-nav-openbtn {
    top: 12px;
  }
}
/*==================================================
　機能編 5-3-3 左から右に線が伸びる（下部）
===================================*/
.nav01c li a {
  /*線の基点とするためrelativeを指定*/
  position: relative;
	    font-weight: 600;
}
.nav01c li.current a, .nav01c li a:hover {
  color: #111;
}
.nav01c li a::after {
  content: '';
  /*絶対配置で線の位置を決める*/
  position: absolute;
  bottom: 16px;
  left: 25%;
  /*線の形状*/
  width: 50%;
  height: 1px;
  background: #4bcc33;
  /*アニメーションの指定*/
  transition: all .3s;
  transform: scale(0, 1); /*X方向0、Y方向1*/
  transform-origin: left top; /*左上基点*/
}
.nav01c li li a::after {
  display: none;
}
/*現在地とhoverの設定*/
.nav01c li.current a::after, .nav01c li a:hover::after {
  transform: scale(1, 1); /*X方向にスケール拡大*/
}
@media screen and (max-width:1279px) {
  .nav01c li a::after {
    display: none;
  }
}
}