/**/@charset "utf-8";
/* CSS Document */
/*PC用追加*/
#g-nav {
  max-width: calc(100% - 520px);
  width: 100%;
}
#g-nav ul {
	margin:15px 0 15px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
#g-nav li {
  list-style: none;
  position: relative;
  margin-left: 25px;
/*text-align: center; 
  display: inline-block;
*/
}
#g-nav li:nth-child(6),
#g-nav li:nth-child(7){
  margin-left: 0;
}/*mobile menu*/
#g-nav li a {
  color: #4d4d4d;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
  font-size: 1.1em;
}
#g-nav li a:hover {
  color: #3f9bbf;
  transition: transform .3s;
}
#g-nav li a::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  content: '';
  width: 100%;
  height: 3px;
  background: #a5c9c3;
  transform: scale(0, 1);
  /*  transform-origin: center top;
中央→左右*/
  transform-origin: left top; /*左→右*/
  transition: transform .3s;
}
#g-nav li a:hover::after {
  transform: scale(1, 1);
}
.mb_menu {
  display: none;
}
@media screen and (max-width:1024px) {
#g-nav {
  max-width: calc(100% - 450px);
  width: 100%;
}
#g-nav ul {
	margin:18px 0 15px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;

}
#g-nav li a {
  color: #4d4d4d;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0em;
  font-weight: bold;
  font-size: 1em;
}
}
@media screen and (max-width:834px) {
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;/*※A合わせて変更*/
    right: -120%;/*※A表示開始位置*/
	  max-width: 100%;
    width: 100%;
    height: 100vh; /*ナビの高さ*/
    background: rgb(232, 246, 249);
background: rgb(250,252,247);
background: linear-gradient(180deg, rgba(250,252,247,.85) 0%, rgba(178,219,205,.85) 100%);
    /*動き*/
    transition: all 0.6s;
  }
  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive {
    right: 0;/*※A表示開始位置*/
  }
  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list {
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999;
    width: 100%;
    height: 100vh; /*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  /*ナビゲーション*/
  #g-nav ul {
    /*ナビゲーション中央揃え*/
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
  }
#g-nav li {
  list-style: none;
  position: relative;
  margin-left: 0;
}
  #g-nav li a {
	  color: inherit;
	  font-size: 1.3em;
	  font-weight: 500;
	  line-height: 3.5;
    list-style: none;
	  text-decoration: none;
}
#g-nav li a::after{
  display: none;
}
	.mb_menu{
		display: block;
	}
/*========= ボタンのためのCSS ===============*/
.openbtnBox{
	width: 38px;
	height: 35px;
	border: 1px solid rgba(201,201,201,0.60);
	background-color: rgba(241,241,241,0.80);
	position: fixed;
    top: 12px;
    right: 16px;
	z-index: 9999;
	overflow: hidden;
}
  .openbtn {
    position: fixed;
    z-index: 9999; /*ボタンを最前面に*/
    top: 5px;
    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%;
  }
}
@media screen and (max-width:480px) {
  #g-nav li a {
	  color: inherit;
	  font-size: 1.1em;
	  font-weight: 500;
	  line-height: 3;
    list-style: none;
	  text-decoration: none;
	white-space: nowrap;
}
.openbtnBox{
	width: 38px;
	height: 34px;
	border: 1px solid rgba(201,201,201,0.60);
	background-color: rgba(241,241,241,0.80);
	position: fixed;
    top: 2px;
    right: 16px;
	z-index: 9999;
}
  .openbtn {
    position: fixed;
    z-index: 9999; /*ボタンを最前面に*/
    top: -6px;
    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: 40%;
  }
  .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%;
  }
}