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

	--color-accent: #2fb4b9;		/*薄いブルー*/
}
/*
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;
	}
}
/*
nav,main
*/
body {
	display: grid;
	grid-template-columns: 250px 1fr;
	@media (width < 950px) {
		grid-template-columns: 1fr;
	}
	> nav {
	}
	> main {
		max-width: 1670px;
	}
}
/*
header
*/
body > nav > header {
	> div.pc {
		padding-top: 20px;
		padding-left: 30px;
		position: fixed;
		user-select: none;
		@media (width < 950px) {
			display: none;
		}
		> div {
			> img {
				max-width: 100%;
			}
		}
		> nav {
			margin-top: 20px;
			> dl {
				&:has(> dt > label > input[type="checkbox"]:checked) {
					padding-bottom: 8px;
					> dd {
						margin-bottom: 3px;
						max-height: 25px;
					}
				}
				> dt {
					font-size: 1.1rem;
					line-height: 1.2;
					font-weight: 500;
					> label {
						padding-block: 5px;
						display: block;
						cursor: pointer;
						&:hover {
							opacity: 0.7;
						}
						> input[type="checkbox"] {
							display: none;
						}
						> div {
							display: inline-block;
							color: #000;
							background-image: url(../image/submenu_arrow.svg);
							background-repeat: no-repeat;
							background-position: 100% 50%;
							padding-right: 12px;
						}
					}
					> a {
						padding-block: 5px;
						display: block;
						color: #000;
						text-decoration: none;
						&:hover {
							opacity: 0.7;
						}
					}
				}
				> dd {
					max-height: 0;
					overflow: hidden;
					transition: 0.3s;
					> a {
						margin-top: 5px;
						display: block;
						text-decoration: none;
						font-size: 0.9rem;
						line-height: 1.2;
						color: #222;
						&::before {
							content: "―";
							color: var(--color-accent);
							font-weight: 700;
							padding-right: 5px;
						}
						&:hover {
							opacity: 0.7;
						}
					}
				}
			}
			> div {
				margin-top: 15px;
				display: grid;
				grid-template-columns: 1fr auto;
				> div.link {
					display: flex;
					flex-direction: column;
					row-gap: 10px;
					> 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: #222;
						}
					}
				}
				> div.sns {
					margin-top: auto;
					display: grid;
					grid-template-columns: 1fr 1fr;
					align-items: center;
					column-gap: 10px;
					> a {
						text-decoration: none;
						&:hover {
							opacity: 0.7;
						}
						> img {
							display: block;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		background-color: #fff;
		z-index: 3;
		@media (width < 950px) {
			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: 160px;
					}
				}
				> 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);
				> 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;
				}
			}
			> 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 {
		padding-top: 0px;
		@media (width < 700px) {
			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.nav01 {
	padding-top: 40px;
	@media (width < 950px) {
		padding-inline: 5vw;
	}
	> div {
		display: grid;
		grid-template-columns: 150px 1fr;
		column-gap: 60px;
		row-gap: 20px;
		@media (width < 1470px) {
			grid-template-columns: 1fr;
		}
		> div {
			text-align: center;
			> img {
				max-width: 100%;
			}
		}
		> nav {
			margin-top: 20px;
			display: grid;
			grid-template-columns: repeat(8,auto);
			row-gap: 40px;
			@media (width < 1230px) {
				grid-template-columns: repeat(4,auto);
			}
			@media (width < 700px) {
				grid-template-columns: repeat(2,auto);
			}
			@media (width < 500px) {
				grid-template-columns: repeat(1,auto);
				text-align: center;
			}
			> dl {
				> dt {
					> a {
						padding-block: 5px;
						display: block;
						color: #000;
						font-size: 1rem;
						line-height: 1.2;
						font-weight: 500;
						text-decoration: none;
						&:hover {
							opacity: 0.7;
						}
					}
				}
				> dd {
					> a {
						margin-top: 10px;
						display: block;
						text-decoration: none;
						font-size: 0.9rem;
						line-height: 1.2;
						color: #222;
						&::before {
							content: "-";
							color: var(--color-accent);
							font-weight: 700;
							padding-right: 5px;
						}
						&:hover {
							opacity: 0.7;
						}
					}
				}
			}
			> 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: #222;
						}
					}
				}
				> div.sns {
					margin-top: auto;
					display: grid;
					grid-template-columns: 1fr 1fr;
					align-items: center;
					column-gap: 10px;
					> a {
						text-decoration: none;
						&:hover {
							opacity: 0.7;
						}
						> img {
							display: block;
						}
					}
				}
			}
		}
	}
}
footer.nav02 {
	padding-block: 40px;
	padding-right: min(50px,5vw);
	@media (width < 950px) {
		padding-inline: 5vw;
	}
	> div {
		display: flex;
		column-gap: 30px;
		@media (width < 500px) {
			justify-content: center;
		}
		> 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: #222;
			}
		}
	}
}
footer.copyright {
	padding: 20px 5% 20px 5%;
	background-color: var(--color-accent);
	> div {
		text-align: center;
		> small {
			display: inline-block;
			font-size: 0.9em;
			line-height: 1.3;
			color: rgba(255,255,255,0.5);
		}
	}
}
