/* ===== HERO SLIDER ===== */


.hero-slider {
	position: relative;
}

.hero-slider__stage {
	position: relative;
	overflow: hidden;
	background: #000;
}

/* トラック：Flexで横並び、JSがtransformで位置制御 */
.hero-slider__track {
	display: flex;
	will-change: transform;
}

/* 各アイテム：ステージ幅の76%（両端12%ずつ見切れ） */
.hero-slider__item {
	width: 76%;
	flex-shrink: 0;
	position: relative;
	display: block;
	opacity: 0.5;
	transition: opacity 0.3s ease;
}

/* アクティブなスライドは不透明度100% */
.hero-slider__item.is-active {
	opacity: 1;
}

/* 575px以下：センター（active）スライドのみ1枚表示 */
@media (max-width: 575px) {
	.hero-slider__item {
		width: 100%;
		opacity: 0;
	}
	.hero-slider__item.is-active {
		opacity: 1;
	}
}

.hero-slider__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.hero-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .1) 55%, transparent 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1rem;
}

.hero-slider__badges {
	display: flex;
	gap: 0.375rem;
	margin-bottom: 0.5rem;
	flex-wrap: wrap;
}

.hero-slider__badge {
	display: inline-block;
	padding: 0.2rem 0.625rem;
	font-size: 0.6875rem;
	font-weight: 700;
	background: var(--color-green);
	color: var(--color-white);
	line-height: 1.4;
}

.hero-slider__badge--teal {
	background: #0097A7;
}

.hero-slider__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-white);
	line-height: 1.4;
	margin-bottom: 0.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-slider__subtitle {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, .8);
	margin-bottom: 0.5rem;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-slider__date {
	align-self: flex-end;
	font-size: 0.6875rem;
	color: rgba(255, 255, 255, .85);
	background: rgba(0, 0, 0, .4);
	padding: 0.15rem 0.5rem;
}

/* 前後ボタン */
.hero-slider__prev,
.hero-slider__next {
	position: absolute;
	top: 50%;
	z-index: 10;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, .25);
	border: none;
	cursor: pointer;
	width: 2rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
	font-size: 1.125rem;
	transition: background 0.3s ease;
	padding: 2rem 0;
}

.hero-slider__prev {
	left: 0;
}

.hero-slider__next {
	right: 0;
}

@media (min-width: 769px) {

	.hero-slider__prev:hover,
	.hero-slider__next:hover {
		background: rgba(255, 255, 255, .45);
	}
}

/* ドット：スライド下部に丸記号のみ横並び */
.hero-slider__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0.625rem 0;
	z-index: 1;
    position: absolute;
    top: 0;
    left: 1rem;
}

.slider-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.slider-dots li {
	line-height: 1;
}

.slider-dots li button {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border-radius: 50%;
	background: var(--color-border);
	border: none;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	transition: background 0.3s ease;
}

.slider-dots li button.is-active {
	background: var(--color-green);
}

@media (min-width: 769px) {
	.hero-slider__overlay {
		padding: 1.5rem 2rem;
	}

	.hero-slider__title {
		font-size: 1.375rem;
	}

	.hero-slider__subtitle {
		font-size: 0.875rem;
	}

	.hero-slider__prev,
	.hero-slider__next {
		width: 2.2rem;
		height: 4rem;
		/* height: 100%; */
		font-size: 1.25rem;
	}
}
@media (min-width: 769px) and (max-height: 899px) {
	.hero-slider__prev,
	.hero-slider__next {
		top: 40%;
	}
}
@media (min-width: 769px) and (max-height: 599px) {
	.hero-slider__prev,
	.hero-slider__next {
		top: 25%;
	}
}
@media (min-width: 769px) and (max-height: 499px) {
	.hero-slider__prev,
	.hero-slider__next {
		top: 10%;
	}
}

/* ===== GAME RESULTS SLIDER ===== */
.gr-slider {
	position: relative;
	overflow: hidden;
}

.gr-slider__track {
	display: flex;
	will-change: transform;
}

/* 表示枚数: xs=2 / sm=2.5 / md=3 / lg=4 / xl=5 */
.gr-slider__item {
	flex: 0 0 50%;
	max-width: 50%;
}

@media (min-width: 576px) {
	.gr-slider__item {
		flex: 0 0 40%;
		max-width: 40%;
	}
}

@media (min-width: 768px) {
	.gr-slider__item {
		flex: 0 0 calc(100% / 3);
		max-width: calc(100% / 3);
	}
}

@media (min-width: 992px) {
	.gr-slider__item {
		flex: 0 0 25%;
		max-width: 25%;
	}
}

/* @media (min-width: 1200px) {
	.gr-slider__item {
		flex: 0 0 20%;
		max-width: 20%;
	}
} */

.gr-slider__label {
	font-size: 1.065rem;
	font-weight: 700;
	color: var(--color-purple);
	margin-bottom: 0;
	padding: 1rem 1.5rem 0.15rem 1.5rem;
	display: inline-block;
	border-radius: 0.5rem 0.5rem 0 0;
}

.gr-slider__label-link {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
	.gr-slider__label-link:hover { opacity: 0.75; }
}

.gr-slider__imgs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.25rem;
}

/* 2枚以上のとき2カラム */
.gr-slider__imgs:has(a:nth-child(2)) {
	grid-template-columns: 1fr 1fr;
}

.gr-slider__imgs a {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: rgba(0, 0, 0, 0.5);
	cursor: zoom-in;
}

.gr-slider__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
	.gr-slider__imgs a:hover .gr-slider__img {
		opacity: 0.85;
	}
}

/* ===== LUMINOUS LIGHTBOX ===== */
.lum-lightbox { z-index: 99999; }

.lum-lightbox-inner img {
	max-width: 100%;
	max-height: 90vh;
}

.lum-lightbox-inner .lum-lightbox-caption {
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
	text-shadow: 0.0625rem 0.0625rem 0.1875rem rgba(0, 0, 0, 0.8);
}

.gr-slider__prev,
.gr-slider__next {
	position: absolute;
	top: 50%;
	z-index: 10;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, .65);
	border: none;
	cursor: pointer;
	width: 2rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-purple);
	font-size: 1.125rem;
	transition: background 0.3s ease;
}

.gr-slider__prev { left: 0; }
.gr-slider__next { right: 0; }

@media (min-width: 769px) {
	.gr-slider__prev:hover,
	.gr-slider__next:hover {
		background: rgba(255, 255, 255, .9);
	}
}

.gr-slider__dots {
	display: flex;
	justify-content: center;
	padding: 0.625rem 0 0;
}

.gr-slider__dots ul {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gr-slider__dots li button {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border-radius: 50%;
	background: var(--color-border);
	border: none;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	transition: background 0.3s ease;
}

.gr-slider__dots li button.is-active {
	background: var(--color-green);
}

/* ===== GAME RESULTS (access-ranking tabs) ===== */
.game-results__inner {
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative; /* クロスフェード用 */
}

/* SP: tabs */
.game-results__tabs {
	display: flex;
}

.game-results__tab:last-child {
	border-left: none;
}

.game-results__panel {
	display: none;
}

/* タブ切替フェードイン */
.game-results__panel.is-active {
	display: block;
	animation: tabFadeIn 0.3s ease both;
}

/* タブ切替フェードアウト（JS で付与）: absolute overlay でレイアウトに影響させない */
.game-results__panel.is-leaving {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	pointer-events: none;
	animation: tabFadeOut 0.3s ease both;
}

@keyframes tabFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes tabFadeOut {
	from { opacity: 1; }
	to   { opacity: 0; }
}

.game-results__score-img {
	width: 100%;
	height: auto;
}

.game-results__tab,
.game-results__col-title {
	font-size: 1.065rem;
	font-weight: 700;
	color: var(--color-purple);
	margin-bottom: 0;
	padding: 1rem 1.5rem 0.15rem 1.5rem;
	display: inline-block;
	width: 50%;
	text-align: center;
	border-radius: 0.5rem 0.5rem 0 0;
	background: var(--bs-light);
	border: 1px solid var(--color-green-tp05);
	/* Bootstrap の btn active 状態が変数経由で上書きするのを防ぐ */
	--bs-btn-active-color: var(--color-purple);
	--bs-btn-active-bg: var(--bs-light);
	--bs-btn-active-border-color: transparent;
	--bs-btn-active-shadow: none;
}

/* アクティブタブは下のボックスとシームレスに繋がるよう下ボーダーを背景色と同化させる */
.game-results__tab.is-active {
	border-bottom-color: transparent;
}

#access-ranking .box {
	border: 1px solid var(--color-green-tp05);
	border-top: none;
}

/* 人気記事ランキング: SPサイズのタブ切り替えレイアウトをPC/SP共通のデフォルトとするため、
   PC幅で2カラム表示に切り替えていた下記ルールは不使用（コメントアウト）
@media (min-width: 992px) {
	.game-results__tabs {
		display: none;
	}

	.game-results__inner {
		flex-direction: row;
		gap: 1.5rem;
	}

	.game-results__col {
		flex: 1;
	}

	.game-results__panel {
		display: block;
	}
}
*/

/* ===== ARTICLES ===== */
.article-item.is-hidden {
	display: none;
}

@keyframes articleReveal {
	from { opacity: 0; transform: translateY(1rem); }
	to   { opacity: 1; transform: translateY(0); }
}

.article-item.is-revealing {
	animation: articleReveal 0.4s ease both;
}

.article-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0;
}

.article-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.875rem;
	background: var(--color-white);
}

/* ランキング内 archive-item レイアウト調整 */
#access-ranking .article-item { padding: 0; }
#access-ranking .archive-item {
	flex: 1;
	padding: 0;
	border-bottom: none;
	border-top: none;
	align-items: stretch; /* サムネと body の高さを揃える */
}
/* サムネ・画像を行の高さいっぱいに */
#access-ranking .archive-item__thumb { height: 100%; }
#access-ranking .archive-item__thumb img { height: 100%; }
/* article-item の余白を body へ移す（余白が空きすぎないよう抑える） */
#access-ranking .archive-item__body {
	padding: 0.625rem 0.75rem;
	gap: 0;
	justify-content: space-between; /* 縦均等割付 */
}
#access-ranking .archive-item__body > p { margin-bottom: 0; }
#access-ranking .archive-item__meta {
	padding-top: 0;
	margin-top: 0; /* space-between を効かせるため auto を解除 */
}
@media (min-width: 769px) {
	#access-ranking .archive-item__thumb { aspect-ratio: 1 / 1; }
}

/* ===== GALLERY ===== */
.gallery-grid__item {
	aspect-ratio: 1;
	overflow: hidden;
}

.gallery-card {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	text-decoration: none;
}

.gallery-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.gallery-card__title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.5rem 0.375rem 0.375rem;
	background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, transparent 100%);
	color: var(--color-white);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (min-width: 769px) {
	.gallery-card__title { font-size: 0.6875rem; }
	.gallery-card:hover img { transform: scale(1.05); }
}

/* 旧構造（<a>直下<img>）後方互換 */
.gallery-grid__item > a:not(.gallery-card) {
	display: block;
	width: 100%;
	height: 100%;
}

.gallery-grid__item > a:not(.gallery-card) img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}



/* ===== RANKING ===== */
.ranking__col-title {
	font-size: 1rem;
	font-weight: 700;
	border-bottom: 2px solid var(--color-green);
	padding-bottom: 0.5rem;
	margin-bottom: 0.75rem;
}

/* latest-articles: archive-item スタイルに合わせてリセット */
#latest-articles .article-list { gap: 0; }
#latest-articles .article-item { display: block; padding: 0; background: transparent; }

/* 番号付きランキング：article-item に順位番号を追加 */
.ranking-list--numbered .article-item {
	counter-increment: ranking;
	/* 順位番号をサムネイル左上に重ねるための基準 */
	position: relative;
}

/* 順位番号：ピザを十字に4等分した右下1片（左上が直角、右下が円弧）の形 */
.ranking-item__num {
	position: absolute;
	top: 0;   /* article-item の padding を 0 にしたためサムネ左上に一致 */
	left: 0;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.25rem 0.375rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-white);
	background: var(--color-purple);
	border-radius: 0 0 100% 0;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	opacity: 0.9;
}

