/* header */
#top-head {
  width: 100%;
  top: 0;
  position: fixed;
  margin-top: 0;
  z-index: 9999;
  height: 70px;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0);
}
#top-head::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
}
.top-head_wrap {
  position: relative;
  width: 100%;
  height: 70px;
}
#top-head .logo {
  position: absolute;
  top: 45%;
  left: 30px;
  transform: translate(0%, -50%);
  width: 180px;
  z-index: 3;
  line-height: 1;
}
.h_nav {
	display: none!important;
  position: absolute;
  top: 50%;
  transform: translate(0%, -50%);
  right: 340px;
  z-index: 4;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0px auto 0em;
  justify-content: flex-end;
}
.h_nav > li {
  position: relative;
  flex: 0 1 auto;
  justify-content: center;
  padding: 0px 0px 0px 25px;
  font-size: 1.5rem;
}
.h_nav li a {
  display: block;
}
.h_nav > li.has-child {
  padding: 0 30px 0 25px;
}
.h_nav > li.has-child::before {
  position: absolute;
  right: 0px;
  top: 3px;
  width: 19px;
  height: 20px;
  border-radius: 50%;
  background: #00964B;
  line-height: 20px;
  text-align: center;
  content: '\2b';
  font-family: FontAwesome;
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
  padding: 0 0 0 1px;
}
/*下の階層を持っているulの指定*/
.h_nav li.has-child ul {
  /*絶対配置で位置を指定*/
  position: absolute;
  transform: translate(-50%, 0%);
  top: 47px;
  left: 50%;
  z-index: 4;
  background: #fff;
  width: 220px;
  /*はじめは非表示*/
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
}
/* クリックで追加されるクラス */
.h_nav li.has-child.active > ul {
  visibility: visible;
  opacity: 1;
}
.h_nav li.has-child ul li a {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  transition: all .3s;
}
.h_nav li.has-child ul li:last-child a {
  border-bottom: none;
}
.h_nav li.has-child ul li a:hover {
  background: #00964B;
  color: #fff;
}
.h_contact {
  position: absolute;
  top: 50%;
  right: 80px;
  transform: translate(0%, -50%);
  font-size: 1.4rem;
}
.h_contact img {
  width: 20px;
  margin: 0 7px 2px 0;
}
.h_contact a {
  background: linear-gradient(45deg, rgba(0, 196, 98, 1) 0%, rgba(0, 150, 75, 1)50%, rgba(0, 150, 75, 1)100%);
  background-position: 1% 50%;
  background-size: 200% auto;
  border-radius: 50px;
  padding: 12px 25px;
  transition: ease .2s;
  display: block;
}
.h_contact a span {
  position: relative;
  z-index: 3;
  color: #fff;
}
.h_contact a:hover {
  background-position: 99% 50%;
}
/*========= ボタンのためのCSS ===============*/
.openbtn {
	display: none;
  position: absolute;
  z-index: 9999; /*ボタンを最前面に*/
  top: 10px;
  right: 25px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  padding: 10px;
}
/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  right: 25%;
  height: 2px;
  border-radius: 5px;
  background-color: #00964B;
  width: 50%;
}
.openbtn span:nth-of-type(1) {
  top: 15px;
}
.openbtn span:nth-of-type(2) {
  top: 24px;
}
.openbtn span:nth-of-type(3) {
  top: 33px;
}
/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
.openbtn.active {}
.openbtn.active span {
  background-color: #fff;
}
.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) {
  display: none;
}
.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
/*========= ナビゲーションのためのCSS ===============*/
#gnav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 9998;
  /*ナビのスタート位置と形状*/
  top: -220%;
  right: 0%;
  width: 100%;
  height: 100vh; /*ナビの高さ*/
  background: rgba(0, 0, 0, 0.4);
  /*動き*/
  transition: all 0.6s;
}
/*アクティブクラスがついたら位置を0に*/
#gnav.panelactive {
  top: 0;
}
/*ナビゲーションの縦スクロール*/
#gnav.panelactive #gnav-inner {
  /*ナビの数が増えた場合縦スクロール*/
  position: fixed;
  right: 0;
  z-index: 999;
  width: 550px;
  height: 100vh;
  overflow: auto;
  background: #D1F4D6;
  -webkit-overflow-scrolling: touch;
}
.gnav_wrap {
  width: 100%;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media screen and (max-width: 1280px) {
  .h_nav {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  #top-head {
    position: fixed;
    min-width: 200px;
  }
  .h_nav {
    display: none;
  }
  .h_contact {
	  right: 10px;
      /*right: 55px;*/
    font-size: 1.1rem;
  }
  .h_contact img {
    width: 16px;
    margin: 0 5px 1px 0;
  }
  .h_contact a {
    padding: 12px 10px;
  }
  #top-head .logo {
    top: 45%;
    left: 10px;
    width: 120px;
  }
  /*========= ボタンのためのCSS ===============*/
  .openbtn {
    top: 10px;
    right: 5px;
  }
  /*========= ナビゲーションのためのCSS ===============*/
  #gnav {
    top: -500%;
  }
  #gnav.panelactive #gnav-inner {
    width: 100%;
  }
  .gnav_wrap {
    margin: 7em auto 7em;
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0%, 0%);
  }
}
@media (max-height: 870px) {
  /* 高さ500px以下の場合 */
  .gnav_wrap {
    margin: 5em auto;
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0%, 0%);
  }
}