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

	--color-accent: #b00;
}
/*
html
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #000;
	> body {
		margin: 0;
		font-family: var(--font-sans);
		font-feature-settings: "palt" 1;
		line-break: strict;
		overflow-x: hidden;
		background-color: #000;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
	}
}
/*
breadcrumbs 
*/
div.breadcrumbs {
	overflow: hidden;
	padding-block: 40px;
	padding-inline: 5%;
	@media print {
		display: none;
	}
	> div {
		margin-inline: auto;
		max-width: 1920px;
		height: 20px;
		display: flex;
		align-items: center;
		column-gap: 5px;
		> a {
			text-decoration: none;
			white-space: nowrap;
			font-size: 14px;
			line-height: 1;
			color: #fff;
			&:hover {
				opacity: 0.7;
			}
		}
		> span {
			background-image: url(../image/breadcrumbs_chevron.svg);
			background-repeat: no-repeat;
			width: 7px;
			height: 12px;
		}
	}
}
/*
header
*/
header {
	> div.pc {
		background-color: #000;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 1000px) {
			display: none;
		}
		> nav {
			transition: 0.2s;
			height: 110px;
			padding-inline: 4%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			column-gap: 30px;
			@media (width < 1110px) {
				column-gap: 15px;
			}
			> div.logo {
				flex-grow: 1;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> div {
						display: flex;
						align-items: center;
						column-gap: 15px;
						> img:nth-of-type(1) {
							transition: 0.2s;
							width: 75px;
						}
						> img {
							max-width: 100%;
						}
					}
				}
			}
			> ul {
				display: flex;
				> li {
					> a {
						text-decoration: none;
						height: 40px;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						> div:nth-of-type(1) {
							font-size: 1rem;
							color: #fff;
							font-weight: 600;
						}
						&:hover {
							opacity: 0.7;
						}
						> img {
							max-width: 100%;
							padding-inline: 10px;
						}
					}
					&:nth-of-type(2) {
						padding-right: 10px;
						border-right: 1px solid #fff;
					}
					&:nth-of-type(3) {
						padding-left: 10px;
					}
				}
			}
		}
		> div {
			padding-inline: 4%;
			display: grid;
			grid-template-columns: repeat(8, 1fr);
			justify-content: center;
			> article {
				> a {
					text-decoration: none;
					height: 40px;
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					> div:nth-of-type(1) {
						font-size: 1rem;
						color: #fff;
						font-weight: 600;
						font-family: var(--font-en);
					}
					> div:nth-of-type(2) {
						border-top: solid 2px transparent;
						width: 2rem;
						margin-top: 2px;
						&.on {
							border-color: var(--color-accent);
						}
					}
					&:hover {
						opacity: 0.7;
					}
				}
			}
		}
		&.close {
			opacity: 0.9;
			> nav {
				height: 70px;
				> div.logo {
					> a {
						> div {
							> img:nth-of-type(1) {
								width: 45px;
							}
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		background-color: #000;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 1000px) {
			display: block;
		}
		@media print {
			display: none;
		}
		> input[type="checkbox"] {
			display: none;
			&:checked {
				& + div > 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: 80px;
			> div.logo {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> div {
						display: flex;
						align-items: center;
						column-gap: 10px;
						> img:nth-of-type(1) {
							width: 50px;
						}
						> img:nth-of-type(2) {
							max-width: 100%;
							@media (width < 430px) {
								display: none;
							}
						}
					}
				}
			}
			> div.link {
				display: flex;
				> ul {
					align-self: center;
					display: flex;
					> li {
						> a {
							text-decoration: none;
							height: 40px;
							display: flex;
							flex-direction: column;
							align-items: center;
							justify-content: center;
							> div:nth-of-type(1) {
								font-size: 1rem;
								color: #fff;
								font-weight: 600;
							}
							&:hover {
								opacity: 0.7;
							}
							> img {
								max-width: 100%;
								padding-inline: 5px;
							}
						}
						&:nth-of-type(2) {
							padding-right: 10px;
							border-right: 1px solid #fff;
						}
						&:nth-of-type(3) {
							padding-left: 10px;
						}
					}
				}
				> 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%;
					> a {
						text-decoration: none;
						font-size: 1rem;
						line-height: 200%;
						font-family: var(--font-en);
						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: 10px;
						&:nth-of-type(2),&:nth-of-type(3) {
							border-left: solid 1px rgba(255,255,255,0.2);
						}
						&[target="_blank"] {
							background-image: url(../image/mark_external_fff.svg);
							background-repeat: no-repeat;
							background-position: right 20px top 50%;
						}
						> div:nth-of-type(2) {
							border-bottom: solid 2px transparent;
							width: 2em;
							&.on {
								border-color: var(--color-accent);
							}
						}
					}
				}
			}
			> 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: #fff;
				border-bottom: solid 1px #777;
				white-space: nowrap;
				background-color: #444;
				padding: 5px 0;
			}
		}
		&.close {
			opacity: 0.9;
		}
	}
	> div.spacer {
		background-color: #000;
		padding-top: 150px;
		@media (width < 1000px) {
			padding-top: 80px;
		}
	}
}
@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: 60px 5% 100px 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> h2 {
			font-size: min(3.5rem, 8.0vw);
			line-height: 1.3;
			color: #fff;
			font-weight: 600;
			letter-spacing: 2px;
			text-align: center;
			font-family: var(--font-en);
		}
		> p {
			font-size: min(1.2rem, 5.0vw);
			line-height: 1.8;
			color: #b00;
			font-weight: 600;
			text-align: center;
		}
		> h3 {
			text-align: center;
			font-size: min(1.3rem, 6.0vw);
			line-height: 2.0;
			color: #fff;
		}
		> div.text {
			padding-bottom: 40px;
			font-size: min(1.1rem, 5.0vw);
			line-height: 1.6;
			color: #fff;
			text-align: justify;
		}
		> div.link {
			margin-top: 20px;
			margin-bottom: 30px;
			display: flex;
			justify-content: center;
			> a {
				display: inline-block;
				width: 250px;
				text-align: center;
				text-decoration: none;
				line-height: 60px;
				outline: none;
				background-color: #323232;
				position: relative;
				transition: color 0.5s ease;
				&:hover {
					&::before {
						transform: scaleX(1);
						transform-origin: left;
					}
				}
				&::before {
					position: absolute;
					top: 0;
					left: 0;
					content: "";
					display: block;
					width: 100%;
					height: 100%;
					background: #a70000;
					transform: scaleX(0);
					transform-origin: right;
					transition: all 0.5s ease;
					transition-property: transform;
				}
				> div {
					padding: 20px 30px;
					position: relative;
					display: flex;
					justify-content: space-between;
					align-items: center;
					> p {
						font-size: min(1.1rem, 5.0vw);
						line-height: 1.0;
						color: #fff;
					}
					> img {
						width: 12px;
					}
				}
			}
		}
	}
}
footer.nav {
	border-top: 1px solid #505050;
	background-color: #000;
	padding: 50px 5% 50px 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		display: grid;
        grid-template-columns: auto 1fr auto;
		column-gap: 60px;
		row-gap: 40px;
		@media (width < 920px) {
			grid-template-columns: 1fr;
		}
		> div.logo {
			@media (width < 920px) {
				text-align: center;
			}
			> figure {
				> img {
					max-width: 100%;
				}
				&:nth-of-type(2) {
					padding-top: 20px;
				}
			}
			> p {
				margin-top: 10px;
				font-size: 1rem;
				line-height: 1.2;
				color: #111;
			}
		}
		> nav {
			display: grid;
			grid-template-columns: repeat(3,auto);
			column-gap: 20px;
			@media (width < 530px) {
				margin-top: 20px;
				grid-template-columns: repeat(1,auto);
				text-align: center;
				row-gap: 30px;
			}
			> dl {
				@media (width < 500px) {
					> dt {
						margin-top: 30px;
					}
					&:nth-of-type(1) > dt {
						margin-top: 0px;
					}
				}
				> dt {
					&.empty {
						user-select: none;
						@media (width < 500px) {
							display: none;
						}
					}
					> a {
						display: block;
						color: #969696;
						font-size: 1.2rem;
						line-height: 1.2;
						font-weight: 600;
						text-decoration: none;
						font-family: var(--font-en);
						&:hover {
							opacity: 0.7;
						}
					}
					&:nth-of-type(n + 2) {
						padding-top: 10px;
					}
				}
				> dd {
					> a {
						margin-block: 10px;
						display: block;
						text-decoration: none;
						font-size: 0.9rem;
						line-height: 1.2;
						color: #fff;
						&:hover {
							opacity: 0.7;
						}
					}
					&.bottomspace {
						margin-bottom: 20px;
					}
				}
				&.branch {
					> dd {
						> a {
							&::before {
								content: "-";
								color: #fff;
								font-weight: 600;
								padding-right: 5px;
							}
						}
						&.bottomspace {
							margin-bottom: 20px;
							> a {
								&::before {
									display: none;
								}
							}
						}
					}
				}
			}
			> div {
				margin-top: 10px;
				display: grid;
				grid-template-columns: 1fr auto;
				> div.link {
					display: flex;
					flex-direction: column;
					row-gap: 5px;
					> a {
						text-decoration: none;
						display: grid;
						grid-template-columns: 28px 1fr;
						align-items: end;
						&:hover {
							opacity: 0.7;
						}
						> img {
						}
						> div {
							font-size: 0.9rem;
							line-height: 1.2;
							color: #fff;
						}
					}
				}
			}
		}
		> div.link {
			align-self: start;
			justify-self: end;
			display: flex;
			align-items: center;
			column-gap: 30px;
			@media (width < 920px) {
				justify-self: center;
			}
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.7;
				}
				> figure {
					> img {
						max-width: 100%;
					}
				}
			}
		}
	}
}
footer.copyright {
	border-top: 1px solid #505050;
	padding: 20px 5% 20px 5%;
	background-color: #000;
	> div {
		max-width: 1200px;
		margin-inline: auto;
		display: flex;
		align-items: center;
		justify-content: center;
		row-gap: 20px;
		> small {
			text-align: center;
			font-size: 0.9rem;
			line-height: 1.8;
			color: #7b7473;
			font-weight: 600;
		}
	}
}
