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

	--color-accent: #207a42;		/*緑*/
}
/*
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;
		padding-inline: 5vw;
		height: 80px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		transition: height 0.2s, background-color 0.2s;
		@media (width < 800px) {
			display: none;
		}
		> div {
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.8;
				}
				> img {
					width: 220px;
					transition: width 0.2s;
				}
			}
		}
		> nav {
			> ul {
				display: grid;
				grid-template-columns: repeat(3,auto);
				> li {
					> a {
						text-decoration: none;
						height: 80px;
						padding-inline: 20px;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						transition: height 0.2s;
						> div {
							font-size: 1.1rem;
							color: #000;
							@media (width < 1200px) {
								font-size: 0.9rem;
							}
							&.on {
								color: var(--color-accent);
							}
						}
					}
					&:hover {
						> a {
							background-color: rgba(255,255,255,0.9);
						}
					}
				}
			}
		}
		&.close {
			background-color: rgba(255,255,255,0.95);
			height: 40px;
			> div {
				> a {
					> img {
						width: 150px;
					}
				}
			}
			> nav {
				> ul {
					> li {
						> a {
							height: 40px;
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 3;
		transition: background-color 0.2s;
		@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;
			> div {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						display: block;
						width: 220px;
					}
				}
				> 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 {
			background-color: rgba(255,255,255,0.95);
		}
	}
	> div.spacer {
		padding-top: 0px;
		@media (width < 800px) {
			padding-top: 0px;
		}
	}
}
@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.link {
	> div {
		max-width: 1920px;
		margin-inline: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		@media (width < 600px) {
			grid-template-columns: 1fr;
		}
		> article {
			display: grid;
			> figure {
				grid-area: 1/1/2/2;
				> img {
					width: 100%;
					height: 100%;
					object-fit: cover;
				}
			}
			> div {
				grid-area: 1/1/2/2;
				justify-self: center;
				align-self: center;
				max-width: 80%;
				> a {
					text-decoration: none;
					display: block;
					&:hover {
						background-color: rgba(255,255,255,0.2);
					}
					> img {
						max-width: 100%;
					}
				}
			}
		}
	}
}
footer.nav {
	padding: 50px 5% 60px 5%;
	background-color: #fff;
	> div {
		max-width: 1200px;
		margin-inline: auto;
		display: grid;
		grid-template-columns: 255px 1fr 150px;
		align-items: center;
		row-gap: 30px;
		@media (width < 1200px) {
			grid-template-columns: 1fr;
			max-width: 600px;
		}
		> div.logo {
			@media (width < 1200px) {
				text-align: center;
			}
			> a {
				&:hover {
					opacity: 0.7;
				}
				> img {
				}
			}
		}
		> div.nav {
			border-left: solid 1px #666;
			padding-left: 30px;
			padding-right: 30px;
			@media (width < 1200px) {
				border-left: none;
				padding-left: 0px;
				padding-right: 0px;
			}
			> dl {
				display: grid;
				grid-template-columns: repeat(3,1fr);
				row-gap: 10px;
				@media (width < 600px) {
					grid-template-columns: repeat(1,1fr);
					text-align: center;
				}
				> div {
					display: flex;
					flex-direction: column;
					row-gap: 10px;
					> dd {
						> a {
							display: inline-block;
							font-size: 1rem;
							color: #111;
							padding-block: 3px;
							&[target="_blank"] {
								padding-right: 20px;
								background-image: url(../image/mark_external.svg);
								background-repeat: no-repeat;
								background-position: 100% 50%;
							}
							&:hover {
								text-decoration: underline;
							}
						}
					}
				}
			}
			> p {
				margin-top: 20px;
				font-size: 0.9rem;
				color: #111;
				@media (width < 600px) {
					font-size: 0.8rem;
				}
			}
		}
		> div.sns {
			width: 150px;
			@media (width < 1200px) {
				margin-inline: auto;
				text-align: center;
			}
			> figure {
				> a {
					&:hover {
						opacity: 0.7;
					}
					> img {}
				}
			}
			> p {
				margin-top: 20px;
				font-size: 0.8rem;
				color: #111;
			}
			> div {
				margin-top: 10px;
				display: flex;
				justify-content: space-between;
				align-items: center;
				> a {
					&:hover {
						opacity: 0.7;
					}
					> img {}
				}
			}
		}
	}
}
footer.copyright {
	padding: 30px 5% 30px 5%;
	border-top: solid 1px rgba(0,0,0,0.3);
	> div {
		text-align: center;
		> small {
			display: inline-block;
			font-size: 0.8em;
			line-height: 1.3;
			color: #888;
		}
	}
}
