/*
config
*/
:root {
	--font-sans: "Noto Sans JP",sans-serif;
	--font-serif: "Noto Serif JP",serif;
	--font-serif2: "Zen Old Mincho", serif;
	--color-accent: #5a7837;	/*moss green*/
}
/*
html
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	> body {
		margin: 0;
		font-family: var(--font-sans);
		font-feature-settings: "palt" 1;
		line-break: strict;
		overflow-x: hidden;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
		background-repeat: repeat-x;
		background-position: 30% 0;
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 6;
		transition: all 0.2s;
		padding-bottom: 5px;
		@media (width < 1090px) {
			display: none;
		}
		> div {
			margin-top: 10px;
			padding-inline: 40px;
			transition: margin-top 0.2s;
			display: grid;
			grid-template-columns: auto 1fr auto;
			column-gap: 30px;
			@media (width < 1160px) {
				column-gap: 10px;
				padding-inline: 20px;
			}
			> a {
				align-self: end;
				text-decoration: none;
				&:hover {
					opacity: 0.8;
				}
				> img {
					width: 220px;
					transition: width 0.2s;
				}
			}
			> ul {
				align-self: end;
				display: grid;
				grid-template-columns: repeat(5,auto);
				justify-items: center;
				> li {
					justify-self: center;
					padding-inline: 10px;
					> a {
						text-decoration: none;
						height: 40px;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						&.on {
							> div:nth-of-type(2) {
								border-color: #fff;
							}
						}
						> div:nth-of-type(1) {
							font-size: 1.0rem;
							font-weight: 500;
							color: #fff;
							text-align: center;
							line-height: 1.2;
							@media (width < 1160px) {
								font-size: 0.9rem;
							}
						}
						> div:nth-of-type(2) {
							margin-top: 3px;
							border-top: solid 3px transparent;
							width: 20px;
						}
					}
					&:hover {
						opacity: 0.7;
					}
				}
			}
			> div {
				> div.sns {
					display: flex;
					column-gap: 20px;
					justify-content: center;
					align-items: center;
					> a {
						text-decoration: none;
						&:nth-of-type(1) {
							> img {
								width: 40px;
							}
						}
						&:nth-of-type(2) {
							> img {
								width: 36px;
							}
						}
						&:hover {
							opacity: 0.8;
						}
					}
				}
				> div.contact {
					transition: margin-top 0.2s;
					margin-top: 10px;
					transition: margin 0.2s;
					> a {
						text-decoration: none;
						&:hover {
							opacity: 0.8;
						}
						> div {
							border-radius: 30px;
							padding-block: 15px;
							padding-inline: 30px;
							background-color: #fff;
							display: flex;
							align-items: center;
							column-gap: 10px;
							transition: padding 0.2s;
							> img {
								width: 25px;
							}
							> p {
								font-size: min(1.1rem,5.5vw);
								line-height: 1.3;
								color: #333;
								font-weight: 600;
								letter-spacing: 0.1em;
							}
						}
					}
				}
			}
		}
		&.close {
			background-color: rgba(0, 0, 0, 0.4);
			> div {
				margin-top: 3px;
				> a {
					align-self: center;
				}
				> ul {
					align-self: center;
				}
				> div {
					> div.contact {
						/*margin-block: 3px; sns復活したらこちらを採用する*/
						margin-top: 8px;
						> a {
							> div {
								/*padding-block: 3px; sns復活したらこちらを採用する*/
								padding-block: 7px;
							}
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 7;
		@media (width < 1090px) {
			display: block;
		}
		@media print {
			display: none;
		}
		> input[type="checkbox"] {
			display: none;
			&:checked {
				& + div > label {
					> div {
						&:nth-of-type(1) {
							animation-name: toggleHamburgerMenuClose1;
						}
						&:nth-of-type(2) {
							animation-name: toggleHamburgerMenuClose2;
						}
						&:nth-of-type(3) {
							animation-name: toggleHamburgerMenuClose3;
						}
					}
				}
				& + div + nav {
					max-height: 100vh;
				}
			}
		}
		> div {
			padding-inline: 5% 2%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 70px;
			background-color: rgba(51,51,51,0.8);
			> div {
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						display: block;
						width: 200px;
						margin-top: 3px;
					}
				}
			}
			> label {
				box-sizing: border-box;
				width: 60px;
				height: 60px;
				background-color: var(--color-accent);
				border-radius: 10px;
				cursor: pointer;
				padding: 15px;
				display: grid;
				grid-template-rows: 30px;
				grid-template-columns: 30px;
				> div {
					grid-column: 1/2;
					grid-row: 1/2;
					width: 100%;
					border-top: solid 4px #fff;
					align-self: center;
					animation-duration: 0.2s;
					animation-fill-mode: forwards;
					&:nth-of-type(1) {
						animation-name: toggleHamburgerMenuOpen1;
					}
					&:nth-of-type(2) {
						animation-name: toggleHamburgerMenuOpen2;
					}
					&:nth-of-type(3) {
						animation-name: toggleHamburgerMenuOpen3;
					}
				}
			}
		}
		> nav {
			text-align: center;
			overflow: hidden;
			transition: 0.3s;
			max-height: 0;
			> ul {
				margin: 0;
				list-style: none;
				background-color: #435f23;
				> li {
					display: flex;
					width: 100%;
					> a {
						text-decoration: none;
						border-bottom: solid 1px rgba(255,255,255,0.2);
						white-space: nowrap;
						display: flex;
						flex-grow: 1;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						padding-block: 10px;
						width: 50%;
						&:nth-of-type(2),&:nth-of-type(3) {
							border-left: solid 1px rgba(255,255,255,0.3);
						}
						&[target="_blank"] {
							background-image: url(../image/mark_external_fff.svg);
							background-repeat: no-repeat;
							background-position: right 20px top 50%;
						}
						&.on {
							> div:nth-of-type(2) {
								border-color: #fff;
							}
						}
						> div:nth-of-type(1) {
							font-size: 0.9rem;
							line-height: 1.1;
							color: #fff;
						}
						> div:nth-of-type(2) {
							margin-top: 3px;
							border-top: solid 3px transparent;
							width: 20px;
						}
					}
				}
			}
			> label {
				display: block;
				font-size: 1.6rem;
				line-height: 200%;
				color: #000;
				border-bottom: solid 1px #777;
				white-space: nowrap;
				background-color: #444;
				padding: 5px 0;
			}
		}
		&.close {
		}
	}
	> div.spacer {
	}
}
@keyframes toggleHamburgerMenuClose1 {
	0% {	transform: translateY(-13px) rotate(0deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(0px) rotate(45deg);	}
}
@keyframes toggleHamburgerMenuClose2 {
	0% {	opacity: 1;	}
	50% {	opacity: 1;	}
	50.1% {	opacity: 0;	}
	100% {	opacity: 0;	}
}
@keyframes toggleHamburgerMenuClose3 {
	0% {	transform: translateY(13px) rotate(0deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(0px) rotate(-45deg);	}
}
@keyframes toggleHamburgerMenuOpen1 {
	0% {	transform: translateY(0px) rotate(45deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(-13px) rotate(0deg);	}
}
@keyframes toggleHamburgerMenuOpen2 {
	0% {	opacity: 0;	}
	50% {	opacity: 0;	}
	50.1% {	opacity: 1;	}
	100% {	opacity: 1;	}
}
@keyframes toggleHamburgerMenuOpen3 {
	0% {	transform: translateY(0px) rotate(-45deg);	}
	50% {	transform: translateY(0px) rotate(0deg);	}
	100% {	transform: translateY(13px) rotate(0deg);	}
}
/*
footer
*/
footer.nav {
	padding: 40px 5% 0px 5%;
	background: url(../image/footer_bg.webp) 35% / cover;
	@media (width < 700px) {
		background: url(../image/footer_bg.webp) 10% / cover;
	}
	> div {
		max-width: 1100px;
		margin-inline: auto;
		> div.nav {
			display: grid;
			grid-template-columns: auto 1fr;
			column-gap: min(15vw, 300px);
			@media (width < 1300px) {
				column-gap: 15vw;
			}
			@media (width < 1040px) {
				column-gap: 10vw;
			}
			@media (width < 1000px) {
				grid-template-columns: 1fr;
				row-gap: 40px;
			}
			> figure {
				text-align: center;
				> img {
					max-width: 300px;
				}
				> h3 {
					padding-top: 20px;
					font-size: min(1.6rem, 6vw);
					color: #fff;
					font-weight: 600;
					text-align: center;
				}
			}
			> dl {
				display: grid;
				grid-template-columns: repeat(4,auto);
				@media (width < 700px) {
					grid-template-columns: repeat(2,auto);
					row-gap: 20px;
				}
				@media (width < 420px) {
					grid-template-columns: repeat(1,auto);
					row-gap: 0px;
					text-align: center;
				}
				> div {
					> dt {
						margin-top: 10px;
						> a {
							display: inline-block;
							text-decoration: none;
							font-size: 1.1rem;
							color: #fff;
							font-weight: 600;
							padding-block: 6px;
							white-space: nowrap;
							&[target="_blank"] {
								background-image: url(../image/mark_external.svg);
								background-repeat: no-repeat;
								background-position: 100% 50%;
								padding-right: 16px;
							}
							&:hover {
								text-decoration: underline;
							}
							&.on {
								color: #a72126;
							}
						}
					}
					> dd {
						> a {
							display: block;
							text-decoration: none;
							font-size: 1rem;
							color: #fff;
							font-weight: 400;
							padding-block: 3px;
							padding-left: 1.3em;
							text-indent: -1.3em;
							@media (width < 540px) {
								> br {
									display: none;
								}
							}
							&::before {
								content: "-";
								padding-right: 7px;
							}
							&:hover {
								text-decoration: underline;
							}
							&.on {
								color: #a72126;
							}
						}
					}
				}
			}
		}
		> div.contact {
			padding-top: 20px;
			padding-bottom: 40px;
			justify-self: end;
			@media (width < 460px) {
				justify-self: center;
			}
			> div.contact {
				display: grid;
				justify-items: end;
				@media (width < 460px) {
					margin-top: 5px;
					justify-items: center;
				}
				> a {
					text-decoration: none;
					> div {
						display: flex;
						align-items: center;
						column-gap: 10px;
						background-color: #fff;
						border-radius: 30px;
						padding: 5px 30px;
						> img {
							width: 30px;
						}
						> p {
							font-size: 1rem;
							color: #333;
							font-weight: 600;
							padding-block: 12px;
							white-space: nowrap;
							cursor: pointer;
						}
						> img {
							width: 25px;
						}
					}
					&:hover {
						opacity: 0.8;
					}
				}
			}
			> div.info {
				margin-top: 30px;
				display: grid;
				grid-template-columns: 180px 180px;
				justify-content: end;
				column-gap: 30px;
				@media (width < 460px) {
					grid-template-columns: 1fr 1fr;
					justify-items: center;
					column-gap: 15px;
				}
				> a {
					text-decoration: none;
					font-size: 1rem;
					color: #222;
					padding: 10px 30px;
					white-space: nowrap;
					text-align: center;
					min-width: 180px;
					color: #fff;
					&:nth-of-type(1) {
						background-color: #23b6bc;
					}
					&:nth-of-type(2) {
						background-color: #b91c24;
					}
					&:hover {
						opacity: 0.8;
					}
					@media (width < 460px) {
						min-width: unset;
						width: 100%;
						white-space: unset;
						padding: 10px;
					}
				}
			}
		}
	}
}
footer.copyright {
	padding: 30px 5% 40px 5%;
	background-color: #fff;
	> div {
		max-width: 1200px;
		margin-inline: auto;
		text-align: center;
		> small {
			font-size: 0.8em;
			line-height: 1.3;
			color: #888;
		}
	}
}
/*
common_modelhouse.php
*/
section.commonmodelhouse {
	background-color: #5a7837;
	padding: 60px 5% 100px 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> h2 {
			font-size: min(3.0rem, 8vw);
			line-height: 1.3;
			color: #fff;
			font-weight: 900;
			letter-spacing: 0.05em;
			text-align: center;
			font-family: var(--font-serif2);
		}
		> p {
			font-size: min(1.2rem, 5.5vw);
			line-height: 1.2;
			color: #fff;
			font-weight: 900;
			letter-spacing: 0.1em;
			text-align: center;
			font-family: var(--font-serif2);
		}
		> div {
			padding-top: 30px;
			display: grid;
			grid-template-columns: 1fr 1.4fr;
			column-gap: 30px;
			@media (width < 800px) {
				grid-template-columns: 1fr;
				row-gap: 50px;
			}
			> div {
				display: grid;
				@media (width < 800px) {
					order: 2;
				}
				> div {
					display: flex;
					flex-wrap: wrap;
					align-items: baseline;
					column-gap: 20px;
					row-gap: 10px;
					> p {
						font-size: min(2.4rem,10vw);
						line-height: 1.3;
						color: #fff;
						font-weight: 700;
					}
					> span {
						font-size: min(1.2rem,6vw);
						line-height: 1.3;
						color: #fff;
					}
				}
				> p {
					margin-top: 15px;
					font-size: min(1.1rem, 5.5vw);
					line-height: 1.8;
					color: #fff;
					text-align: justify;
				}
				> a {
					margin-top: 20px;
					align-self: end;
					text-decoration: none;
					@media (width < 800px) {
						justify-self: center;
					}
					&:hover {
						> div {
							background-color: #333;
							border: 2px solid #333;
							> p {
								color: #fff;
							}
						}
					}
					> div {
						display: flex;
						margin-inline: auto;
						justify-content: space-between;
						align-items: center;
						border: 2px solid #333;
						padding: 15px 30px;
						background-color: #fff;
						@media (width < 800px) {
							min-width: 400px;
						}
						@media (width < 460px) {
							min-width: 250px;
						}
						> p {
							font-size: min(1.1rem, 5.5vw);
							line-height: 1.3;
							color: #333;
							font-weight: 500;
							user-select: none;
						}
					}
				}
			}
			> figure {
				> img {
					max-width: 100%;
				}
			}
		}
	}
}
/*
common_contact.php
*/
section.commoncontact {
	background-color: #cdd6c3;
	padding: 60px 5% 60px 5%;
	> div {
		max-width: 900px;
		margin-inline: auto;
		display: grid;
		grid-template-columns: 1fr 1.2fr;
		@media (width < 870px) {
			grid-template-columns: 1fr;
			row-gap: 40px;
		}
		> div.mail {
			border-right: 2px solid #333;
			display: grid;
			@media (width < 870px) {
				border-right: unset;
			}
			> h3 {
				font-size: min(1.8rem, 7vw);
				line-height: 1.3;
				color: #333;
				font-weight: 900;
			}
			> p {
				font-size: min(1.0rem, 5vw);
				line-height: 1.8;
				color: #333;
				font-weight: 500;
				margin-block: 10px 30px;
			}
			> a {
				align-self: end;
				justify-self: start;
				text-decoration: none;
				&:hover {
					opacity: 0.7;
					> div {
						background-color: #5a7837;
						border: 2px solid #333;
						> p {
							color: #fff;
						}
					}
				}
				> div {
					min-width: 300px;
					display: flex;
					justify-content: space-between;
					align-items: center;
					border: 2px solid #333;
					padding: 15px 30px;
					background-color: #fff;
					@media (width < 350px) {
						min-width: 250px;
					}
					> p {
						font-size: min(1.1rem, 5.5vw);
						line-height: 1.3;
						color: #333;
						font-weight: 500;
						user-select: none;
					}
				}
			}
		}
		> div.tel {
			padding-left: min(6vw,90px);
			@media (width < 800px) {
				padding-left: unset;
			}
			> h2 {
				font-size: min(2.0rem, 6.5vw);
				line-height: 1.3;
				color: #333;
				font-weight: 900;
			}
			> a {
				text-decoration: none;
				display: inline-block;
				&:hover {
					opacity: 0.7;
				}
				max-width: 350px;
				padding-block: 15px;
				> img {
					max-width: 100%;
				}
			}
			> div {
				> p {
					font-size: min(0.9rem, 4.5vw);
					line-height: 1.3;
					color: #333;
				}
				> a {
					text-decoration: none;
					display: inline-block;
					margin-top: 5px;
					&:hover {
						opacity: 0.7;
					}
					> img {
						max-width: 100%;
					}
				}
			}
			> p {
				margin-top: 10px;
				font-size: min(1.0rem, 5vw);
				line-height: 1.8;
				color: #333;
				font-weight: 500;
			}
			> h4 {
				border-top: 2px solid #333;
				padding-top: 15px;
				margin-top: 15px;
				font-size: min(1.1rem, 5vw);
				line-height: 1.8;
				color: #333;
				font-weight: 500;
			}
		}
	}
}
