
@media screen and (min-width:1100px) {
    #g-nav{
    z-index: 1;
    position: relative;
    }
}
#g-nav{
    display: flex;
    align-items: flex-end;
}
nav{
	color:#fff;
	text-align: center;
    font-size: 15px;
}
/*ナビゲーションを横並びに*/
nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
    align-items:flex-end;
}
/*2階層目以降は横並びにしない*/
nav ul ul{
	display: block;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li{
	position: relative;
}

/*ナビゲーションのリンク設定*/
nav ul li a{
	display: block;
	text-decoration: none;
	color: #fff;
  font-weight: 600;
	padding: 0 16px 15px 16px;
	transition:all .3s;
    line-height: 130%;
}

nav ul li a:hover{
	color:#fff169;
}
/*== 2・3階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul{
    /*絶対配置で位置を指定*/
	position: absolute;
	left:0;
	top:35px;
	z-index: 4;
    /*形状を指定*/
	background:#405571;
	width:215px;
    /*はじめは非表示*/
	visibility: hidden;
	opacity: 0;
    /*アニメーション設定*/
	/*transition: all .3s;*/
    text-align: left;
}
nav ul.nav_en li.has-child ul{
	width:255px;
}
/*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;
    padding: 16px;
	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:#263f5e;
}
nav li.has-child ul.menu_end  {
    left:auto;
    right: 0;
}

@media screen and (max-width:1099px) {
	nav{
		padding: 0;
	}
	
	nav ul{
		display: block;
	}
	
	nav li.has-child ul,
	nav li.has-child ul ul{
  	position: relative;
	left:0;
	top:0;
	width:100%;
	visibility:visible;/*JSで制御するため一旦表示*/
	opacity:1;/*JSで制御するため一旦表示*/
	display: none;/*JSのslidetoggleで表示させるため非表示に*/
	transition:none;/*JSで制御するためCSSのアニメーションを切る*/
}
	
nav ul li a{
	border-bottom:1px solid #fff;
}
nav ul li a::before {
    display: none;
    content: "";
}
nav ul.nav_en li a::before {
    display: none;
    content: "";
}
    
/*矢印の位置と向き*/

nav ul li.has-child::before{
	left:20px;	
}

nav ul ul li.has-child::before{
    transform: translateY(-25%) rotate(135deg);
	left:20px;
}
    
nav ul li.has-child.active::before{
    transform: translateY(-25%) rotate(135deg);
}
.has-child::after {
  display: block;
    content: "";
    position: absolute;
    top: 28px;
    left: 10px;
    width: 6px;
    height: 6px;
    margin: -6px 0 0 0;
    border-top: solid 2px  #fff;
    border-right: solid 2px  #fff;
    transform: translateY(-25%) rotate(135deg);
}
  #g-nav{
      /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
      position:fixed;
      z-index: 999;
      /*ナビのスタート位置と形状*/
    top:-190%;
      left:0;
    width:65%;
      height: 100vh;/*ナビの高さ*/
      background:#263f5e;
    border-radius: 0;
      /*動き*/
    transition: all 0.6s;
  }
  /*アクティブクラスがついたら位置を0に*/
  #g-nav.panelactive{
      top: 0;
      z-index: 9998;
  }
  /*ナビゲーションの縦スクロール*/
  #g-nav.panelactive #g-nav-list{
      /*ナビの数が増えた場合縦スクロール*/
      position: fixed;
      z-index: 9999; 
      width: 65%;
      height: 97vh;/*表示する高さ*/
      overflow: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 30px;
      overflow-y: scroll;
  }
  
  /*ナビゲーション*/
  #g-nav ul {
      /*ナビゲーション天地中央揃え*/
      width: 90%;
      margin:30px 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: center; 
  }
  
  #g-nav li a{
    color: #fff;
    text-decoration: none;
    padding:17px 10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
    .listcolor {
        background-color: #726781;
    }
  }
  
  /*==================================================
  　機能編 5-2-7 3本線が奥行きを持って回転して×に
  ===================================*/
  
  .g-nav-openbtn{
      display: none;
  }
.pc-none{
  display: none;
}
.sp-none{
  display: block;
}
  @media screen and (max-width:1099px) {
    .pc-none{
      display: block;
    }
  .g-nav-openbtn{
      display: block;
    position:relative;
      z-index: 9999;/*ボタンを最前面に*/
      top: 10px;
      right: 10px;
    cursor: pointer;
      width: 50px;
      height:50px;
      background-color: #fff;
  }
  
  /*ボタン内側*/
  
  .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: #001d42;
      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%;
      z-index: 9999;
  }
  
  .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%;
      z-index: 9999;
  }
  .star{
    pointer-events: none;
  }

  }
  