/* ============================================
   XITSW UI Showcase - スタイルシート
   詳細なコメント付きCSS
   ============================================ */

/* ============================================
   リセット & ベース設定
   ============================================ */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
		"Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	background: #555;
	color: #ffffff;
	overflow: hidden;
}

h1, h2 {
	text-align: center;
	width: 100%;
}

/* ============================================
   メインコンテナ（60%黒背景エリア）
   ============================================ */
.main-container {
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.6);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 72px 20px 20px;
}

/* ============================================
   タイトル（content-area の外）
   ============================================ */
.main-title {
	position: absolute;
	top: 40px;
	z-index: 20;
	font-size: 60px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #ffffff;
}
.submain-title {
	position: absolute;
	top: 130px;
	z-index: 20;
	font-size: 20px;
	font-weight: 300;
	letter-spacing: 0.08em;
	color: #ffffff;
	margin-bottom: 30px;
}

/* ============================================
   コンテンツエリア（100%黒背景）
   ============================================ */
.content-area {
	background-color: #000000;
	border-radius: 20px;
	width: 100%;
	max-width: 1200px;
	height: 100%;
	max-height: 700px;
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 40px 30px;
	top: 50px;
}

/* ============================================
   左側：ナビゲーション矢印ボタン
   ============================================ */
.nav-arrows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-right: 8px;
	flex-shrink: 0;
}

.arrow-btn {
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.arrow-btn:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.arrow-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* ============================================
   リストエリア
   項目が増えてもスクロール対応できるようにする
   ============================================ */
.list-container {
	width: 340px;
	flex-shrink: 0;
	max-height: 100%;
	overflow-y: auto;
	padding-right: 6px;
}

.feature-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.feature-item {
	transition: background-color 0.3s ease, opacity 0.3s ease;
}

.feature-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 18px;
	background-color: rgba(50, 50, 50, 0.9);
	border: 1px solid rgba(80, 80, 80, 0.5);
	border-radius: 10px;
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.feature-btn:hover {
	background-color: rgba(70, 70, 70, 0.9);
	border-color: rgba(120, 120, 120, 0.7);
}

.feature-btn.home {
	background-color: rgba(87, 43, 78, 0.9) !important;
}

.feature-btn.download {
	background-color: rgba(44, 87, 43, 0.9) !important;
}

.feature-btn.disclaimer {
	background-color: rgba(87, 66, 43, 0.9) !important;
}

.feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #888;
	font-size: 14px;
	font-weight: 300;
}

.icon-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	font-size: 16px;
	line-height: 1;
	color: #aaa;
}

/* 免責事項用：注意マーク風アイコン */
.feature-icon-warning {
	position: relative;
	width: 18px;
	height: 18px;
}

.icon-warning {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-bottom: 16px solid #f5c451;
	color: transparent;
}

.icon-warning::after {
	content: '!';
	position: absolute;
	left: 50%;
	top: 10px;
	transform: translate(-50%, -50%);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	color: #1b1b1b;
}

.feature-item.active .feature-btn {
	background-color: rgba(60, 60, 60, 0.95);
	border-color: rgba(100, 100, 100, 0.7);
	box-shadow: 0 0 0 1px rgba(120, 120, 120, 0.15);
}

.feature-item.active .icon-plus {
	color: #ffffff;
}

.feature-item.active .icon-warning {
	border-bottom-color: #ffd56b;
}

/* ============================================
   詳細内容表示エリア
   背景は白、文字は黒
   テキストは約3文字分右へずらして表示
   ============================================ */
.feature-detail {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-top: 0;
	padding: 0 15px;
	background-color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.7;
	color: #111111;
	transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease, padding 0.25s ease;
}

.feature-item.active .feature-detail {
	max-height: 240px;
	opacity: 1;
	margin-top: 8px;
	padding: 15px;
}

.detail-line {
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-item.active .detail-line {
	opacity: 1;
	transform: translateY(0);
}

.feature-item.active .detail-line:nth-child(1) {
	transition-delay: 0.6s;
}

.feature-item.active .detail-line:nth-child(2) {
	transition-delay: 0.9s;
}

.feature-item.active .detail-line:nth-child(3) {
	transition-delay: 1.2s;
}

.feature-item.active .detail-line:nth-child(4) {
	transition-delay: 1.5s;
}

.feature-item.active .detail-line:nth-child(5) {
	transition-delay: 1.8s;
}

/* ============================================
   右側：表示エリア
   画像表示とダウンロード表示を共存させる
   ============================================ */
.side-display {
	flex: 1;
	height: 100%;
	position: relative;
	overflow: hidden;
	padding-left: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.image-container,
.download-panel,
.text-panel {
	width: 100%;
	height: 100%;
}

.image-container {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	min-height: 100%;
}

.download-panel,
.text-panel {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.side-display.show-download .image-container,
.side-display.show-text .image-container {
	display: none;
}

.side-display.show-download .download-panel {
	display: flex;
}

.side-display.show-text .text-panel {
	display: flex;
}

.download-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 280px;
	padding: 16px 22px;
	border-radius: 14px;
	background: #ffffff;
	color: #111111;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.text-card {
	width: min(100%, 720px);
	padding: 28px 32px;
	border-radius: 18px;
	background: #ffffff;
	color: #111111;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.text-panel-title {
	margin-bottom: 16px;
	font-size: 28px;
	line-height: 1.3;
	color: #111111;
}

.text-panel-body {
	font-size: 16px;
	line-height: 1.9;
	color: #222222;
}

.watch-image {
	/* width: 100%;
    height: 100%; */
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	margin: auto;
}

/* 項目クリック時に個別表示を右からスライド表示 */
.watch-image.slide-in,
.download-panel.slide-in,
.text-panel.slide-in {
	animation: slideInFromRight 0.8s ease-out forwards;
}

@keyframes slideInFromRight {
	0% {
		transform: translateX(100%);
		opacity: 0;
	}

	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

/* ============================================
   レスポンシブ対応 - タブレット
   ============================================ */
@media (max-width: 1024px) {
	.content-area {
		padding: 30px 15px;
		max-height: 600px;
	}

	.list-container {
		width: 300px;
	}

	.feature-btn {
		font-size: 13px;
		padding: 8px 14px;
	}

	.feature-item.active .feature-detail {
		max-height: 220px;
		font-size: 12px;
	}
}

/* ============================================
   レスポンシブ対応 - スマホ横向き
   ============================================ */
@media (max-width: 768px) {

	html,
	body {
		width: 100%;
		height: auto;
		min-height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	body {
		position: relative;
	}

	.main-container {
		width: 100%;
		height: auto;
		min-height: 100vh;
		align-items: flex-start;
		justify-content: flex-start;
		padding: 108px 10px 16px;
	}

	.main-title {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		margin: 0;
		text-align: center;
		padding: 16px 16px 14px;
		background: rgba(0, 0, 0, 0.92);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		z-index: 100;
		font-size: 28px;
		line-height: 1.2;
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	}

	.submain-title {
		position: absolute;
		top: 80px;
	}

	.content-area {
		flex-direction: column;
		align-items: stretch;
		padding: 20px 10px;
		max-height: none;
		height: auto;
		min-height: 0;
		overflow: visible;
		top: 20px;
	}

	.side-display {
		width: 100%;
		height: 300px;
		min-height: 300px;
		order: -1;
		margin-bottom: 20px;
		padding-left: 0;
		align-items: center;
		justify-content: center;
	}

	.text-card {
		width: 100%;
		padding: 22px 20px;
	}

	.nav-arrows {
		flex-direction: row;
		margin-right: 0;
		margin-bottom: 12px;
		justify-content: center;
	}

	.list-container {
		width: 100%;
		max-width: 420px;
		max-height: none;
		overflow: visible;
		padding-right: 0;
		margin: 0 auto;
	}

	.feature-item,
	.feature-btn {
		width: 100%;
	}

	.feature-item.active .feature-detail {
		width: 100%;
		max-height: 240px;
	}
}

/* ============================================
   レスポンシブ対応 - スマホ縦向き
   ============================================ */
@media (max-width: 480px) {
	.main-container {
		padding: 78px 8px 14px;
	}

	.content-area {
		border-radius: 16px;
		padding: 15px 8px;
	}

	.main-title {
		top: 0;
		left: 0;
		width: 100%;
		padding: 12px 12px 10px;
		font-size: 22px;
	}

	.side-display {
		height: 240px;
		min-height: 240px;
		align-items: center;
		justify-content: center;
	}

	.text-panel-title {
		font-size: 22px;
	}

	.text-panel-body {
		font-size: 14px;
		line-height: 1.8;
	}

	.feature-btn {
		font-size: 12px;
		padding: 7px 12px;
	}

	.feature-item.active .feature-detail {
		font-size: 12px;
		padding: 10px 14px;
	}
}
