/*
html body
*/
html > body {
	background-color: #fffbde;
}
/*
top
*/
section.top {
	background-image: url(../image/pc_background.webp);
	background-size: cover;
	width: 100vw;
	height: 100svh;
	> figure {
		width: 100%;
		height: 100%;
		padding-inline: 5vw;
		padding-block: 5vw;
		> img {
			width: 100%;
			height: 100%;
			object-fit: contain;
		}
	}
}
/*
main
*/
main {
	max-width: 500px;
	margin-inline: auto;
	> section {
		background-color: #fff;
	}
}

/*--- main > section ---*/
section.top01 {
	> div {
		display: grid;
		grid-template-rows: 1fr 1fr;
		> figure {
			grid-area: 1/1/3/2;
			width: auto;
			> img {
				max-width: 100%;
			}
		}
		> div.button {
			grid-area: 2/1/3/2;
			align-self: end;
			padding-inline: 3%;
			margin-bottom: 11%;
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.7;
				}
				> img {
					max-width: 100%;
				}
			}
		}
	}
}
section.top02 {
	> div {
		display: grid;
		grid-template-rows: 1fr 1fr;
		> figure {
			grid-area: 1/1/3/2;
			width: auto;
			> img {
				max-width: 100%;
			}
		}
		> div.button {
			grid-area: 2/1/3/2;
			align-self: end;
			padding-inline: 3%;
			margin-bottom: 11%;
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.7;
				}
				> img {
					max-width: 100%;
				}
			}
		}
	}
}

section.area01 {
	> div {
		display: grid;
		grid-template-rows: 1fr 1fr;
		> figure {
			grid-area: 1/1/3/2;
			&:nth-of-type(2) {
				padding-inline: 5%;
				align-self: start;
				margin-top: 129%;
			}
			> img {
				max-width: 100%;
			}
		}
		> div.button {
			grid-area: 2/1/3/2;
			align-self: end;
			padding-inline: 3%;
			margin-bottom: 7%;
			> a {
				text-decoration: none;
				&:hover {
					opacity: 0.7;
				}
				> img {
					max-width: 100%;
				}
			}
		}
	}
}
section.swipepanel {
	background-color: #fff;
	padding-block: 20px;
	overflow: hidden;
	max-width: 750px;
	> div {
		> #swipePanelStage {
			display: flex;
			justify-content: center;
			column-gap: 10px;
			> div {
				user-select: none;
				> img {
					width: min(450px,70vw);
				}
			}
		}
		> nav {
			padding-top: 10px;
			display: flex;
			justify-content: center;
			column-gap: 10px;
			> div {
				font-size: 0.55rem;
				line-height: 1;
				color: #b9bfd0;
				&.on {
					color: #203267;
				}
			}
		}
	}
}
section.area02 {
	> div {
		> figure {
			grid-area: 1/1/3/2;
			> img {
				max-width: 100%;
			}
		}
	}
}
section.area03 {
	> div {
		> figure {
			> img {
				max-width: 100%;
			}
		}
	}
}
section.performance {
	padding-top: 40px;
	padding-inline: 5%;
	> div {
		> div.title {
			display: grid;
			> figure {
				grid-area: 1/1/2/2;
				justify-self: center;
				> img {
					margin-inline: auto;
					width: 100px;
				}
			}
			> h2 {
				grid-area: 1/1/2/2;
				align-self: center;
				text-align: center;
				color: #333;
				font-size: min(2.5rem,7vw);
				line-height: 1.6;
				font-weight: 700;
				letter-spacing: 4px;
			}
		}
	}
}

section.mailform {
	padding: 20px 3% 0 3%;
	> div {
		div.submit {
			> figure {
				margin-inline: 5%;
				> img {
					max-width: 100%;
					cursor: pointer;
					transition: 0.2s;
					&:hover {
						opacity: 0.7;
					}
				}
			}
			> div {
				> button {
					border-radius: 50px;
					width: 45%;
				}
			}
		}
		> #submitResult {
			max-width: 700px;
			margin-inline: auto;
			background-color: #0C35AD;
			font-size: 1rem;
			line-height: 1.6;
			color: #fff;
			padding: 10px 20px;
			border-radius: 3px;
			&:empty {
				display: none;
			}
			> b {
				font-weight: 700;
				font-size: 1rem;
				font-weight: 300;
			}
		}
	}
}

section.privacy {
	padding-block: 60px 40px;
	padding-inline: 5%;
	> div {
		> input[type="checkbox"] {
			display: none;
			&:checked + label > div {
				transform: rotate(-45deg);
			}
			&:checked + label + div {
				animation-name: moreToggleOpen;
				animation-duration: 0.3s;
				animation-fill-mode: forwards;
				animation-timing-function: ease-in;
			}
			& + label + div {
				animation-name: moreToggleClose;
				animation-duration: 0.3s;
				animation-fill-mode: forwards;
				animation-timing-function: ease-out;
			}
		}
		> label {
			list-style: none;
			display: flex;
			justify-content: space-between;
			align-items: center;
			cursor: pointer;
			> h2 {
				flex-grow: 1;
				text-align: center;
				color: #333;
				font-size: min(1.8rem,6vw);
				line-height: 1.6;
				font-weight: 700;
				letter-spacing: 2px;
			}
			> div {
				transition: 0.2s;
				font-size: min(1.8rem,6vw);
				line-height: 1.6;
				font-weight: 700;
			}
		}
		> div {
			overflow: hidden;
			> article {
				padding-top: 40px;
				> h3 {
					color: #333;
					font-size: min(1rem, 5vw);
					line-height: 1.6;
					font-weight: 700;
				}
				> p {
					color: #333;
					font-size: min(1rem,5vw);
					line-height: 1.5;
					font-weight: 500;
					text-align: justify;
					&:nth-of-type(1) {
						padding-top: 10px;
					}
				}
			}
		}
	}
}
@keyframes moreToggleOpen {
	0% {
		max-height: 0px;
	}
	80% {
		max-height: 100px;
	}
	90% {
		max-height: 200px;
	}
	100% {
		max-height: 9999px;
	}
}
@keyframes moreToggleClose {
	0% {
		max-height: 9999px;
	}
	10% {
		max-height: 200px;
	}
	20% {
		max-height: 100px;
	}
	100% {
		max-height: 0px;
	}
}
