nav{
	/* background:#333; */
	color:#fff;
	text-align: center;
}

nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
}

nav ul ul{
	display: block;
}

nav ul li{
	position: relative;
}


nav ul li a{
	display: block;
	text-decoration: none;
	color: #999;
	padding:20px 35px;
	transition:all .3s;
}

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

nav ul li a:hover{
	/* color:#fff; */
}

.nav-underline .nav-link {
	padding-bottom: 0.25em;
}


nav li.has-child ul{
    position: absolute;
    left: 0px;
    top: 45px;
    z-index: 4;
    padding: 0;
    width: 135px;
    visibility: hidden;
    display: flex;
    opacity: 0;
    transition: all .3s;
    text-align: left;
    background:rgba(255, 255, 255, 1.0) !important;
    flex-direction: column;
}

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;
}

nav li.has-child ul li a{
	/* color: #615c61!important; */
	margin: 0;
	padding: 3px 0;
	font-size: 13px;
}

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:rgba(68, 68, 68, .2); */
    color: #333;
}

nav li.has-child ul ul{
	top: 0;
    left: 190px;
    background: rgba(255, 255, 255, 0.8);
    width: 125px;
}

nav li.has-child ul ul li a:hover,
nav li.has-child ul ul li a:active{
	background:rgba(68, 68, 68, .2);
}



@media screen and (max-width:1240px){
	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;
	opacity:1;
	display: none;
	transition:none;
}

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

nav ul ul li.has-child::before{
    transform: rotate(135deg);
	left:20px;
}
    
nav ul li.has-child.active::before{
    transform: rotate(-45deg);
}

	/* 子メニュー常時表示 */
	nav li.has-child ul,
	nav li.has-child ul ul{
		position: relative;
		left: 0;
		top: 0;
		width: 100%;
		visibility: visible;
		opacity: 1;
		display: block;
		transition: none;
		box-shadow: none;
		/* background: #f8faf8 !important; */
		padding-left: 14px;
	}

	/* 親メニュー */
	nav li.has-child > a,
	nav li.has-child > .nav-parent{
		font-weight: 700;
	}

	/* 子メニュー */
	nav li.has-child ul li a{
		font-size: 14px;
		padding: 10px 0 10px 14px;
		/* color: #555; */
	}

	/* ▼アイコン不要なら消す */
	nav ul li.has-child::before,
	nav ul ul li.has-child::before{
		display: none;
	}

}
