/*
Theme Name: Adultese
Theme URI: https://adultese.com
Author: 糸島企画
Description: adultese-core プラグインと連携するアダルティーズ専用テーマ。高速表示・最小限の依存を優先。
Version: 0.1.4
Requires PHP: 7.4
Text Domain: adultese
*/

/* ==========================================================================
   デザイントークン
   ========================================================================== */
:root {
	--color-bg: #15111a;
	--color-surface: #201a28;
	--color-surface-2: #2a2233;
	--color-text: #f1ecf7;
	--color-text-muted: #a89bbd;
	--color-accent: #e8a33d;
	--color-accent-ink: #2a1c05;
	--color-accent-2: #c9667a;
	--color-border: rgba(241, 236, 247, 0.08);

	--font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
	--font-display: var(--font-body);

	--radius-s: 6px;
	--radius-m: 12px;
	--container-w: 1080px;
}

/* ==========================================================================
   リセット・ベース
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* キーボード操作時のフォーカス可視化(アクセシビリティ) */
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

.container {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(21, 17, 26, 0.92);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
}
.site-logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.02em;
}
.site-logo span { color: var(--color-accent); }

.site-nav ul { display: flex; gap: 20px; }
.site-nav a {
	font-size: 14px;
	color: var(--color-text-muted);
}
.site-nav a:hover { color: var(--color-text); }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
	margin-top: 64px;
	padding: 32px 0 48px;
	border-top: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 13px;
}
.site-footer__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	justify-content: space-between;
}
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer nav a:hover { color: var(--color-text); }

/* ==========================================================================
   CTA(サイトのシグネチャ要素) — 斜めカットのアンバーボタン
   ========================================================================== */
.duga-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 28px 13px 24px;
	background: var(--color-accent);
	color: var(--color-accent-ink);
	font-weight: 700;
	font-size: 15px;
	clip-path: polygon(0 0, 100% 0, 100% 70%, 92% 100%, 0 100%);
	transition: transform 0.15s ease, filter 0.15s ease;
}
.duga-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.duga-cta:active { transform: translateY(0); }
.duga-cta::after { content: "›"; font-weight: 900; }

.cta-row { display: flex; justify-content: center; margin: 20px 0; }
.cta-row--start { justify-content: flex-start; }

/* ==========================================================================
   クレジット表示
   ========================================================================== */
.duga-credit {
	opacity: 0.8;
	font-size: 12px;
}
.duga-credit a { text-decoration: underline; }

/* ==========================================================================
   トップページ / 特設ページ 共通：ヒーロー
   ========================================================================== */
.page-hero {
	padding: 40px 0 8px;
}
.page-hero__eyebrow {
	display: inline-block;
	color: var(--color-accent-2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}
.page-hero__title {
	font-family: var(--font-display);
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 16px;
}
.page-hero__intro {
	color: var(--color-text-muted);
	max-width: 720px;
}
.page-hero__intro :first-child { margin-top: 0; }

/* ==========================================================================
   作品カード（一覧グリッド）
   ========================================================================== */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 28px 0;
}
.product-card {
	background: var(--color-surface);
	border-radius: var(--radius-m);
	overflow: hidden;
	border: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
}
.product-card__thumb {
	aspect-ratio: 4 / 3;
	background: var(--color-surface-2);
	overflow: hidden;
}
.product-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.product-card__title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card__meta {
	font-size: 12px;
	color: var(--color-text-muted);
	margin-top: auto;
}
.product-card .duga-cta {
	padding: 9px 18px 9px 14px;
	font-size: 13px;
	align-self: flex-start;
	margin-top: 4px;
}

/* ==========================================================================
   所属特設ページ表示
   ========================================================================== */
.feature-membership {
	margin: 4px 0 16px;
	padding: 12px 16px;
	background: var(--color-surface);
	border-radius: var(--radius-m);
	border: 1px solid var(--color-border);
}
.feature-membership__label {
	display: block;
	font-size: 12px;
	color: var(--color-text-muted);
	margin-bottom: 8px;
}
.feature-membership .tag-list { margin: 0; }
.feature-membership .tag-pill { border-color: var(--color-accent-2); }

/* ==========================================================================
   タグ／ジャンルピル
   ========================================================================== */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-pill {
	background: var(--color-surface-2);
	color: var(--color-text-muted);
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
}
.tag-pill:hover { color: var(--color-text); border-color: var(--color-accent-2); }

/* ==========================================================================
   作品ページ(single)
   ========================================================================== */
.product-page__header { padding: 32px 0 0; }
.product-page__title {
	font-family: var(--font-display);
	font-size: clamp(22px, 3.4vw, 30px);
	font-weight: 800;
	line-height: 1.4;
	margin: 0 0 14px;
}
.product-page__media {
	background: #000;
	border-radius: var(--radius-m);
	overflow: hidden;
	margin: 16px 0;
}
.product-page__media video { width: 100%; display: block; }
.product-page__meta-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 13px;
	color: var(--color-text-muted);
	margin: 12px 0 20px;
}
.product-page__caption {
	color: var(--color-text);
	max-width: 720px;
}
.related-section { margin-top: 40px; }
.related-section__title {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 16px;
	padding-left: 12px;
	border-left: 4px solid var(--color-accent);
}

/* ==========================================================================
   固定ページ（ポリシー等の一般ページ）
   ========================================================================== */
.static-page { padding: 40px 0 60px; }
.static-page__title {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 20px;
}
.static-page__content { max-width: 760px; color: var(--color-text-muted); }
.static-page__content a { color: var(--color-accent); text-decoration: underline; }
.static-page__content h2 { color: var(--color-text); margin-top: 32px; }

/* ==========================================================================
   トップページ：特設ページ一覧
   ========================================================================== */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	margin: 24px 0 40px;
}
.feature-card {
	display: block;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-m);
	overflow: hidden;
	transition: border-color 0.15s ease;
}
.feature-card:hover { border-color: var(--color-accent-2); }
.feature-card__thumb {
	aspect-ratio: 16 / 9;
	background: var(--color-surface-2);
	overflow: hidden;
}
.feature-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__body { padding: 14px 16px; }
.feature-card__title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.feature-card__count { font-size: 12px; color: var(--color-text-muted); }

/* ==========================================================================
   特設ページ：ページネーション
   ========================================================================== */
.feature-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 40px 0;
}
.feature-pagination__arrow,
.feature-pagination__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: var(--radius-s);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-text);
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.feature-pagination__number {
	padding: 0;
}
.feature-pagination__arrow:hover,
.feature-pagination__number:hover {
	border-color: var(--color-accent);
	background: var(--color-surface-2);
}
.feature-pagination__arrow.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}
.feature-pagination__number.is-current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-accent-ink);
}
.feature-pagination__numbers {
	display: flex;
	align-items: center;
	gap: 6px;
}
.feature-pagination__ellipsis {
	color: var(--color-text-muted);
	padding: 0 4px;
}

@media (max-width: 480px) {
	.feature-pagination__arrow { padding: 0 10px; font-size: 13px; }
	.feature-pagination__number { min-width: 34px; height: 34px; font-size: 13px; }
}

/* ==========================================================================
   バナー枠（ウィジェットエリア。DUGA広告素材の貼り付け用）
   ========================================================================== */
.banner-slot {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin: 24px 0;
	width: 100%;
	text-align: center; /* flexが何らかの理由で無効化された場合の保険 */
}
.banner-slot img { border-radius: var(--radius-s); display: inline-block; }
.banner-slot iframe { max-width: 100%; border: 0; }
/* WordPress標準のCustom HTMLウィジェットが付与するクラスの既定余白をリセット */
.banner-slot .textwidget,
.banner-slot .widget_text {
	margin: 0;
	width: 100%;
	display: flex;
	justify-content: center;
}

/* ==========================================================================
   404・空状態
   ========================================================================== */
.empty-state {
	padding: 60px 0;
	text-align: center;
	color: var(--color-text-muted);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 600px) {
	.site-nav { display: none; }
	.product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
