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

	--color-accent: #009fe8;		/*青*/
}
/*
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;
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: all 0.3s;
		@media (width < 1030px) {
			display: none;
		}
		> div {
			background-color: #fff;
			display: grid;
			grid-template-columns: auto 1fr auto;
			height: 100px;
			transition: height 0.2s;
			> div.logo {
				position: relative;
				> a {
					position: absolute;
					top: 30%;
					left: 40px;
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 284px;
						transition: width 0.2s;
					}
				}
			}
			> nav {
				align-self: center;
				justify-self: end;
				> ul {
					height: 100%;
					margin-right: 50px;
					display: flex;
					@media (width < 1200px) {
						margin-right: 30px;
					}
					> li {
						height: 100px;
						transition: height 0.2s;
						padding-inline: 30px;
						display: flex;
						flex-direction: column;
						justify-content: center;
						@media (width < 1200px) {
							padding-inline: 14px;
						}
						> a {
							display: block;
							text-decoration: none;
							> div {
								font-size: 1.0rem;
								color: #333;
								font-weight: 600;
								&.hassubmenu {
									padding-right: 12px;
									background-image: url(../image/submenu_arrow.svg);
									background-repeat: no-repeat;
									background-position: 100% 60%;
								}
								&.on {
									color: var(--color-accent);
								}
							}
						}
						> div {
							position: absolute;
							display: none;
							left: 0;
							top: calc(100% - 1px);
							width: 100%;
							padding-block: 10px 20px;
							white-space: nowrap;
							background-color: #444;
							> dl {
								display: inline-flex;
								> dd {
									> a {
										text-decoration: none;
										display: flex;
										align-items: flex-end;
										padding: 12px 20px 12px 10px;
										&:hover {
											background-color: var(--color-accent);
										}
										> div {
											font-size: 1rem;
											line-height: 1;
											color: #fff;
											font-weight: 500;
											&.on {
												color: #46fefd;
											}
										}
									}
								}
							}
						}
						&:hover {
							> a {
								> div {
									&.hassubmenu {
										animation-name: submenuArrowMove;
										animation-duration: 0.5s;
										animation-timing-function: ease;
										animation-iteration-count: infinite;
									}
								}
							}
							> div {
								display: block;
							}
						}
						&:last-of-type {
							padding-right: 0px;
						}
					}
				}
			}
			> div.link {
				padding-right: 30px;
				display: grid;
				grid-template-columns: 1fr 1fr;
				column-gap: 10px;
				> a {
					text-decoration: none;
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					&:hover {
						opacity: 0.8;
					}
					> div {
						font-size: 0.9rem;
						line-height: 1;
						color: #333;
						border: 1px solid #009fe8;
						padding: 10px;
						font-weight: 600;
						
					}
					&:nth-of-type(1) {
						> div {
							color: #fff;
							background-color: #009fe8;
							width: 100%;
							text-align: center;
						}
					}
				}
			}
		}
		&.close {
			background-color: rgba(0,0,0,0.95);
			> div {
				height: 50px;
				> div.logo {
					> a {
						transition: all 0.3s;
						top: 15%;
						left: 40px;
						> img {
							width: 230px;
						}
					}
				}
				> nav {
					> ul {
						> li {
							height: 50px;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: background-color 0.2s;
		@media (width < 1030px) {
			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 {
			background-color: #fff;
			padding-left: 4%;
			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: 230px;
						@media (width < 350px) {
							width: 210px;
						}
					}
				}
			}
			> label {
				box-sizing: border-box;
				width: 60px;
				height: 60px;
				background-color: #143282;
				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 {
				background-color: #143282;
				> li {
					display: flex;
					> 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: #4df;
							}
						}
					}
				}
			}
			> 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 {
			background-color: rgba(0,0,0,0.95);
		}
	}
	> div.spacer {
		padding-top: 100px;
		@media (width < 1030px) {
			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.contact {
	padding: min(50px,4vw) 5% min(50px,4vw) 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		@media (width < 830px) {
			grid-template-columns: repeat(1, 1fr);
		}
		> article {
			padding: 10px 30px;
			justify-content: center;
			&:nth-of-type(1) {
				border-right: 1px solid #aaa;
				@media (width < 830px) {
					border-right: none;
					border-bottom: 1px solid #aaa;
				}
			}
			@media (width < 880px) {
				padding: 20px;
			}
			@media (width < 830px) {
				padding: 20px 20px 30px 20px;
				margin-inline: 50px;
			}
			@media (width < 530px) {
				margin-inline: 0px;
			}
			> figure {
				height: 50px;
				display: flex;
				align-items: center;
				justify-content: center;
				> img {
					max-width: 100%;
				}
			}
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.8;
				}
				> figure {
					text-align: center;
					> img {
						max-width: 100%;
					}
				}
			}
			> h1 {
				padding-block: 20px;
				display: block;
				text-align: center;
				font-size: 1.4rem;
				line-height: 1.4;
				color: #333;
				font-weight: 600;
			}
			> p {
				padding-top: 20px;
				text-align: center;
				font-size: min(0.9rem,4.5vw);
				line-height: 1.3;
				color: #333;
				font-weight: 600;
			}
			> a {
				margin-top: 10px;
				justify-self: center;
				display: grid;
				text-decoration: none;
				@media (width < 410px) {
					justify-self: unset;
				}
				> div.link {
					background-color: var(--color-accent);
					background-image: url(../image/link_mark.svg);
					background-repeat: no-repeat;
					background-size: 20px 20px;
					background-position: 82% 50%;
					width: 320px;
					height: 80px;
					margin-inline: auto;
					display: flex;
					align-items: center;
					justify-content: center;
					
					> p {
						font-size: 1.0rem;
						color: #fff;
					}
					@media (width < 410px) {
						width: 100%;
						background-position: 92% 50%;
					}
				}
			}
		}
	}
}
footer.nav {
	padding: 40px 5% 40px 5%;
	background-color: #444;
	@media (width < 600px) {
		padding: 40px 5% 50px 5%;
	}
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> nav {
			display: grid;
			grid-template-columns: repeat(4,auto);
			column-gap: 40px;
			row-gap: 40px;
			@media (width < 1100px) {
				grid-template-columns: repeat(3,auto);
			}
			@media (width < 830px) {
				grid-template-columns: repeat(2,auto);
			}
			@media (width < 600px) {
				grid-template-columns: repeat(1,auto);
			}
			> article {
				> a {
					text-decoration: none;
					color: #fff;
					&[href]:hover {
						text-decoration: underline;
					}
					> div {
						font-size: 1.1rem;
						color: #fff;
						font-weight: 600;
					}
				}
				> div {
					padding-top: 20px;
					display: flex;
					@media (width < 360px) {
						flex-direction: column;
						> ul:nth-of-type(2) {
							padding-top: 15px;
						}
					}
					> ul {
						align-self: start;
						border-left: 1px solid #fff;
						text-align: center;
						column-gap: 20px;
						row-gap: 20px;
						> li {
							margin: 0px 0px 15px 20px;
							justify-self: start;
							&:last-of-type {
								margin: 0px 0px 0px 20px;
							}
							> a {
								text-decoration: none;
								align-items: center;
								color: #fff;
								&:hover {
									text-decoration: underline;
								}
								> div {
									text-align: left;
									font-size: 0.9rem;
									color: #fff;
									line-height: 1.3;
									&.on {
										color: #4df;
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
footer.address {
	padding: 20px 5% 20px 5%;
	background-color: #e6e6e6;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		display: flex;
		align-items: end;
		column-gap: 30px;
		justify-content: center;
		@media (width < 670px) {
			flex-flow: column;
			align-items: unset;
			row-gap: 5px;
		}
		> figure {
			@media (width < 670px) {
				text-align: center;
			}
			> img {
				width: 230px;
			}
		}
		> small {
			padding-bottom: 3px;
			display: block;
			text-align: center;
			font-size: min(0.9rem,4.5vw);
			line-height: 1.3;
			color: #333;
			@media (width < 670px) {
				padding-bottom: 0px;
				line-height: 1.6;
			}
		}
	}
}
footer.copyright {
	padding: 20px 5% 20px 5%;
	background-color: #143282;
	> 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;
			letter-spacing: 1px;
		}
	}
}
