/* 親メニュー - Parent nav */

nav>ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: space-around;
	column-gap: 5px;
}

nav>ul li {
	position: relative;
}

.menu-item-has-children {
	/* width: 100%; */
	text-align: center;
	font-size: 1.1rem;
	border: #f0cf2b solid 2px;
	background: #f0cf2b;
	height: 32px;
}

li.menu-item-has-children:hover {
	color: #f0cf2b;
	background: #24672e;
}

nav a {
	color: #222;
	text-decoration: none;
}

nav ul a:hover {
	color: #222;
}


li.menu-item-has-children>a:hover {
	background-color: #EBF5F4;
}


li.menu-item-has-children>span:nth-child(1) {
	-webkit-transition: .4s;
	transition: .4s;
	cursor: pointer;
	display: block;
	padding: 0 0.75rem;
}


/* 子メニュー - .sub-menu */

nav .sub-menu {
	position: absolute;
	width: 400px;
	background-color: #fff;
	top: 30px;
	opacity: 0;
	visibility: hidden;
	/* transition: .5s; */
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	border: solid 2px #24672e;
}

nav .sub-menu li {
	width: 50%;
}

nav .sub-menu a {
	color: #222;
	padding: 10px 10px 10px 84px;
	width: 100%;
	display: block;
	box-sizing: border-box;
	text-align: left;
}

nav .sub-menu strong {
	padding: 10px 10px 10px 84px;
	display: block;
	text-align: left;
	color: gray;
}

nav .sub-menu a:hover {
	color: #222;
}

li.menu-item-has-children:nth-child(4)>ul:nth-child(2),
li.menu-item-has-children:nth-child(5)>ul:nth-child(2) {
	right: 0;
}


/* ホバー＆フォーカスで子メニュー表示 */


/* Display sub menu by hover & focus */
li.menu-item-has-children>ul:nth-child(2)>li:nth-child(1) {
	background: url(/img/bukken/img_all.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(2) {
	background: url(/img/bukken/img_town.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(3) {
	background: url(/img/bukken/img_maekawa.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(4) {
	background: url(/img/bukken/img_aone.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(5) {
	background: url(/img/bukken/img_imasyuku.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(6) {
	background: url(/img/bukken/img_kawauchi.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(7) {
	background: url(/img/bukken/img_motoisago.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(8) {
	background: url(/img/bukken/img_ono.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(9) {
	background: url(/img/bukken/img_hasekura.svg) no-repeat 5px center/35%;
}

li.menu-item-has-children>ul:nth-child(2)>li:nth-child(10) {
	background: url(/img/bukken/img_hasekuradai.svg) no-repeat 5px center/35%;
}

nav .menu-item-has-children:hover ul,
nav .menu-item-has-children ul.focused {
	opacity: 1;
	visibility: visible;
}

li.menu-item-has-children>ul:nth-child(2)>li:hover,
li.menu-item-has-children>ul:nth-child(2)>li:focus {
	background-color: #f0cf2b;
}


/* このクラスを、jQueryで付与・削除する */

nav.globalMenuSp.active {
	transform: translateY(0%);
}

/*  */


/* スマホ */


@media screen and (max-width: 767px) {

	.menu {
		display: none;
		font-size: 1rem;
	}

	.menu.active {
		display: block;
		height: 100%;
		overflow: auto;
		padding-top: 15px;
	}

	.pc_menu {
		width: 95%;
		margin: 8px auto 20px;
	}

	nav>ul {
		width: 100%;
		row-gap: 15px;
		flex-direction: column;
	}

	.menu-item-has-children {
		height: auto;
	}

	nav .sub-menu {
		width: 100%;
		visibility: visible;
		opacity: 1;
		position: relative;
		top: 0;
	}

	nav .sub-menu li {
		width: 100%;
		background-size: 21% !important;
		border-bottom: dotted 1px;
	}

}