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

	--color-accent: #006bb4;		/*青*/
}
/*
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: 2;
		background-color: #fff;
		@media (width < 810px) {
			display: none;
		}
		> div {
			padding-inline: 5% 30px;
			display: grid;
			grid-template-columns: auto 1fr 300px;
			column-gap: 20px;
			height: 90px;
			transition: height 0.2s;
			> div:nth-of-type(1) {
				align-self: center;
				transition: margin-top 0.2s;
				flex-grow: 1;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 135px;
						transition: width 0.2s;
					}
				}
			}
			> div:nth-of-type(2) {
				align-self: center;
				display: flex;
				column-gap: 20px;
				> p {
					text-align: justify;
					font-size: 1.0rem;
					line-height: 1.4;
					color: #111;
					font-weight: 600;
					> small {
						font-size: 0.8rem;
					}
				}
				@media (width < 350px) {
					> p {
						display: none;
					}
				}
			}
			> div:nth-of-type(3) {
				align-self: center;
				justify-self: end;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> div {
						background-color: #72bf44;
						border-radius: 5px;
						width: 200px;
						height: 55px;
						display: flex;
						justify-content: center;
						align-items: center;
						transition: width 0.2s, height 0.2s;
						> p {
							font-size: 1.0rem;
							color: #fff;
							font-weight: 600;
							transition: font-size 0.2s;
						}
						> img {
							width: 40px;
							transition: width 0.2s;
						}
					}
				}
			}
		}
		> nav {
			background-color: var(--color-accent);
			padding-inline: 5%;
			> ul {
				display: grid;
				grid-template-columns: repeat(6,1fr);
				@media (width < 1200px) {
					grid-template-columns: repeat(6,auto);
				}
				> li {
					padding-block: 10px;
					&:last-child {
						> div {
							border-right: 1px solid #fff;
						}
					}
					> div {
						border-left: 1px solid #fff;
						> a {
							text-decoration: none;
							height: 45px;
							display: flex;
							flex-direction: column;
							align-items: center;
							justify-content: center;
							> div {
								font-size: 1.0rem;
								color: #fff;
								font-weight: 600;
								text-align: center;
								transition: font-size 0.2s;
								@media (width < 1210px) {
									font-size: 0.9rem;
								}
								&.on {
								}
							}
						}
					}
					&:has( > div > a > div.on) {
						background-color: #004491;
					}
					&:hover {
						background-color: #002c7f;
						> a {
							> div {
								padding-bottom: 5px;
								border-bottom: 2px solid #fff;
								transition: 0.1s;
							}
						}
					}
				}
			}
		}
		&.close {
			> div {
				height: 50px;
				> div:nth-of-type(1) {
					> a {
						> img {
							width: 100px;
						}
					}
				}
				> div:nth-of-type(2) {
					> div {
						> p {
							display: none;
						}
					}
				}
				> div:nth-of-type(3) {
					> a {
						> div {
							width: 170px;
							height: 42px;
							> p {
								font-size: 0.8rem;
							}
							> img {
								width: 30px;
							}
						}
					}
				}
			}
			> nav {
				> ul {
					> li {
						&:empty {
							margin-block: 0px;
						}
						> div {
							> a {
								height: 20px;
								> div {
									font-size: 0.8rem;
								}
							}
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		background-color: #fff;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 810px) {
			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 {
				> p {
					font-size: 0.8rem;
					line-height: 1;
					color: #111;
					font-weight: 600;
					@media (width < 360px) {
						display: none;
					}
				}
				> div {
					padding-top: 5px;
					display: flex;
					align-items: center;
					column-gap: 10px;
					> a {
						text-decoration: none;
						&:hover {
							opacity: 0.7;
						}
						> img {
							display: block;
							width: 95px;
						}
					}
					> p {
						font-size: min(1.1rem, 5vw);
						line-height: 1;
						color: #111;
						font-weight: 600;
					}
				}
			}
			> label {
				box-sizing: border-box;
				width: 60px;
				height: 60px;
				cursor: pointer;
				padding: 10px 5px;
				display: grid;
				grid-template-rows: 30px;
				> div {
					margin-inline: 5px;
					grid-column: 1/2;
					grid-row: 1/2;
					width: 30px;
					justify-self: center;
					border-top: solid 4px var(--color-accent);
					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;
					}
				}
				> p {
					justify-self: center;
					padding-top: 5px;
					font-size: 0.8rem;
					line-height: 1;
					color: var(--color-accent);
					font-weight: 600;
					text-align: center;
				}
			}
		}
		> 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.4;
							color: #fff;
							&.on {
								color: #ffff56;
							}
						}
					}
				}
			}
			> 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: 155px;
		@media (width < 810px) {
			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);	}
}
/*
toplinks
*/
section.floattab {
	> div.pc {
		position: fixed;
		z-index: 3;
		top: calc(155px + 5%);
		right: 0;
		display: grid;
		row-gap: 10px;
		@media (width < 800px) {
			display: none;
		}
		> a {
			&:hover {
				opacity: 0.8;
			}
			> figure {
				> img {
					width: 80px;
					filter: drop-shadow(-1px 5px 2px rgba(0,0,0,0.1));
				}
			}
		}
	}
	> div.sp {
		display: none;
		/*
		@media (width < 800px) {
			display: grid;
			grid-template-columns: repeat(2, 1fr);
		}
		*/
		> a {
			&:nth-of-type(1) {
				background-color: #f24d0d;
			}
			&:nth-of-type(2) {
				background-color: #2e9335;
			}
			&:hover {
				opacity: 0.8;
			}
			> figure {
				text-align: center;
				> img {
					max-width: min(140px,100%);
				}
			}
		}
	}
}
/*
footer
*/
footer.nav {
	background-color: #fff;
	padding: 30px 5% 40px 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> dl {
			border-bottom: 2px solid #171c61;
			padding-bottom: 30px;
			display: grid;
			grid-template-columns: repeat(8,auto);
			column-gap: 20px;
			@media (width < 1020px) {
				grid-template-columns: repeat(4,auto);
				row-gap: 30px;
			}
			@media (width < 630px) {
				grid-template-columns: repeat(2,auto);
			}
			@media (width < 400px) {
				grid-template-columns: repeat(1,auto);
			}
			> dt {
				align-self: center;
				> a {
					text-decoration: none;
					> p {
						text-align: center;
						align-self: center;
						font-size: 0.9rem;
						color: #171c61;
						font-weight: 600;
						white-space: nowrap;
					}
					&:hover {
						opacity: 0.8;
					}
				}
			}
		}
		> div {
			padding-top: 30px;
			justify-items: center;
			display: grid;
			grid-template-columns: 200px 1fr 200px;
			@media (width < 970px) {
				grid-template-columns: 1fr;
			}
			> figure {
				@media (width < 970px) {
					display: none;
				}
				> img {
					max-width: 100%;
				}
			}
			> div {
				width: 400px;
				@media (width < 440px) {
					width: 100%;
				}
				> div {
					display: grid;
					grid-template-columns: auto 1fr;
					align-content: center;
					column-gap: 20px;
					@media (width < 440px) {
						grid-template-columns: 1fr;
						justify-items: center;
					}
					&:nth-of-type(2) {
						display: block;
					}
					> a {
						text-decoration: none;
						font-size: 1.2rem;
						color: #111;
						font-weight: 600;
						padding-block: 6px;
						white-space: nowrap;
						&:hover {
							opacity: 0.8;
						}
						> img {
							width: 135px;
						}
					}
					> p {
						font-size: 1.0rem;
						color: #111;
						font-weight: 600;
						> small {
							font-size: 0.8rem;
						}
						@media (width < 440px) {
							text-align: center;
						}
					}
					> h3 {
						font-size: min(2.0rem, 8vw);
						color: #111;
						font-weight: 600;
						line-height: 1.6;
						font-family: var(--font-serif);
						> small {
							font-size: min(1.3rem, 6vw);
						}
						@media (width < 440px) {
							text-align: center;
						}
					}
				}
			}
		}
	}
}
footer.copyright {
	padding: 30px 5% 30px 5%;
	background-color: var(--color-accent);
	> div {
		max-width: 1200px;
		margin-inline: auto;
		display: flex;
		align-items: center;
		justify-content: center;
		row-gap: 20px;
		> small {
			font-size: 0.9rem;
			line-height: 1.3;
			color: rgba(255,255,255,0.8);
			@media (width < 550px) {
				text-align: center;
				line-height: 1.5;
				font-size: 0.7rem;
			}
		}
	}
}
