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

	--color-accent: #1a2a51;	/*濃いブルー*/
	--color-accent2: #0068b7;	/*明るいブルー*/
}
/*
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: 5;
		background-color: #fff;
		@media (width < 1050px) {
			display: none;
		}
		> div {
			display: grid;
			grid-template-columns: auto 1fr auto 140px;
			grid-template-rows: 1fr;
			height: 80px;
			transition: height 0.2s;
			> div:nth-of-type(1) {
				padding-left: 2vw;
				align-self: center;
				transition: margin-top 0.2s;
				> a {
					text-decoration: none;
					display: block;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 138px;
						transition: width 0.2s;
						margin-bottom: 3px;
					}
				}
			}
			> nav {
				align-self: center;
				padding-inline: 3%;
				> ul {
					display: grid;
					grid-template-columns: repeat(6,1fr);
					@media (width < 1400px) {
						grid-template-columns: repeat(6,auto);
					}
					> li {
						> a {
							text-decoration: none;
							display: flex;
							flex-direction: column;
							align-items: center;
							justify-content: center;
							margin-top: 10px;
							height: 70px;
							transition: margin-top 0.2s, height 0.2s;
							> div {
								font-size: 1.1rem;
								color: #000;
								font-weight: 600;
								@media (width < 1200px) {
									font-size: 0.9rem;
								}
								&.hassubmenu {
									padding-right: 12px;
									background-image: url(../../common/image/submenu_arrow_333.svg);
									background-repeat: no-repeat;
									background-position: 100% 60%;
								}
								&.on {
								}
							}
						}
						> div {
							position: absolute;
							display: none;
							left: 0;
							top: 100%;
							width: 100%;
							padding-block: 10px 20px;
							white-space: nowrap;
							background-color: rgba(15,85,164,0.8);
							> dl {
								display: inline-flex;
								> dd {
									> a {
										text-decoration: none;
										display: flex;
										align-items: flex-end;
										padding: 12px 20px 12px 20px;
										&:hover {
											background-color: var(--color-accent);
										}
										> div {
											font-size: 1rem;
											line-height: 1;
											color: #fff;
											font-weight: 600;
											&.on {
												color: #3fe;
											}
										}
									}
								}
							}
						}
						&:hover {
							> a {
								background-color: #05a;
								> div {
									color: #fff;
									&.hassubmenu {
										background-image: url(../../common/image/submenu_arrow_fff.svg);
										animation-name: submenuArrowMove;
										animation-duration: 0.5s;
										animation-timing-function: ease;
										animation-iteration-count: infinite;
									}
								}
							}
							> div {
								display: block;
							}
						}
					}
				}
			}
			> div:nth-of-type(2) {
				margin-right: 20px;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				height: 100%;
				align-items: center;
				row-gap: 5px;
				transition: row-gap 0.2s;
				> a {
					text-decoration: none;
					width: 7rem;
					&:hover {
						opacity: 0.8;
					}
					> p {
						text-align: center;
						border-radius: 50px;
						border: 2px solid #05a;
						padding-block: 3px;
						background-color: #fff;
						line-height: 1;
						color: #05a;
						font-size: 0.9rem;
						transition: font-size 0.2s;
						&.on {
							background-color: #05a;
							color: #fff;
						}
					}
				}
			}
			> div:nth-of-type(3) {
				> a {
					text-decoration: none;
					background-color: var(--color-accent);
					width: 140px;
					height: 100%;
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					transition: height 0.2s;
					row-gap: 4px;
					&:hover {
						opacity: 0.8;
					}
					> img {
						display: block;
						width: 25px;
					}
					> p {
						font-size: 0.8rem;
						line-height: 1;
						color: #fff;
					}
				}
			}
		}
		&.close {
			> div {
				height: 50px;
				> nav {
					> ul {
						> li {
							&:empty {
								margin-block: 0px;
							}
							> a {
								margin-top: 0;
								height: 50px;
							}
						}
					}
				}
				> div:nth-of-type(2) {
					row-gap: 1px;
					> a {
						> p {
							font-size: 0.7rem;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		background-color: #fff;
		z-index: 6;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 1050px) {
			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 {
						display: block;
						width: 140px;
					}
				}
				> 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: 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);
				&:has(> li.holder.one > label > input:checked) {
					> li.menu.one {
						max-height: 70px;
					}
					> li.holder.one > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				&:has(> li.holder.two > label > input:checked) {
					> li.menu.two {
						max-height: 70px;
					}
					> li.holder.two > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				&:has(> li.holder.three > label > input:checked) {
					> li.menu.three {
						max-height: 70px;
					}
					> li.holder.three > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				&:has(> li.holder.four > label > input:checked) {
					> li.menu.four {
						max-height: 70px;
					}
					> li.holder.four > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				&:has(> li.holder.five > label > input:checked) {
					> li.menu.five {
						max-height: 70px;
					}
					> li.holder.five > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				&:has(> li.holder.six > label > input:checked) {
					> li.menu.six {
						max-height: 70px;
					}
					> li.holder.six > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				> li.menu {
					display: flex;
					width: 100%;
					&.submenu {
						max-height: 0;
						overflow: hidden;
						background-color: #236;
						transition: max-height 0.3s;
						> a {
							width: 100%;
							> div {
								font-size: min(1rem,4.5vw);
							}
						}
					}
					> 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;
						&: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: min(1rem,4.5vw);
							line-height: 1.2;
							color: #fff;
							&.on {
								color: #3fe;
							}
						}
					}
				}
				> li.holder {
					border-bottom: solid 1px rgba(255,255,255,0.2);
					> label {
						padding-block: 15px;
						display: grid;
						> input {
							display: none;
						}
						> div {
							grid-area: 1/1/2/2;
							white-space: nowrap;
							font-size: min(1rem,4.5vw);
							line-height: 1.2;
							color: #fff;
							&:nth-of-type(1) {
								justify-self: center;
								> span {
									display: inline-block;
									background-image: url(../image/submenu_arrow_fff.svg);
									background-repeat: no-repeat;
									background-position: 100% 50%;
									padding-inline: 10px;
								}
							}
							&:nth-of-type(2) {
								width: 50px;
								justify-self: end;
								transition: transform 0.3s;
							}
						}
					}
				}
			}
			> 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;
			}
		}
	}
	> div.spacer {
		padding-top: 80px;
		@media (width < 1050px) {
			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.nav {
	padding: 30px 5% 30px 5%;
	background-color: #fff;
	> div {
		max-width: 1200px;
		margin-inline: auto;
		> dl {
			display: grid;
			grid-template-columns: repeat(6,auto);
			@media (width < 1100px) {
				grid-template-columns: repeat(3,auto);
			}
			@media (width < 800px) {
				grid-template-columns: repeat(2,auto);
			}
			@media (width < 540px) {
				grid-template-columns: repeat(1,auto);
			}
			> div {
				> dt {
					margin-top: 20px;
					> a {
						display: inline-block;
						text-decoration: none;
						font-size: 1.2rem;
						color: #222;
						font-weight: 600;
						padding-block: 6px;
						white-space: nowrap;
						&:hover {
							text-decoration: underline;
						}
						&.on {
							color: var(--color-accent2);
						}
					}
				}
				> dd {
					margin-top: 5px;
					> a {
						display: block;
						text-decoration: none;
						font-size: 1rem;
						line-height: 1.3;
						color: #222;
						font-weight: 400;
						padding-block: 3px;
						padding-left: 1.3em;
						text-indent: -1.3em;
						&::before {
							content: "－";
							padding-right: 5px;
						}
						&:hover {
							text-decoration: underline;
						}
						&.on {
							color: var(--color-accent2);
						}
					}
				}
			}
		}
		> div {
			display: flex;
			justify-content: end;
			@media (width < 540px) {
				margin-top: 30px;
				justify-content: center;
			}
			> a {
				border-radius: 10px;
				padding: 10px 15px;
				text-decoration: none;
				background-color: var(--color-accent);
				display: flex;
				justify-content: center;
				align-items: center;
				column-gap: 10px;
				&:hover {
					opacity: 0.8;
				}
				> img {
					display: block;
					width: 25px;
				}
				> p {
					font-size: 0.9rem;
					line-height: 1;
					color: #fff;
				}
			}
		}
	}
}
footer.address {
	padding: 20px 5% 20px 5%;
	background-color: var(--color-accent2);
	> div {
		max-width: 1200px;
		margin-inline: auto;
		display: flex;
		align-items: center;
		justify-self: center;
		column-gap: 20px;
		row-gap: 20px;
		@media (width < 600px) {
			flex-direction: column;
		}
		> figure {
			> img {
				min-width: 150px;
				max-width: 100%;
			}
		}
		> p {
			flex-grow: 1;
			font-size: 1rem;
			line-height: 1.7;
			color: #fff;
			@media (width < 600px) {
				text-align: center;
			}
		}
	}
}
footer.copyright {
	padding: 20px 5% 20px 5%;
	background-color: #231815;
	> div {
		text-align: center;
		> small {
			display: inline-block;
			font-size: 0.9em;
			line-height: 1.3;
			color: rgba(255,255,255,0.5);
		}
	}
}
