/* ============================================
   ボイスコミック研究所 データベース用スタイル
   すべて .voico- プレフィックスでCocoon本体と衝突しない設計
   ============================================ */

:root {
	--voico-ink: #2b2b33;        /* 基本文字色 */
	--voico-line: #e6e2ee;       /* 罫線 */
	--voico-bg-soft: #f7f5fb;    /* 淡い下地(薄ラベンダー: 音声作品の夜の空気感) */
	--voico-accent: #6c5ce7;     /* アクセント(深めのバイオレット) */
	--voico-accent-dark: #5546c8;
	--voico-star: #f5a623;       /* 星 */
	--voico-star-empty: #d9d5e3;
}

/* ---------- 基本情報テーブル ---------- */
.voico-work-info {
	margin: 0 0 2em;
}

.voico-info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
	border: 1px solid var(--voico-line);
	border-radius: 8px;
	overflow: hidden;
}

.voico-info-table th,
.voico-info-table td {
	padding: 0.7em 1em;
	border-bottom: 1px solid var(--voico-line);
	text-align: left;
	vertical-align: top;
}

.voico-info-table tr:last-child th,
.voico-info-table tr:last-child td {
	border-bottom: none;
}

.voico-info-table th {
	background: var(--voico-bg-soft);
	color: var(--voico-ink);
	font-weight: 600;
	width: 7.5em;
	white-space: nowrap;
}

.voico-info-table td a {
	color: var(--voico-accent-dark);
	text-decoration: none;
}

.voico-info-table td a:hover {
	text-decoration: underline;
}

/* ---------- 耳次郎の評価 ---------- */
.voico-rating {
	margin-top: 1.2em;
	padding: 1.1em 1.2em;
	background: var(--voico-bg-soft);
	border-radius: 8px;
}

.voico-rating-heading {
	font-weight: 700;
	font-size: 1em;
	margin-bottom: 0.6em;
	color: var(--voico-ink);
}

.voico-rating-list {
	margin: 0;
}

.voico-rating-row {
	display: flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.25em 0;
}

.voico-rating-row dt {
	width: 4.5em;
	font-size: 0.9em;
	color: var(--voico-ink);
	font-weight: 500;
}

.voico-rating-row dd {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.voico-stars {
	letter-spacing: 0.1em;
	font-size: 1.05em;
	line-height: 1;
}

.voico-star {
	color: var(--voico-star-empty);
}

.voico-star.is-filled {
	color: var(--voico-star);
}

.voico-score-num {
	font-size: 0.85em;
	color: #777;
}

.voico-rating-total {
	display: flex;
	align-items: baseline;
	gap: 0.4em;
	margin-top: 0.7em;
	padding-top: 0.7em;
	border-top: 1px dashed var(--voico-line);
}

.voico-total-label {
	font-size: 0.9em;
	font-weight: 600;
}

.voico-total-num {
	font-size: 1.7em;
	font-weight: 700;
	color: var(--voico-accent-dark);
	line-height: 1;
}

.voico-total-max {
	font-size: 0.85em;
	color: #999;
}

/* ---------- DLsiteボタン ---------- */
.voico-cta {
	margin: 2.2em 0;
	text-align: center;
}

.voico-cta-button {
	display: block;
	max-width: 480px;
	margin: 0 auto;
	padding: 1em 1.5em;
	background: var(--voico-accent);
	color: #fff !important;
	font-size: 1.05em;
	font-weight: 700;
	text-decoration: none !important;
	border-radius: 10px;
	box-shadow: 0 3px 0 var(--voico-accent-dark);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.voico-cta-button:hover {
	transform: translateY(1px);
	box-shadow: 0 2px 0 var(--voico-accent-dark);
}

.voico-cta-note {
	margin-top: 0.6em;
	font-size: 0.78em;
	color: #999;
}

/* ---------- 関連作品 ---------- */
.voico-related {
	margin: 2.2em 0 1.5em;
}

.voico-related-heading {
	font-size: 1.1em;
	border-left: 4px solid var(--voico-accent);
	padding-left: 0.6em;
	margin-bottom: 0.9em;
}

.voico-related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.voico-card {
	display: block;
	text-decoration: none !important;
	color: var(--voico-ink) !important;
	border: 1px solid var(--voico-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.voico-card:hover {
	box-shadow: 0 4px 14px rgba(90, 70, 200, 0.13);
}

.voico-card-thumbwrap {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--voico-bg-soft);
	overflow: hidden;
}

.voico-card-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.voico-card-noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 1.8em;
	opacity: 0.45;
}

.voico-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding: 0.55em 0.7em 0.7em;
	font-size: 0.82em;
	line-height: 1.45;
}

/* ---------- モバイル調整 ---------- */
@media screen and (max-width: 480px) {
	.voico-info-table th {
		width: 6em;
		font-size: 0.9em;
	}

	.voico-rating-row dt {
		width: 4em;
	}

	.voico-related-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.voico-card-title {
		font-size: 0.74em;
	}
}
