/*
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.7
Text Domain: dmm-auto-theme
*/

/*
Theme Name: Modern Base Theme
Description: WordPress 用ベーススタイル
*/

/* ================================
   0. CSS 変数（カラー・フォントなど）
   ================================ */
:root {
	--color-bg: #f5f5f7;
	--color-surface: #ffffff;
	--color-border: #e5e7eb;
	--color-muted: #6b7280;
	--color-text: #111827;
	--color-heading: #0f172a;
	--color-primary: #2563eb;
	--color-primary-soft: #dbeafe;
	--color-primary-dark: #1d4ed8;
	--color-danger: #dc2626;

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);

	--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
		"Liberation Mono", "Courier New", monospace;

	--content-width: 720px;
	--content-wide-width: 1100px;
}

/* ================================
   1. ベースリセット
   ================================ */

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

html {
	scroll-behavior: smooth;
}

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

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

/* WordPress でよく出る align 系 */
.alignnone {
	margin: 0.5rem 0;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

/* clearfix */
.clearfix::after {
	content: "";
	display: block;
	clear: both;
}

/* ================================
   2. タイポグラフィ
   ================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1.8rem 0 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-heading);
}

h1 {
	font-size: clamp(2rem, 2.4vw, 2.4rem);
}

h2 {
	font-size: clamp(1.6rem, 2vw, 2rem);
}

h3 {
	font-size: 1.35rem;
}

h4 {
	font-size: 1.15rem;
}

h5 {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-muted);
}

h6 {
	font-size: 0.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
}

p {
	margin: 0 0 1.2rem;
}

strong {
	font-weight: 600;
}

em {
	font-style: italic;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus-visible {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

/* リスト */
ul,
ol {
	margin: 0 0 1.2rem 1.2rem;
	padding-left: 1.2rem;
}

li+li {
	margin-top: 0.2rem;
}

/* コード */
code,
kbd,
pre,
samp {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

pre {
	background: #020617;
	color: #e5e7eb;
	padding: 1rem 1.2rem;
	border-radius: var(--radius-md);
	overflow: auto;
}

/* ================================
   3. レイアウト / コンテナ
   ================================ */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1 0 auto;
}

.site-header,
.site-footer {
	background-color: var(--color-surface);
	box-shadow: var(--shadow-sm);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(10px);
	background-color: rgba(255, 255, 255, 0.9);
}

.site-footer {
	margin-top: 3rem;
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
}

.container {
	max-width: var(--content-wide-width);
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* メインコンテンツ幅を少し絞る */
.content-area,
.entry-content,
.page-content {
	max-width: var(--content-width);
	margin-left: auto;
	margin-right: auto;
}

/* Gutenberg の alignwide / alignfull 対応 */
.alignwide {
	max-width: var(--content-wide-width);
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ================================
   4. ヘッダー & ナビゲーション
   ================================ */

.site-branding {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.8rem 0;
}

.site-title a {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-heading);
	text-decoration: none;
}

.site-description {
	margin: 0;
	font-size: 0.8rem;
	color: var(--color-muted);
}

/* メインメニュー */
.main-navigation {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.main-navigation .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
}

.main-navigation a {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	font-size: 0.9rem;
	border-radius: 999px;
	color: var(--color-muted);
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
	color: var(--color-primary-dark);
	background-color: var(--color-primary-soft);
}

/* モバイルナビ（必要であれば JS でトグル） */
.menu-toggle {
	display: none;
}

@media (max-width: 768px) {
	.main-navigation .menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		padding: 0.5rem 0;
	}

	.main-navigation.is-open .menu {
		display: flex;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.4rem 0.8rem;
		font-size: 0.9rem;
		border-radius: 999px;
		border: 1px solid var(--color-border);
		background: var(--color-surface);
		cursor: pointer;
	}
}

/* ================================
   5. 投稿・ページ
   ================================ */

.entry-header {
	margin-bottom: 1.6rem;
}

.entry-title {
	font-size: clamp(1.8rem, 2.4vw, 2.3rem);
	margin-bottom: 0.4rem;
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--color-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.entry-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* サムネイル */
.post-thumbnail {
	margin-bottom: 1.5rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.post-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

/* コンテンツ本文 */
.entry-content,
.page-content {
	background-color: var(--color-surface);
	padding: 1.8rem 1.5rem;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	margin-bottom: 2.5rem;
}

/* 見出しに下線風アクセント */
.entry-content h2,
.page-content h2 {
	padding-bottom: 0.3rem;
	border-bottom: 2px solid var(--color-border);
}

/* 引用 */
blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.2rem;
	border-left: 4px solid var(--color-primary);
	background: #eff6ff;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	color: #1e293b;
}

blockquote cite {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: var(--color-muted);
}

/* キャプション */
.wp-caption {
	max-width: 100%;
	margin: 0.5rem 0 1.5rem;
	text-align: center;
}

.wp-caption img {
	margin-bottom: 0.4rem;
}

.wp-caption-text {
	font-size: 0.8rem;
	color: var(--color-muted);
}

/* ================================
   6. ボタン / リンク系
   ================================ */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link,
a.button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: none;
	background-color: var(--color-primary);
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.5rem 1.4rem;
	cursor: pointer;
	text-decoration: none;
	box-shadow: var(--shadow-md);
	transition: background-color 0.15s ease, transform 0.1s ease,
		box-shadow 0.15s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
a.button:hover,
.button:hover {
	background-color: var(--color-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
	text-decoration: none;
}

button:disabled,
input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: default;
	box-shadow: none;
}

/* アウトラインボタン */
.button-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--color-primary);
	border: 1px solid var(--color-primary);
	box-shadow: none;
}

.button-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--color-primary-soft);
}

/* ================================
   7. フォーム
   ================================ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 0.55rem 0.7rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background-color: #ffffff;
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--color-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease,
		background-color 0.15s ease;
}

textarea {
	min-height: 160px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 1px var(--color-primary-soft);
	background-color: #ffffff;
}

label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 500;
	font-size: 0.9rem;
}

/*検索フォーム*/
.search-form {
	display: flex;
	gap: 0.4rem;
}

.search-form .search-field {
	flex: 1;
}

/* ================================
   8. ウィジェット / サイドバー
   ================================ */

.widget {
	background-color: var(--color-surface);
	border-radius: var(--radius-lg);
	padding: 1.1rem 1rem;
	box-shadow: var(--shadow-sm);
	margin-bottom: 1.5rem;
	font-size: 0.93rem;
}

.widget-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 0.6rem;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 0.3rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.widget ul li+li {
	margin-top: 0.25rem;
}

/* ================================
   9. コメント
   ================================ */

#comments {
	margin-top: 2.5rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list>li {
	margin-bottom: 1.4rem;
}

.comment-body {
	background-color: var(--color-surface);
	border-radius: var(--radius-md);
	padding: 0.9rem 1rem;
	border: 1px solid var(--color-border);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.4rem;
	font-size: 0.8rem;
	color: var(--color-muted);
}

.comment-author {
	font-weight: 600;
	color: var(--color-heading);
}

.comment-reply-link {
	font-size: 0.8rem;
	color: var(--color-primary);
}

/* ================================
   10. ページネーション
   ================================ */

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	justify-content: center;
	margin: 2rem 0;
	font-size: 0.9rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	border-radius: 999px;
	padding: 0 0.6rem;
	border: 1px solid var(--color-border);
	color: var(--color-muted);
	text-decoration: none;
	background-color: #ffffff;
}

.page-numbers.current {
	background-color: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
}

.page-numbers:hover {
	border-color: var(--color-primary);
	color: var(--color-primary-dark);
}

/* ================================
   11. テーブル
   ================================ */

table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.93rem;
	margin-bottom: 1.4rem;
}

th,
td {
	border: 1px solid var(--color-border);
	padding: 0.55rem 0.7rem;
	text-align: left;
}

th {
	background-color: #f9fafb;
	font-weight: 600;
}

/* ================================
   12. ユーティリティクラス
   ================================ */

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.mt-0 {
	margin-top: 0 !important;
}

.mt-1 {
	margin-top: 0.25rem !important;
}

.mt-2 {
	margin-top: 0.5rem !important;
}

.mt-3 {
	margin-top: 0.75rem !important;
}

.mt-4 {
	margin-top: 1rem !important;
}

.mb-0 {
	margin-bottom: 0 !important;
}

.mb-1 {
	margin-bottom: 0.25rem !important;
}

.mb-2 {
	margin-bottom: 0.5rem !important;
}

.mb-3 {
	margin-bottom: 0.75rem !important;
}

.mb-4 {
	margin-bottom: 1rem !important;
}

/* スモールラベルなど */
.badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	font-size: 0.7rem;
	padding: 0.15rem 0.55rem;
	background-color: #e5e7eb;
	color: #374151;
}

/* ================================
   13. レスポンシブ調整
   ================================ */

@media (max-width: 600px) {

	.entry-content,
	.page-content {
		padding: 1.3rem 1rem;
		border-radius: var(--radius-md);
	}

	h1 {
		font-size: 1.8rem;
	}
}

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

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 */
}