@charset "utf-8";

/*========= ナビゲーションドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定
nav{
  background:#333;
  color:#fff;
  text-align: center;
}*/
/*ナビゲーションを横並びに*/
nav ul{
  list-style: none;
  display: flex;
  /*justify-content: center;*/
}
/*2階層目以降は横並びにしない*/
nav ul ul{
  display: block;
}

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

/*ナビゲーションのリンク設定*/
nav ul li a{
  display: block;
  text-decoration: none;
  color: #000;
  padding:0.5vw 1.2vw;
  transition:all .3s;
}

nav ul li li a{
  padding:8px 35px;
}

nav ul li a:hover{
  color:#999; 
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定
nav ul li.has-child::before{
  content:'';
  position: absolute;
  left:15px;
  top:25px;
  width:6px;
  height:6px;
  border-top: 2px solid #999;
    border-right:2px solid #999;
    transform: rotate(135deg);
}*/
nav ul li.has-child::before{
display: inline-block;
    vertical-align: middle;
    color: #333;
    line-height: 1;
    width: 0.7em;
    height: 0.7em;
    border: 0.1em solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: translateY(-25%) rotate(135deg);
    margin: 0 0 0.3em 0.7em;
}
/*3階層目を持つliの矢印の設定*/
nav ul ul li.has-child::before{
  content:'';
  position: absolute;
  left:6px;
  top:17px;
  width:6px;
  height:6px;
    border-top: 2px solid #fff;
    border-right:2px solid #fff;
    transform: rotate(45deg);
}

/*== 2・3階層目の共通設定 */

nav li.has-child ul{
  position: absolute;
  left:0;
  /*top:80px;*/
    margin-top: 0.5vw;
  z-index: 4;
  background: rgba(25, 72, 151, 0.9);
  visibility: hidden;
  opacity: 0;
  transition: all .3s;
  border-radius: 10px;
  width:23vw;
  min-width: 350px;
  text-align: left;
  font-size:clamp(12px, 0.83vw, 40px);
    padding: 0.8vh 0;
}

/*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;
  /*border-bottom:solid 1px rgba(255,255,255,0.6);*/
  border-radius: 10px;
}

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:#3577CA;*/
}


/*==3階層目*/

/*3階層目の位置*/
nav li.has-child ul ul{
  top:0;
  left:182px;
  background:#66ADF5;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active{
  background:#448ED3;
}


.gnavi li{
/*height:2vw*/
}

