/*
Theme Name: JPCamGuide (BlankSlate Child)
Template: blankslate
Description: jpcamguide.com 用の BlankSlate 子テーマ。ダーク基調、カード一覧、言語切り替え、フッターメニュー。
Version: 1.10.3
Requires PHP: 7.4
Text Domain: jpcg
*/

:root {
	--bg: #0b0b0f;
	--surface: #17171e;
	--border: #2a2a35;
	--text: #f2f2f5;
	--muted: #a0a0ae;
	--accent: #ff2d55;
	--accent-hover: #ff5577;
	--live: #e50914;
	--radius: 10px;
	--max: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Noto Sans TC", "Microsoft JhengHei", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
}

a {
	color: var(--accent);
}

a:hover {
	color: var(--accent-hover);
}

img {
	max-width: 100%;
	height: auto;
}

.inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 16px;
	top: 16px;
	z-index: 1000;
	padding: 8px 12px;
	background: var(--surface);
}

/* ヘッダー */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(15, 15, 20, .95);
	border-bottom: 1px solid var(--border);
}

.site-header .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
}

.site-title {
	color: var(--text);
	font-size: 1.25rem;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: .02em;
}

.site-title:hover {
	color: var(--accent);
}

.lang-switch {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .8rem;
}

.lang-switch a {
	display: block;
	padding: 4px 8px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
}

.lang-switch .current-lang a {
	border-color: var(--accent);
	color: var(--text);
}

.site-nav ul {
	display: flex;
	gap: 4px;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 16px 8px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.site-nav a {
	display: block;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: .9rem;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
	background: var(--accent);
	color: #fff;
}

/* 本文エリア */
#container {
	padding-top: 24px;
	padding-bottom: 48px;
}

.page-title,
.entry-title {
	margin: 0 0 16px;
	font-size: 1.6rem;
	line-height: 1.4;
}

.entry-title a {
	color: var(--text);
	text-decoration: none;
}

.entry-meta {
	color: var(--muted);
	font-size: .85rem;
}

.entry-content,
.entry-summary {
	max-width: 760px;
}

.entry-content h2 {
	margin: 2em 0 .8em;
	padding-left: 12px;
	border-left: 4px solid var(--accent);
	font-size: 1.35rem;
	line-height: 1.5;
}

.entry-content h3 {
	margin: 1.6em 0 .6em;
	font-size: 1.15rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border: 1px solid var(--border);
}

.entry-content th {
	background: var(--surface);
}

/* アフィリエイトのボタン（ボタンブロック） */
.wp-block-button__link {
	display: inline-block;
	padding: 14px 28px;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}

.wp-block-button__link:hover {
	background: var(--accent-hover);
	color: #fff;
}

/* カード一覧 */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.card {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform .15s, border-color .15s;
}

.card:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
}

.card-link {
	display: block;
	color: var(--text);
	text-decoration: none;
}

.card-link:hover {
	color: var(--text);
}

.card-thumb {
	aspect-ratio: 16 / 9;
	background: var(--border);
}

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

.card-body {
	padding: 14px 16px 16px;
}

.card-title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	line-height: 1.5;
}

.card-excerpt {
	margin: 0;
	color: var(--muted);
	font-size: .85rem;
	line-height: 1.6;
}

/* ページ送り */
.pagination {
	margin-top: 32px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	min-width: 40px;
	padding: 6px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text);
	text-align: center;
	text-decoration: none;
}

.pagination .current,
.pagination a.page-numbers:hover {
	border-color: var(--accent);
	background: var(--accent);
	color: #fff;
}

/* フッター */
.site-footer {
	padding: 32px 0;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: .85rem;
	text-align: center;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.footer-nav a {
	color: var(--muted);
	text-decoration: none;
}

.footer-nav a:hover {
	color: var(--text);
}

.site-footer p {
	margin: 4px 0;
}

/* トップページ：ライブ配信のエリア */
.live {
	margin: 0 0 48px;
}

.live-head {
	margin: 0 0 16px;
}

.live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 10px 0 0;
	vertical-align: middle;
	padding: 2px 10px;
	border-radius: 4px;
	background: var(--live);
	color: #fff;
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .08em;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	animation: jpcg-pulse 1.2s ease-in-out infinite;
}

@keyframes jpcg-pulse {
	50% {
		opacity: .25;
	}
}

.live-title {
	margin: 0 0 4px;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.4;
}

.live-lead {
	margin: 0;
	color: var(--muted);
}

.live-widget {
	margin: 0 0 20px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

/* トップページ：配信中のモデル一覧 */
.cam-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
	margin: 0 0 24px;
}

.cam {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: var(--surface);
	aspect-ratio: 4 / 3;
}

.cam img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s;
}

.cam:hover img {
	transform: scale(1.06);
}

.cam-live,
.cam-new {
	position: absolute;
	top: 6px;
	padding: 0 6px;
	border-radius: 4px;
	font-size: .7rem;
	font-weight: 800;
	line-height: 1.6;
}

.cam-live {
	left: 6px;
	background: var(--live);
	color: #fff;
}

.cam-new {
	right: 6px;
	background: #f5b700;
	color: #000;
}

.cam-meta {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	justify-content: space-between;
	gap: 6px;
	padding: 18px 8px 5px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .85));
	color: #fff;
	font-size: .8rem;
}

.cam-name {
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cam-viewers {
	flex: none;
	color: #ddd;
}

.cam-viewers::before {
	content: "● ";
	color: #2fbf71;
}

@media (max-width: 480px) {
	.cam-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}
}

.cta-note {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: .8rem;
	text-align: center;
}

/* トップページ：共通の区切り */
.front-section {
	margin: 0 0 48px;
}

.section-title {
	padding-left: 12px;
	border-left: 4px solid var(--accent);
}

/* トップページ：できること */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.feature {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: linear-gradient(160deg, #1f1a26, var(--surface));
}

.feature-icon {
	font-size: 1.8rem;
}

.feature h3 {
	margin: 6px 0;
	font-size: 1.1rem;
}

.feature p {
	margin: 0;
	color: var(--muted);
	font-size: .9rem;
	line-height: 1.7;
}

/* トップページ：おすすめ */
.pick {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 20px;
	border: 2px solid #f5b700;
	border-radius: var(--radius);
	background: var(--surface);
}

.pick-no {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #f5b700;
	color: #000;
	font-size: 1.4rem;
	font-weight: 800;
}

.pick-body h3 {
	margin: 0 0 6px;
	font-size: 1.25rem;
}

.pick-body p {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: .9rem;
	line-height: 1.7;
}

.pick-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pick-tags li {
	padding: 1px 10px;
	border-radius: 4px;
	background: #262632;
	font-size: .8rem;
}

.pick-go {
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.pick-go:hover {
	background: var(--accent-hover);
	color: #fff;
}

@media (max-width: 640px) {
	.pick {
		grid-template-columns: 48px 1fr;
	}

	.pick-no {
		width: 44px;
		height: 44px;
	}

	.pick-go {
		grid-column: 1 / -1;
		text-align: center;
	}
}

/* 記事の中の「いま配信中」一覧 */
.entry-content .cam-grid-inline {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	margin: 16px 0 8px;
}

.entry-content .cam-grid-inline a {
	text-decoration: none;
}

.entry-content .cam-grid-inline img {
	margin: 0;
}

.cam-note {
	color: var(--muted);
	font-size: .9rem;
}

/* 記事の最後：Xのフォロー案内 */
.x-follow {
	margin: 32px 0 0;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	text-align: center;
}

.x-follow p {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: .9rem;
}

.x-follow .x-follow-title {
	color: var(--text);
	font-size: 1.1rem;
	font-weight: 800;
}

.x-follow-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-weight: 800;
	text-decoration: none;
}

.x-follow-btn:hover {
	background: #ddd;
	color: #000;
}

/* トップページ：DUGA */
.duga-lead {
	color: var(--muted);
	font-size: .95rem;
}

.duga-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}

.duga-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: linear-gradient(160deg, #1f1a26, var(--surface));
	color: var(--text);
	text-decoration: none;
}

.duga-card:hover {
	border-color: var(--accent);
	color: var(--text);
}

.duga-name {
	font-weight: 800;
}

.duga-price {
	color: #f5b700;
	font-size: 1.3rem;
	font-weight: 800;
}

.duga-price small {
	color: var(--muted);
	font-size: .75rem;
	font-weight: 400;
}

.duga-count {
	font-size: .85rem;
}

.duga-text {
	color: var(--muted);
	font-size: .8rem;
	line-height: 1.6;
}

.duga-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	justify-content: center;
	margin-top: 20px;
}

.live-more {
	margin-top: 12px;
	text-align: center;
}

/* トップページ：myfans */
.myfans-points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.myfans-points li {
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-size: .85rem;
}

.myfans-points li::before {
	content: "✓ ";
	color: var(--accent);
	font-weight: 800;
}

.live-widget iframe {
	display: block;
	width: 100%;
	border: 0;
}

.btn-cta {
	display: block;
	max-width: 480px;
	margin: 0 auto;
	padding: 18px 24px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--accent), #ff6a3d);
	box-shadow: 0 8px 24px rgba(255, 45, 85, .35);
	color: #fff;
	font-size: 1.15rem;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
	transition: transform .15s;
}

.btn-cta:hover {
	transform: translateY(-2px);
	color: #fff;
}

.trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: .85rem;
}

.trust li::before {
	content: "✓ ";
	color: #2fbf71;
	font-weight: bold;
}

/* トップページ：はじめての方へ */
.steps {
	padding: 24px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.steps-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps-list li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.steps-list p {
	margin: 0;
	line-height: 1.5;
}

.step-num {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-weight: 800;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
}

.chips a {
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text);
	font-size: .9rem;
	text-decoration: none;
}

.chips a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.section-title {
	margin: 0 0 16px;
	font-size: 1.3rem;
}

/* 記事ページ */
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: .8rem;
}

.breadcrumbs li + li::before {
	content: "›";
	margin-right: 4px;
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

.single-entry {
	max-width: 760px;
}

.entry-thumb {
	margin: 0 0 24px;
}

.entry-thumb img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
}

.entry-content h2 {
	scroll-margin-top: 110px;
}

.toc {
	margin: 24px 0 32px;
	padding: 16px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.toc-title {
	margin: 0 0 8px;
	font-weight: bold;
}

.toc ol {
	margin: 0;
	padding-left: 1.4em;
}

.toc a {
	color: var(--text);
	text-decoration: none;
}

.toc a:hover {
	color: var(--accent);
}

.cta-box,
.jpcg-cta-box {
	margin: 32px 0;
	padding: 24px 20px;
	border: 2px solid var(--accent);
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(224, 36, 94, .14), rgba(224, 36, 94, .04));
	text-align: center;
}

.cta-box p {
	margin: 0 0 16px;
	font-weight: bold;
}

.related {
	margin-top: 48px;
}

/* ランキング・比較・メリットデメリット */
.jpcg-rank {
	margin: 32px 0;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
}

.jpcg-rank h3 {
	margin-top: 0;
	color: var(--accent);
}

.wp-block-table {
	overflow-x: auto;
}

.jpcg-compare table {
	min-width: 520px;
}

.jpcg-compare th {
	background: var(--accent);
	color: #fff;
}

.jpcg-proscons {
	gap: 16px;
}

.jpcg-pros,
.jpcg-cons {
	padding: 16px 20px;
	border-radius: var(--radius);
	background: var(--surface);
}

.jpcg-pros {
	border-top: 4px solid #2fbf71;
}

.jpcg-cons {
	border-top: 4px solid #f0a020;
}

.jpcg-pros ul,
.jpcg-cons ul {
	margin: 0;
	padding-left: 1.2em;
}

/* スマホの画面下に固定するCTA */
.cta-bar {
	display: none;
}

@media (max-width: 768px) {
	.cta-bar {
		position: fixed;
		right: 12px;
		bottom: 12px;
		left: 12px;
		z-index: 900;
		display: block;
		padding: 14px;
		border-radius: 999px;
		background: var(--accent);
		box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
		color: #fff;
		font-weight: bold;
		text-align: center;
		text-decoration: none;
	}

	.cta-bar:hover {
		color: #fff;
	}

	body.has-cta-bar {
		padding-bottom: 80px;
	}
}

@media (max-width: 600px) {
	.site-header .inner {
		flex-wrap: wrap;
		gap: 6px 12px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.site-title {
		font-size: 1.05rem;
		line-height: 1.4;
	}

	.lang-switch {
		font-size: .72rem;
	}

	.lang-switch a {
		padding: 3px 8px;
	}

	.page-title,
	.entry-title {
		font-size: 1.35rem;
	}

	.live-title {
		font-size: 1.3rem;
	}

	.btn-cta {
		font-size: 1.05rem;
	}

	.cards {
		gap: 14px;
	}
}
