body:not(.appear) #container {
	opacity: 0;
}

#gp-splash {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1.5rem;
	background: var(--gp-navy-deep);
	color: #fff;
	text-align: center;
	transition: opacity 0.6s ease;
}

#gp-splash.gp-splash--out {
	opacity: 0;
	pointer-events: none;
}

.gp-splash-logo {
	font-family: "DM Sans", "Noto Sans JP", sans-serif;
	font-size: clamp(1rem, 3vw, 1.25rem);
	font-weight: 600;
	letter-spacing: 0.18em;
	line-height: 1.4;
	transition: opacity 0.6s ease;
}

.gp-splash-logo__text {
	display: inline-block;
	opacity: 0;
	transform: translateY(100px);
	animation: gpSplashLogoRise 0.6s ease forwards;
}

@keyframes gpSplashLogoRise {
	from {
		opacity: 0;
		transform: translateY(100px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.gp-splash-logo.gp-splash-logo--out {
	opacity: 0;
}

.gp-splash-bg {
	display: none;
}

body.appear .gp-splash-bg {
	display: block;
}

body.appear .gp-splash-bg--top {
	animation: gpSplashCurtainUp 1.4s ease-in-out forwards;
	content: "";
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100vh;
	bottom: 50%;
	left: 0;
	transform: scaleY(1);
	background-color: var(--gp-navy-deep);
}

body.appear .gp-splash-bg--bottom {
	animation: gpSplashCurtainDown 1.4s ease-in-out forwards;
	content: "";
	position: fixed;
	z-index: 999;
	width: 100%;
	height: 100vh;
	top: 50%;
	left: 0;
	transform: scaleY(1);
	background-color: var(--gp-navy-deep);
}

@keyframes gpSplashCurtainUp {
	0% {
		transform-origin: top;
		transform: scaleY(1);
	}
	100% {
		transform-origin: top;
		transform: scaleY(0);
	}
}

@keyframes gpSplashCurtainDown {
	0% {
		transform-origin: bottom;
		transform: scaleY(1);
	}
	100% {
		transform-origin: bottom;
		transform: scaleY(0);
	}
}

body.appear #container {
	animation: gpSplashContainerIn 1s ease 0.2s forwards;
	opacity: 0;
}

@keyframes gpSplashContainerIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	body:not(.appear) #container {
		opacity: 1;
	}

	body.appear #container {
		animation: none;
		opacity: 1;
	}

	#gp-splash,
	.gp-splash-logo {
		transition: none;
	}

	.gp-splash-logo__text {
		animation: none;
		opacity: 1;
		transform: none;
	}

	body.appear .gp-splash-bg--top,
	body.appear .gp-splash-bg--bottom {
		animation: none;
		display: none !important;
	}
}
