html.is-splash,
body.is-splash {
	overflow: hidden !important;
	height: 100% !important;
}

#splash {
	position: fixed;
	inset: 0;
	z-index: 2998;
	overflow: hidden;
	background: #0e0e0e;
	pointer-events: auto;

	-webkit-mask-image: radial-gradient(
		circle at center,
		transparent 0,
		transparent var(--hole-size, 0px),
		#000 calc(var(--hole-size, 0px) + 1px)
	);
	mask-image: radial-gradient(
		circle at center,
		transparent 0,
		transparent var(--hole-size, 0px),
		#000 calc(var(--hole-size, 0px) + 1px)
	);
}

#splash.is-done {
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

#splash-bokeh {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

#splash-bg {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(14, 14, 14, 0.45);
}

#splash-logo {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	width: min(300px, 72vw);
	text-align: center;
	opacity: 0;
	transform: translate(-50%, calc(-50% + 20px));
	transition:
		opacity 2.0s ease,
		transform 2.0s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-svg {
  width: 100%;
  height: auto;
}

#splash-logo.is-in {
	opacity: 1;
	transform: translate(-50%, -50%);
}

#splash-logo.is-out {
	opacity: 0;
	transform: translate(-50%, calc(-50% - 12px));
	transition:
		opacity 0.8s ease,
		transform 0.8s ease;
}

#splash-catch {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 2999;
	text-align: center;
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
	white-space: nowrap;
	transition:
		opacity 1.1s ease,
		transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

#splash-catch.is-in {
	opacity: 1;
	transform: translateY(0);
}

#splash-catch.is-out {
	opacity: 0;
	transform: translateY(-10px);
	transition:
		opacity 0.35s ease,
		transform 0.35s ease;
}

.catch-main {
	display: block;
	margin-bottom: 14px;
	color: #fff;
	font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", Georgia, serif;
	font-size: clamp(18px, 3.2vw, 30px);
	font-weight: 400;
	font-feature-settings: "palt";
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.catch-sub {
	display: block;
	color: rgba(255, 255, 255, 0.7);
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 500;
	letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
	#splash,
	#splash-logo,
	#splash-catch {
		transition: none;
	}
}