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

	--color-accent: #ee847d;
}
/*
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;
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: calc(100% - 10px);
		padding-inline: 5vw;
		background-color: rgba(255,255,255,1);
		border-radius: 100px;
		margin-top: 5px;
		margin-inline: 5px;
		z-index: 4;
		transition: background-color 0.2s;
		@media (width < 1200px) {
			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: 280px;
						transition: width 0.2s;
					}
				}
			}
			> nav {
				position: relative;
				> ul {
					display: grid;
					grid-template-columns: repeat(5,auto);
					> li {
						> a {
							padding-inline: 10px;
							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.0rem;
								color: #111;
								font-weight: 500;
								@media (width < 1300px) {
									font-size: 0.9rem;
								}
								&.on {
									color: var(--color-accent);
								}
								&.contact {
									> div {
										max-width: 180px;
										border-radius: 30px;
										padding: 5px 20px;
										text-align: center;
										background: linear-gradient(to right,#ff4760,#ee847d);
										color: #fff;
										font-size: 1.2rem;
										line-height: 1.0;
										font-weight: 500;
										letter-spacing: 2px;
										font-family: var(--font-sans);
									}
									&:hover {
										> div {
											opacity: 0.7;
										}
									}
								}
							}
						}
						> div {
							position: absolute;
							display: none;
							top: calc(100% - 1px);
							padding-inline: 10px;
							max-width: 100%;
							white-space: nowrap;
							background: linear-gradient(to bottom, rgba(240, 136, 157, 0.75), rgba(234, 112, 104, 0.75));
							&.width01 {
								width: 220px;
								@media (width < 1200px) {
									width: 204px;
								}
							}
							&.width02 {
								width: 140px;
								@media (width < 1200px) {
									width: 132px;
								}
							}
							> dl {
								> dd {
									> a {
										display: block;
										text-decoration: none;
										padding: 10px 0px;
										&[target="_blank"] {
											background-image: url(../image/mark_external_fff.svg);
											background-repeat: no-repeat;
											background-position: right 10px top 50%;
										}
										&:hover {
											
										}
										> div {
											text-align: center;
											font-size: 1rem;
											line-height: 1;
											color: #fff;
											font-weight: 500;
											&.on {
												color: #ff0;
											}
										}
									}
								}
							}
						}
						&:hover {
							> a {
								background-color: rgba(248, 206, 185, 0.5);
								> div {
								}
							}
							> div {
								display: block;
							}
						}
						&:last-of-type {
							> a {
								padding-inline: 0px;
							}
							&:hover {
								> a {
									background-color: unset;
									opacity: 0.7;
								}
							}
						}
					}
				}
			}
		}
		&.close {
			background-color: rgba(255,255,255,0.9);
			> div {
				height: 50px;
				> div {
					> a {
						> img {
							width: 240px;
						}
					}
				}
				> nav {
					> ul {
						> li {
							> a {
								height: 50px;
							}
						}
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: calc(100% - 10px);
		z-index: 4;
		margin-top: 5px;
		margin-inline: 5px;
		@media (width < 1200px) {
			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: 2%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 60px;
			border-radius: 15px;
			background-color: rgba(255,255,255,0.9);
			> div {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						display: block;
						width: 240px;
					}
				}
				> p {
					font-size: 0.8rem;
					line-height: 1;
					color: #fff;
					@media (width < 350px) {
						display: none;
					}
				}
			}
			> label {
				border-radius: 0 15px 15px 0;
				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 {
			margin-top: 5px;
			text-align: center;
			overflow: hidden;
			transition: 0.3s;
			max-height: 0;
			border-radius: 15px;
			> ul {
				margin: 0;
				list-style: none;
				background-color: var(--color-accent);
				&: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);
						}
						> 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;
									padding-inline: 10px;
								}
							}
							&:nth-of-type(2) {
								width: 50px;
								justify-self: end;
								transition: transform 0.3s;
							}
						}
					}
				}
			}
		}
		&.close {
		}
	}
	> div.spacer {
		padding-top: 0px;
		@media (width < 1200px) {
			padding-top: 0px;
		}
	}
}
@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(5, auto);
		column-gap: 60px;
		row-gap: 30px;
		@media (width < 1100px) {
			grid-template-columns: repeat(2, 1fr);
			column-gap: 10px;
			row-gap: 40px;
		}
		@media (width < 750px) {
			grid-template-columns: repeat(1, 1fr);
			row-gap: 30px;
		}
		> dl {
			> dt {
				> a {
					text-decoration: none;
					color: #464646;
					font-size: 1rem;
					line-height: 1.2;
					font-weight: 500;
					font-family: var(--font-sans);
					> img {
						max-width: 100%;
					}
					> div {
						max-width: 165px;
						border-radius: 30px;
						padding: 5px 20px;
						text-align: center;
						background: linear-gradient(to right,#ff4760,#ee847d);
						color: #fff;
						font-size: 1.2rem;
						line-height: 1.0;
						font-weight: 500;
						letter-spacing: 2px;
						font-family: var(--font-sans);
					}
					&:hover {
						text-decoration: underline;
						> div {
							opacity: 0.7;
						}
					}
				}
				&.contact {
					> a {
						&:hover {
							text-decoration: none;
						}
					}
				}
			}
			> dd {
				margin-top: 10px;
				> a {
					text-decoration: none;
					font-size: 0.9rem;
					line-height: 1.5;
					color: #111;
					&:hover {
						text-decoration: underline;
					}
					&::before {
						content: "　";
						background-image: url(../image/footer_menu_circle.svg);
						background-repeat: no-repeat;
						background-position: 0% 50%;
					}
				}
				&.block {
					display: grid;
					grid-template-columns: repeat(2, 1fr);
				}
			}
			&:nth-of-type(2) {
				@media (width < 1100px) {
					order: 3;
				}
			}
			&:nth-of-type(3) {
				@media (width < 1100px) {
					order: 4;
				}
			}
			&:nth-of-type(4) {
				@media (width < 1100px) {
					order: 2;
				}
			}
			&:nth-of-type(5) {
				@media (width < 1100px) {
					order: 5;
				}
			}
		}
	}
}
footer.address {
	padding: 0px 5% 10px 5%;
	background-color: #faf5f2;
	> div {
		border-top: 1px solid  #464646;
		padding-block: 20px;
		display: flex;
		align-items: end;
		justify-content: space-between;
		row-gap: 20px;
		@media (width < 750px) {
			flex-direction: column;
			align-items: start;
		}
		> div {
			> figure {
				> img {
					max-width: 100%;
				}
			}
			> a {
				text-decoration: none;
				> p {
					margin-top: 5px;
					font-size: 0.9rem;
					line-height: 1.5;
					color: #111;
					&:nth-of-type(1) {
						margin-top: 10px;
					}
				}
				> h3 {
					margin-top: 8px;
					font-size: 0.9rem;
					line-height: 1.5;
					color: #111;
				}
				&:hover {
					text-decoration: underline;
				}
			}
		}
		> figure {
			> a {
				&:hover {
					opacity: 0.7;
				}
				> img {
					max-width: 100%;
				}
			}
		}
	}
}
footer.copyright {
	padding: 20px 5% 20px 5%;
	> small {
		display: block;
		text-align: center;
		font-size: min(0.9rem,4vw);
		line-height: 1.3;
		color: #222;
	}
}
