/*
config
*/
:root {
	--font-sans: "Noto Sans JP",sans-serif;
	--font-serif: "Noto Serif JP",serif;

	--color-accent: #e50012;
}
/*
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;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
		&.bg_fff {
			background-image: unset;
		}
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: all 0.3s;
		background-color: #fff;
		@media (width < 970px) {
			display: none;
		}
		> div {
			display: grid;
			grid-template-columns: auto 1fr auto;
			height: 70px;
			transition: height 0.2s;
			> div.logo {
				align-self: center;
				display: flex;
				margin-left: 20px;
				column-gap: 20px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 100px;
						transition: width 0.2s;
					}
				}
				> p {
					font-size: min(0.9rem, 4.5vw);
					color: #666666;
					font-weight: 600;
				}
			}
			> nav {
				align-self: center;
				justify-self: end;
				padding-right: 40px;
				> ul {
					display: flex;
					> li {
						padding-inline: 30px;
						@media (width < 1200px) {
							padding-inline: 10px;
						}
						> a {
							text-decoration: none;
							> div {
								font-size: 1.0rem;
								color: #464646;
								font-weight: 600;
								@media (width < 1200px) {
									font-size: 0.9rem;
								}
								&.on {
									color: var(--color-accent);
								}
							}
						}
						&:hover {
							> a {
								opacity: 0.8;
							}
						}
						&:last-of-type {
							border-right: none;
							padding-right: 0px;
						}
					}
				}
			}
			> div.contact {
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> div {
						padding: 10px 40px 10px 50px;
						background: linear-gradient(to left, #885824,#d6b015,#885824);
						clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
						height: 100%;
						transition: height 0.3s, width 0.3s ease;
						display: grid;
						> p {
							align-self: center;
							text-align: center;
							font-size: 1.2rem;
							line-height: 1;
							color: #fff;
						}
					}
				}
			}
		}
		&.close {
			> div {
				height: 50px;
				> div.logo {
					> a {
						transition: all 0.3s;
						> img {
						}
					}
				}
				> nav {
				}
				> div.contact {
					> a {
						> img {
							transition: height 0.3s, width 0.3s ease;
							height: 80px;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: background-color 0.2s;
		&.noshadow {
			&.close {
				background-color: #fff;
			}
		}
		@media (width < 970px) {
			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: 2%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 60px;
			> div {
				display: flex;
				align-items: center;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						display: block;
						width: 100px;
					}
				}
			}
			> label {
				box-sizing: border-box;
				width: 60px;
				height: 60px;
				background-color: var(--color-accent);
				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: var(--color-accent);
				> 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: 15px;
						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%;
						}
						> div {
							font-size: 1rem;
							line-height: 1.2;
							color: #fff;
								&.on {
								color: #ff0;
							}
						}
					}
				}
			}
			> input[type="radio"] {
				display: none;
				& + ul {
					overflow: hidden;
					transition: 0.5s;
					max-height: 0;
				}
				&:checked + ul {
					max-height: 300px;
				}
			}
		}
		&.close {
			background-color: #fff;
		}
	}
	> div.spacer {
		padding-top: 70px;
		@media (width < 970px) {
			padding-top: 60px;
		}
	}
}
@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: 100px 5% 50px 5%;
	background-color: #fff;
	@media (width < 780px) {
		padding: 40px 5% 50px 5%;
	}
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> div.address {
			display: flex;
			column-gap: 50px;
			align-items: center;
			@media (width < 780px) {
				display: block;
			}
			> figure {
				@media (width < 780px) {
					padding-bottom: 20px;
				}
				@media (width < 580px) {
					text-align: center;
				}
				> img {
					width: 130px;
				}
			}
			> div {
				align-self: center;
				display: grid;
				grid-template-columns: auto 1fr;
				column-gap: 20px;
				@media (width < 580px) {
					grid-template-columns: 1fr;
					row-gap: 20px;
				}
				> a {
					text-align: center;
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						max-width: auto;
					}
				}
				> div {
					align-self: center;
					@media (width < 720px) {
						text-align: center;
					}
					> p {
						padding-block: 2px;
						font-size: 0.9rem;
						line-height: 1.7;
						color: #333;
					}
				}
			}
		}
		> nav {
			margin-top: 20px;
			padding-block: 20px;
			border-top: 1px solid #b3b3b3;
			border-bottom: 1px solid #b3b3b3;
			display: flex;
			justify-content: space-between;
			@media (width < 740px) {
				display: block;
			}
			> ul {
				display: flex;
				flex-wrap: wrap;
				text-align: center;
				column-gap: 20px;
				row-gap: 20px;
				@media (width < 740px) {
					justify-content: center;
				}
				&:nth-of-type(2) {
					@media (width < 740px) {
						justify-content: center;
						padding-top: 20px;
					}
				}
				> li {
					> a {
						text-decoration: none;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						> div {
							text-align: left;
							font-size: 0.9rem;
							color: #111;
							font-weight: 600;
							@media (width < 1200px) {
								font-size: 0.9rem;
							}
							@media (width < 440px) {
								text-align: center;
							}
						}
					}
					&:hover {
						> a {
							opacity: 0.8;
						}
					}
				}
			}
		}
		> div.privacy {
			padding-top: 10px;
			text-align: right;
			@media (width < 740px) {
				text-align: center;
			}
			> a {
				text-decoration: none;
				> div {
					font-size: 0.9rem;
					color: #464646;
					font-weight: 600;
					@media (width < 1200px) {
						font-size: 0.9rem;
					}
				}
				&:hover {
					opacity: 0.8;
				}
			}
		}
	}
}
footer.copyright {
	padding: 20px 5% 20px 5%;
	background-color: #333333;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> small {
			display: block;
			text-align: center;
			font-size: min(0.8rem,4vw);
			line-height: 1.3;
			color: #fff;
		}
	}
}
