/* Games Slot - ハブ（メニュー）ショートコード
   ページ背景は白がメイン想定のライトテーマ。 */

.gs-hub {
	--hub-text: #1b1f27;
	--hub-muted: #687085;
	--hub-card: #ffffff;
	--hub-edge: #e6e8ee;
	--hub-soft: #f5f6f9;

	max-width: 900px;
	margin: 1.5em auto;
	padding: 4px;
	color: var(--hub-text);
	font-family: -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	box-sizing: border-box;
}

.gs-hub *,
.gs-hub *::before,
.gs-hub *::after {
	box-sizing: border-box;
}

/* 見出しは div（テーマCSS・目次プラグインに拾われないように）。詳細度を上げる。 */
.gs-hub .gs-hub-title {
	font-family: inherit;
	font-size: 1.7em;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-align: center;
	margin: 0.2em 0 0.1em;
	padding: 0;
	color: var(--hub-text);
}

.gs-hub-group {
	margin-top: 1.8em;
}

.gs-hub .gs-hub-heading {
	position: relative;
	margin: 0 0 1em;
	padding: 0 0 0 14px;
	font-family: inherit;
	font-size: 1.06em;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--hub-text);
}

.gs-hub .gs-hub-heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	bottom: 0.1em;
	width: 4px;
	border-radius: 2px;
	background: linear-gradient( 180deg, #ff4655, #ff9a3c );
}

.gs-hub-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

/* ===== カード（白ベース・ゲームランチャー風タイル） ===== */
.gs-hub-card {
	--c: #ff4655;
	flex: 0 1 210px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	min-height: 190px;
	padding: 24px 18px 18px;
	text-decoration: none;
	color: var(--hub-text);
	background: var(--hub-card);
	border: 1px solid var(--hub-edge);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba( 16, 24, 40, 0.06 ), 0 8px 18px -12px rgba( 16, 24, 40, 0.22 );
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* 上辺のブランドライン */
.gs-hub-card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: linear-gradient( 90deg, var(--c), color-mix( in srgb, var(--c) 25%, transparent ) );
}

.gs-hub-logo {
	display: grid;
	place-items: center;
	margin-top: 4px;
}

.gs-hub-logo img {
	width: 70px;
	height: 70px;
	object-fit: contain;
	border-radius: 16px;
	filter: drop-shadow( 0 5px 12px rgba( 16, 24, 40, 0.2 ) );
	transition: transform 0.18s ease;
}

.gs-hub-name {
	margin-top: 6px;
	font-size: 1.04em;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.25;
	color: var(--hub-text);
}

.gs-hub-sub {
	margin-top: -4px;
	font-size: 0.78em;
	letter-spacing: 0.05em;
	color: var(--hub-muted);
}

.gs-hub-cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-top: 6px;
	font-size: 0.86em;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--c);
}

.gs-hub-cta svg {
	width: 15px;
	height: 15px;
	transition: transform 0.18s ease;
}

/* ホバー */
a.gs-hub-card:hover {
	transform: translateY( -5px );
	border-color: color-mix( in srgb, var(--c) 45%, var(--hub-edge) );
	box-shadow: 0 2px 4px rgba( 16, 24, 40, 0.08 ), 0 22px 40px -18px var(--c);
}

a.gs-hub-card:hover .gs-hub-logo img {
	transform: scale( 1.06 );
}

a.gs-hub-card:hover .gs-hub-cta svg {
	transform: translateX( 3px );
}

a.gs-hub-card:focus-visible {
	outline: 2px solid var(--c);
	outline-offset: 2px;
}

/* 公開予定（URL未設定） */
.gs-hub-soon {
	filter: grayscale( 0.9 );
	opacity: 0.7;
	cursor: default;
	background: var(--hub-soft);
	box-shadow: none;
}

.gs-hub-badge {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.76em;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--hub-muted);
	background: #eef0f4;
	border: 1px solid var(--hub-edge);
}

.gs-hub-badge svg {
	width: 13px;
	height: 13px;
}

@media ( max-width: 480px ) {
	.gs-hub-grid {
		gap: 12px;
	}
	.gs-hub-card {
		flex: 0 1 calc( 50% - 6px );
		min-height: 168px;
		padding: 18px 12px 14px;
	}
	.gs-hub-logo img {
		width: 58px;
		height: 58px;
	}
}
