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

/*==ヘッダー全体の設定*/
.header{
	width:940px;
	height:110px;
	margin:0 auto;
	position:relative;
	}
	.header p,
	.header h1{
		margin:0;
		padding:0;
		text-align:left;
		}
	.header_logo,
	.header_txt,
	.header_tel,
	.header_contact{
		position:absolute;
		top:30px;
		}
		.header_logo{
			left:0;
			}
		.header_txt{
			left:208px;
			font-weight:bold;
			color:#666;
			top:40px;
			}
		.header_tel{
			right:240px;
			}
		.header_contact{
			right:0;
			}
/*==ナビゲーション全体の設定*/
nav *{
	margin:0;
	padding:0;
	}
nav{
	width:940px;
	margin:0 auto;	
	/*background-color:#fff;*/
	color:#111;
}
/*ナビゲーションを横並びに*/
nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
}
/*2階層目以降は横並びにしない*/
nav ul ul{
	display: block;
}

/*下の階層のulや矢印の基点にするためliにrelativeを指定*/
nav ul li{
	position: relative;
	width:14.285%;
	text-align:center;
	border-left:1px solid #ccc;
	}
nav ul li:last-child {
	border-right:1px solid #ccc;
	}

/*ナビゲーションのリンク設定*/
nav ul li a{
	display:block;
	font-size:14px;
	text-decoration:none !important;
	color:#111;
	display: flex;
	justify-content: center;
	align-items: center;
	height:60px;
	font-weight:bold;
	transition:all .3s;
}
nav ul li a:hover{
	color:#3276c2;	
}

/*==矢印の設定*/

/*2階層目を持つliの矢印の設定*/
nav ul li.has-child::before{
	content:'';
	position: absolute;
	right:15px;
	top: 50%;
	margin-top: -6px;
	width:6px;
	height:6px;
	border-top: 2px solid #999;
    border-right:2px solid #999;
    transform: rotate(135deg);
}

/*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階層目の共通設定 */

/*下の階層を持っているulの指定*/
nav li.has-child ul{
    /*絶対配置で位置を指定*/
	position: absolute;
	left:0;
	top:60px;
	z-index: 4;
    /*形状を指定*/
	background:#3276c2;
	width:180px;
    /*はじめは非表示*/
	visibility: hidden;
	opacity: 0;
    /*アニメーション設定*/
	transition: all .3s;
}

nav li.has-child ul li{
	width:100%;
	text-align:left;
	border-left:none;
	}
nav li.has-child ul li {
	border-right:none;
	}

/*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);
	display:block;
	height:auto;
	padding:10px;
	font-size:12px;
}

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:#2E6CB2;
}


/*==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;
}

