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

	--color-accent: #abc900;		/*green light*/
	--color-accent2: #5ca82e;		/*green dark*/
}
/*
html
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #fff;
	> body {
		margin: 0;
		font-family: var(--font-maru);
		font-feature-settings: "palt" 1;
		line-break: strict;
		overflow-x: hidden;
		background-color: #fff;
		min-height: 100vh;
		scroll-behavior: smooth;
		text-rendering: optimizeSpeed;
		&.bg_fff {
			background-image: unset;
		}
	}
}
/*
main
*/
main {
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		padding-inline: 5vw;
		background-color: #fff;
		z-index: 4;
		@media (width < 1060px) {
			display: none;
		}
		> div {
			display: grid;
			grid-template-columns: 1fr auto;
			align-items: center;
			height: 80px;
			transition: height 0.2s;
			> div {
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 278px;
						transition: width 0.2s;
					}
				}
			}
			> nav {
				position: relative;
				> ul {
					display: grid;
					grid-template-columns: repeat(5,auto);
					> li {
						> a {
							text-decoration: none;
							height: 80px;
							display: flex;
							flex-direction: column;
							align-items: center;
							justify-content: center;
							transition: height 0.2s;
							> div {
								padding-inline: 20px;
								font-size: 1.1rem;
								color: #111;
								font-weight: 500;
								@media (width < 1200px) {
									font-size: 0.9rem;
								}
								&.hassubmenu {
									background-image: url(../image/submenu_arrow.svg);
									background-repeat: no-repeat;
									background-position: right 10px top 60%;
								}
								&.on {
									color: var(--color-accent2);
								}
							}
						}
						> div {
							position: absolute;
							display: none;
							right: 0;
							top: calc(100% - 1px);
							width: 450px;
							padding-block: 20px 20px;
							padding-inline: 20px 20px;
							white-space: nowrap;
							background-color: var(--color-accent2);
							> dl {
								> dd {
									> a {
										display: block;
										text-decoration: none;
										padding: 12px 20px 12px 10px;
										&[target="_blank"] {
											background-image: url(../image/mark_external_fff.svg);
											background-repeat: no-repeat;
											background-position: right 10px top 50%;
										}
										&:hover {
											background-color: rgba(255,255,255,0.2);
										}
										> div {
											font-size: 1rem;
											line-height: 1;
											color: #fff;
											font-weight: 500;
											background-image: url(../image/submenu_circle.svg);
											background-repeat: no-repeat;
											background-position: 0 50%;
											padding-left: 10px;
											&.on {
												color: #ff0;
											}
										}
									}
								}
							}
						}
						&:hover {
							> a {
								background-color: var(--color-accent2);
								> div {
									color: #fff;
									&.hassubmenu {
										background-image: url(../image/submenu_arrow_fff.svg);
										animation-name: submenuArrowMove;
										animation-duration: 0.5s;
										animation-timing-function: ease;
										animation-iteration-count: infinite;
									}
								}
							}
							> div {
								display: block;
							}
						}
					}
				}
			}
		}
		&.close {
			> div {
				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: 4;
		transition: background-color 0.2s;
		@media (width < 1060px) {
			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: 2%;
			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-accent2);
				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-accent2);
				&:has(> li.holder.one > label > input:checked) {
					> li.menu.one {
						max-height: 70px;
					}
					> li.holder.one > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				&:has(> li.holder.two > label > input:checked) {
					> li.menu.two {
						max-height: 70px;
					}
					> li.holder.two > label > div:nth-of-type(2) {
						transform: rotate(-45deg);
					}
				}
				> li.menu {
					display: flex;
					width: 100%;
					&.submenu {
						max-height: 0;
						overflow: hidden;
						transition: max-height 0.3s;
						> a > div {
							font-size: min(1rem,4vw);
						}
					}
					> 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;
						&: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;
							}
						}
					}
				}
				> li.holder {
					border-bottom: solid 1px rgba(255,255,255,0.2);
					> label {
						padding-block: 15px;
						display: grid;
						> input {
							display: none;
						}
						> div {
							grid-area: 1/1/2/2;
							white-space: nowrap;
							font-size: 1rem;
							line-height: 1.2;
							color: #fff;
							&:nth-of-type(1) {
								justify-self: center;
								> span {
									display: inline-block;
									background-image: url(../image/submenu_arrow_fff.svg);
									background-repeat: no-repeat;
									background-position: 100% 50%;
									padding-inline: 10px;
								}
							}
							&:nth-of-type(2) {
								width: 50px;
								justify-self: end;
								transition: transform 0.3s;
							}
						}
					}
				}
			}
		}
		&.close {
		}
	}
	> div.spacer {
		padding-top: 80px;
		@media (width < 1060px) {
			padding-top: 60px;
		}
	}
}
@keyframes submenuArrowMove {
	0% {
		background-position: right 10px top 58%;
	}
	25% {
		background-position: right 10px top 70%;
	}
	50% {
		background-position: right 10px top 58%;
	}
	75% {
		background-position: right 10px top 46%;
	}
	100% {
		background-position: right 10px top 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.nav {
	padding: 40px 5% 30px 5%;
	background-color: #faf5f2;
	> div {
		display: grid;
		grid-template-columns: repeat(4,auto);
		column-gap: 60px;
		row-gap: 30px;
		@media (width < 1300px) {
			grid-template-columns: repeat(2,auto);
		}
		@media (width < 750px) {
			grid-template-columns: repeat(1,auto);
		}
		> dl {
			> dt {
				color: var(--color-accent);
				font-size: 1rem;
				line-height: 1.2;
				font-family: var(--font-sans);
			}
			> dd {
				margin-top: 10px;
				&.local > a {
					&::before {
						content: "　";
						background-image: url(../image/footer_menu_line.svg);
						background-repeat: no-repeat;
						background-position: 0% 50%;
					}
				}
				&.page > a {
					&::before {
						content: "　";
						background-image: url(../image/footer_menu_circle.svg);
						background-repeat: no-repeat;
						background-position: 0% 50%;
					}
				}
				&.external > a {
					&::before {
						content: "　";
						background-image: url(../image/footer_menu_external.svg);
						background-repeat: no-repeat;
						background-position: 0% 50%;
					}
				}
				> a {
					text-decoration: none;
					font-size: 0.9rem;
					line-height: 1.5;
					color: #111;
					&:hover {
						text-decoration: underline;
					}
				}
			}
		}
	}
}
footer.address {
	padding: 0px 5% 20px 5%;
	background-color: #faf5f2;
	> div {
		display: flex;
		align-items: end;
		column-gap: 60px;
		row-gap: 20px;
		@media (width < 700px) {
			flex-direction: column;
			align-items: start;
		}
		> div {
			> figure {
				> img {
					max-width: 100%;
				}
			}
			> p {
				margin-top: 5px;
				font-size: 0.9rem;
				line-height: 1.5;
				color: #111;
				&:nth-of-type(1) {
					margin-top: 10px;
				}
			}
		}
		> figure {
			> a {
				&:hover {
					opacity: 0.7;
				}
				> img {
					max-width: 100%;
				}
			}
		}
	}
}
footer.copyright {
	padding: 30px 5% 30px 5%;
	> small {
		display: block;
		text-align: center;
		font-size: min(0.9rem,4vw);
		line-height: 1.3;
		color: #aaa;
	}
}
