@charset "utf-8";
/* CSS Document */
/*PC用追加*/
#g-nav {
  max-width: 834px;
	width: 100%;
/*  width: calc(100% - 450px);*/
}
#g-nav ul {
  margin: 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#g-nav li{
	list-style: none;
    text-align: center; 
  position: relative;
  display: inline-block;
/*	margin: 15px auto 15px;*/
}
/*#g-nav li:nth-child(7){
  margin-left: -50px;
}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: #f2e034;
  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:834px) {
  #g-nav {
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position: fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
    top: 0;/*※A合わせて変更*/
    right: -120%;/*※A表示開始位置*/
    width: 100%;
    height: 100vh; /*ナビの高さ*/
    background: rgb(232, 246, 249);
    background: linear-gradient(180deg, rgba(232, 246, 249, .85) 0%, rgba(163, 205, 218, .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 a {
	  color: inherit;
	  font-size: 1.3em;
	  font-weight: 500;
	  line-height: 3.2;
    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%;
  }
}