@layer component {
	:root {
		--loading-beige: #d9cfb2;
		--loading-text: #8f7642;
	}

	html.is-loading,
	body.is-loading {
		overflow: hidden;
		height: 100%;
		touch-action: none;
	}

	body.is-loading {
		position: fixed;
		left: 0;
		width: 100%;
	}

	.loading-screen {
		position: fixed;
		inset: 0;
		z-index: 99999;
		overflow: hidden;
		opacity: 1;
		visibility: visible;
		transition: opacity 0.8s ease, visibility 0.8s ease;
	}

	.loading-screen.is-hidden {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.loading-screen__video-wrap {
		position: absolute;
		inset: 0;
		z-index: 1;
		opacity: 0;
		transition: opacity 0.8s ease;
		pointer-events: none;
	}

	.loading-screen__video-wrap.is-show {
		opacity: 1;
	}

	.loading-screen__video-wrap.is-fadeout {
		opacity: 0;
	}

	.loading-screen__video {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.loading-screen__content {
		position: absolute;
		width: 100%;
		height: 100%;
		z-index: 3;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		opacity: 1;
		transition: opacity 0.7s ease;
	}

	.loading-screen__content.is-fadeout {
		opacity: 0;
	}

	.loading-screen__logo {
		width: clamp(130px, 10.417vw, 150px);
		position: absolute;
		top: 48.3%;
	}

	.loading-screen__logo img {
		display: block;
		width: 100%;
		height: auto;
	}

	.loading-screen__copy {
		margin: 0;
		writing-mode: vertical-rl;
		text-orientation: mixed;
		font-size: 16px;
		line-height: 1.8;
		letter-spacing: 0.08em;
		color: var(--loading-text);
		position: absolute;
		top: 62.5%;
	}

	.loading-screen__copy span {
		margin-top: -10px;
	}

	.loading-screen__arrow {
		position: relative;
		width: 53px;
		height: 18px;
		overflow: hidden;
	}

	.loading-screen__arrow-img {
		position: absolute;
		top: 50%;
		left: 0;
		width: 53px;
		height: 18px;
		object-fit: contain;
		transform: translate(100%, -50%);
		animation: loadingArrowSlide 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
		will-change: transform, opacity;
	}

	.loading-screen__shape {
		position: absolute;
		left: 50%;
		z-index: 2;
		transform: translateX(-50%);
		will-change: transform;
		pointer-events: none;
	}

	.loading-screen__shape img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		max-width: none;
	}

	.loading-screen__shape--top {
		top: 0;
		width: 100vw;
		height: auto;
		max-height: 25.6869vh;
		aspect-ratio: 1440 / 215;
		transition: transform ease 2s;
	}

	.loading-screen__shape--bottom {
		bottom: 0;
		width: 100vw;
		height: auto;
		max-height: 61.4097vh;
		aspect-ratio: 1440 / 514;
		transition: transform ease 2s;
	}

	.loading-screen__shape.loading-screen__shape--bottom img {
		object-position: top;
	}

	.loading-screen.is-open .loading-screen__shape--top {
		transform: translate(-50%, -300%) scale(3);
		transform-origin: bottom center;
	}

	.loading-screen.is-open .loading-screen__shape--bottom {
		transform: translate(-50%, 300%) scale(2);
		transform-origin: top center;
	}

	@keyframes loadingArrowSlide {
		0% {
			transform: translate(120%, -50%);
			opacity: 0;
		}
		15% {
			opacity: 0.5;
		}
		45% {
			transform: translate(0%, -50%);
			opacity: 1;
		}
		70% {
			opacity: 0.3;
		}
		100% {
			transform: translate(-120%, -50%);
			opacity: 0;
		}
	}

	.loading-screen__status {
		position: absolute;
		left: 50%;
		bottom: clamp(18px, 2.1vw, 36px);
		transform: translateX(-50%);
		z-index: 5;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		width: min(420px, calc(100vw - 48px));
		opacity: 1;
		transition: opacity 0.5s ease, visibility 0.5s ease;
		pointer-events: none;
	}

	.loading-screen__status.is-hidden {
		opacity: 0;
		visibility: hidden;
	}

	.loading-screen__progress {
		width: 100%;
		height: 8px;
		background: var(--c-wh);
		overflow: hidden;
	}

	.loading-screen__progress-bar {
		width: 100%;
		height: 100%;
		background: var(--loading-text);
		transform: scaleX(0);
		transition: width 0.12s linear;
		transform-origin: left center;
		will-change: transform;
	}

	.loading-screen__footer {
		position: absolute;
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
		z-index: 5;
		width: 100vw;
		pointer-events: none;
		display: flex;
		justify-content: center;
		transition: opacity 0.5s ease;
	}

	.loading-screen__loading {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 20px;
		width: 100%;
		opacity: 1;
		transition: opacity 0.5s ease;
	}
	.loading-screen__scroll {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 16px;
		width: 100%;
		opacity: 1;
		transition: opacity 0.5s ease;
		position: absolute;
		left: 50%;
		bottom: clamp(18px, 2.1vw, 36px);
		transform: translateX(-50%);
	}

	.loading-screen__footer.is-hidden,
	.loading-screen__loading.is-hidden,
	.loading-screen__scroll.is-hidden,
	.loading-screen__video-wrap.is-hidden {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.loading-screen__scroll.is-hidden {
		display: none;
	}

	.loading-screen__loading.is-hidden {
		display: none;
	}

	.loading-screen__status-text {
		margin: 0;
		font-size: clamp(12px, 0.95vw, 16px);
		line-height: 1;
		letter-spacing: 0.08em;
		color: var(--loading-text);
		font-weight: 500;
		text-align: center;
	}

	.loading-screen__arrow {
		position: relative;
		width: 53px;
		height: 18px;
		overflow: hidden;
	}

	.loading-screen__arrow-img {
		position: absolute;
		top: 50%;
		left: 0;
		width: 53px;
		height: 18px;
		object-fit: contain;
		transform: translate(100%, -50%);
		animation: loadingArrowSlide 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
		will-change: transform, opacity;
	}

	.loading-screen__guide-text {
		margin: 0;
		font-size: clamp(13px, 1vw, 18px);
		line-height: 1.8;
		letter-spacing: 0.08em;
		color: #4d4d4d;
		font-weight: 500;
		white-space: nowrap;
		text-align: center;
	}

	.loading-screen__scroll-text {
		margin: 0;
		font-size: clamp(12px, 0.95vw, 16px);
		line-height: 1;
		letter-spacing: 0.08em;
		color: var(--loading-text);
		font-weight: 500;
		text-align: center;
	}
	.line-runner {
		position: relative;
		width: 135px;
		height: 1px;
		background: #fff;
		overflow: hidden;
	}

	.line-runner__bar {
		position: absolute;
		top: 0;
		left: 0;
		width: 26px;
		height: 1px;
		background: #6f5000;
		animation: lineRunnerLoop 3s linear infinite;
	}

	@keyframes lineRunnerLoop {
		0% {
			transform: translateX(135px);
		}
		100% {
			transform: translateX(-26px);
		}
	}

	@media (max-width: 999px), (max-height: 749px) {
		.loading-screen__progress {
			height: 5px;
		}
		.line-runner {
			width: 1px;
			height: 50px;
		}
		.line-runner__bar {
			width: 1px;
			height: 26px;
		}

		@keyframes lineRunnerLoop {
			0% {
				transform: translateY(-50px);
			}
			100% {
				transform: translateY(26px);
			}
		}

		.loading-screen__shape--bottom {
			max-height: 57.41svh;
			aspect-ratio: unset;
		}
	}

	@media (max-width: 430px) {
		.loading-screen__copy {
			top: 65%;
			font-size: 13px;
		}
		.line-runner {
			height: 20px;
		}
	}
}
