@charset "utf-8";

/* =========================================================
	変更内容：Gamesセクションを追加
	目的：ゲーム一覧を2列カードで表示する
========================================================= */
#games {
	background: var(--white);
	border-top: 2px solid var(--pk1);
	border-bottom: 2px solid var(--pk1);
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.game-card {
	padding: 16px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .82);
	border: 2px solid var(--pk1);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: transform .25s, box-shadow .25s;
}

.game-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.game-thumb {
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: linear-gradient(135deg, var(--pk0), var(--pk1));
	border: 1.5px solid var(--pk1);
}

.game-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.game-title {
	margin: 12px 0 0;
	text-align: center;
	font-size: 1rem;
	font-weight: 900;
	color: var(--text2);
}

/* =========================================================
	変更内容：Games詳細オーバーレイを追加
	目的：ゲーム紹介をフェードイン表示する
========================================================= */
.game-modal {
	position: fixed;
	inset: 0;
	z-index: 760;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: rgba(58, 24, 40, .68);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .28s, visibility .28s;
}

.game-modal.show {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.game-modal-box {
	position: relative;
	width: min(100%, 640px);
	border-radius: var(--radius);
	background: linear-gradient(135deg, #fff, #fff7fb);
	border: 2px solid var(--pk1);
	box-shadow: var(--shadow);
	overflow: hidden;
	transform: translateY(14px) scale(.96);
	transition: transform .28s;
}

.game-modal.show .game-modal-box {
	transform: translateY(0) scale(1);
}

.game-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: var(--pk4);
	font-size: 1.3rem;
	font-weight: 900;
	cursor: pointer;
}

.game-modal-img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	background: var(--pk0);
}

.game-modal-body {
	padding: 24px;
}

.game-modal-title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	color: var(--text);
}

.game-modal-desc {
	margin: 0;
	font-family: var(--fn-jp);
	font-size: .92rem;
	line-height: 1.8;
	color: var(--text2);
}

.game-modal-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	padding: 11px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--pk3), var(--pk4));
	color: #fff;
	text-decoration: none;
	font-weight: 900;
	box-shadow: 0 6px 22px rgba(245, 80, 138, .28);
	transition: transform .2s, box-shadow .2s;
}

.game-modal-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 9px 26px rgba(245, 80, 138, .36);
}

body.game-modal-open {
	overflow: hidden;
}

@media(max-width:768px) {
	.games-grid {
		grid-template-columns: 1fr;
	}

	.game-modal-body {
		padding: 20px 18px;
	}
}