/*
font
*/
@font-face {
	font-family: "Noto Sans JP";
	src: url("../font/NotoSansJP-VariableFont_wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Noto Serif JP";
	src: url("../font/NotoSerifJP-VariableFont_wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../font/Inter-VariableFont_opsz,wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
/*
config
*/
:root {
	--font-sans: "Noto Sans JP",sans-serif;
	--font-en: "Inter",sans-serif;

	--color-dark: #4D4449;		/*暗い背景*/
	--color-gray: #edeced;		/*明るい背景*/
	--color-accent: #b7d100;	/*ロゴの緑色*/
}
/*
html
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #fff;
	> body {
		margin: 0;
		font-family: var(--font-sans);
		font-feature-settings: "palt" 1;
		line-break: strict;
		overflow-x: hidden;
		background-color: #fff;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 900px) {
			display: none;
		}
		> div {
			background-color: var(--color-dark);
			padding-inline: 5%;
			display: flex;
			justify-content: space-between;
			height: 80px;
			transition: height 0.2s;
			> div:nth-of-type(1) {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 214px;
						transition: width 0.2s;
					}
				}
			}
			> div:nth-of-type(2) {
				display: flex;
				align-items: center;
				column-gap: 25px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						transition: width 0.2s;
					}
				}
			}
		}
		> nav {
			padding: 10px 5% 0 5%;
			background-color: var(--color-dark);
			> ul {
				display: flex;
				justify-content: space-between;
				> li {
					> a {
						text-decoration: none;
						height: 30px;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						> div {
							font-size: 1rem;
							color: #fff;
							font-weight: 600;
							&.hassubmenu {
								padding-right: 12px;
								background-image: url(../../common/image/submenu_arrow_fff.svg);
								background-repeat: no-repeat;
								background-position: 100% 60%;
							}
							&.on {
								color: var(--color-accent);
							}
						}
						&:hover {
							opacity: 0.7;
						}
					}
					> div {
						position: absolute;
						display: none;
						left: 0;
						top: calc(100% - 5px);
						width: 100%;
						padding-block: 10px 20px;
						white-space: nowrap;
						background-image: linear-gradient(rgba(78,70,74,1) 10%,rgba(78,70,74,0.8));
						> dl {
							display: flex;
							> dd {
								> a {
									text-decoration: none;
									display: flex;
									align-items: flex-end;
									padding: 6px 60px 6px 10px;
									&:hover {
										background-color: #000;
									}
									> div {
										font-size: 1rem;
										color: #fff;
										font-weight: 600;
										&.on {
											color: var(--color-accent);
										}
									}
								}
							}
						}
					}
					&:hover {
						> a {
							> div {
								&.hassubmenu {
									animation-name: submenuArrowMove;
									animation-duration: 0.5s;
									animation-timing-function: ease;
									animation-iteration-count: infinite;
								}
							}
						}
						> div {
							display: block;
						}
					}
				}
			}
		}
		&.close {
			opacity: 0.9;
			> div {
				height: 35px;
				> div:nth-of-type(1) {
					> a {
						> img {
							width: 180px;
						}
					}
				}
			}
			> nav {
				padding: 1px 5% 2px 5%;
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		background-color: var(--color-dark);
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 900px) {
			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-left: 5%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 60px;
			> div {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						width: 150px;
					}
				}
				> p {
					font-size: 0.8rem;
					line-height: 1;
					color: #fff;
					@media (width < 350px) {
						display: none;
					}
				}
			}
			> label {
				box-sizing: border-box;
				width: 60px;
				height: 60px;
				background-color: #000;
				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: #000;
				> li {
					display: flex;
					width: 100%;
					&.hassecond {
						> a {
							border-bottom: none;
							padding-block: 15px 0;
						}
					}
					> a {
						text-decoration: none;
						font-size: 0.9rem;
						line-height: 1.2;
						color: #fff;
						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: 20px;
						width: 100%;
						&[target="_blank"] {
							background-image: url(../image/mark_external_fff.svg);
							background-repeat: no-repeat;
							background-position: right 20px top 50%;
						}
						> div {
							&.on {
								color: var(--color-accent);
							}
						}
					}
					> p {
						padding-top: 5px;
						width: 100%;
						text-align: center;
						font-size: 0.8rem;
						line-height: 1;
						color: rgba(255,255,255,0.5);
					}
				}
			}
			> input[type="radio"] {
				display: none;
				& + ul {
					overflow: hidden;
					transition: 0.5s;
					max-height: 0;
				}
				&:checked + ul {
					max-height: 300px;
				}
			}
			> 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 {
			opacity: 0.9;
		}
	}
	> div.spacer {
		background-color: var(--color-dark);
		padding-top: 130px;
		@media (width < 900px) {
			padding-top: 60px;
		}
	}
}
@keyframes submenuArrowMove {
	0% {
		background-position: 100% 58%;
	}
	25% {
		background-position: 100% 70%;
	}
	50% {
		background-position: 100% 58%;
	}
	75% {
		background-position: 100% 46%;
	}
	100% {
		background-position: 100% 58%;
	}
}
@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.contact {
	padding: min(80px,15vw) 5% min(80px,15vw) 5%;
	background-color: var(--color-accent);
	> a {
		display: block;
		max-width: 600px;
		margin-inline: auto;
		padding: 40px 50px;
		text-align: center;
		background-color: #fff;
		text-decoration: none;
		background-image: url(../image/footer_contactarrow.svg);
		background-repeat: no-repeat;
		background-position: right 30px top 50%;
		@media (width < 790px) {
			padding: 30px 50px 30px 30px;
			background-size: 40px;
			background-position: right 15px top 50%;
		}
		&:hover {
			opacity: 0.7;
		}
		> div {
			font-size: 1.3rem;
			line-height: 1.3;
			color: var(--color-dark);
			font-weight: 600;
			@media (width < 430px) {
				font-size: 1.2rem;
			}
		}
	}
}
footer.mic {
	background-color: var(--color-dark);
	padding: 50px 5% 0 5%;
	> div {
		display: flex;
		justify-content: center;
		align-items: center;
		column-gap: 30px;
		row-gap: 10px;
		@media (width < 470px) {
			flex-direction: column;
		}
		> p {
			font-size: 0.9rem;
			color: #fff;
		}
		> a {
			text-decoration: none;
			&:hover {
				opacity: 0.7;
			}
			> img {}
		}
	}
}
footer.nav {
	background-color: var(--color-dark);
	padding: 50px 5% 0 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		border-top: solid 1px rgba(255,255,255,0.3);
		padding-top: 40px;
		> nav {
			max-width: 900px;
			margin-inline: auto;
			display: flex;
			flex-direction: column;
			row-gap: 20px;
			> dl {
				display: flex;
				column-gap: 70px;
				row-gap: 20px;
				@media (width < 920px) {
					column-gap: 30px;
				}
				@media (width < 770px) {
					flex-direction: column;
					text-align: center;
				}
				> div {
					> dt {
						> a {
							display: block;
							text-decoration: none;
							font-size: 0.9rem;
							color: #fff;
							font-weight: 500;
							padding-block: 6px;
							&:hover {
								text-decoration: underline;
							}
						}
					}
					> dd {
						> a {
							display: block;
							text-decoration: none;
							font-size: 0.8rem;
							color: #eee;
							font-weight: 400;
							padding-block: 6px;
							&:hover {
								text-decoration: underline;
							}
						}
					}
				}
			}
		}
	}
}
footer.address {
	background-color: var(--color-dark);
	padding: 50px 5% 0 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		border-top: solid 1px rgba(255,255,255,0.3);
		padding: 50px 50px 0 50px;
		display: flex;
		column-gap: 60px;
		row-gap: 30px;
		align-items: center;
		@media (width < 1100px) {
			padding: 50px 0px 0 0px;
		}
		@media (width < 550px) {
			flex-direction: column;
			text-align: center;
		}
		> figure {
			max-width: 225px;
			> img {
				max-width: 100%;
			}
		}
		> div {
			> h2 {
				font-size: 0.9rem;
				line-height: 1.2;
				color: #fff;
			}
			> h1 {
				margin-top: 5px;
				font-size: 1.2rem;
				line-height: 1.2;
				color: #fff;
			}
			> div {
				margin-top: 20px;
				> h3 {
					font-size: 0.9rem;
					line-height: 1.2;
					color: #fff;
				}
				> div {
					display: flex;
					column-gap: 30px;
					@media (width < 1000px) {
						flex-direction: column;
					}
					> p {
						margin-top: 5px;
						font-size: 0.9rem;
						line-height: 1.2;
						color: #fff;
					}
				}
			}
		}
	}
}
footer.copyright {
	background-color: var(--color-dark);
	padding: 50px 5% 50px 5%;
	text-align: center;
	> small {
		display: inline-block;
		font-size: 0.75rem;
		line-height: 1.3;
		color: #aaa;
	}
}
