/* ==========================================================================
   Kamisaku Theme v1.3.5 — Editorial Review Media
   ========================================================================== */

/* ── Design Tokens ── */
:root {
	/* Palette */
	--color-bg: #f7f5f2;
	--color-surface: #ffffff;
	--color-surface-tint: #faf9f7;
	--color-border: #e7e5e4;
	--color-border-light: #f0eeec;

	/* Brand & conversion */
	--color-brand: #b45309;
	--color-brand-hover: #92400e;
	--color-brand-light: #fef3c7;
	--color-cta: #dc2626;
	--color-cta-hover: #b91c1c;
	--color-gold: #b8860b;
	--color-gold-light: #fef3c7;
	--color-sale: #ca8a04;

	/* Text & status */
	--color-text: #1c1917;
	--color-text-secondary: #57534e;
	--color-text-muted: #78716c;
	--color-success: #16a34a;
	--color-danger: #dc2626;

	/* 記事内強調（サイトブランド色と独立・全プロファイル共通） */
	--article-mark-text: #9a3412;
	--article-mark-bg: #ffedd5;
	--article-mark-border: #ea580c;
	--article-em-red-text: #b91c1c;
	--article-em-red-bg: #fef2f2;
	--article-em-red-border: #ef4444;

	/* Typography — system fonts only (no web font requests) */
	--font-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Yu Gothic UI', 'Meiryo', sans-serif;
	--font-serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;

	/* Borders & radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;

	/* Layout */
	--container: 1200px;
	--header-h: 64px;

	/* Effects */
	--shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
	--shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
	--transition: all 0.2s ease-in-out;
}

/* ── Reset & Base ── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.75;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.age-gate-active {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-sm);
}

a {
	color: var(--color-text);
	text-decoration: none;
	transition: var(--transition);
}
a:hover {
	color: var(--color-brand);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}
@media (max-width: 575px) {
	.container {
		padding-left: 12px;
		padding-right: 12px;
	}
}

/* ── Typography & Headings ── */
h1, h2, h3, h4 {
	font-weight: 700;
	line-height: 1.4;
	color: var(--color-text);
}

/* ── Utility Buttons ── */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	text-align: center;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	padding: 10px 24px;
	font-size: 15px;
	cursor: pointer;
	transition: var(--transition);
	gap: 8px;
}

.btn--primary {
	background: var(--color-brand);
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
}
.btn--primary:hover {
	background: var(--color-brand-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(180, 83, 9, 0.28);
}

.btn--primary.btn--affiliate {
	background: var(--color-cta);
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.22);
}
.btn--primary.btn--affiliate:hover {
	background: var(--color-cta-hover);
	box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.btn--ghost {
	background: #fff;
	color: var(--color-text-secondary);
	border-color: var(--color-border);
}
.btn--ghost:hover {
	background: var(--color-bg);
	color: var(--color-text);
}

.btn--xl {
	font-size: 18px;
	padding: 16px 36px;
	border-radius: 50px;
	width: 100%;
	max-width: 420px;
}

.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 4px;
	line-height: 1.4;
}
.badge--new {
	background: var(--color-danger);
	color: #fff;
}
.badge--sale {
	background: var(--color-sale);
	color: #fff;
}
.work-single__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 16px;
}
.price-val--sale {
	color: var(--color-danger);
	font-weight: 800;
	font-size: 1.15em;
}
.price-val--list {
	color: var(--color-text-muted);
	text-decoration: line-through;
	font-size: 0.95em;
	margin-left: 4px;
}
.price-val--discount {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--color-danger);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}
.campaign-title {
	font-weight: 700;
	color: var(--color-danger);
}
.campaign-end {
	color: var(--color-text-muted);
	font-size: 0.9em;
	margin-left: 4px;
}

/* ── Header ── */
.site-header {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
}

.header-inner {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 20px;
	position: relative;
}

.site-logo {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	gap: 2px;
	line-height: 1.2;
}
.site-logo:hover {
	color: var(--color-text);
}
.site-logo__name {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text);
}
.site-logo__tagline {
	display: none;
	font-size: 10px;
	color: var(--color-text-muted);
	font-weight: 500;
}
@media (min-width: 1100px) {
	.site-logo__tagline {
		display: block;
	}
}

.main-nav {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.main-nav__search-mobile {
	display: none;
}

.header-search {
	flex: 1;
	min-width: 0;
	max-width: 320px;
	margin-left: auto;
}
.header-search .search-field {
	padding: 8px 14px;
	font-size: 14px;
}
.header-search .search-submit--icon {
	padding: 0 14px;
}
.header-search .search-submit--icon span {
	display: none;
}
.nav-menu {
	display: flex;
	list-style: none;
	gap: 24px;
}
.nav-menu li {
	position: relative;
}
.nav-menu a {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: var(--color-text-secondary);
	padding: 8px 0;
	position: relative;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	color: var(--color-brand);
}

/* Desktop Dropdown Submenus */
@media (min-width: 992px) {
	.nav-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%) translateY(10px);
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-md);
		box-shadow: 0 10px 25px rgba(0,0,0,0.1);
		min-width: 180px;
		padding: 8px 0;
		list-style: none;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
		z-index: 150;
	}
	.nav-menu li:hover > .sub-menu,
	.nav-menu .has-dropdown:hover > .sub-menu,
	.nav-menu .menu-item-has-children:hover > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateX(-50%) translateY(0);
	}
	.nav-menu .sub-menu li {
		width: 100%;
	}
	.nav-menu .sub-menu a {
		padding: 8px 20px;
		font-size: 13px;
		font-weight: 600;
		white-space: nowrap;
		color: var(--color-text-secondary);
	}
	.nav-menu .sub-menu a:hover {
		background: var(--color-brand-light);
		color: var(--color-brand);
	}
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text-secondary);
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	transition: var(--transition);
}
.menu-toggle:hover {
	background: var(--color-bg);
	color: var(--color-brand);
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	width: 36px;
	height: 36px;
}
.menu-toggle span {
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: var(--transition);
}

/* ── Mobile Navigation ── */
@media (max-width: 991px) {
	.menu-toggle {
		display: flex;
	}
	.header-search {
		display: none;
	}
	.main-nav__search-mobile {
		display: block;
		margin-bottom: 16px;
		padding-bottom: 16px;
		border-bottom: 1px solid var(--color-border-light);
	}
	.main-nav__search-mobile .search-submit span {
		display: none;
	}
	.main-nav {
		position: absolute;
		top: calc(var(--header-h) + 12px);
		left: 0;
		right: 0;
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-lg);
		box-shadow: 0 10px 25px rgba(0,0,0,0.15);
		padding: 20px;
		display: none;
		z-index: 99;
	}
	.main-nav.is-open {
		display: block;
	}
	.nav-menu {
		flex-direction: column;
		gap: 16px;
	}
	.nav-menu .has-dropdown .sub-menu,
	.nav-menu .menu-item-has-children .sub-menu {
		padding-left: 15px;
		margin-top: 8px;
		list-style: none;
		border-left: 2px solid var(--color-border);
		display: block;
	}
	.nav-menu .has-dropdown .sub-menu li,
	.nav-menu .menu-item-has-children .sub-menu li {
		margin-bottom: 8px;
	}
	.nav-menu .has-dropdown .sub-menu a,
	.nav-menu .menu-item-has-children .sub-menu a {
		font-size: 13px;
		font-weight: 600;
		padding: 4px 0;
	}
}

.search-form {
	display: flex;
	gap: 10px;
}
.search-field {
	flex-grow: 1;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 10px 16px;
	font-size: 15px;
	outline: none;
	font-family: inherit;
}
.search-field:focus {
	border-color: var(--color-brand);
}
.search-submit {
	background: var(--color-brand);
	color: #fff;
	border: none;
	padding: 0 24px;
	border-radius: var(--radius-md);
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: var(--transition);
}
.search-submit:hover {
	background: var(--color-brand-hover);
}

/* ── Layout ── */
.site-main {
	padding: 24px 0 60px;
}

.main-content {
	min-width: 0;
}
.main-content--full {
	width: 100%;
}

/* ── Homepage Hero ── */
.home-hero {
	padding: 12px 0 40px;
	margin-bottom: 16px;
}
.home-hero__title {
	font-family: var(--font-serif);
	font-size: clamp(1.625rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 14px;
	color: var(--color-text);
}
.home-hero__text {
	font-size: 15px;
	color: var(--color-text-secondary);
	max-width: 40em;
	margin-bottom: 24px;
}
.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.home-section {
	margin-bottom: 48px;
}
.home-section:last-child {
	margin-bottom: 0;
}

/* ── Section Title ── */
.section-title {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0;
	padding-left: 14px;
	border-left: 3px solid var(--color-brand);
	display: flex;
	align-items: center;
	gap: 8px;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-border);
}

.section-header__link {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-brand);
	white-space: nowrap;
}

.section-header__link:hover {
	color: var(--color-brand-hover);
}

.home-section > .section-title,
.single-work__related > .section-title {
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-border);
}

/* ── Actress Cards & Grid ── */
.actress-section {
	margin-bottom: 40px;
}

.actress-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.actress-grid--page {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

@media (max-width: 992px) {
	.actress-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.actress-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.actress-grid--scroll-mobile {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 12px;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
		padding-bottom: 2px;
	}

	.actress-grid--scroll-mobile .actress-card {
		flex: 0 0 34%;
		min-width: 112px;
		max-width: 140px;
		scroll-snap-align: start;
	}
}

.actress-card {
	min-width: 0;
}

.actress-card__link {
	display: block;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	transition: var(--transition);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.actress-card__link:hover {
	transform: translateY(-3px);
	border-color: var(--color-brand);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
	color: var(--color-text);
}

.actress-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #1a202c;
	overflow: hidden;
}

.actress-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.actress-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #edf2f7, #e2e8f0);
	color: #a0aec0;
}
.actress-image-placeholder__icon {
	width: 44%;
	height: 44%;
	opacity: 0.9;
}
.actress-card__placeholder {
	background: linear-gradient(145deg, #2d3748, #1a202c);
	color: #718096;
}
.actress-archive-profile__placeholder {
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
}

.actress-card__rank {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	min-width: 28px;
	height: 28px;
	padding: 0 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.actress-card__rank--gold {
	background: #f59e0b;
}

.actress-card__rank--silver {
	background: #9ca3af;
}

.actress-card__rank--bronze {
	background: #b45309;
}

.actress-card__rank--default {
	background: #4b5563;
}

.actress-card__name {
	padding: 10px 8px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	background: #1a202c;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.actress-card__ruby {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	font-weight: 400;
	opacity: 0.85;
}

.actress-card__meta {
	padding: 6px 8px;
	font-size: 10px;
	color: var(--color-text-secondary);
	background: var(--color-surface-tint);
	text-align: center;
	line-height: 1.4;
	border-top: 1px solid var(--color-border);
}

/* Actress taxonomy archive profile */
.actress-archive-profile {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin: 16px 0 20px;
	padding: 16px;
	background: var(--color-surface-tint);
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-md);
}
.actress-archive-profile__media {
	flex: 0 0 140px;
	width: 140px;
}
.actress-archive-profile__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
}
.actress-archive-profile__body {
	flex: 1;
	min-width: 0;
}
.actress-archive-profile__name {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.4;
}
.actress-archive-profile__ruby {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 400;
	color: var(--color-text-secondary);
}
.actress-archive-profile__stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px 16px;
	margin: 0;
}
.actress-archive-profile__stat {
	margin: 0;
}
.actress-archive-profile__stat dt {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 700;
	color: var(--color-text-muted);
}
.actress-archive-profile__stat dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.5;
}
@media (max-width: 600px) {
	.actress-archive-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.actress-archive-profile__media {
		flex-basis: auto;
		width: 160px;
	}
	.actress-archive-profile__stats {
		text-align: left;
	}
}

.actress-directory {
	margin-bottom: 40px;
}

.actress-filter {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 20px;
	margin-bottom: 24px;
}

.actress-filter__group + .actress-filter__group {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--color-border-light);
}

.actress-filter__label {
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 10px;
	color: var(--color-text);
}

.actress-filter__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.actress-filter__options--gojuon {
	gap: 6px;
}

.actress-filter__btn {
	border: 1px solid var(--color-border);
	background: var(--color-bg);
	color: var(--color-text-secondary);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
}

.actress-filter__btn:hover,
.actress-filter__btn.is-active {
	background: var(--color-brand-light);
	border-color: var(--color-brand);
	color: var(--color-brand);
}

.actress-filter__result {
	margin-top: 16px;
	margin-bottom: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text-secondary);
}

.actress-directory__empty {
	margin-top: 20px;
	text-align: center;
	color: var(--color-text-secondary);
}

.actress-card[hidden] {
	display: none;
}

/* ── Work Cards & Grids ── */
.work-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 30px;
}
@media (max-width: 575px) {
	.work-grid {
		gap: 10px;
		margin-bottom: 24px;
	}
	.work-grid .work-card__content {
		padding: 10px 10px 11px;
		gap: 4px;
	}
	.work-grid .work-card__title {
		font-size: 12px;
		line-height: 1.4;
	}
	.work-grid .work-card__actress {
		font-size: 11px;
	}
}
@media (min-width: 576px) {
	.work-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}
@media (min-width: 992px) {
	.work-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Ranking page: same card density as other work grids (was 1–2 col = oversized). */
.work-grid--ranking {
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) {
	.work-grid--ranking {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 992px) {
	.work-grid--ranking {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ranking-item {
	position: relative;
}

.ranking-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 15;
	padding: 3px 8px;
	border-radius: var(--radius-sm);
	background: var(--color-gold);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.work-card {
	position: relative;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}
.work-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: rgba(180, 83, 9, 0.35);
}

.work-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}
.work-card__link:hover {
	color: inherit;
}

.work-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: var(--color-surface-tint);
	overflow: hidden;
}
.work-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	border-radius: 0;
	transition: transform 0.25s ease;
}
.work-card:hover .work-card__img {
	transform: scale(1.02);
}

.work-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.badge--card {
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 999px;
	line-height: 1.2;
	letter-spacing: 0.03em;
}

.work-card__rating-badge {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px 8px;
	border-radius: var(--radius-sm);
	background: rgba(28, 25, 23, 0.78);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	backdrop-filter: blur(4px);
}
.work-card__rating-badge::before {
	content: '★';
	color: var(--color-gold);
	font-size: 11px;
}

.work-card__no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: var(--color-border-light);
	color: var(--color-text-muted);
}

.work-card__content {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 6px;
}

.work-card__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--color-text);
}

.work-card__actress {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Archive Header ── */
.archive-header {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.archive-header__title {
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
}
.archive-header__desc,
.archive-header__intro {
	font-size: 14px;
	color: var(--color-text-secondary);
	line-height: 1.8;
}
.archive-header__intro {
	margin-bottom: 0;
}

/* Genre Pills Archive Filter */
.archive-filters {
	margin-top: 20px;
	border-top: 1px solid var(--color-border-light);
	padding-top: 20px;
}
.genre-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.genre-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 16px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 50px;
	transition: var(--transition);
}
.genre-pill:hover,
.genre-pill--active {
	background: var(--color-brand);
	border-color: var(--color-brand);
	color: #fff !important;
}
.genre-pill__count {
	font-size: 10px;
	opacity: 0.8;
	background: rgba(0,0,0,0.05);
	padding: 1px 6px;
	border-radius: 10px;
}
.genre-pill--active .genre-pill__count {
	background: rgba(255,255,255,0.2);
}

/* ── Single Work Review Page Layout ── */
.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
}
.breadcrumb a {
	color: var(--color-text-secondary);
}
.breadcrumb a:hover {
	color: var(--color-brand);
}
.breadcrumb__sep {
	color: var(--color-text-muted);
}

/* ── Single Work Layout ── */
.work-single-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	align-items: stretch;
}
@media (min-width: 992px) {
	.work-single-layout {
		grid-template-columns: minmax(0, 1fr) 280px;
	}
}
.work-single-layout__main {
	min-width: 0;
}
.work-single-aside {
	display: none;
}
@media (min-width: 992px) {
	.work-single-aside {
		display: block;
		min-height: 100%;
	}
	.work-single-aside__sticky {
		position: sticky;
		top: calc(var(--header-h) + 16px);
		z-index: 20;
		max-height: calc(100vh - var(--header-h) - 32px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
}

.work-single {
	margin-bottom: 40px;
}

/* Review Summary Box (Upper Section) */
.review-summary-card {
	background: var(--color-surface-tint);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
@media (min-width: 768px) {
	.review-summary-card {
		flex-direction: row;
	}
}

.review-summary-left {
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	margin: 0 auto;
}
@media (min-width: 768px) {
	.review-summary-left {
		max-width: 320px;
		flex-shrink: 0;
	}
}

.review-summary-image {
	width: 100%;
	max-width: 480px;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	background: var(--color-surface);
}
.review-summary-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
}

.review-summary-rating {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.stars {
	color: var(--color-gold);
	font-size: 22px;
	letter-spacing: 2px;
}
.stars .star--empty {
	color: var(--color-border);
}
.review-summary-rating-num {
	font-size: 20px;
	font-weight: 800;
	color: var(--color-text);
}
.review-summary-count {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-text-muted);
}

.review-summary-right {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.review-summary-title {
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 16px;
	color: var(--color-text);
}

/* Specs Table */
.spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin-bottom: 20px;
}
.spec-table th,
.spec-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--color-border-light);
	text-align: left;
}
.spec-table th {
	font-weight: 700;
	color: var(--color-text-secondary);
	background: rgba(0,0,0,0.02);
	width: 110px;
}
.spec-table td {
	color: var(--color-text);
	font-weight: 600;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
	border-bottom: none;
}
.spec-table .price-val--sale {
	font-size: 16px;
	color: var(--color-danger);
	font-weight: 800;
}
.spec-table .price-val--list {
	color: var(--color-text-muted);
	font-weight: 600;
}
.spec-table .price-val--discount {
	color: #fff;
	background: var(--color-danger);
	font-size: 12px;
	font-weight: 800;
}

/* CTA Styles */
.affiliate-cta-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid var(--color-border-light);
}
.affiliate-cta-box--inline {
	margin-top: auto;
}
@media (min-width: 992px) {
	.affiliate-cta-box--inline {
		display: none;
	}
}
.affiliate-cta-box--bottom {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid var(--color-border-light);
}
.affiliate-cta-box__heading {
	font-family: var(--font-serif);
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 15px;
	color: var(--color-text);
	text-align: center;
}
.affiliate-cta-note {
	font-size: 11px;
	color: var(--color-text-secondary);
	margin-top: 8px;
	font-weight: 500;
	text-align: center;
}

/* Desktop CTA panel (sticky via .work-single-aside__sticky) */
.work-sticky-cta {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: var(--shadow-sm);
	text-align: center;
}
.work-sticky-cta__image {
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 14px;
	background: var(--color-surface-tint);
}
.work-sticky-cta__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	border-radius: 0;
}
.work-sticky-cta__badges {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.work-sticky-cta__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.stars--sm {
	font-size: 16px;
	letter-spacing: 1px;
}
.work-sticky-cta__rating-num {
	font-size: 18px;
	font-weight: 800;
	color: var(--color-text);
}
.work-sticky-cta__review-count {
	font-size: 12px;
	font-weight: 600;
	color: var(--color-text-muted);
}
.work-sticky-cta__price {
	margin-bottom: 16px;
	font-size: 15px;
}
.work-sticky-cta__btn {
	width: 100%;
	padding: 14px 16px;
	font-size: 15px;
}

/* Pros and Cons */
.pros-cons-box {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 30px;
}
@media (min-width: 768px) {
	.pros-cons-box {
		grid-template-columns: repeat(2, 1fr);
	}
}

.pros-list,
.cons-list {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 20px;
}
.pros-list {
	border-color: #c6f6d5;
	background: #f0fff4;
}
.cons-list {
	border-color: #fed7d7;
	background: #fff5f5;
}

.pros-cons-title {
	font-size: 15px;
	font-weight: 800;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.pros-list .pros-cons-title { color: var(--color-success); }
.cons-list .pros-cons-title { color: var(--color-danger); }

.pros-cons-items {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
}
.pros-cons-items li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.pros-cons-items li::before {
	font-size: 14px;
	flex-shrink: 0;
	margin-top: 2px;
}
.pros-list li::before {
	content: "✔";
	color: var(--color-success);
}
.cons-list li::before {
	content: "✖";
	color: var(--color-danger);
}

/* Review content */
.work-single__review {
	border-top: 1px solid var(--color-border-light);
	padding-top: 30px;
}
.work-single__review-title {
	margin-bottom: 24px;
}
.work-single__review-body {
	max-width: 720px;
}

.work-single__excerpt {
	font-size: 16px;
	font-weight: 600;
	color: var(--color-text-secondary);
	background: var(--color-bg);
	border-radius: var(--radius-md);
	padding: 20px;
	margin-bottom: 30px;
	border-left: 4px solid var(--color-text-secondary);
}

.entry-content {
	font-size: 16px;
	line-height: 1.9;
}
.entry-content p {
	margin-bottom: 24px;
}
.entry-content h2 {
	font-size: 20px;
	font-weight: 800;
	margin: 40px 0 20px;
	padding: 12px 16px;
	background: var(--color-bg);
	border-left: 6px solid var(--color-brand);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.entry-content h3 {
	font-size: 17px;
	font-weight: 800;
	margin: 30px 0 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-border);
}

/* 記事内強調（** / == / !! の3段階） */
.entry-content strong,
.entry-content .article-em-bold {
	font-weight: 800;
	color: var(--color-text);
}

.entry-content .article-mark,
.entry-content mark {
	display: inline;
	font-weight: 800;
	color: var(--article-mark-text);
	background: var(--article-mark-bg);
	padding: 2px 6px;
	border-radius: var(--radius-sm);
	border-bottom: 2px solid var(--article-mark-border);
	box-shadow: none;
}

.entry-content .article-em-red {
	display: inline;
	font-weight: 900;
	font-size: 1.08em;
	line-height: 1.5;
	color: var(--article-em-red-text);
	background: var(--article-em-red-bg);
	padding: 2px 6px;
	border-radius: var(--radius-sm);
	border-bottom: 2px solid var(--article-em-red-border);
	box-shadow: none;
}

.entry-content .article-affiliate-cta {
	margin: 28px 0 8px;
	text-align: center;
}
.entry-content .article-affiliate-cta a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background: var(--color-cta);
	color: #fff;
	font-weight: 800;
	border-radius: var(--radius-md);
	text-decoration: none;
}
.entry-content .article-affiliate-cta a:hover {
	background: var(--color-cta-hover);
	color: #fff;
	opacity: 1;
}

.entry-content .article-disclaimer-heading {
	margin: 40px 0 16px;
	padding: 14px 16px;
	background: var(--color-bg);
	border-left: 4px solid var(--color-text-muted);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	font-size: 17px;
}

.entry-content a.internal-link {
	color: var(--color-brand);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.entry-content a.internal-link:hover {
	opacity: 0.85;
}

.entry-content .work-card__link,
.entry-content .work-card__link:hover {
	color: inherit;
	text-decoration: none;
}

.kamisaku-inline-related {
	margin: 32px 0;
	padding: 18px 16px 16px;
	background: var(--color-surface-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}
@media (max-width: 767px) {
	.entry-content .kamisaku-inline-related {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 16px 0 14px 20px;
		border-left: none;
		border-right: none;
		border-radius: 0;
	}
	.kamisaku-inline-related .work-grid--scroll {
		margin-right: 0;
		padding-right: 20px;
		gap: 12px;
	}
	.kamisaku-inline-related .work-grid--scroll .work-card {
		flex: 0 0 min(72vw, 280px);
		min-width: min(68vw, 260px);
		max-width: 300px;
	}
	.kamisaku-inline-related .work-card__content {
		padding: 10px 12px 12px;
		gap: 4px;
	}
	.kamisaku-inline-related .work-card__title {
		font-size: 13px;
		line-height: 1.45;
		-webkit-line-clamp: 3;
	}
	.kamisaku-inline-related .work-card__actress {
		font-size: 11px;
	}
}
.kamisaku-inline-related__label {
	margin: 0 0 14px;
	padding-right: 20px;
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
}

/* Horizontal work rails */
.work-grid--scroll {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	overflow-x: auto;
	gap: 14px;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	padding-bottom: 4px;
	margin-bottom: 0;
}
.work-grid--scroll .work-card {
	flex: 0 0 150px;
	min-width: 140px;
	max-width: 170px;
	scroll-snap-align: start;
}
.work-grid--scroll .work-card__link {
	height: auto;
}
.work-grid--scroll .work-card__content {
	flex-grow: 0;
}
.work-grid--inline {
	margin-bottom: 0;
}
@media (min-width: 768px) {
	.work-grid--scroll .work-card {
		flex-basis: 165px;
	}
}

.work-discovery-section {
	margin: 32px 0;
}
.work-discovery-section--pre-review {
	margin: 28px 0 36px;
	padding: 20px;
	background: var(--color-surface-tint);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
}
.work-single__discovery {
	margin-top: 8px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}
.work-single__discovery .work-discovery-section:first-child {
	margin-top: 0;
}

/* Sidebar mini discovery */
.work-aside-discover {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border-light);
}
.work-single-aside__sticky > .work-aside-discover:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}
.work-sticky-cta + .work-aside-discover {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border-light);
}
.work-aside-discover__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}
.work-aside-discover__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.4;
}
.work-aside-discover__more {
	font-size: 12px;
	font-weight: 700;
	color: var(--color-brand);
	white-space: nowrap;
}
.work-aside-discover__list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.work-aside-discover__item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 10px;
	align-items: center;
}
.work-aside-discover__thumb {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--color-surface-tint);
}
.work-aside-discover__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	border-radius: 0;
}
.work-aside-discover__name {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--color-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.work-aside-discover__name:hover {
	color: var(--color-brand);
}

/* Box elements for within reviews */
.info-box,
.warning-box {
	padding: 20px;
	border-radius: var(--radius-lg);
	margin-bottom: 24px;
	border: 1px solid;
}
.info-box {
	background: #ebf8ff;
	border-color: #bee3f8;
	color: #2b6cb0;
}
.warning-box {
	background: #fffaf0;
	border-color: #feebc8;
	color: #dd6b20;
}

/* Shortcode styles [kamisaku_related] */
.kamisaku-related-shortcode {
	border: 1px solid var(--color-border);
	background: var(--color-surface-tint);
	border-radius: var(--radius-lg);
	padding: 24px;
	margin: 35px 0;
}
.kamisaku-related-title {
	font-size: 16px;
	font-weight: 800;
	margin-bottom: 16px;
	color: var(--color-text);
}

/* Mobile Fixed CTA Footer */
.work-single__cta-fixed {
	display: none;
}
@media (max-width: 991px) {
	.work-single__cta-fixed {
		display: flex;
		align-items: center;
		gap: 12px;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.96);
		border-top: 1px solid var(--color-border);
		box-shadow: 0 -4px 20px rgba(28, 25, 23, 0.1);
		padding: 10px 16px;
		z-index: 90;
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		transform: translateY(100%);
		transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	}
	.work-single__cta-fixed.is-visible {
		transform: translateY(0);
	}
	.work-single__cta-fixed-meta {
		display: flex;
		flex-direction: column;
		gap: 2px;
		flex-shrink: 0;
		min-width: 72px;
	}
	.work-single__cta-fixed-rating {
		font-size: 12px;
		font-weight: 700;
		color: var(--color-gold);
	}
	.work-single__cta-fixed-price {
		font-size: 13px;
		font-weight: 800;
		color: var(--color-danger);
		line-height: 1.2;
	}
	.work-single__cta-fixed-price .price-val--list {
		display: none;
	}
	.work-single__cta-fixed-btn {
		flex: 1;
		font-size: 15px;
		padding: 12px 16px;
		white-space: nowrap;
	}
}


/* ── Pagination ── */
.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin-top: 40px;
	gap: 8px;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--radius-md);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
	transition: var(--transition);
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
	padding: 0 16px;
}
.pagination .pagination__arrow {
	font-size: 18px;
	line-height: 1;
}
.pagination .pagination__label {
	font-size: 13px;
	font-weight: 700;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--color-brand);
	border-color: var(--color-brand);
	color: #fff !important;
}
.pagination .page-numbers.dots {
	min-width: auto;
	padding: 0 4px;
	border: none;
	background: transparent;
}

.no-results {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 40px 20px;
	text-align: center;
}
.no-results h2 {
	font-size: 18px;
	margin-bottom: 10px;
}
.no-results p {
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	font-size: 14px;
}

/* ── Footer ── */
.site-footer {
	background: var(--color-surface-tint);
	border-top: 1px solid var(--color-border);
	padding: 0 0 30px;
	font-size: 14px;
	color: var(--color-text-secondary);
}

.footer-discover {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	padding: 40px 0;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
	.footer-discover {
		grid-template-columns: 220px 1fr;
		align-items: start;
		gap: 48px;
	}
}
.footer-discover__heading {
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 14px;
}
.footer-discover__nav {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer-discover__nav a {
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text-secondary);
}
.footer-discover__nav a:hover {
	color: var(--color-brand);
}
.footer-discover__ranking-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.footer-discover__ranking-head .footer-discover__heading {
	margin-bottom: 0;
}
.footer-discover__more {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-brand);
	white-space: nowrap;
}
.footer-ranking-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 576px) {
	.footer-ranking-list {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (min-width: 992px) {
	.footer-ranking-list {
		grid-template-columns: repeat(5, 1fr);
	}
}
.footer-ranking-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.footer-ranking-item__num {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(28, 25, 23, 0.8);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.footer-ranking-item:nth-child(1) .footer-ranking-item__num {
	background: var(--color-sale);
}
.footer-ranking-item__thumb {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-border-light);
}
.footer-ranking-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	border-radius: 0;
}
.footer-ranking-item__title {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--color-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.footer-ranking-item--empty {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--color-text-muted);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.footer-logo {
	display: flex;
	align-items: center;
	gap: 8px;
}
.footer-desc {
	font-size: 13px;
	color: var(--color-text-muted);
}

.footer-nav h3,
.footer-info h3 {
	font-family: var(--font-serif);
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 16px;
	color: var(--color-text);
}

.footer-menu {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.footer-menu a {
	color: var(--color-text-secondary);
}
.footer-menu a:hover {
	color: var(--color-brand);
}

.footer-age-notice {
	color: var(--color-danger);
	font-weight: 700;
	margin-top: 10px;
	font-size: 12px;
}

.footer-bottom {
	border-top: 1px solid var(--color-border-light);
	padding-top: 20px;
	text-align: center;
}
.copyright {
	font-size: 12px;
	color: var(--color-text-muted);
}

/* Adjustment on mobile for the fixed CTA footer height */
@media (max-width: 991px) {
	body.single-work-page {
		padding-bottom: 80px; /* offset fixed bar */
	}
}

/* ── Age Gate Overlay ── */
.age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #fff;
	transition: opacity 0.4s ease;
}
.age-gate--leaving {
	opacity: 0;
	pointer-events: none;
}
.age-gate__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(6px);
}
.age-gate__content {
	position: relative;
	z-index: 1;
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: var(--radius-lg);
	padding: 40px 30px;
	max-width: 480px;
	width: 100%;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.age-gate__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: rgba(244, 63, 94, 0.12);
	color: var(--color-brand);
}
.age-gate__title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 12px;
	line-height: 1.4;
}
.age-gate__text {
	font-size: 14px;
	color: #94a3b8;
	margin: 0 0 20px;
	line-height: 1.7;
}
.age-gate__badge {
	display: inline-block;
	margin-bottom: 24px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(244, 63, 94, 0.16);
	color: #fda4af;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
}
.age-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 20px;
}
.age-gate__actions .btn {
	flex: 1 1 180px;
	max-width: 220px;
}
.age-gate__legal {
	margin: 0;
	font-size: 11px;
	line-height: 1.6;
	color: #64748b;
}

/* ── Genre Tags (inline pills in spec table) ── */
.genre-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.genre-tag {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: 50px;
	color: var(--color-text-secondary) !important;
	transition: var(--transition);
	line-height: 1.4;
}
.genre-tag:hover {
	background: var(--color-brand-light);
	border-color: var(--color-brand);
	color: var(--color-brand) !important;
}

/* ── Genre Directory (page-genre-list) ── */
.page-content--genre-directory {
	padding-top: 24px;
}

.main-content--full {
	width: 100%;
	max-width: 100%;
}

.archive-header--compact {
	margin-bottom: 28px;
}

.genre-directory {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.genre-directory__section {
	margin: 0;
}

.genre-directory__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
	color: var(--color-text);
}

.genre-directory__marker {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-brand);
	flex-shrink: 0;
}

.genre-directory__heading-text {
	line-height: 1.3;
}

.genre-directory__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--color-surface);
}

@media (min-width: 640px) {
	.genre-directory__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.genre-directory__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.genre-directory__grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
}

.genre-directory__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 12px;
	border-right: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	color: #2563eb;
	background: var(--color-surface);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.genre-directory__item:hover {
	background: var(--color-brand-light);
	color: var(--color-brand);
}

.genre-directory__item--empty {
	color: var(--color-text-muted);
}

.genre-directory__empty {
	margin: 0;
	font-size: 14px;
	color: var(--color-text-muted);
}

.genre-directory__section--orphan .genre-directory__grid {
	border-style: dashed;
}

.genre-pill--more {
	border-style: dashed;
}

/* ===== Standard posts (articles) ===== */
.page-content--article {
	max-width: 840px;
}

.article-single {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.article-single__header {
	padding: 28px 28px 0;
}

.article-single__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.article-single__category {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--color-brand-light);
	color: var(--color-brand);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.article-single__category:hover {
	opacity: 0.85;
}

.article-single__title {
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 900;
	line-height: 1.35;
	color: var(--color-text);
	margin-bottom: 12px;
}

.article-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--color-text-secondary);
	margin-bottom: 8px;
}

.article-single__meta-sep {
	opacity: 0.6;
}

.article-single__thumbnail {
	margin: 20px 28px 0;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.article-single__thumbnail-img {
	width: 100%;
	height: auto;
}

.article-single__body {
	padding: 24px 28px 32px;
}

.article-single__lead {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.8;
	color: var(--color-text-secondary);
	padding: 18px 20px;
	margin-bottom: 28px;
	background: var(--color-bg);
	border-left: 4px solid var(--color-brand);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-single__content {
	max-width: 720px;
}

.article-related {
	margin-top: 36px;
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.post-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.post-card__link {
	display: flex;
	gap: 16px;
	padding: 16px;
	color: inherit;
	text-decoration: none;
}

.post-card__image {
	flex: 0 0 120px;
	width: 120px;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-bg);
}

.post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	flex: 1;
	min-width: 0;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--color-text-secondary);
	margin-bottom: 6px;
}

.post-card__meta-sep {
	opacity: 0.6;
}

.post-card__category {
	font-weight: 700;
	color: var(--color-brand);
}

.post-card__title {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.45;
	margin-bottom: 6px;
	color: var(--color-text);
}

.post-card__excerpt {
	font-size: 13px;
	line-height: 1.65;
	color: var(--color-text-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.search-results__articles {
	margin-top: 32px;
}

.search-results__heading {
	margin-bottom: 16px;
}

.entry-content a:not(.btn):not(.article-affiliate-cta a) {
	color: var(--color-brand);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:not(.btn):not(.article-affiliate-cta a):hover {
	opacity: 0.85;
}

.roundup-work-image {
	margin: 0 0 20px;
	text-align: center;
}

.roundup-work-image img {
	max-width: 280px;
	width: 100%;
	height: auto;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
	.article-single__header,
	.article-single__body {
		padding-left: 18px;
		padding-right: 18px;
	}

	.article-single__thumbnail {
		margin-left: 18px;
		margin-right: 18px;
	}

	.post-card__link {
		flex-direction: column;
	}

	.post-card__image {
		flex: none;
		width: 100%;
	}
}

/* ── Favorites ── */
.header-favorites {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	color: var(--color-text-secondary);
	transition: var(--transition);
}
.header-favorites:hover {
	background: var(--color-bg);
	color: var(--color-brand);
}
.header-favorites__count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--color-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.favorite-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	background: rgba(255, 255, 255, 0.92);
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.favorite-btn:hover {
	color: var(--color-brand);
	transform: scale(1.04);
}
.favorite-btn--icon {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	padding: 0;
}
.favorite-btn--card {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 20;
}
.favorite-btn--labeled {
	min-height: 40px;
	padding: 0 14px;
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	box-shadow: none;
}
.favorite-btn--labeled:hover {
	border-color: rgba(180, 83, 9, 0.35);
	background: var(--color-brand-light);
}
.favorite-btn__icon-filled {
	display: none;
	fill: currentColor;
}
.favorite-btn.is-active {
	color: #e11d48;
}
.favorite-btn.is-active .favorite-btn__icon-outline {
	display: none;
}
.favorite-btn.is-active .favorite-btn__icon-filled {
	display: block;
	fill: #e11d48;
}

.review-summary-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.review-summary-title-row .review-summary-title {
	margin-bottom: 0;
	flex: 1;
	min-width: 0;
}

.favorites-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding: 14px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
}
.favorites-toolbar__controls {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.favorites-toolbar__sort select {
	min-width: 160px;
	padding: 8px 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
}
.favorites-toolbar__filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--color-text-secondary);
	cursor: pointer;
}
.favorites-toolbar__clear {
	border: none;
	background: none;
	color: var(--color-text-secondary);
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.favorites-toolbar__clear:hover {
	color: var(--color-brand);
}

.favorites-toolbar[hidden],
.favorites-empty[hidden],
.favorites-stale-list[hidden] {
	display: none !important;
}

.favorites-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 48px 20px;
	margin-bottom: 32px;
	border: 1px dashed var(--color-border);
	border-radius: var(--radius-lg);
	text-align: center;
}
.favorites-empty__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text);
}
.favorites-empty__desc {
	max-width: 420px;
	color: var(--color-text-secondary);
}

.favorites-stale-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}
.favorites-stale-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-md);
	background: var(--color-bg);
}
.favorites-stale-item__body {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.favorites-stale-item__badge {
	flex-shrink: 0;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
	background: var(--color-border);
	font-size: 11px;
	font-weight: 700;
}
.favorites-stale-item__title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--color-text-secondary);
	font-size: 14px;
}
.favorites-stale-item__remove {
	flex-shrink: 0;
	border: none;
	background: none;
	color: var(--color-brand);
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.favorites-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%) translateY(12px);
	z-index: 200;
	padding: 12px 18px;
	border-radius: var(--radius-md);
	background: rgba(24, 24, 27, 0.92);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.favorites-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
	.review-summary-title-row {
		flex-direction: column;
		align-items: stretch;
	}
	.favorite-btn--labeled {
		width: 100%;
		justify-content: center;
	}
}

