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

	--color-accent: #c39d9e;		/*青*/
}
/*
html
*/
html {
	overflow-y: scroll;
	overflow-x: hidden;
	background-color: #fff;
	> body {
		background-image: url(../../common/image/background.webp);
		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;
		letter-spacing: 0.08em;
		font-weight: 400;
	}
}
/*
header
*/
header {
	> div.pc {
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 5;
		@media (width < 800px) {
			display: none;
		}
		> div {
			display: grid;
			grid-template-columns: 1fr auto auto;
			height: 80px;
			transition: height 0.2s;
			> div.logo {
				position: relative;
				> a {
					position: absolute;
					top: 15px;
					left: 40px;
					text-decoration: none;
					&:hover {
						opacity: 0.8;
					}
					> img {
						width: 100px;
						transition: width 0.2s;
					}
				}
			}
			> nav {
				align-self: center;
				justify-items: end;
				> ul {
					display: flex;
					column-gap: 20px;
					> li {
						> a {
							text-decoration: none;
							height: 50px;
							display: flex;
							flex-direction: column;
							align-items: center;
							justify-content: center;
							> div {
								font-size: 1.0rem;
								color: #111;
								font-family: var(--font-en);
								font-weight: 500;
								@media (width < 1200px) {
									font-size: 0.9rem;
								}
								&.on {
									color: #e61464;
								}
							}
						}
						&:hover {
							> a {
								opacity: 0.8;
							}
						}
					}
				}
			}
			> div.contact {
				align-self: center;
				padding-inline: 20px;
				display: flex;
				column-gap: 20px;
				> a {
					text-decoration: none;
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					transition: height 0.2s;
					row-gap: 7px;
					&:hover {
						opacity: 0.8;
					}
					> img {
						display: block;
					}
					> p {
						font-size: 1.2ewm;
						line-height: 1;
						color: #fff;
					}
					&:nth-of-type(1) {
						> img {
							width: 30px;
						}
					}
					&:nth-of-type(2) {
						> img {
							width: 50px;
						}
					}
				}
			}
		}
		&.close {
			> div {
				height: 50px;
				> div.logo {
					> a {
						top: 10px;
						left: 20px;
						> img {
							width: 50px;
						}
					}
				}
				> nav {
				}
				> div.contact {
					> a {
						height: 50px;
					}
				}
			}
		}
	}
	> div.sp {
		display: none;
		user-select: none;
		position: fixed;
		width: 100%;
		z-index: 5;
		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: 2%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 60px;
			> div {
				display: flex;
				align-items: center;
				column-gap: 15px;
				> a {
					margin-top: 30px;
					text-decoration: none;
					&:hover {
						opacity: 0.7;
					}
					> img {
						display: block;
						width: 80px;
					}
				}
				> 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: #e61464;
							}
						}
					}
				}
			}
			> 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 {
		}
	}
	> div.spacer {
		padding-top: 80px;
		@media (width < 800px) {
			padding-top: 60px;
		}
	}
}
@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 10% 50px 10%;
	background-color: #E0E0E0;
	@media (width < 600px) {
		padding: 40px 5% 50px 5%;
	}
	> div {
		max-width: 900px;
		margin-inline: auto;
		> div {
			display: grid;
			grid-template-columns: auto 1fr;
			@media (width < 740px) {
				grid-template-columns: 1fr;
				justify-self: center;
			}
			> figure {
				@media (width < 740px) {
					text-align: center;
				}
				> img {
					max-width: 100%;
				}
			}
			> div {
				align-self: center;
				display: grid;
				grid-template-columns: 1fr auto;
				@media (width < 350px) {
					grid-template-columns: 1fr;
					row-gap: 20px;
				}
				> div.name {
					align-self: center;
					padding-inline: 20px;
					@media (width < 740px) {
						padding-inline: 0px 20px;
					}
					@media (width < 350px) {
						padding-inline: 0px;
						text-align: center;
					}
					> p {
						font-size: 0.9rem;
						line-height: 1.2;
						color: #333;
					}
					> h1 {
						font-size: 1.5rem;
						line-height: 1.4;
						color: #333;
						font-family: var(--font-en);
						font-weight: 400;
					}
				}
				> div.mark {
					display: flex;
					align-items: center;
					justify-content: center;
					column-gap: 20px;
					> a {
						&:nth-of-type(1) {
							> img {
								width: 30px;
							}
						}
						&:nth-of-type(2) {
							> img {
								width: 50px;
							}
						}
					}
				}
			}
		}
		> nav {
			margin-top: 20px;
			> ul {
				display: flex;
				flex-wrap: wrap;
				text-align: center;
				column-gap: 20px;
				justify-content: space-between;
				@media (width < 520px) {
					justify-content: center;
				}
				> li {
					padding-bottom: 10px;
					> a {
						text-decoration: none;
						display: flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						> div {
							font-size: 1.0rem;
							color: #111;
							font-family: var(--font-en);
							font-weight: 500;
							@media (width < 1200px) {
								font-size: 0.9rem;
							}
							&.on {
								color: #e61464;
							}
						}
					}
					&:hover {
						> a {
							opacity: 0.8;
						}
					}
				}
			}
		}
		> div.policy {
			display: flex;
			justify-content: end;
			@media (width < 520px) {
				margin-top: 10px;
			}
			> a {
				text-decoration: none;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: end;
				> div {
					font-size: 1.0rem;
					color: #111;
					font-weight: 600;
					@media (width < 1200px) {
						font-size: 0.9rem;
					}
					&.on {
						color: var(--color-accent);
					}
				}
			}
		}
	}
}
footer.copyright {
	padding: 20px 5% 20px 5%;
	background-color: #c39d9e;
	> 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;
			font-family: var(--font-en);
			font-weight: 400;
		}
	}
}
