@charset "utf-8";

/*========= ドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
nav.gnav{
  background:#00426c;
  color:#fff;
  text-align: center;
}

/*ナビゲーションを横並びに*/
nav.gnav ul{
    /*2階層目の基点にするためrelativeを指定*/
  position: relative;
  list-style: none;
  display: flex;
  justify-content: center;
}

/*2階層目以降は横並びにしない*/
nav.gnav ul ul{
  display: block;
}

/*ナビゲーションのリンク設定*/
nav.gnav ul li a{
    /*矢印の基点にするためrelativeを指定*/
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  padding:15px 37px;
  transition:all .3s;
}

nav .gnav ul li li a{
  pdding:20px;
}

nav.gnav ul li a:hover{
  color:#c0ebc3; 
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/

nav.gnav ul li.has-child > a::before{
  content:'';
  position: absolute;
  left:15px;
  top:25px;
  width:6px;
  height:6px;
  border-top: 2px solid #fff;
    border-right:2px solid #fff;
    transform: rotate(135deg);
}

/*==2階層目以降の画像設定*/

nav.gnav ul li.has-child img{
	max-width: 100%;
	height: auto;
	transition: all .5s;
	vertical-align: bottom;
}

/*hoverしたら画像拡大*/
nav.gnav ul li.has-child img:hover{
	transform: scale(1.2);
}

nav.gnav ul li.has-child dt{
	overflow: hidden;
	height: 20vh;
	margin:0 0 20px 0;
}

@media screen and (max-width:1200px){
nav.gnav ul li.has-child dt{
	height: 12vh;
}
	
}

/*== 2層目の設定 */

nav.gnav li.has-child ul{
  /*絶対配置で位置を指定*/
    position: absolute;
	left:5%;
	top:58px;
	z-index: 4;
  /*子要素を横並びに*/    
	justify-content: flex-start;
	flex-wrap: wrap;
    /*形状を指定*/
	background:#f7f7f7;
	width:90%;
    /*はじめは非表示*/
 display: none;
	visibility: hidden;
	opacity: 0;
     /*アニメーション設定*/
	transition: all .3s;
}

/*hoverしたら表示*/
nav.gnav li.has-child:hover > ul{
display:flex;
  visibility: visible;
  opacity: 1;
}

/*各ナビゲーション横幅*/
nav.gnav li.has-child ul li{
	width:25%;
}

/*ナビゲーションaタグの形状*/
nav.gnav li.has-child ul li a{
	color: #fff;
}

nav.gnav li.has-child ul li a:hover,
nav.gnav li.has-child ul li a:active{
	background:#00426c;
}


/*==1200px以下の形状*/
@media screen and (max-width:980px){
  
  nav.gnav{
    display: none;
  }

}










