/*
Theme Name: DMM Auto Theme
Theme URI: https://wp-plugin.net/
Author: WP-Plugins
Author URI: https://wp-plugin.net/
Description: DMM自動投稿プラグインと連携する専用テーマ。商品ページのデザイン・構造化データ出力を最適化します。
Version: 1.0.0
Text Domain: dmm-auto-theme
*/

/* ============================================
   ベースレイアウト（全体）
============================================ */

body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	background: #f3f4f6;
	color: #111827;
}

/* メインレイアウト：コンテンツ + サイドバー */
.dmmt-layout {
	max-width: 1200px;
	margin: 24px auto 48px;
	padding: 0 16px;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 24px;
	margin-top: 1.5rem;
	/* ヘッダーとの距離をここで統一 */
	display: grid;
	column-gap: 1.5rem;
	row-gap: 1.5rem;
	align-items: flex-start;
	/* 上揃えにする */
}

.dmmt-main,
.dmmt-sidebar {
	margin-top: 0;
	min-width: 0;
}


/* スマホは1カラム */
@media (max-width: 768px) {
	.dmmt-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ======================================
   モダンサイトタイトル（dmm-app 風）
====================================== */

/* ======================================
   モダンヘッダー + ロゴ / タイトル / 説明文
====================================== */

.dmmt-header {
	width: 100%;
	background: #0f1117;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	padding: 14px 0;
	/* 12 → 14 に少し増量 */
	margin-bottom: 16px;
}

/* 中央の横幅＋左右パディング */
.dmmt-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* 左側（ブランド） */
.dmmt-brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

/* ロゴ or タイトルを横並びにしたいならここをflex */
.dmmt-brand-main {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* デフォルト（PC） */
.dmmt-site-title-text {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	background: linear-gradient(135deg, #ff3385 0%, #ff7033 45%, #ffd633 90%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-decoration: none;
	white-space: nowrap;
}

.dmmt-site-title-text:hover {
	opacity: 0.9;
}

/* 説明文（キャッチコピー） */
.dmmt-site-description {
	font-size: 0.8rem;
	color: #9ca3af;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* カスタムロゴ画像調整 */
.dmmt-logo .custom-logo-link img,
.dmmt-logo img.custom-logo {
	height: 36px;
	width: auto;
	display: block;
}

/* スマホでタイトル/ロゴが切れないようにする */
@media (max-width: 640px) {
	.dmmt-header-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.dmmt-brand {
		align-items: flex-start;
	}

	.dmmt-site-title-text {
		font-size: 1.3rem;
		white-space: normal;
	}

	.dmmt-site-description {
		white-space: normal;
	}
}

/* ======================================
   dmm-app 風 モダンヘッダーメニュー
====================================== */

.dmmt-header-nav {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	width: 100%;
}

/* スクロールバー非表示（既存定義でもOK） */
.dmmt-header-nav::-webkit-scrollbar {
	display: none;
}

/* スクリーンリーダー用テキスト */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.dmmt-header-menu {
	display: flex;
	align-items: center;
	gap: 1rem;
	/* 16px */
	padding: 0.5rem 1rem;
	/* 上下8px 左右16px */
	margin: 0;
	list-style: none;
}

.dmmt-header-menu li a {
	text-decoration: none;
	color: #374151;
	/* gray-700 */
	font-size: 14px;
	padding: 6px 4px;
	display: inline-block;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.dmmt-header-menu li a:hover {
	color: #db2777;
	/* pink-600 */
	border-bottom-color: #db2777;
}

/* 現在ページ強調 */
.dmmt-header-menu li.current-menu-item>a,
.dmmt-header-menu li.current-menu-ancestor>a {
	color: #db2777;
	border-bottom-color: #db2777;
	font-weight: 600;
}

/* スクロールバー非表示（Chrome / Safari） */
.dmmt-header-nav::-webkit-scrollbar {
	display: none;
}

/* ハンバーガーボタン（デフォルトは非表示 / スマホで表示） */
.dmmt-nav-toggle {
	display: none;
	background: transparent;
	border: none;
	padding: 6px;
	margin-left: 8px;
	cursor: pointer;
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

.dmmt-nav-toggle:hover {
	background: rgba(148, 163, 184, 0.25);
}

.dmmt-nav-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: #e5e7eb;
	margin: 3px 0;
	border-radius: 999px;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

/* スマホ調整 */
@media (max-width: 768px) {

	/* ハンバーガーアイコンを「縦方向のflex」にする */
	.dmmt-nav-toggle {
		display: flex;
		flex-direction: column;
		/* ← これがポイント */
		justify-content: center;
		align-items: center;
		padding: 8px;
	}

	.dmmt-nav-toggle-bar {
		width: 22px;
		height: 2px;
		margin: 3px 0;
		/* 上下に余白をとる */
	}

	/* ナビはデフォルト非表示にして、開いたときだけ表示 */
	.dmmt-header-nav {
		display: none;
	}

	.dmmt-header-nav.is-open {
		display: block;
	}

	/* スマホではメニュー縦積みに近い見た目に */
	.dmmt-header-menu {
		display: flex;
		flex-direction: column;
		/* ← 縦並びにする */
		align-items: flex-start;
		gap: 0;
		padding: 0.5rem 1rem 0.75rem;
	}

	.dmmt-header-menu li {
		width: 100%;
	}

	.dmmt-header-menu li a {
		display: block;
		width: 100%;
		padding: 0.5rem 0;
	}
}

/* PCでは常にメニュー表示 */
@media (min-width: 769px) {
	.dmmt-header-nav {
		display: block;
	}
}

/* ============================================
   DMM Item Single 基本レイアウト
============================================ */

.dmm-item-single {
	max-width: 960px;
	/* margin: 24px auto 48px; */
	padding: 24px 16px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* アイキャッチ（シングル） */
.dmm-item-thumb {
	margin-bottom: 24px;
	text-align: center;
}

.dmm-item-thumb img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* 本文 */
.dmm-item-content {
	line-height: 1.7;
	font-size: 1rem;
}

.dmm-item-content img {
	max-width: 100%;
	height: auto;
}

/* セクション */
.dmmap-section {
	margin-bottom: 40px;
}

.dmmap-section-title {
	font-size: 1.4rem;
	font-weight: 700;
	border-left: 4px solid #e50914;
	padding-left: 8px;
	margin-bottom: 20px;
}

/* ============================================
   基本情報テーブル
============================================ */

.dmmap-basic-info table {
	width: 100%;
	border-collapse: collapse;
	background: #fafafa;
}

.dmmap-basic-info th,
.dmmap-basic-info td {
	padding: 10px;
	border-bottom: 1px solid #e3e3e3;
}

.dmmap-basic-info th {
	width: 30%;
	background: #f0f0f0;
	font-weight: 600;
}

/* スマホ用：縦積み */
@media (max-width: 600px) {

	.dmmap-basic-info table,
	.dmmap-basic-info tbody,
	.dmmap-basic-info tr,
	.dmmap-basic-info th,
	.dmmap-basic-info td {
		display: block;
		width: 100%;
	}

	.dmmap-basic-info th {
		background: #eee;
	}
}

/* ============================================
   ピル（女優・ジャンルなど）
============================================ */

.dmmap-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dmmap-pill-list span,
.dmmap-pill-list a {
	display: inline-block;
	padding: 4px 10px;
	background: #eee;
	border-radius: 12px;
	font-size: 0.85rem;
	text-decoration: none;
	color: #333;
}

.dmmap-pill-list a:hover {
	background: #e50914;
	color: #fff;
}

/* ============================================
   サンプル画像グリッド
============================================ */

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

.dmmap-sample-image img {
	width: 100%;
	border-radius: 4px;
	display: block;
}

/* ============================================
   サンプル動画
============================================ */

.dmmap-sample-movie {
	text-align: center;
}

.dmmap-sample-movie-thumb {
	position: relative;
	display: inline-block;
}

.dmmap-sample-movie-thumb img {
	border-radius: 6px;
	max-width: 100%;
}

.dmmap-sample-movie-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 6px;
}

.dmmap-sample-movie-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 2.4rem;
	font-weight: bold;
}

/* ============================================
   Rating (★)
============================================ */

.dmmap-rating {
	margin-bottom: 20px;
}

.dmmap-rating-stars .dmmap-star {
	font-size: 1.2rem;
	margin-right: 2px;
	color: #ccc;
}

.dmmap-rating-stars .is-filled {
	color: #e50914;
}

.dmmap-rating-text {
	font-size: 0.9rem;
	color: #555;
	margin-top: 4px;
}

/* ============================================
   フッター（シングル内）
============================================ */

.dmm-item-footer {
	margin-top: 40px;
	border-top: 1px solid #eee;
	padding-top: 20px;
	color: #666;
	font-size: 0.9rem;
}

/* ============================================
   DMM Item 一覧（archive / front-page 共通）
   - 90x122px サムネに最適化
============================================ */

/* 背景（dmm_item アーカイブ） */
body.archive-dmm_item {
	background: radial-gradient(circle at top, #151b2b 0, #05060a 45%, #020308 100%);
	color: #f8f8f8;
}

/* メインコンテナ */
.dmm-item-archive {
	max-width: 1200px;
	margin: 32px auto 48px;
	padding: 0 16px;
}

/* 見出し */
.dmm-item-archive-header {
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dmm-item-archive-title {
	font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.8rem);
	margin: 0 0 4px;
	letter-spacing: 0.04em;
}

.dmm-item-archive-description {
	color: #a9b0c4;
	font-size: 0.9rem;
}

/* 統一グリッド（front-page / archive / category / tag） */
.dmm-item-archive-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
	align-items: stretch;
}

/* カード本体（dmm-app 風） */
.dmm-item-archive-card {
	background: linear-gradient(145deg, rgba(20, 24, 40, 0.96), rgba(9, 11, 22, 0.96));
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.65),
		0 0 0 1px rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.04);
	transition:
		transform 0.16s ease-out,
		box-shadow 0.16s ease-out,
		border-color 0.16s ease-out;
}

.dmm-item-archive-card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 22px 50px rgba(0, 0, 0, 0.75),
		0 0 0 1px rgba(255, 255, 255, 0.05);
	border-color: rgba(230, 0, 51, 0.35);
}

/* サムネイル枠（90 x 122 比率） */
.dmm-item-archive-thumb {
	position: relative;
	display: block;
	width: 100%;
	max-width: 180px;
	/* カード内で少し拡大表示 */
	margin: 0 auto;
	aspect-ratio: 90 / 122;
	/* ★ DMM 標準サムネ比率 */
	overflow: hidden;
	background: radial-gradient(circle at center, #303346 0, #05060a 60%);
}

/* 中の画像を枠いっぱいにフィットさせる */
.dmm-item-archive-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 90x122の比率を維持しつつはみ出しカット */
	display: block;
	border-radius: 0;
	transition: transform 0.3s ease-out;
}

/* ホバー時に少しズーム */
.dmm-item-archive-card:hover .dmm-item-archive-thumb img {
	transform: scale(1.06);
}

/* No Image プレースホルダ */
.dmm-item-archive-thumb-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8c91a5;
	font-size: 0.85rem;
	background: repeating-linear-gradient(45deg,
			#191b28,
			#191b28 10px,
			#11131f 10px,
			#11131f 20px);
}

/* カード本文 */
.dmm-item-archive-body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.88rem;
}

/* タイトル */
.dmm-item-archive-card-title {
	font-size: 0.96rem;
	margin: 2px 0 4px;
	line-height: 1.5;
	font-weight: 600;
}

.dmm-item-archive-card-title a {
	color: #fdfdfd;
	text-decoration: none;
}

.dmm-item-archive-card-title a:hover {
	text-decoration: underline;
}

/* メタ情報（発売日・品番など） */
.dmm-item-archive-meta {
	font-size: 0.78rem;
	color: #9ba1bc;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
}

.dmm-item-archive-date::before,
.dmm-item-archive-code::before {
	content: "• ";
}

/* 抜粋（必要なら） */
.dmm-item-archive-excerpt {
	font-size: 0.84rem;
	color: #d8deff;
	margin-top: 2px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* フッター：ボタン */
.dmm-item-archive-footer {
	margin-top: auto;
	text-align: right;
	padding-top: 4px;
}

.dmm-item-archive-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 11px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff1451, #ff6b3d);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(255, 32, 82, 0.55);
}

.dmm-item-archive-more::after {
	content: "›";
	transform: translateY(0.5px);
}

.dmm-item-archive-more:hover {
	filter: brightness(1.03);
	box-shadow: 0 5px 18px rgba(255, 32, 82, 0.75);
}

/* ページネーション */
.dmm-item-archive-pagination {
	margin-top: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

/* ベースのボタン（数字・Prev/Next・… 全部ここ） */
.dmm-item-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 32px;
	height: 32px;
	padding: 0 0.75rem;

	border-radius: 999px;
	font-size: 0.82rem;
	line-height: 1;
	text-decoration: none;

	background: rgba(15, 23, 42, 0.92);
	/* #0f172a 的なダークネイビー */
	color: #e5e7eb;
	/* text-slate-200 */
	border: 1px solid rgba(148, 163, 184, 0.45);
	/* slate-400 */

	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.75);
	transition:
		background-color 0.18s ease-out,
		color 0.18s ease-out,
		border-color 0.18s ease-out,
		transform 0.12s ease-out,
		box-shadow 0.18s ease-out;
}

/* hover 時：ちょっと浮かせる */
.dmm-item-archive-pagination .page-numbers:hover {
	background: rgba(30, 64, 175, 0.95);
	/* indigo-700 */
	border-color: rgba(191, 219, 254, 0.85);
	/* blue-200 */
	color: #f9fafb;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

/* 現在ページ */
.dmm-item-archive-pagination .page-numbers.current {
	background: linear-gradient(135deg, #ff1451, #ff6b3d);
	border-color: transparent;
	color: #fff;
	font-weight: 600;
	box-shadow: 0 10px 28px rgba(248, 113, 113, 0.65);
	transform: translateY(-1px);
	cursor: default;
}

/* 「…」のところ */
.dmm-item-archive-pagination .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	color: #9ca3af;
	box-shadow: none;
	cursor: default;
	padding: 0 0.3rem;
	min-width: auto;
}

/* Prev / Next をちょっとだけ差別化 */
.dmm-item-archive-pagination .page-numbers.prev,
.dmm-item-archive-pagination .page-numbers.next {
	min-width: 34px;
	font-size: 0.85rem;
}

.dmm-item-archive-pagination .page-numbers.prev::before {
	content: "‹";
	margin-right: 4px;
	font-size: 0.9rem;
}

.dmm-item-archive-pagination .page-numbers.next::after {
	content: "›";
	margin-left: 4px;
	font-size: 0.9rem;
}

/* スマホ：少しコンパクトに */
@media (max-width: 640px) {
	.dmm-item-archive-pagination {
		margin-top: 24px;
	}

	.dmm-item-archive-pagination .page-numbers {
		min-width: 28px;
		height: 28px;
		padding: 0 0.55rem;
		font-size: 0.78rem;
	}

	.dmm-item-archive-pagination .page-numbers.prev::before,
	.dmm-item-archive-pagination .page-numbers.next::after {
		font-size: 0.8rem;
	}
}

/* ============================================
   ウィジェットエリア（サイドバー / フッター）
============================================ */

.dmmt-sidebar .widget,
.dmmt-footer-widgets .widget {
	background: #ffffff;
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
	font-size: 0.9rem;
}

.dmmt-sidebar .widget-title,
.dmmt-footer-widgets .widget-title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 8px;
	border-left: 3px solid #db2777;
	padding-left: 6px;
}

/* フッター全体 */
.site-footer {
	margin-top: 32px;
	padding: 16px;
	background: #111827;
	color: #9ca3af;
	font-size: 0.85rem;
}

.dmmt-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.dmmt-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 12px;
}

.site-footer a {
	color: #e5e7eb;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.dmmt-footer-nav {
	border-bottom: 1px solid rgba(148, 163, 184, 0.35);
	/* slate-400 */
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.dmmt-footer-menu li a {
	text-decoration: none;
}

.dmmt-footer-menu li a:hover {
	text-decoration: underline;
	color: #e5e7eb;
	/* text-slate-200 */
}