/* ============================================================
   FANZA Affiliate Theme - Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #222222;
	background-color: #ffffff;
}

a {
	color: #d63a7a;
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: #e60012;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	list-style: none;
}

/* ---------- Layout ---------- */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	padding: 24px 0 48px;
}

/* ---------- Header ---------- */
.site-header {
	background-color: #ffffff;
	border-bottom: 2px solid #cc0000;
	box-shadow: 0 2px 4px rgba(0,0,0,0.06);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	padding-bottom: 12px;
	gap: 16px;
}

.site-logo {
	display: inline-block;
	line-height: 0;
}

.site-logo img {
	width: 140px;
	height: auto;
	display: block;
}

@media ( max-width: 768px ) {
	.site-logo img {
		width: 96px;
	}
}

.site-tagline {
	font-size: 0.75rem;
	color: #666666;
	margin-top: 2px;
}

/* ---------- Navigation ---------- */
.main-nav {
	position: relative;
}

.main-nav #primary-menu {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.main-nav #primary-menu li a {
	display: block;
	padding: 6px 14px;
	color: #333;
	border-radius: 4px;
	font-size: 0.875rem;
	transition: background 0.2s, color 0.2s;
}

.main-nav #primary-menu li a:hover {
	background-color: #cc0000;
	color: #fff;
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 6px 10px;
	cursor: pointer;
	flex-direction: column;
	gap: 4px;
}

.nav-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: #444;
	border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
	background-color: #1a1a1a;
	border-top: 1px solid #333;
	padding: 32px 0 24px;
}

.footer-inner {
	text-align: center;
}

/* WPメニュー割り当て済みの場合 */
.footer-nav ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.footer-nav ul li a {
	color: #fff;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: color 0.15s;
}

.footer-nav ul li a:hover {
	color: #ff4f8b;
}

/* fallback用クラス */
.footer-menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.footer-menu li a {
	color: #fff;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: color 0.15s;
}

.footer-menu li a:hover {
	color: #ff4f8b;
}

.footer-nav-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin-bottom: 20px;
}

.footer-nav-wrapper .footer-nav ul,
.footer-nav-wrapper .footer-nav .footer-menu {
	margin-bottom: 0;
}

.footer-api-credit {
	line-height: 1;
	flex-shrink: 0;
}

.footer-copy {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8125rem;
	margin-bottom: 4px;
}

.footer-copy a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.footer-note {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.75rem;
}

@media (max-width: 768px) {
	/* フッター全体余白 */
	.site-footer {
		padding: 20px 0 16px;
	}

	/* nav + ロゴを縦積み・中央寄せ */
	.footer-nav-wrapper {
		flex-direction: column;
		gap: 16px;
		margin-bottom: 16px;
	}

	/* FANZAロゴ中央配置 */
	.footer-api-credit {
		display: flex;
		justify-content: center;
	}

	/* フッターメニュー2列グリッド */
	.footer-nav ul,
	.footer-menu {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 24px;
		text-align: center;
		margin-bottom: 0;
	}

	/* 奇数個のとき最後の項目を全幅で中央寄せ */
	.footer-nav ul li:last-child:nth-child(odd),
	.footer-menu li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	/* コピーライト・注意文余白 */
	.footer-copy {
		margin-bottom: 6px;
		padding: 0 8px;
	}

	.footer-note {
		padding: 0 16px;
	}
}

/* ---------- Section ---------- */
.section {
	margin-bottom: 48px;
}

.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
	border-bottom: 2px solid #ff4d8d;
	padding-bottom: 8px;
}

.section-title {
	font-size: 1.25rem;
	color: #222222;
}

.section-more {
	font-size: 0.875rem;
	color: #d63a7a;
}

/* ---------- Works Grid ---------- */
.works-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.work-card {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	transition: all .25s ease;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.work-card:hover {
	border-color: #ff4d8d;
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.work-card-link {
	display: block;
	color: inherit;
}

.work-card-image {
	width: 100%;
	aspect-ratio: 2040 / 1372;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.work-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.3s;
}

.work-card:hover .work-card-image img {
	transform: scale(1.04);
}

.work-card-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 0.75rem;
}

.work-card-body {
	padding: 8px 10px 12px;
}

.work-card-title {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #222222;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 6px;
}

.work-card-actress {
	font-size: 0.75rem;
	color: #d63a7a;
	margin-bottom: 4px;
}

.work-card-price {
	font-size: 0.875rem;
	color: #e60012;
	font-weight: bold;
}

.work-card-maker,
.work-card-date {
	font-size: 0.75rem;
	color: #666666;
}

/* ---------- もっと見るボタン ---------- */
.section-more-wrap {
	text-align: center;
	margin-top: 24px;
}

.btn-more {
	display: inline-block;
	padding: 10px 32px;
	border: 2px solid #ff4d8d;
	border-radius: 4px;
	color: #ff4d8d;
	background: #ffffff;
	font-size: 0.9rem;
	font-weight: bold;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 8px rgba(255,77,141,0.10);
}

.btn-more:hover {
	background: #ff4d8d;
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(255,77,141,0.28);
}

/* ---------- ランキングバッジ ---------- */
.work-card-image-wrap {
	position: relative;
}

.rank-badge {
	position: absolute;
	top: 5px;
	left: 5px;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 3px 5px 4px;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: bold;
	line-height: 1;
	pointer-events: none;
}

.rank-crown {
	display: block;
	width: 12px;
	height: 8px;
}

.rank-badge--gold {
	background: linear-gradient(160deg, #f5d060, #c8960a);
	color: #4a2e00;
}

.rank-badge--silver {
	background: linear-gradient(160deg, #e4e4e4, #a0a0a0);
	color: #333333;
}

.rank-badge--bronze {
	background: linear-gradient(160deg, #d4956a, #8b4513);
	color: #ffffff;
}

.rank-badge--minor {
	background: rgba(255, 255, 255, 0.85);
	color: #888888;
	border: 1px solid #cccccc;
	font-size: 0.65rem;
	padding: 2px 4px;
}

/* ---------- Archive Header ---------- */
.archive-header {
	margin-bottom: 28px;
}

.archive-title {
	display: block;
	padding: 0.5em 0 0.5em 0.8em;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border: none;
	border-left: 4px solid #ff4d8d;
	border-bottom: 2px solid #ff4d8d;
	border-radius: 0;
	box-shadow: none;
	font-size: 1.6rem;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.archive-description {
	color: #666666;
	font-size: 0.875rem;
	margin-top: 6px;
}

.page-title {
	display: block;
	padding: 0.5em 0 0.5em 0.8em;
	background: transparent;
	border: none;
	border-left: 4px solid #ff4d8d;
	border-bottom: 2px solid #ff4d8d;
	border-radius: 0;
	box-shadow: none;
	font-size: 1.6rem;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
	margin-bottom: 28px;
}

/* ---------- Pagination ---------- */
.pagination {
	margin-top: 32px;
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	color: #333;
	font-size: 0.875rem;
}

.pagination .page-numbers.current {
	background: #cc0000;
	border-color: #cc0000;
	color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
	border-color: #cc0000;
	color: #e60012;
}

/* ---------- Single Works ---------- */
.single-works .work-detail {
	max-width: 960px;
}

/* パンくず */
.breadcrumb {
	margin-bottom: 20px;
	font-size: 0.8125rem;
	color: #888;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.breadcrumb li + li::before {
	content: ' > ';
	margin-right: 4px;
}

.breadcrumb a {
	color: #666666;
}

/* メインレイアウト */
.work-main {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	margin-bottom: 40px;
}

.work-cover {
	width: 100%;
}

.work-cover-img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
}

.work-title {
	font-size: 1.25rem;
	color: #222222;
	line-height: 1.5;
	margin-bottom: 20px;
}

/* メタテーブル */
.work-meta-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	margin-bottom: 20px;
}

.work-meta-table th,
.work-meta-table td {
	padding: 8px 12px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: top;
}

.work-meta-table th {
	width: 110px;
	color: #666666;
	white-space: nowrap;
	font-weight: normal;
}

.work-meta-table td {
	color: #222222;
}

.actress-link {
	display: inline-block;
	margin-right: 8px;
	color: #d63a7a;
}

.list-price {
	font-size: 0.8125rem;
	color: #888;
	text-decoration: line-through;
}

/* ジャンルリスト */
.genre-list-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.genre-link {
	display: inline-block;
	padding: 2px 8px;
	background: #f5f5f5;
	border-radius: 3px;
	font-size: 0.8125rem;
	color: #555;
}

.genre-link:hover {
	background: #cc0000;
	color: #fff;
}

/* 購入ボタン */
.btn {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: bold;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
}

.btn-buy {
	background-color: #cc0000;
	color: #fff;
	width: 100%;
}

.btn-buy:hover {
	background-color: #ff0000;
	color: #fff;
	transform: translateY(-1px);
}

.btn-buy-large {
	font-size: 1.125rem;
	padding: 14px 32px;
}

.work-buy-area {
	margin-top: 16px;
	text-align: center;
}

.work-buy-area-bottom {
	margin-top: 40px;
	padding: 24px;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-align: center;
}

.affiliate-note {
	margin-top: 8px;
	font-size: 0.75rem;
	color: #888;
}

/* 作品説明 */
.work-description {
	margin-bottom: 32px;
}

.work-description h2,
.work-sample-movie h2,
.work-sample-images h2 {
	font-size: 1.1rem;
	color: #222222;
	border-left: 4px solid #ff4d8d;
	padding-left: 10px;
	margin-bottom: 14px;
}

.entry-content {
	color: #444;
	line-height: 1.8;
}

/* サンプル動画 */
.work-sample-movie {
	margin-bottom: 32px;
}

.sample-movie-wrap {
	text-align: center;
	background: #000;
	padding: 16px;
	border-radius: 6px;
}

.sample-movie-wrap video {
	max-width: 100%;
}

/* サンプル画像 */
.work-sample-images {
	margin-bottom: 32px;
}

.sample-images-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
}

.sample-image-item img {
	width: 100%;
	height: auto;
	border-radius: 3px;
	border: 1px solid #e5e5e5;
	transition: border-color 0.2s;
}

.sample-image-item img:hover {
	border-color: #cc0000;
}

/* ---------- Term Lists ---------- */
.term-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.term-link {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.875rem;
}

/* ---------- 人気女優カード ---------- */
.actress-card-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px 12px;
}

.actress-card-item {
	text-align: center;
	transition: transform .2s ease;
}

.actress-card-item:hover {
	transform: translateY(-3px);
}

.actress-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.actress-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 8px;
	background: #f0f0f0;
	transition: transform 0.2s, opacity 0.2s;
}

.actress-card-link:hover .actress-avatar {
	transform: scale(1.05);
	opacity: 0.88;
}

.actress-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.actress-avatar-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #e0e0e0;
	position: relative;
}

.actress-avatar-placeholder::before {
	content: '';
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	width: 34%;
	height: 34%;
	background: #b8b8b8;
	border-radius: 50%;
}

.actress-avatar-placeholder::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 58%;
	height: 50%;
	background: #b8b8b8;
	border-radius: 40% 40% 0 0;
}

.actress-card-name {
	font-size: 0.78rem;
	font-weight: bold;
	color: #222222;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.actress-card-count {
	font-size: 0.68rem;
	color: #888888;
}

/* ---------- 関連女優 ---------- */
.related-actresses {
	margin-top: 40px;
}

.related-actresses-header {
	margin-bottom: 16px;
}

.related-actresses-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #222222;
	border-bottom: 2px solid #ff4d8d;
	padding-bottom: 8px;
}

.related-actresses-desc {
	margin-top: 6px;
	font-size: 0.85rem;
	color: #777777;
}

.related-actress-grid {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px 12px;
}

.related-actress-card {
	text-align: center;
}

.related-actress-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 14px 8px 12px;
	transition: all .2s ease;
	box-shadow: 0 1px 4px rgba(0,0,0,0.06);
	height: 100%;
	box-sizing: border-box;
}

.related-actress-card-link:hover {
	border-color: #ff4d8d;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.related-actress-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 8px;
	background: #f0f0f0;
	transition: transform 0.2s, opacity 0.2s;
}

.related-actress-card-link:hover .related-actress-avatar {
	transform: scale(1.05);
	opacity: 0.88;
}

.related-actress-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.related-actress-name {
	font-size: 0.82rem;
	font-weight: bold;
	color: #222222;
	margin: 0 0 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.related-actress-ruby {
	font-size: 0.68rem;
	color: #888888;
	margin: 0 0 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.related-actress-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 4px;
	font-size: 0.68rem;
	color: #555555;
	line-height: 1.7;
}

.related-actress-count {
	font-size: 0.68rem;
	color: #888888;
	margin: 4px 0 0;
}

.genre-list .genre-tag {
	background: #f5f5f5;
	border: 1px solid #e5e5e5;
	color: #555;
}

.genre-list .genre-tag:hover {
	background: #cc0000;
	border-color: #cc0000;
	color: #fff;
}

.term-count {
	font-size: 0.75rem;
	opacity: 0.7;
}

/* ---------- Post List (Archive / Index) ---------- */
.post-list {
	display: grid;
	gap: 20px;
}

.post-card {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 16px;
}

.post-card .post-title {
	font-size: 1rem;
	margin-bottom: 8px;
}

/* ============================================================
   特集記事一覧 (home.php)
   ============================================================ */

.feature-posts-header {
	margin-bottom: 28px;
	padding: 28px 24px;
	text-align: center;
	background: linear-gradient(135deg, #fff0f7 0%, #fff7fb 100%);
	border: 1px solid rgba(255, 77, 141, 0.12);
	border-radius: 12px;
}

.feature-posts-title {
	font-size: 1.8rem;
	font-weight: 800;
	color: #222;
	margin-bottom: 10px;
}

.feature-posts-desc {
	font-size: 0.875rem;
	color: #666;
	line-height: 1.75;
}

.feature-post-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 32px;
}

.feature-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-post-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 22px rgba(214, 58, 122, 0.13);
}

.feature-post-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.feature-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.feature-post-card:hover .feature-post-thumb img {
	transform: scale(1.04);
}

.feature-post-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 14px 16px 18px;
}

.feature-post-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.feature-post-cat {
	font-size: 0.7rem;
	font-weight: 600;
	color: #d63a7a;
	background: #fff0f5;
	border: 1px solid rgba(214, 58, 122, 0.2);
	border-radius: 4px;
	padding: 2px 8px;
	text-decoration: none;
	transition: background 0.15s;
}

.feature-post-cat:hover {
	background: #ffe0ef;
	text-decoration: none;
}

.feature-post-title {
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.feature-post-title a {
	color: #222;
	text-decoration: none;
}

.feature-post-title a:hover {
	color: #d63a7a;
}

.feature-post-meta {
	font-size: 0.75rem;
	color: #999;
	margin-bottom: 8px;
}

.feature-post-excerpt {
	font-size: 0.8125rem;
	color: #666;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.feature-posts-none {
	color: #888;
	text-align: center;
	padding: 20px 0;
}

@media ( max-width: 1024px ) {
	.feature-post-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media ( max-width: 768px ) {
	.feature-post-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.feature-post-body {
		padding: 10px 10px 12px;
	}

	.feature-posts-header {
		padding: 20px 16px;
		margin-bottom: 20px;
	}

	.feature-posts-title {
		font-size: 1.4rem;
	}
}

/* ---------- No Content ---------- */
.no-works, .no-terms {
	color: #888;
	padding: 20px 0;
}

/* ---------- Responsive ---------- */
@media ( max-width: 768px ) {
	.site-header .container {
		position: relative;
		flex-wrap: nowrap;
		padding-top: 0;
		padding-bottom: 0;
		min-height: 60px;
		gap: 0;
	}

	.nav-toggle {
		display: flex;
	}

	.main-nav #primary-menu {
		display: none;
		flex-direction: column;
		background: #f8f8f8;
		border-top: 1px solid #e5e5e5;
		padding: 8px 0;
	}

	.main-nav #primary-menu.is-open {
		display: flex;
	}

	.works-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.actress-card-list {
		grid-template-columns: repeat(3, 1fr);
	}

	.related-actress-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px 10px;
	}

	.work-main {
		grid-template-columns: 1fr;
	}

	.work-cover {
		max-width: 240px;
		margin: 0 auto;
	}

	.sample-images-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}
}

@media ( max-width: 480px ) {
	.works-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.work-meta-table th {
		width: 80px;
	}
}

/* ============================================================
   Single Works Page (sw-* prefix)
   ============================================================ */

/* ---- ページ全体 ---- */
.sw-page {
	/* ヘッダー内コンテナと揃えるため container は header.php 側で包む */
}

.sw-article {
	max-width: 960px;
}

/* ---- パンくず ---- */
.sw-breadcrumb {
	margin-bottom: 16px;
	font-size: 0.8125rem;
}

.sw-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
}

.sw-breadcrumb li {
	display: flex;
	align-items: center;
}

.sw-breadcrumb li + li::before {
	content: '›';
	margin: 0 6px;
	color: #ccc;
}

.sw-breadcrumb a {
	color: #666666;
}

.sw-breadcrumb a:hover {
	color: #d63a7a;
}

/* ---- ヘッダー ---- */
.sw-header {
	margin-bottom: 20px;
}

.sw-title {
	font-size: clamp( 1.05rem, 2.5vw, 1.35rem );
	font-weight: bold;
	color: #222222;
	line-height: 1.55;
	margin-bottom: 10px;
}

.sw-one-line {
	display: inline-block;
	background: #fff0f5;
	border-left: 4px solid #ff4d8d;
	padding: 6px 12px;
	font-size: 0.9375rem;
	color: #d63a7a;
	border-radius: 0 4px 4px 0;
}

/* ---- CTA ---- */
.sw-cta {
	text-align: center;
	margin: 20px 0;
}

.sw-cta--bottom {
	padding: 28px 20px;
	background: #fff5f7;
	border: 1px solid #ffd0e8;
	border-radius: 8px;
	margin-top: 48px;
}

.sw-btn-cta {
	display: inline-block;
	background: #cc0000;
	color: #fff;
	font-size: 1.05rem;
	font-weight: bold;
	padding: 14px 40px;
	border-radius: 4px;
	text-align: center;
	transition: background 0.2s, transform 0.15s;
	min-width: 240px;
}

.sw-btn-cta:hover {
	background: #ff1111;
	color: #fff;
	transform: translateY(-2px);
}

.sw-btn-cta--sm {
	font-size: 0.9375rem;
	padding: 10px 24px;
	min-width: 0;
	width: 100%;
}

.sw-btn-cta--lg {
	font-size: 1.2rem;
	padding: 16px 48px;
}

.sw-cta-note {
	margin-top: 8px;
	font-size: 0.75rem;
	color: #888;
}

/* ---- パッケージ画像（ヒーロー表示） ---- */
.sw-cover-hero {
	margin: 24px auto 28px;
	max-width: 700px;
	text-align: center;
}

.sw-cover-hero-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 700px;
	margin: 0 auto;
	border-radius: 10px;
	border: 1px solid #e5e5e5;
	background: #f8f8f8;
}

/* ---- 作品情報ブロック（縦並び） ---- */
.sw-info-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 36px;
	max-width: 700px;
}

.sw-info-group {
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 16px;
}

.sw-info-label {
	font-size: 0.75rem;
	color: #666666;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
}

.sw-info-value {
	color: #222222;
	font-size: 0.9375rem;
}

/* 女優リスト */
.sw-actress-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sw-actress-link {
	display: inline-block;
	background: #fff0f5;
	border: 1px solid #ffd0e8;
	color: #d63a7a;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 0.9375rem;
	transition: background 0.2s, border-color 0.2s;
}

.sw-actress-link:hover {
	background: #cc0000;
	border-color: #cc0000;
	color: #fff;
}

/* メーカーリンク */
.sw-maker-link {
	color: #d63a7a;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s;
}

.sw-maker-link:hover {
	color: #e60012;
}

/* ジャンルタグ */
.sw-genre-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sw-genre-tag {
	display: inline-block;
	background: #f5f5f5;
	border: 1px solid #e5e5e5;
	color: #555;
	padding: 3px 10px;
	border-radius: 3px;
	font-size: 0.8125rem;
	transition: background 0.2s, color 0.2s;
}

.sw-genre-tag:hover {
	background: #cc0000;
	border-color: #cc0000;
	color: #fff;
}

/* 作品情報内 CTA */
.sw-info-cta {
	margin-top: 8px;
	text-align: center;
}

/* ---- 冒頭レビュー ---- */
.sw-review {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 18px 22px 20px;
	margin-bottom: 24px;
	max-width: 700px;
}

.sw-review-label {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: bold;
	color: #d63a7a;
	letter-spacing: 0.06em;
	background: #fff0f5;
	border: 1px solid #ffd0e8;
	border-radius: 3px;
	padding: 2px 8px;
	margin-bottom: 12px;
}

.sw-review-body {
	color: #333333;
	font-size: 0.9375rem;
	line-height: 1.85;
}

.sw-review-body p {
	margin: 0;
}

.sw-review-body p + p {
	margin-top: 4px;
}

/* ---- セクション共通 ---- */
.sw-section {
	margin-bottom: 40px;
}

.sw-section:has( .sample-movie-embed ) {
	margin-bottom: 20px;
}

.sw-section-title {
	font-size: 1.05rem;
	color: #222222;
	border-left: 4px solid #ff4d8d;
	padding-left: 10px;
	margin-bottom: 16px;
	line-height: 1.4;
}

.sw-section-title a {
	color: inherit;
}

.sw-section-title a:hover {
	color: #ff4d8d;
}

/* ---- 自動生成エリア（ポイント＋おすすめ） ---- */
.sw-auto-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 40px;
}

.sw-points-box,
.sw-recommend-box {
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 18px 20px;
}

.sw-points-box .sw-section-title,
.sw-recommend-box .sw-section-title {
	font-size: 0.9375rem;
	margin-bottom: 12px;
}

/* ポイントリスト */
.sw-points-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sw-points-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: #222222;
	font-size: 0.9rem;
	line-height: 1.5;
}

.sw-check-icon {
	color: #ff4d8d;
	font-weight: bold;
	flex-shrink: 0;
	margin-top: 1px;
}

/* おすすめリスト */
.sw-recommend-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sw-recommend-list li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	color: #444;
	font-size: 0.9rem;
	line-height: 1.5;
}

.sw-arrow-icon {
	color: #ff4d8d;
	flex-shrink: 0;
	font-size: 0.7rem;
	margin-top: 4px;
}

/* ---- サンプル動画 ---- */
.sample-movie-embed {
	position: relative;
	width: 100%;
	padding-top: 58%;
	overflow: hidden;
	border-radius: 8px;
	background: transparent;
}

.sample-movie-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: transparent;
}

@media ( max-width: 768px ) {
	.sample-movie-embed {
		padding-top: 75%;
		overflow: visible;
	}
}

/* ---- サンプル画像グリッド ---- */
.sw-sample-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) );
	gap: 8px;
}

.sw-sample-btn {
	display: block;
	padding: 0;
	background: none;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	cursor: zoom-in;
	transition: border-color 0.2s, transform 0.15s;
	aspect-ratio: 16 / 9;
}

.sw-sample-btn:hover {
	border-color: #cc0000;
	transform: scale(1.03);
}

.sw-sample-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- ライトボックス ---- */
.sw-lb {
	position: fixed;
	inset: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-lb[hidden] {
	display: none;
}

.sw-lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	cursor: zoom-out;
}

.sw-lb-inner {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-lb-img {
	max-width: 90vw;
	max-height: 88vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 3px;
	box-shadow: 0 4px 40px rgba(0,0,0,0.8);
	display: block;
}

.sw-lb-close,
.sw-lb-prev,
.sw-lb-next {
	position: fixed;
	background: rgba(0,0,0,0.6);
	border: 1px solid rgba(255,255,255,0.2);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.sw-lb-close:hover,
.sw-lb-prev:hover,
.sw-lb-next:hover {
	background: rgba(204,0,0,0.8);
	border-color: #cc0000;
}

.sw-lb-close {
	top: 16px;
	right: 16px;
	font-size: 1.8rem;
}

.sw-lb-prev {
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
}

.sw-lb-next {
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
}

/* ---- 基本情報テーブル ---- */
.sw-info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.sw-info-th,
.sw-info-td {
	padding: 9px 14px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: top;
}

.sw-info-th {
	width: 120px;
	color: #666666;
	font-weight: normal;
	white-space: nowrap;
}

.sw-info-td {
	color: #222222;
}

.sw-list-price {
	font-size: 0.8125rem;
	color: #888;
	margin-left: 6px;
}

/* ---- 関連作品 ---- */
.sw-related-section {
	margin-bottom: 40px;
}

.sw-related-grid {
	display: grid;
	grid-template-columns: repeat( 4, 1fr );
	gap: 12px;
}

.sw-related-card {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	transition: border-color 0.2s, transform 0.2s;
}

.sw-related-card:hover {
	border-color: #ff4d8d;
	transform: translateY(-2px);
}

.sw-related-link {
	display: block;
	color: inherit;
}

.sw-related-img-wrap {
	width: 100%;
	aspect-ratio: 2040 / 1372;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-related-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.3s;
}

.sw-related-card:hover .sw-related-img-wrap img {
	transform: scale(1.04);
}

.sw-related-noimg {
	font-size: 0.7rem;
	color: #999;
}

.sw-related-body {
	padding: 7px 8px 10px;
}

.sw-related-cid {
	font-size: 0.7rem;
	color: #888;
	margin-bottom: 3px;
}

.sw-related-title {
	font-size: 0.78rem;
	color: #333;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 4px;
}

.sw-related-actress {
	font-size: 0.75rem;
	color: #d63a7a;
}

.sw-related-price {
	font-size: 0.8125rem;
	color: #e60012;
	font-weight: bold;
}

/* ============================================================
   Single Works – Responsive
   ============================================================ */
@media ( max-width: 840px ) {
	.sw-auto-grid {
		grid-template-columns: 1fr;
	}

	.sw-sample-grid {
		grid-template-columns: repeat( auto-fill, minmax( 110px, 1fr ) );
	}

	.sw-related-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 700px ) {
	.sw-cover-hero {
		margin: 16px auto 20px;
	}

	.sw-cover-hero-img {
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.sw-info-col {
		max-width: 100%;
	}
}

@media ( max-width: 600px ) {
	.sw-lb-prev {
		left: 4px;
	}

	.sw-lb-next {
		right: 4px;
	}

	.sw-btn-cta {
		padding: 13px 24px;
		min-width: 0;
		width: 100%;
	}

	.sw-sample-grid {
		grid-template-columns: repeat( 3, 1fr );
	}

	.sw-related-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 400px ) {
	.sw-sample-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.sw-related-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

/* ============================================================
   Works Sidebar (sw-sb-* / sw-works-sidebar / sw-layout-wrapper)
   ============================================================ */

/* ---- 2カラムレイアウト ---- */
.sw-layout-wrapper {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

/* 本文カラム：残り全幅を取る */
.sw-layout-wrapper .sw-page {
	flex: 1 1 0%;
	min-width: 0;
}

/* article の max-width を解除（幅はフレックスで制御） */
.sw-layout-wrapper .sw-article {
	max-width: none;
}

/* サイドバーカラム：固定幅 */
.sw-works-sidebar {
	flex: 0 0 280px;
	width: 280px;
	min-width: 0;
}

/* ---- サイドバー内セクション ---- */
.sw-sb-section {
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	padding: 14px 14px 16px;
	margin-bottom: 18px;
}

.sw-sb-title {
	font-size: 0.875rem;
	color: #222222;
	border-left: 3px solid #ff4d8d;
	padding-left: 8px;
	margin-bottom: 12px;
	font-weight: bold;
	line-height: 1.4;
}

/* ---- 作品カードリスト（縦並び） ---- */
.sw-sb-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 0;
	padding: 0;
}

/* ---- タグクラウド ---- */
.sw-sb-tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.sw-sb-tag {
	display: inline-block;
	background: #f5f5f5;
	border: 1px solid #e5e5e5;
	color: #555;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 0.725rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sw-sb-tag:hover {
	background: #cc0000;
	border-color: #cc0000;
	color: #fff;
}

/* ---- サイドバー検索フォーム ---- */
.sw-sb-search {
	background: #fff0f5;
	border-color: #ffd6e8;
}

.sw-sb-search-wrap {
	display: flex;
	border: 1.5px solid #ff4d8d;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(255, 77, 141, 0.08);
}

.sw-sb-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 9px 10px;
	font-size: 0.8125rem;
	font-family: inherit;
	color: #222;
	background: transparent;
	min-width: 0;
}

.sw-sb-search-input::placeholder {
	color: #c0c0c0;
}

.sw-sb-search-btn {
	background: #cc0000;
	color: #fff;
	border: none;
	padding: 0 14px;
	font-size: 0.8125rem;
	font-weight: bold;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.2s;
}

.sw-sb-search-btn:hover {
	background: #e60000;
}

.sw-sb-empty {
	font-size: 0.8rem;
	color: #999;
	margin: 0;
}

/* ============================================================
   Works Sidebar – Responsive
   ============================================================ */

/* タブレット・スマホ：1カラムに切り替え */
@media ( max-width: 1000px ) {
	.sw-layout-wrapper {
		flex-direction: column;
	}

	.sw-works-sidebar {
		flex: none;
		width: 100%;
	}

	.sw-sb-list {
		gap: 12px;
	}
}

/* =========================================================
   女優一覧フィルターパネル（page-actress.php）
   ========================================================= */

/* パネル全体 */
.ep-actress-filter-panel {
	background: linear-gradient(180deg, #fff 0%, #fff7fb 100%);
	border: 1px solid #f6b6cc;
	border-radius: 20px;
	padding: 28px 32px;
	margin-bottom: 36px;
	box-shadow: 0 16px 40px rgba(215, 0, 47, 0.08);
}

/* ヘッダー */
.ep-actress-filter-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.ep-actress-filter-panel__title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 5px;
	display: flex;
	align-items: center;
	gap: 7px;
	line-height: 1.3;
}

.ep-actress-filter-panel__title-icon {
	font-size: 1rem;
	color: #d7002f;
	flex-shrink: 0;
}

.ep-actress-filter-panel__lead {
	font-size: 0.8rem;
	color: #aaa;
	margin: 0;
	line-height: 1.5;
}

.ep-actress-filter-panel__reset {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: transparent;
	color: #888;
	font-size: 0.78rem;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.ep-actress-filter-panel__reset:hover {
	border-color: #d7002f;
	color: #d7002f;
	text-decoration: none;
}

/* アクティブ条件バナー */
.ep-actress-filter-panel__active {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 16px;
	background: #fff0f5;
	border: 1px solid #f6b6cc;
	border-radius: 10px;
	margin-bottom: 20px;
}

.ep-actress-filter-panel__active-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #d7002f;
}

.ep-actress-filter-panel__active-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 12px;
	background: #d7002f;
	color: #fff;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}

/* 検索フォーム */
.ep-actress-filter-search {
	display: flex;
	gap: 8px;
	margin-bottom: 22px;
}

.ep-actress-filter-search__input {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 16px;
	border: 1px solid #f0c0d0;
	border-radius: 10px;
	background: #fff;
	font-size: 0.9rem;
	color: #333;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
}

.ep-actress-filter-search__input:focus {
	border-color: #d7002f;
	box-shadow: 0 0 0 3px rgba(215, 0, 47, 0.08);
}

.ep-actress-filter-search__input::placeholder {
	color: #c0c0c0;
}

.ep-actress-filter-search__btn {
	height: 46px;
	padding: 0 22px;
	background: #d7002f;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s ease;
}

.ep-actress-filter-search__btn:hover {
	background: #b80028;
}

/* フィルターグループ本体 */
.ep-actress-filter-panel__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* グループカード */
.ep-filter-group {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid #f3d7e1;
	border-radius: 14px;
	padding: 18px 22px;
}

.ep-filter-group__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.ep-filter-group__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: linear-gradient(135deg, #d7002f 0%, #ff4f8b 100%);
	color: #fff;
	border-radius: 6px;
	font-size: 0.72rem;
	font-weight: 700;
	flex-shrink: 0;
	line-height: 1;
}

.ep-filter-group__title {
	font-size: 0.85rem;
	font-weight: 700;
	color: #333;
	margin: 0;
}

/* フィルタータグ */
.ep-filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ep-filter-tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid #f3b6ca;
	border-radius: 999px;
	background: #fff;
	color: #555;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.4;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.ep-filter-tag:hover {
	background: #fff0f5;
	border-color: #e4005a;
	color: #d7002f;
	transform: translateY(-1px);
	text-decoration: none;
}

.ep-filter-tag.is-active {
	background: #d7002f;
	border-color: #d7002f;
	color: #fff;
	box-shadow: 0 6px 14px rgba(215, 0, 47, 0.22);
}

.ep-filter-tag.is-active:hover {
	background: #b80028;
	border-color: #b80028;
	color: #fff;
	transform: none;
}

/* レスポンシブ */
@media (max-width: 640px) {
	.ep-actress-filter-panel {
		margin: 20px 0 24px;
		padding: 18px 16px;
		border-radius: 16px;
	}

	.ep-actress-filter-panel__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin-bottom: 16px;
	}

	.ep-actress-filter-panel__title {
		font-size: 18px;
	}

	.ep-actress-filter-panel__lead {
		font-size: 12px;
	}

	.ep-actress-filter-search {
		flex-direction: row;
		gap: 8px;
		margin-bottom: 16px;
	}

	.ep-actress-filter-search__input {
		height: 42px;
		font-size: 14px;
	}

	.ep-actress-filter-search__btn {
		width: 88px;
		height: 42px;
		padding: 0;
		font-size: 14px;
		border-radius: 12px;
		flex-shrink: 0;
	}

	.ep-actress-filter-panel__body {
		gap: 12px;
	}

	.ep-filter-group {
		padding: 14px;
		border-radius: 14px;
		box-shadow: none;
	}

	.ep-filter-group__head {
		margin-bottom: 10px;
	}

	.ep-filter-tags {
		gap: 7px;
	}

	.ep-filter-tag {
		padding: 7px 12px;
		font-size: 13px;
		min-height: 34px;
		border-radius: 999px;
	}
}

/* 女優一覧ページネーション */
.actress-pagination {
	margin: 32px 0 8px;
	display: flex;
	justify-content: center;
}

.actress-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.actress-pagination .page-numbers li {
	display: flex;
}

.actress-pagination .page-numbers a,
.actress-pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	color: #555;
	font-size: 13px;
	text-decoration: none;
	line-height: 1;
}

.actress-pagination .page-numbers a:hover {
	border-color: #ff4f8b;
	color: #ff4f8b;
}

.actress-pagination .page-numbers span.current {
	background: var(--color-primary, #e6005c);
	border-color: var(--color-primary, #e6005c);
	color: #fff;
}

.actress-pagination .page-numbers .dots {
	border-color: transparent;
	background: transparent;
	color: #aaa;
}


/* 管理画面: 女優情報一括更新ボックス */
.fai-actress-update-box {
	margin-top: 40px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	max-width: 700px;
}

.fai-actress-update-box h2 {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.fai-actress-update-status {
	display: inline-block;
	margin-left: 14px;
	font-size: 0.9rem;
}

.fai-status-ok    { color: #1e7e34; }
.fai-status-error { color: #c00; }

/* ============================================================
   Front Page
   ============================================================ */

/* セクション余白・タイトル強調 */
.front-page .section {
	margin-bottom: 60px;
}

.front-page .section-title {
	font-weight: 700;
}

/* 人気作品・人気ジャンルに薄い背景で奥行き */
.front-page .section-popular-works,
.front-page .section-genres {
	background: #fafafa;
	border-radius: 10px;
	padding: 24px;
}
/* 人気作品内の works-grid はカード幅を他ページと揃えるため横 padding を除去 */
.front-page .section-popular-works {
	padding-left: 0;
	padding-right: 0;
}
.front-page .section-popular-works > .section-header {
	padding-left: 24px;
	padding-right: 24px;
}

.front-page .fp-featured > .works-grid,
.front-page .section-popular-works > .works-grid {
	box-sizing: border-box;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---- 新着作品 サムネイル比率 ---- */
.front-page .section-new-works .work-card-image {
	aspect-ratio: 2040 / 1372;
}

.front-page .section-new-works .work-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* ---- 検索ヒーロー ---- */
.fp-search {
	background: linear-gradient( 135deg, #fff0f5 0%, #fff8fb 100% );
	border: 1px solid #ffd6e8;
	border-radius: 12px;
	padding: 32px 24px 24px;
	margin-bottom: 52px;
	text-align: center;
}

.fp-search-form {
	max-width: 640px;
	margin: 0 auto;
}

.fp-search-wrap {
	display: flex;
	border: 2px solid #ff4d8d;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 16px rgba(255,77,141,0.12);
}

.fp-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 14px 18px;
	font-size: 0.9375rem;
	font-family: inherit;
	color: #222;
	background: transparent;
	min-width: 0;
}

.fp-search-input::placeholder {
	color: #c0c0c0;
}

.fp-search-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #cc0000;
	color: #fff;
	border: none;
	padding: 0 22px;
	font-size: 0.9375rem;
	font-weight: bold;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}

.fp-search-btn:hover {
	background: #e60000;
}

.fp-search-tags {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 8px;
}

.fp-tags-label {
	font-size: 0.8125rem;
	color: #aaa;
}

.fp-search-tag {
	display: inline-block;
	padding: 4px 14px;
	border: 1px solid #ffd0e8;
	border-radius: 20px;
	background: #fff;
	color: #d63a7a;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fp-search-tag:hover {
	background: #d63a7a;
	color: #fff;
	border-color: #d63a7a;
}

/* ---- おすすめ作品 ---- */
.fp-featured {
	background: #fff7fb;
	border: 1px solid #fde8f3;
	border-radius: 10px;
	padding: 24px 0;
	overflow: hidden;
}
.fp-featured > .section-header {
	padding-left: 24px;
	padding-right: 24px;
}

.fp-featured .section-header {
	border-bottom-color: #e6005c;
}

.fp-featured .section-title {
	color: #c0004a;
}

.fp-featured-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	background: linear-gradient( 135deg, #e6005c 0%, #ff4d8d 100% );
	color: #fff;
	font-size: 0.7rem;
	font-weight: bold;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 3px;
	pointer-events: none;
}

.work-card--featured {
	border-color: #fde8f3;
	box-shadow: 0 2px 10px rgba(230,0,92,0.08);
}

.work-card--featured:hover {
	border-color: #e6005c;
	box-shadow: 0 6px 24px rgba(230,0,92,0.14);
}

/* ---- SP対応 ---- */
@media ( max-width: 768px ) {
	.fp-search {
		padding: 20px 14px 18px;
	}

	.fp-search-input {
		padding: 13px 12px;
		font-size: 0.875rem;
	}

	.fp-search-btn {
		padding: 0 14px;
		font-size: 0.875rem;
		gap: 4px;
	}

	.fp-search-btn-text {
		display: none;
	}

	.front-page .section-popular-works,
	.front-page .section-genres {
		padding: 16px 12px;
	}
	.front-page .section-popular-works {
		padding-left: 0;
		padding-right: 0;
	}
	.front-page .section-popular-works > .section-header {
		padding-left: 12px;
		padding-right: 12px;
	}
	.front-page .fp-featured > .works-grid,
	.front-page .section-popular-works > .works-grid {
		padding-left: 12px;
		padding-right: 12px;
	}

	.fp-featured {
		padding: 16px 0;
	}
	.fp-featured > .section-header {
		padding-left: 12px;
		padding-right: 12px;
	}
}

@media ( min-width: 769px ) and ( max-width: 1000px ) {
	.front-page .fp-featured > .works-grid,
	.front-page .section-popular-works > .works-grid {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ---- 並び替えUI ---- */
.works-sort {
	display: flex;
	gap: 8px;
	margin: 0 0 20px;
}

.works-sort-btn {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 0.82rem;
	color: #555;
	text-decoration: none;
	background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.works-sort-btn:hover {
	border-color: #e0006c;
	color: #e0006c;
}

.works-sort-btn.is-active {
	background: #e0006c;
	border-color: #e0006c;
	color: #fff;
	font-weight: 600;
}

/* ---- ジャンル一覧ページ ---- */
.genre-section {
	margin-bottom: 60px;
}

.genre-section-header {
	margin-bottom: 20px;
}

.genre-section-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #222;
	margin: 0;
	border-left: 4px solid #ff2d75;
	padding-left: 12px;
	line-height: 1.3;
}

/* ---- 女優一覧 人気女優セクション ---- */
.actress-featured-section {
	background: #fff7fa;
	border: 1px solid #f4b6c8;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 40px;
}

.actress-featured-header {
	margin-bottom: 16px;
}

.actress-featured-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #222;
	margin: 0;
	border-left: 4px solid #ff2d75;
	padding-left: 12px;
	line-height: 1.3;
}

/* ---- メーカー一覧ページ ---- */
.makers-section {
	margin-bottom: 60px;
}

.makers-section-header {
	margin-bottom: 20px;
}

.makers-section-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #222;
	margin: 0;
	border-left: 4px solid #ff2d75;
	padding-left: 12px;
	line-height: 1.3;
}

.maker-card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.maker-card-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px 8px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	text-decoration: none;
	color: #222;
	text-align: center;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.maker-card-link:hover {
	border-color: #ff4f8b;
	box-shadow: 0 6px 18px rgba(255, 79, 139, 0.12);
	transform: translateY(-3px);
	color: #e0006c;
}

.maker-card-name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.maker-card-count {
	font-size: 0.75rem;
	color: #888;
}

.maker-list .maker-tag {
	background: #f5f5f5;
	border: 1px solid #e5e5e5;
	color: #333;
}

.maker-list .maker-tag:hover {
	background: #e0006c;
	border-color: #e0006c;
	color: #fff;
}

.makers-seo-note {
	color: #888;
	font-size: 0.8rem;
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

@media (max-width: 900px) {
	.maker-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.maker-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- お問い合わせページ ---- */
.contact-wrap {
	max-width: 700px;
	margin: 0 auto;
	padding: 0 0 60px;
}

.contact-description {
	color: #555;
	font-size: 0.9rem;
	line-height: 1.9;
	margin-bottom: 32px;
}

.contact-card {
	background: #fff;
	padding: 40px;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.contact-card .wpcf7-form p {
	margin-bottom: 20px;
}

.contact-card .wpcf7-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: #333;
	margin-bottom: 6px;
}

.contact-card .wpcf7-form input[type="text"],
.contact-card .wpcf7-form input[type="email"],
.contact-card .wpcf7-form textarea {
	width: 100%;
	padding: 14px;
	border: 1px solid #ddd;
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.2s;
	background: #fafafa;
}

.contact-card .wpcf7-form input[type="text"]:focus,
.contact-card .wpcf7-form input[type="email"]:focus,
.contact-card .wpcf7-form textarea:focus {
	outline: none;
	border-color: #ff2d7a;
	background: #fff;
}

.contact-card .wpcf7-form textarea {
	height: 180px;
	resize: vertical;
}

.contact-card .wpcf7-submit,
.contact-card input[type="submit"] {
	display: block;
	margin: 8px auto 0;
	background: #ff2d7a;
	color: #fff;
	padding: 14px 40px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.contact-card .wpcf7-submit:hover,
.contact-card input[type="submit"]:hover {
	background: #e91e63;
}

@media (max-width: 768px) {
	.contact-card {
		padding: 24px 16px;
	}
}

/* ---- 固定ページ ---- */
.page-content-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 48px 20px 80px;
	background: #fff;
}

.page-content-wrap h1,
.page-content-wrap .page-title {
	font-size: 1.9rem;
	margin-bottom: 32px;
	border-left: 4px solid #ff4d8d;
	border-bottom: 2px solid #ff4d8d;
	border-top: none;
	border-right: none;
	padding: 0.4em 0 0.4em 0.8em;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.page-content-wrap h2 {
	font-size: 1.3rem;
	margin-top: 40px;
	margin-bottom: 16px;
	color: #ff4f8b;
}

.page-content-wrap h3 {
	font-size: 1.1rem;
	margin-top: 28px;
	margin-bottom: 12px;
}

.page-content-wrap p {
	line-height: 1.9;
	margin-bottom: 20px;
}

.page-content-wrap ul,
.page-content-wrap ol {
	padding-left: 1.6em;
	margin-bottom: 20px;
	line-height: 1.9;
}

.page-content-wrap a {
	color: #e0006c;
	text-decoration: underline;
}

@media (max-width: 768px) {
	.page-content-wrap {
		padding: 32px 16px 60px;
	}

	.page-content-wrap h1,
	.page-content-wrap .page-title {
		font-size: 1.4rem;
	}
}

/* ---- PR表記（ステマ規制対応） ---- */
.pr-notice {
	font-size: 0.7rem;
	color: #bbb;
	margin: 4px 0 12px;
	line-height: 1.4;
}

/* ============================================================
   Favorites – ヘッダーアイコン・ボタン・一覧カード
   ============================================================ */

/* ---- ヘッダー右グループ（ナビ＋ハートアイコン） ---- */
.header-right {
	display: flex;
	align-items: center;
	gap: 4px;
}

@media ( max-width: 768px ) {
	.header-right {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
}

/* ---- ヘッダー ハートアイコン ---- */
.header-fav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	color: #d63a7a;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
	flex-shrink: 0;
	transition: color 0.2s, background 0.2s;
}

.header-fav-link:hover {
	color: #cc0000;
	background: #fff0f5;
}

.header-fav-heart {
	font-size: 1.25rem;
	line-height: 1;
}

.header-fav-count {
	font-size: 0.65rem;
	font-weight: bold;
	line-height: 1;
}

/* ---- ヘッダー検索（PC） ---- */
@media ( min-width: 769px ) {
	.header-search-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		margin-right: 12px;
		padding: 0;
		border: 1px solid transparent;
		border-radius: 999px;
		background: transparent;
		color: #e4005a;
		cursor: pointer;
		transition: background 0.2s, border-color 0.2s, color 0.2s;
	}

	.header-search-toggle:hover,
	.header-search-toggle:focus-visible,
	.header-search-toggle[aria-expanded="true"] {
		background: #fff0f6;
		border-color: #f5a9c5;
		color: #d7002f;
		outline: none;
	}

	.header-search-icon {
		position: relative;
		display: block;
		width: 18px;
		height: 18px;
		border: 2px solid currentColor;
		border-radius: 50%;
	}

	.header-search-icon::after {
		content: "";
		position: absolute;
		right: -6px;
		bottom: -4px;
		width: 8px;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
		transform: rotate(45deg);
		transform-origin: center;
	}

	.header-search-panel {
		padding: 0 0 12px;
		background: #fff;
	}

	.header-search-panel.is-open {
		display: block;
	}

	.header-search-panel .container {
		display: block;
	}

	.header-search-form {
		display: flex;
		align-items: stretch;
		width: min(680px, 100%);
		margin-left: auto;
		padding: 6px;
		border: 1px solid #ffd6e8;
		border-radius: 10px;
		background: #fff;
		box-shadow: 0 3px 10px rgba(0,0,0,0.06);
	}

	.header-search-input {
		flex: 1;
		min-width: 0;
		height: 42px;
		border: 1px solid #f3ccd8;
		border-right: 0;
		border-radius: 8px 0 0 8px;
		outline: none;
		padding: 0 12px;
		font-size: 0.875rem;
		font-family: inherit;
		color: #222;
		background: transparent;
	}

	.header-search-input::placeholder {
		color: #b8b8b8;
	}

	.header-search-submit {
		flex-shrink: 0;
		width: 82px;
		min-width: 82px;
		height: 42px;
		border: 1px solid #222;
		border-left: 0;
		border-radius: 0 8px 8px 0;
		background: #222;
		color: #fff;
		padding: 0;
		font-size: 0.8125rem;
		font-weight: 600;
		font-family: inherit;
		cursor: pointer;
		box-shadow: none;
		transition: background 0.2s, border-color 0.2s;
	}

	.header-search-submit:hover,
	.header-search-submit:focus-visible {
		background: #d7002f;
		border-color: #d7002f;
		color: #fff;
		outline: none;
	}

	.header-search-submit:active {
		background: #b90029;
		border-color: #b90029;
	}
}

@media ( max-width: 768px ) {
	.header-search-toggle,
	.header-search-panel {
		display: none !important;
	}
}

/* ---- single-works お気に入りボタン ---- */
.sw-fav-area {
	text-align: center;
	margin: 12px 0 28px;
}

.fav-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: #d63a7a;
	border: 2px solid #ffd0e8;
	border-radius: 4px;
	padding: 10px 28px;
	font-size: 1rem;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.fav-btn:hover {
	background: #fff0f5;
	border-color: #ff4d8d;
}

.fav-btn.is-favorited {
	background: #ff4d8d;
	color: #fff;
	border-color: #ff4d8d;
}

.fav-btn.is-favorited:hover {
	background: #e0006c;
	border-color: #e0006c;
}

.fav-btn-heart {
	font-size: 1.1rem;
	line-height: 1;
}

/* ---- お気に入り一覧 カードフッター ---- */
.fav-card-footer {
	padding: 0 10px 10px;
	text-align: center;
}

.fav-remove-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	color: #d63a7a;
	border: 1px solid #ffd0e8;
	border-radius: 4px;
	padding: 5px 12px;
	font-size: 0.8rem;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.fav-remove-btn:hover {
	background: #ff4d8d;
	color: #fff;
	border-color: #ff4d8d;
}

/* ============================================================
   Favorites Page (/favorites/) 専用
   ============================================================ */

/* ---- ページラッパー ---- */
.fav-page-wrap {
	padding: 20px 0 60px;
}

/* ---- 読み込み中 ---- */
.fav-loading-msg {
	color: #888;
	padding: 20px 0;
}

/* ---- グリッド幅（container 幅を使いきる） ---- */
.fav-works-grid {
	/* works-grid の repeat(4,1fr) をそのまま継承 */
}

/* ---- カード内リンク：下線なし ---- */
.fav-works-grid .work-card-link {
	text-decoration: none;
}

.fav-works-grid .work-card-title,
.fav-works-grid .work-card-actress {
	text-decoration: none;
}

/* ---- カード内CTA「フル動画を見る」---- */
.fav-card-cta {
	display: block;
	background: #ff4d8d;
	color: #fff;
	text-align: center;
	padding: 8px 12px;
	font-size: 0.875rem;
	font-weight: bold;
	border-radius: 4px;
	margin-bottom: 7px;
	text-decoration: none;
	transition: background 0.2s;
}

.fav-card-cta:hover {
	background: #e0006c;
	color: #fff;
}

/* ---- 0件表示 ---- */
.fav-empty-state {
	text-align: center;
	padding: 56px 20px;
}

.fav-empty-main {
	font-size: 1.05rem;
	color: #444;
	margin-bottom: 10px;
}

.fav-empty-sub {
	font-size: 0.875rem;
	color: #888;
	margin-bottom: 28px;
}

.fav-empty-goto-btn {
	display: inline-block;
	background: #ff4d8d;
	color: #fff;
	padding: 12px 36px;
	border-radius: 4px;
	font-size: 0.9375rem;
	font-weight: bold;
	text-decoration: none;
	transition: background 0.2s;
}

.fav-empty-goto-btn:hover {
	background: #e0006c;
	color: #fff;
}

/* ============================================================
   SP ドロワーメニュー
   ============================================================ */

/* ---- オーバーレイ ---- */
.nav-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.52);
	z-index: 98;
	cursor: pointer;
}

.nav-overlay.is-active {
	display: block;
}

@media ( max-width: 768px ) {

	/* ---- ハンバーガー：枠線削除・タップ領域確保 ---- */
	.nav-toggle {
		border: none;
		padding: 0;
		background: none;
		min-width: 44px;
		min-height: 44px;
		align-items: center;
		justify-content: center;
	}

	/* ---- ロゴ中央寄り（SP のみ） ---- */
	.site-branding {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}

	/* ---- ドロワー本体 ---- */
	.main-nav #primary-menu {
		display: flex !important;       /* display:none を上書き */
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: 80vw;
		max-width: 360px;
		background: #ffffff;
		z-index: 99;
		padding: 0 0 20px;
		border-top: none;
		box-shadow: -4px 0 20px rgba(0, 0, 0, 0.10);
		overflow-y: auto;
		transform: translateX(110%);
		visibility: hidden;
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		            visibility 0.3s ease;
	}

	.main-nav #primary-menu.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	/* ---- ドロワーヘッダー（×ボタンのみ右寄せ） ---- */
	.main-nav #primary-menu li.nav-drawer-header {
		display: flex !important;
		align-items: center;
		justify-content: flex-end;
		position: sticky;
		top: 0;
		z-index: 2;
		width: 100%;
		padding: 0 14px;
		height: 48px;
		min-height: 48px;
		background: #faf4f7;
		border-bottom: 1px solid #e8d0dc;
		box-sizing: border-box;
		flex-shrink: 0;
	}

	.nav-drawer-close {
		background: rgba(255, 255, 255, 0.7);
		border: 1px solid rgba(192, 36, 94, 0.2);
		border-radius: 50%;
		width: 30px;
		height: 30px;
		font-size: 1.1rem;
		line-height: 1;
		color: #8b0040;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	.nav-drawer-close:hover {
		background: #fff;
		color: #d63a7a;
	}

	/* ---- ドロワー内メニュー項目ラッパー ---- */
	.main-nav #primary-menu li {
		width: 100%;
		padding: 0;
		border: none;
		border-bottom: 1px solid #f0e4ea;
		box-sizing: border-box;
	}

	/* ---- メニューリンク（シンプルなリスト型） ---- */
	.main-nav #primary-menu li a {
		display: flex;
		align-items: center;
		padding: 14px 20px;
		font-size: 0.9375rem;
		color: #444;
		font-weight: 500;
		background: none;
		border-radius: 0;
		box-shadow: none;
		border-left: none;
		transition: background 0.15s, color 0.15s;
	}

	.main-nav #primary-menu li a:hover {
		background: #fdf0f5;
		color: #d63a7a;
	}

	/* ---- お気に入り項目（ピンク強調） ---- */
	.main-nav #primary-menu li.nav-fav-item {
		border-bottom: none;
		margin-top: 4px;
	}

	.main-nav #primary-menu li.nav-fav-item a {
		color: #d63a7a;
		font-weight: 700;
		background: none;
	}

	.main-nav #primary-menu li.nav-fav-item a:hover {
		background: #fdf0f5;
		color: #b01f60;
	}

	/* ---- ドロワー内検索フォーム ---- */
	.main-nav #primary-menu li.nav-drawer-search {
		display: block !important;
		padding: 14px 16px;
		border-bottom: 1px solid #f0e4ea;
		background: #fff8fb;
	}

	.nav-drawer-search-wrap {
		display: flex;
		border: 1.5px solid #ff4d8d;
		border-radius: 8px;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 2px 8px rgba(255, 77, 141, 0.08);
	}

	.nav-drawer-search-input {
		flex: 1;
		border: none;
		outline: none;
		padding: 11px 12px;
		font-size: 0.9rem;
		font-family: inherit;
		color: #222;
		background: transparent;
		min-width: 0;
	}

	.nav-drawer-search-input::placeholder {
		color: #c0c0c0;
	}

	.nav-drawer-search-btn {
		background: #cc0000;
		color: #fff;
		border: none;
		padding: 0 14px;
		font-size: 1rem;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		transition: background 0.2s;
	}

	.nav-drawer-search-btn:hover {
		background: #e60000;
	}

	/* ---- ハートアイコン：SP微調整・タップ領域確保 ---- */
	.header-fav-link {
		padding: 6px 10px;
		min-width: 44px;
		min-height: 44px;
		justify-content: center;
	}
}

/* ---- ドロワーヘッダー・検索・お気に入り項目：デスクトップでは非表示 ---- */
@media ( min-width: 769px ) {
	.main-nav #primary-menu li.nav-drawer-header,
	.main-nav #primary-menu li.nav-drawer-search,
	.main-nav #primary-menu li.nav-fav-item {
		display: none;
	}
}

/* ============================================================
   Single Post（特集記事 個別ページ）
   ============================================================ */

/* ---- 冒頭ヒーロー（PC: 左画像 + 右テキスト） ---- */
.single-post-hero {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	max-width: 900px;
	margin: 0 auto 36px;
}

/* ---- アイキャッチ画像（PC: 左カラム固定幅） ---- */
.single-post-thumbnail {
	flex: 0 0 260px;
	width: 260px;
}

.single-post-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

/* ---- ヘッダーテキスト（PC: 右カラム残幅） ---- */
.single-post-header {
	flex: 1;
	min-width: 0;
}

/* ---- カテゴリバッジ ---- */
.single-post-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.single-post-cat {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #d63a7a;
	background: #fff0f5;
	border: 1px solid rgba(214, 58, 122, 0.2);
	border-radius: 4px;
	padding: 3px 10px;
	text-decoration: none;
	transition: background 0.15s;
}

.single-post-cat:hover {
	background: #ffe0ef;
	color: #d63a7a;
}

/* ---- 記事タイトル ---- */
.single-post-title {
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	font-weight: 800;
	color: #222;
	line-height: 1.55;
	margin-bottom: 12px;
}

/* ---- 投稿日 ---- */
.single-post-meta {
	font-size: 0.8125rem;
	color: #999;
	margin-bottom: 6px;
}

/* ---- PR表記 ---- */
.single-post-header .pr-notice {
	margin: 0;
}

/* ---- 記事本文 ---- */
.single-post-content {
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.9;
}

/* ---- スマホ: 縦積み（テキスト先 → 画像） ---- */
@media ( max-width: 768px ) {
	.single-post-hero {
		flex-direction: column;
		gap: 0;
		margin-bottom: 24px;
	}

	.single-post-header {
		order: 1;
		margin-bottom: 20px;
	}

	.single-post-thumbnail {
		order: 2;
		flex: none;
		width: 100%;
		margin-bottom: 24px;
	}

	.single-post-thumbnail img {
		border-radius: 6px;
	}

	.single-post-title {
		font-size: 1.25rem;
	}
}

/* ============================================================
   Work Card Shortcode（[work_card] / [work_cards]）
   ============================================================ */

/* ---- 単体カード ---- */
.wc-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	margin: 24px 0;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.wc-card:hover {
	border-color: #ff4d8d;
	box-shadow: 0 4px 16px rgba(255, 77, 141, 0.1);
}

.wc-card-link {
	display: flex;
	align-items: stretch;
	color: inherit;
	text-decoration: none;
}

/* ---- 左：画像エリア ---- */
.wc-card-img {
	flex: 0 0 200px;
	width: 200px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wc-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.wc-card:hover .wc-card-img img {
	transform: scale(1.04);
}

.wc-card-noimg {
	font-size: 0.75rem;
	color: #999;
}

/* ---- 右：テキストエリア ---- */
.wc-card-body {
	flex: 1;
	min-width: 0;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.wc-card-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #222;
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-card-actress {
	font-size: 0.8125rem;
	color: #d63a7a;
	margin: 0;
}

.wc-card-cta {
	display: inline-block;
	align-self: flex-start;
	background: #ff4d8d;
	color: #fff;
	font-size: 0.875rem;
	font-weight: bold;
	padding: 8px 20px;
	border-radius: 4px;
	transition: background 0.2s;
	margin-top: 4px;
}

.wc-card:hover .wc-card-cta {
	background: #e0006c;
}

/* ---- 複数表示ラッパー ---- */
.wc-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 24px 0;
}

.wc-list .wc-card {
	margin: 0;
}

/* ---- スマホ: 縦積み ---- */
@media ( max-width: 600px ) {
	.wc-card-link {
		flex-direction: column;
	}

	.wc-card-img {
		flex: none;
		width: 100%;
		aspect-ratio: 3 / 2;
	}

	.wc-card-body {
		padding: 12px 14px;
	}

	.wc-card-cta {
		align-self: stretch;
		text-align: center;
	}
}

/* ---- 特集記事本文内の作品カード サムネイル比率 ---- */
/*
 * align-self:center でサムネイルを垂直中央に。
 * aspect-ratio が効くよう height:auto を明示。
 * WordPress .entry-content img { height:auto } を !important で上書き。
 */
.single-post-content .wc-card-img {
	flex: 0 0 220px;
	width: 220px;
	aspect-ratio: 3 / 2;
	height: auto;
	align-self: center;
	overflow: hidden;
}

.single-post-content .wc-card-img img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

/* ボディ上下パディングを詰めてカードをコンパクトに */
.single-post-content .wc-card-body {
	padding: 10px 16px;
	gap: 6px;
}

@media ( max-width: 600px ) {
	.single-post-content .wc-card-img {
		flex: none;
		width: 100%;
		aspect-ratio: 3 / 2;
		height: auto;
		align-self: stretch;
	}

	.single-post-content .wc-card-body {
		padding: 10px 14px;
	}
}

/* ============================================================
   特集記事用ボックス装飾
   ============================================================ */

.ep-box {
	background: #fff;
	border: 1.5px solid #f5b8d0;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 24px 0;
	box-sizing: border-box;
}

.ep-box-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #c0306a;
	border-left: 4px solid #e8608a;
	padding-left: 10px;
	margin: 0 0 12px;
	line-height: 1.4;
}

/* ---- プロフィール用 ---- */
.ep-profile-box {
	border-color: #f5b8d0;
	background: #fff8fb;
}

/* ---- おすすめポイント用 ---- */
.ep-point-box {
	border-color: #f8c8da;
	background: #fff5f9;
}

.ep-point-box .ep-box-title {
	color: #d63a7a;
	border-left-color: #d63a7a;
}

/* ---- 補足・注意用 ---- */
.ep-note-box {
	border-color: #e0d0d8;
	background: #fdf8fa;
}

.ep-note-box .ep-box-title {
	color: #8a5a6a;
	border-left-color: #c09aaa;
}

/* ---- ボックス内テキスト ---- */
.ep-box p,
.ep-box ul,
.ep-box ol {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.75;
	color: #333;
}

.ep-box ul,
.ep-box ol {
	padding-left: 1.4em;
}

.ep-box li {
	margin-bottom: 4px;
}

/* ============================================================
   女優プロフィールボックス（エロペディ本体用）
   ============================================================ */

.archive-works .fanza-actress-profile {
	background: #fff7fb;
	border: 1px solid #f4b6c8;
	border-radius: 8px;
	padding: 14px 18px;
	margin-bottom: 24px;
	box-shadow: none;
}

.archive-works .fanza-actress-profile .fanza-ap-inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.archive-works .fanza-actress-profile .fanza-ap-img {
	flex: 0 0 110px;
	width: 110px;
}

.archive-works .fanza-actress-profile .fanza-ap-img img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.archive-works .fanza-actress-profile .fanza-ap-info {
	flex: 1;
	padding-top: 0;
	min-width: 0;
}

.archive-works .fanza-actress-profile .fanza-ap-info p {
	margin: 0 0 6px;
	line-height: 1.45;
	font-size: 0.875rem;
	color: #333;
}

.archive-works .fanza-actress-profile .fanza-ap-label {
	display: inline-block;
	width: 90px;
	color: #777;
	font-weight: 400;
}

.archive-works .fanza-actress-profile .fanza-ap-data {
	display: block;
}

.archive-works .fanza-actress-profile .fanza-ap-data > div {
	display: block;
	margin: 0 0 6px;
}

@media (max-width: 640px) {
	.archive-works .fanza-actress-profile .fanza-ap-inner {
		flex-direction: column;
		gap: 14px;
	}

	.archive-works .fanza-actress-profile .fanza-ap-label {
		width: auto;
		margin-right: 6px;
	}
}

/* ---- プロフィールエリア サイズ調整（本番合わせ） ---- */
body:not(.adb-actress-page) .fanza-actress-profile {
	padding: 16px 20px !important;
}

body:not(.adb-actress-page) .fanza-actress-profile .fanza-ap-inner {
	gap: 22px !important;
}

body:not(.adb-actress-page) .fanza-actress-profile .fanza-ap-img {
	flex: 0 0 115px !important;
	width: 115px !important;
}

body:not(.adb-actress-page) .fanza-actress-profile .fanza-ap-img img {
	width: 115px !important;
	height: 115px !important;
	object-fit: cover;
}

body:not(.adb-actress-page) .fanza-actress-profile .fanza-ap-info p {
	margin: 0 0 7px !important;
	line-height: 1.5 !important;
	font-size: 0.9rem !important;
}

body:not(.adb-actress-page) .fanza-actress-profile .fanza-ap-label {
	width: 92px !important;
}
