/* スプラッシュスクリーン */
.splash-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 3000;
	animation: splashFadeOut 2s ease 3s forwards;
}

body.main {
	margin: 0;
	font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
	background: linear-gradient(165deg, #eef4ff 0%, #f8fbff 45%, #ecf2ff 100%);
	color: #1f2a44;
}

@keyframes splashFadeOut {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.splash-container {
	text-align: center;
}

.splash-text {
	font-size: 4rem;
	font-weight: bold;
	color: white;
	text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	opacity: 0;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

.splash-text.welcome {
	animation: welcomeAnimation 1.5s ease forwards;
}

.splash-text.profile {
	animation: profileAnimation 3s ease 2s forwards;
}

@keyframes welcomeAnimation {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.5) rotateY(90deg);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.1) rotateY(0deg);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(1) rotateY(-90deg);
	}
}

@keyframes profileAnimation {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.3);
	}
	30% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.05);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.95);
	}
}

.sub_main {
	display: flex;
	width: 100%;
	height: 100vh;
	gap: 14px;
	padding: 14px;
	box-sizing: border-box;
	opacity: 1;
}

.direction {
	display: grid;
	grid-template-rows: 190px 1fr 88px;
	gap: 12px;
	flex: 1;
	height: 100%;
}

.list {
	width: min(32%, 420px);
	height: 100%;
}

.list iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.above,
.sub_in_main,
.below {
	width: 100%;
	height: 100%;
}

.above iframe,
.sub_in_main iframe,
.below iframe {
	width: 100%;
	height: 100%;
	border: 1px solid #d9e2f0;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(21, 41, 78, 0.08);
}

.above iframe {
	border-radius: 0;
}

@media (max-width: 1080px) {
	.sub_main {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}

	.list {
		width: 100%;
		height: 420px;
	}

	.direction {
		grid-template-rows: 190px minmax(620px, 1fr) 88px;
		height: auto;
	}
}