@charset "utf-8";
/* CSS Document */

/*========= ドロップダウンのためのCSS ===============*/

/*==ナビゲーション全体の設定*/
nav{
	background:none;
	text-align: center;
}

/*ナビゲーションを横並びに*/
nav ul{
    /*2階層目の基点にするためrelativeを指定*/
	position: relative;
	list-style: none;
	display: flex;
	justify-content: center;
	line-height: 1.4;
}

/*2階層目以降は横並びにしない*/
nav ul ul{
	display: block;
}

/*ナビゲーションのリンク設定*/
nav ul li a{
    /*矢印の基点にするためrelativeを指定*/
	position: relative;
	display: block;
	text-decoration: none;
	color: #000;
	padding:0px 0px 0px 0px ;
	transition:all .3s;
}
/*nav ul li a:hover{
	padding-bottom:20px; 
}*/
nav ul li li a{
	padding:20px;
}

nav ul li a:hover{
	color:#555;	
}
.buy-btn > a{
	background:#eaf367;
	padding: 13px 20px 0px 20px ;
	border-radius: 10px;
	height: 50px;
	font-weight: 600;
}
.menu-btn > a{
	background:none;
	padding: 13px 0px 0px 0px ;
	border-radius: 10px;
	height: 50px;
	font-weight: 500;
	
}
.menu-btn > a:hover {
	color: #ffd814;
}
/*==矢印の設定*/

/*2階層目を持つliの矢印の設定

nav ul li.has-child > a::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);
}*/

/*==2階層目以降の画像設定*/
/*
nav ul li.has-child img{
	max-width: 100%;
	height: auto;
	transition: all .5s;
	vertical-align: bottom;
}
*/
/*hoverしたら画像拡大*/
/*
nav ul li.has-child img:hover{
	transform: scale(1.2);
}

nav ul li.has-child dt{
	overflow: hidden;
	height: 20vh;
	margin:0 0 20px 0;
}*/

@media screen and (max-width:1200px){
/*
nav ul li.has-child dt{
	height: 12vh;
}*/
	
}

/*== 2層目の設定 */

nav li.has-child ul{
  /*絶対配置で位置を指定*/
    position: absolute;
	right:2%;
	top:45px;
	z-index: 400;
  /*子要素を横並びに*/    
	justify-content:flex-start;
	flex-wrap: wrap;
    /*形状を指定*/
	background:#888;
	padding: 25px 15px 25px 15px ;
	border-radius: 20px;
	width:130%;
    /*はじめは非表示*/
 display: none;
	visibility: hidden;
	opacity: 0;
     /*アニメーション設定*/
	transition: all .3s;
}

/*hoverしたら表示*/
nav li.has-child:hover > ul{
display:flex;
  visibility: visible;
  opacity: 1;
animation: fadeIn 0.5s ease 0s 1 normal;
}

/*各ナビゲーション横幅*/
nav li.has-child ul li{
	width:27%;
	margin: 10px 15px 5px 15px;
}

/*ナビゲーションaタグの形状
nav li.has-child ul li a{
	color: #fff;
}

nav li.has-child ul li a:hover,
nav li.has-child ul li a:active{
	background:#3577CA;
}*/

nav li.has-child ul li a {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  padding: 15px 10px 13px 10px ;
  outline: 1px solid;
  border-radius: 6px;
  outline-offset: 0px;
  display: inline-block;
  transition: .3s;
}
nav li.has-child ul li a:hover {
color: #333;
background: #eaf367;/*ffd814*/
outline-color: #eaf367;/*ffd814*/
  animation: light .8s infinite;
}
@keyframes light {
  100% { 
    outline-color: transparent;
    outline-offset: 12px;
  }
}



/*==768px以下の形状*/
@media screen and (max-width:768px){
	
	nav ul{
		display: block;
	}

	nav 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のアニメーションを切る*/
}
    nav li.has-child:hover > ul {
	    display: none;
    }
    
	nav li.has-child ul li{
		width:100%;
		text-align: left;
	}
	
	nav li.has-child ul li dl{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	nav li.has-child ul li dt{
		width:30%;
		height: auto;
		margin: 0;
	}

	nav li.has-child ul li dd{
		width:64%;			
	}

    
    nav ul li a{
	    padding: 10px 20px;
	    border-bottom:1px solid #ccc;
}
    
    nav ul li li a{
		padding: 0;
}
	
/*矢印の位置と向き*/
	
nav ul li.has-child > a::before{
	top:17px;
	left:20px;
    transform: rotate(135deg);
}
    
nav ul li.has-child.active > a::before{
    transform: rotate(-45deg);
}
}
 

【ドロップダウンメニューが他の要素の下に来てしまう場合】
リストの親要素にposition 指定＋z-index 指定をして他の要素よりもz-indexの値を大きくすると解決します。

※例：
nav{
position:relative;
z-index:999;
}