@charset "utf-8";

.common-header {
	position: relative;
	font-family: "Yu Mincho",YuMincho,"Hiragino Mincho ProN",HGS明朝E,メイリオ,Meiryo,serif;
	background:#fff;
}

.site-title a {
	display: inline-block;
	font-size: 40px;
	font-weight: bold;
	line-height: 50px;
	text-decoration: none;
	padding: 10px 0 20px 100px;
	background-image: url("/image/bestmark.png");
	background-size: 80px 80px;
	background-position: left top;
	background-repeat: no-repeat;
	font-family:'Noto Serif JP', serif;
	font-weight:500;
}
.site-title a:hover {
	color: #333;
	opacity: 0.9;
}

.header-text {
	font-size: 16px;
	font-weight: bold;
	line-height:1.4em;
}


.nav-menu {
	color: #fff;
	background: linear-gradient(#38da40, #37be3e);
}
.nav-menu ul {
        display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
}
.nav-menu ul li {
	width: auto;
	height: auto;
}
.nav-menu a {
	color: #fff;
	text-decoration: none;
}
.nav-menu a:hover {
	text-decoration: underline;
}


.common-footer {
	padding:20px 0;
	background-color: #c1f3c4;
}

.footer-content-title {
	margin-bottom:15px;
	font-size: 20px;
	font-weight: bold;
}

.footer-text {
	position:relative;
	font-size: 16px;
	text-align: center;
	font-family:'Noto Serif JP', serif;
}

.footer-link {
	margin-bottom:20px;
}

.footer-link li {
	margin-bottom: 10px;
	font-size: 16px;
}

@media (min-width: 641px) {

	.site-title a {
		position: absolute;
		top: 50%;
		left: 30px;
		transform: translateY(-50%);
	}

	.header-text {
		float: right;
		padding: 20px 0;
	}

	.common-header::after {
		content: "";
		display: block;
		clear: both;
	}


	.nav-menu {
		width: 100%;
		padding-top: 20px;
		text-align: center;
	}

	.nav-menu li {
		position: relative;
		display: inline-block;
		padding: 0 10px 20px;
		font-size: 18px;
	}

	.nav-menu li:not(:first-child) {
		margin-left: 1em;
	}

	.nav-menu li:not(:first-child)::before {
		position: absolute;
		left: -1em;
		content: "/";
		display: block;
		width: 1em;
		text-align: center;
	}


	.footer-link {
		column-count:4;
		margin-bottom: 30px;
	}

	.footer-link:nth-child(5n) {
		margin-left: 0;
	}

	.footer-bn {
		float: right;
    		width: 300px;
	}

	.footer-bn li {
		margin-top:24px;
	}

	.each-district {
		width: 690px;
		float: left;
	}

	.each-district .footer-link {
		width: calc(35% - 17px);
	}

	.copyright {
		position:absolute;
		left:0;
	}

}

@media (max-width: 640px) {

	.common-header.wrap{
		padding: 10px;
	}

	.site-title a {
		width: 236px;
		display: block;
 		font-size: 26px;
		line-height: 26px;
		padding: 8px 0 12px 54px;
		background-size: 44px 44px;
		box-sizing: border-box;
		margin: 0 auto;
}
	.header-text {
		padding-top: 6px;
		font-size: 14px;
		text-align: center;
	}


	.nav-menu {
		padding: 0;
	}
	.nav-menu ul {
		padding: 0px;
		-webkit-box-pack: space-between;
		-webkit-justify-content: space-between;
		-ms-flex-pack: space-between;
		justify-content: space-between;
	}

	.nav-menu ul li {
		width: 50%;
		padding: 12px 0;
		box-sizing: border-box;
		font-size: 12px;
		border-right: 1px solid #fff;
		border-bottom: 1px solid #fff;
		text-align: center;
	}
	.nav-menu ul li:nth-child(2n) {
		border-right: 0px;
	}
	/*.nav-menu li {
		position: relative;
		float: left;
		width: calc(50% - 0.5em - 10px + 30px);
		padding: 10px 0;
		font-size: 16px;
		white-space: nowrap;
		overflow: visible;
	}

	.nav-menu li:nth-child(2n + 1) {
		clear: both;
		padding-right: 10px;
		margin-right: 1em;
		margin-left: -30px;
		text-align: right;
	}

	.nav-menu li:nth-child(2n) {
		padding-left: 10px;
		margin-right: -30px;
		text-align: left;
	}

	.nav-menu li:nth-child(2n + 1)::before {
		position: absolute;
		right: -1em;
		content: "/";
		display: block;
		width: 1em;
		text-align: center;
	}*/

	.nav-menu a {
		display: block;
	}

	.nav-menu::after {
		content: "";
		display: block;
		clear: both;
	}

	.copyright {
		display:block;
		padding-top: 10px;
	}

	.footer-content-title {
		text-align: center;
	}

	.footer-link {
		display:flex;
		flex-wrap:wrap;
		justify-content:center;

	}
	.footer-link li {
		width:46%;
		min-width:130px;
		padding:2px 3px;
		border: 1px #056905 solid;
		border-radius:30px;
		margin:0 2% 4%;
		font-size: 14px;
		text-align: center;
		box-sizing:border-box;
	}

	.footer-link li a {
		display:block;
		padding:4px 0;
		border:1px #5fc766 solid;
		border-radius:20px;
		text-align:center;
	}

	.footer-link li a span {
		display:inline-block;
		max-width:140px;
	}

	.footer-bn {
		float: none;
		width: 300px;
		margin: 30px auto 10px;
	}

	.footer-bn li {
		margin-top: 16px;
	}

}

@media (max-width: 780px) and (min-width: 641px) {
	.footer-link {
		column-count:2;
	}
}

@media (max-width: 1010px) and (min-width: 781px) {
	.footer-link {
		column-count:3;
	}
}



