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

	--color-accent: #004ab4;		/*青*/
}
/*
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;
	}
}
/*
breadcrumbs
*/
div.breadcrumbs {
	overflow: hidden;
	padding-block: min(100px, 12vw);
	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: #004ab4;
			&: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: #eaf3f9;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 800px) {
			display: none;
		}
		> nav {
			transition: 0.2s;
			height: 80px;
			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;
					}
					> img {
						transition: 0.2s;
						width: 168px;
					}
				}
			}
			> ul {
				display: flex;
				column-gap: 30px;
				@media (width < 1110px) {
					column-gap: 15px;
				}
				> 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: #004ab4;
							font-weight: 600;
						}
						> 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;
						}
					}
				}
			}
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.7;
				}
				> div {
					background-color: #fff;
					padding: 5px 40px;
					border-radius: 30px;
					filter: drop-shadow(0 0 7px rgba(0, 74, 180, 0.3));
					font-size: 1rem;
					color: #004ab4;
					font-weight: 600;
				}
			}
		}
		&.close {
			opacity: 0.9;
			> nav {
				height: 50px;
				> div.logo {
					> a {
						> img {
							width: 120px;
						}
					}
				}
				> div.contact {
					> a {
						> img {
							width: 150px;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: calc(100% - 10px);
		margin-top: 5px;
		margin-inline: 5px;
		z-index: 3;
		transition: opacity 0.3s;
		opacity: 1;
		@media (width < 800px) {
			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;
			border-radius: 15px;
			background-color: #ddebf4;
			> div {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						width: 140px;
					}
				}
			}
			> 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;
				border-radius: 0 15px 15px 0;
				> 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;
			border-radius: 15px;
			margin-top: 5px;
			> ul {
				margin: 0;
				list-style: none;
				background-color: var(--color-accent);
				> li {
					display: flex;
					width: 100%;
					> a {
						text-decoration: none;
						font-size: 1rem;
						line-height: 200%;
						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: #fff;
							}
						}
					}
				}
			}
			> 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 {
		}
	}
	> div.spacer {
		background-color: #eaf3f9;
		padding-top: 80px;
		@media (width < 800px) {
			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 {
	background-color: #ecefef;
	padding: 50px 5% 50px 5%;
	> div {
		max-width: 1000px;
		margin-inline: auto;
		> div.nav {
			display: grid;
            grid-template-columns: auto 1fr;
			column-gap: 80px;
			row-gap: 40px;
			@media (width < 1000px) {
				grid-template-columns: 1fr;
				text-align: center;
			}
			> div {
				> figure {
					> img {
						max-width: 100%;
					}
				}
				> p {
					margin-top: 10px;
					font-size: 1rem;
					line-height: 1.4;
					color: #111;
				}
			}
			> nav {
				margin-top: 20px;
				display: grid;
				grid-template-columns: repeat(5,auto);
				row-gap: 40px;
				column-gap: 20px;
				@media (width < 600px) {
					grid-template-columns: repeat(1,auto);
					text-align: center;
					row-gap: 0px;
				}
				> dl {
					@media (width < 600px) {
						> dt {
							margin-top: 30px;
						}
						&:nth-of-type(1) > dt {
							margin-top: 0px;
						}
					}
					> dt {
						&.empty {
							user-select: none;
							@media (width < 600px) {
								display: none;
							}
						}
						> a {
							padding-block: 5px;
							display: block;
							color: #000;
							font-size: 1rem;
							line-height: 1.2;
							font-weight: 500;
							text-decoration: none;
							&:hover {
								text-decoration: underline;
							}
						}
					}
					> 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 {
								text-decoration: underline;
							}
						}
					}
				}
				> 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 {
								text-decoration: underline;
							}
							> 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.copyright {
	padding: 20px 5% 20px 5%;
	background-color: #ecefef;
	> 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.8rem;
			line-height: 1.8;
			color: #666;
		}
	}
}
