/*
 * 「すべて見る」の書庫。
 *
 * 3つの柱で作りを変える。共通するのは見出し・絞り込み・並べ替えの帯だけで、
 * 中身（棚 / 行 / 敷き詰め）はそれぞれ別物。
 *
 * 親テーマは見出しやリンクの色を !important で押してくるので、
 * こちらも譲らないところは譲らない。弱めると色が既定に戻る。
 */

.ta {
	--ink: #1f2933;
	--ink-2: #6b7280;
	--ink-3: #9aa3af;
	--line: #e5e7eb;
	--paper: #fff;
}

/* ── 見出し ───────────────────── */

.ta-head {
	margin: 0 0 1.2rem;
	padding-bottom: .9rem;
	border-bottom: 2px solid var(--c, #666);
}

.ta .ta-head__title {
	display: flex;
	align-items: baseline;
	gap: .7rem;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	background-image: none !important;
	color: var(--c, var(--ink)) !important;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.ta .ta-head__title::before,
.ta .ta-head__title::after {
	content: none !important;
}

.ta-head__n {
	color: var(--ink-3);
	font-size: .8rem;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.ta-head__lead {
	margin: .5rem 0 0;
	color: var(--ink-2);
	font-size: .84rem;
	line-height: 1.7;
}

/* ── 並べ替え ─────────────────── */

.ta-sorts {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin-bottom: .7rem;
}

.ta .ta-sort {
	padding: .28rem .8rem !important;
	border: 1px solid var(--line) !important;
	border-radius: 999px !important;
	background: none !important;
	color: var(--ink-2) !important;
	font: inherit;
	font-size: .76rem;
	line-height: 1.5;
	cursor: pointer;
}

.ta .ta-sort.is-on {
	border-color: var(--c, #666) !important;
	color: var(--c, #666) !important;
	font-weight: 700;
}

/* ── 絞り込み ─────────────────── */

.ta-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin-bottom: 1.3rem;
}

.ta .ta-filter {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .3rem .75rem !important;
	border: 1px solid var(--line) !important;
	border-radius: 999px !important;
	background: none !important;
	color: var(--ink-2) !important;
	font: inherit;
	font-size: .76rem;
	line-height: 1.5;
	cursor: pointer;
}

.ta .ta-filter:hover {
	border-color: var(--c, #666) !important;
}

.ta .ta-filter.is-on {
	border-color: var(--c, #666) !important;
	color: var(--c, #666) !important;
	font-weight: 700;
}

.ta-filter i {
	font-style: normal;
	color: var(--ink-3);
	font-size: .68rem;
	font-variant-numeric: tabular-nums;
}

/* ── 記事に付いているタグ ─────── */

.ta-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin-top: .3rem;
}

.ta-tag {
	padding: .05rem .4rem;
	border-radius: 4px;
	background: rgba(0, 0, 0, .045);
	color: var(--ink-2);
	font-size: .64rem;
	line-height: 1.6;
}

.ta-tag--more {
	color: var(--ink-3);
}

.ta-empty {
	margin: 2rem 0;
	color: var(--ink-2);
	font-size: .88rem;
	text-align: center;
}

/* ═══ 遊べるゲーム — プレイ棚 ═══ */

.ta-shelf {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.ta-tile {
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--paper);
	transition: transform .15s, box-shadow .15s;
}

.ta-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .3);
}

.ta .ta-tile__link {
	display: block;
	color: inherit !important;
	text-decoration: none !important;
}

.ta-tile__shot {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: rgba(0, 0, 0, .05);
	overflow: hidden;
}

.ta-tile__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 「▶ 遊ぶ」は他の二案には無い、この棚だけの合図 */
.ta-tile__play {
	position: absolute;
	left: .5rem;
	bottom: .5rem;
	padding: .18rem .6rem;
	border-radius: 999px;
	background: var(--c, #666);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	line-height: 1.6;
}

.ta-tile__body {
	display: block;
	padding: .6rem .7rem .75rem;
}

.ta-tile__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--ink);
}

.ta-tile__meta {
	display: flex;
	justify-content: space-between;
	gap: .4rem;
	margin-top: .4rem;
	color: var(--ink-3);
	font-size: .68rem;
	font-variant-numeric: tabular-nums;
}

/* ═══ 作品レビュー — 比べる一覧 ═══ */

.ta-rows {
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.ta-row {
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--paper);
	transition: border-color .15s;
}

.ta-row:hover {
	border-color: var(--c, #666);
}

.ta .ta-row__link {
	display: grid;
	grid-template-columns: 3.6rem 1fr auto;
	gap: .9rem;
	align-items: center;
	padding: .65rem .8rem;
	color: inherit !important;
	text-decoration: none !important;
}

.ta-row__pkg {
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(0, 0, 0, .05);
}

.ta-row__pkg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ta-row__body {
	display: block;
	min-width: 0;
}

.ta-row__name {
	display: block;
	font-size: .88rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--ink);
}

.ta-row__sub {
	display: block;
	margin-top: .1rem;
	color: var(--ink-3);
	font-size: .7rem;
}

/* 採点の内訳。同じ90点でも中身の違いが見えるようにする */
.ta-bars {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: .45rem;
}

.ta-bar {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	color: var(--ink-3);
	font-size: .64rem;
}

.ta-bar__track {
	display: block;
	width: 2.6rem;
	height: 4px;
	border-radius: 2px;
	background: var(--line);
	overflow: hidden;
}

.ta-bar__track i {
	display: block;
	height: 100%;
	background: var(--c, #666);
}

.ta-row__score {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
	min-width: 4.4rem;
	text-align: center;
}

/*
 * 数字は段の色で出す。
 * 88 と 72 は数字だけだと差が読み取りにくいので、色でも分けて
 * 上から流し読みしたときに切れ目が見えるようにする。
 * --tier は tier.css の .is-tier-N が行に載せる。
 */
.ta-row__score b {
	display: block;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--tier, var(--c, #666));
	font-variant-numeric: tabular-nums;
}

.ta-row__score small {
	color: var(--ink-3);
	font-size: .6rem;
}

/* 一覧では札を少し小さく。行の高さを押し広げない */
.ta-row__score .tab-tier {
	font-size: .7rem;
	padding: .1em .6em;
}

.ta-rows__note {
	margin: 1.1rem 0 .3rem;
	padding-top: .9rem;
	border-top: 1px dashed var(--line);
	color: var(--ink-3);
	font-size: .74rem;
}

/* ═══ イラスト — 敷き詰めギャラリー ═══ */

.ta-gallery {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: .3rem;
}

.ta-shot {
	position: relative;
	aspect-ratio: 1;
	border-radius: 4px;
	overflow: hidden;
	background: rgba(0, 0, 0, .05);
}

/* 縦長の絵は縦2枠。正方形に切ると絵の良さが落ちる */
.ta-shot--tall {
	aspect-ratio: 1 / 2.06;
	grid-row: span 2;
}

.ta .ta-shot__link {
	display: block;
	width: 100%;
	height: 100%;
	color: inherit !important;
	text-decoration: none !important;
}

.ta-shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 題名は普段は出さない。眺める邪魔になる */
.ta-shot__over {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.4rem .45rem .35rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, .78));
	color: #fff;
	opacity: 0;
	transition: opacity .15s;
	pointer-events: none;
}

.ta-shot:hover .ta-shot__over,
.ta-shot:focus-within .ta-shot__over {
	opacity: 1;
}

.ta-shot__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .62rem;
	line-height: 1.4;
}

.ta-shot__stats {
	display: flex;
	gap: .45rem;
	margin-top: .15rem;
	opacity: .85;
	font-size: .6rem;
	font-variant-numeric: tabular-nums;
}

.ta-more-wrap {
	margin-top: 1.2rem;
	text-align: center;
}

.ta .ta-more {
	padding: .55rem 1.8rem !important;
	border: 1px solid var(--c, #666) !important;
	border-radius: 999px !important;
	background: none !important;
	color: var(--c, #666) !important;
	font: inherit;
	font-size: .85rem;
	font-weight: 700;
	cursor: pointer;
}

/* ── 狭い画面 ─────────────────── */

@media only screen and (max-width: 899px) {
	.ta-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ta-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media only screen and (max-width: 599px) {
	.ta .ta-head__title { font-size: 1.25rem; }
	.ta-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.ta-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ta .ta-row__link { grid-template-columns: 3rem 1fr auto; gap: .6rem; }
	.ta-bars { gap: .4rem; }
	.ta-bar__track { width: 2rem; }

	/* 触れない画面では常に出す。ホバーが無い */
	.ta-shot__over { opacity: 1; }
}

/* ジャンルから柱の全体へ戻る導線 */
.ta-back {
	margin: -.4rem 0 .9rem;
	font-size: .78rem;
}

.ta .ta-back a {
	color: var(--c, #666) !important;
	text-decoration: none !important;
}

.ta .ta-back a:hover {
	text-decoration: underline !important;
}

/* キャラクターリクエストのバナー。中身は [advanced_grid_showcase] が持つ */
.ta-charbanner {
	margin-top: 1.6rem;
}

/*
 * レビュー一覧の断り書き。
 * 点数は筆者の好みによるものなので、並びを見る前に伝える。
 * 目立たせすぎると本題（作品）より先に読まれるので、控えめに置く。
 */
.ta-disclaimer {
	margin: 0 0 1.1rem;
	padding: .7rem .95rem;
	border-left: 3px solid var(--c, #666);
	border-radius: 0 6px 6px 0;
	background: rgba(0, 0, 0, .03);
	color: var(--ink-2);
	font-size: .8rem;
	line-height: 1.75;
}

.ta-disclaimer strong {
	color: var(--c, #666);
}

/*
 * レビューの形式タブ（ゲーム / 漫画・CG / ボイス）。
 * 点数の付け方が形式で別物なので、混ぜたままだと
 * どれと比べているのか分からなくなる。
 * 絞り込みの札より一段強く見せて、上位の切り替えだと分かるようにする。
 */
.ta-kinds {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 0 0 1rem;
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--line);
}

.ta .ta-kind {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .4rem 1.1rem !important;
	border: 1px solid var(--line) !important;
	border-radius: 8px !important;
	background: none !important;
	color: var(--ink-2) !important;
	font: inherit;
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
}

.ta .ta-kind.is-on {
	border-color: var(--c, #666) !important;
	background: var(--c, #666) !important;
	color: #fff !important;
}

.ta-kind i {
	font-style: normal;
	font-size: .7rem;
	opacity: .75;
	font-variant-numeric: tabular-nums;
}
