/* momonGA スキン: ダーク × ピンク(#FA2198)。参考レイアウト=4列縦長サムネグリッド */

:root {
	--mg-pink: #FA2198;
	--mg-bg: #1a1a1a;
	--mg-panel: #222;
	--mg-text: #f0f0f0;
	--mg-muted: rgba(255, 255, 255, 0.55);
}

html {
	background: var(--mg-bg);
}
body {
	background: var(--mg-bg) !important;
	color: var(--mg-text);
	font-family: 'M PLUS 1p', sans-serif !important;
	/* サンプル画像のフルブリード(100vw)がスクロールバー分はみ出すのを防ぐ */
	overflow-x: hidden;
}

/* ===== ヘッダー（非追従・通常スクロール） ===== */
#mg-header {
	width: 100%;
	height: 50px;
	background: var(--mg-pink);
	text-align: center;
}
#mg-header-in {
	max-width: 1024px;
	margin: 0 auto;
	position: relative;
}
#mg-logo {
	display: inline-block;
	line-height: 50px;
	color: #fff !important;
	font-family: 'Ubuntu', 'M PLUS 1p', sans-serif;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 1px;
	text-decoration: none !important;
}
#mg-logo span {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
}

/* ===== コンテナ ===== */
#mg-container {
	width: 100%;
	max-width: 1024px;
	margin: 0 auto;
}
#mg-main {
	margin: 20px 16px 40px;
}

/* 固定ページ等は白パネルで可読性を保つ（JIN:Rのコンテンツ配色前提のため） */
#mg-main.mg-light-panel {
	background: #fff;
	color: #333;
	border-radius: 12px;
	padding: 28px 22px;
}
@media (min-width: 600px) {
	#mg-main.mg-light-panel { padding: 36px 40px; }
}

/* ===== ヒーロー ===== */
.mg-hero {
	background: #000;
	border-radius: 12px;
	text-align: center;
	padding: 34px 16px;
	margin-bottom: 30px;
}
.mg-hero-catch {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 8px;
}
.mg-hero-desc {
	font-size: 13px;
	color: var(--mg-muted);
	margin: 0;
}

.mg-section-title {
	color: var(--mg-pink);
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 18px;
}

.mg-front-note {
	font-size: 11.5px;
	color: var(--mg-muted);
	text-align: center;
	margin-top: 30px;
}

/* ===== 作品カードグリッド（参考: 4列 / モバイル2列・縦長1:1.35） ===== */
.post-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px 12px;
	margin-bottom: 30px;
}
@media (min-width: 700px) {
	.post-list { grid-template-columns: repeat(4, 1fr); gap: 34px 16px; }
}
.post-list > a {
	display: block;
	color: var(--mg-text) !important;
	text-decoration: none !important;
}
.post-list-image {
	position: relative;
	width: 100%;
	/* 実測: メイン画像の9割が4:3横長(h/w=0.75)のため枠も4:3に合わせる */
	padding-bottom: 75%;
	background: var(--mg-panel);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 7px;
}
.post-list-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
/* 背景: 同じ画像をぼかしてcoverで敷き、枠の余白を埋める */
.post-list-image .pl-bg {
	object-fit: cover;
	filter: blur(16px) brightness(0.55) saturate(1.1);
	transform: scale(1.15);
}
/* 前景: 表紙全体が見えるcontain表示 */
.post-list-image .pl-main {
	object-fit: contain;
	object-position: center;
	transition: transform 0.15s ease;
}
.post-list > a:hover .post-list-image .pl-main { transform: scale(1.03); }
.post-list > a > span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
	line-height: 1.4;
	font-size: 13.5px;
}
.post-list-time {
	font-size: 10px;
	color: var(--mg-muted);
	text-align: right;
	margin-top: 3px;
}

/* ランキング用: CSSカウンタで順位バッジを重ねる */
.post-list--ranked { counter-reset: mg-rank; }
.post-list--ranked > a { position: relative; }
.post-list--ranked > a::before {
	counter-increment: mg-rank;
	content: counter(mg-rank);
	position: absolute;
	top: -8px;
	left: -6px;
	z-index: 2;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	background: var(--mg-pink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.post-list--ranked > a:nth-child(n+4)::before {
	background: #333;
	color: rgba(255, 255, 255, 0.85);
}

/* セクション見出し行（サブテキスト付き） */
.mg-section-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 36px 0 18px;
}
.mg-section-head .mg-section-title { margin: 0; }
.mg-section-sub {
	font-size: 12px;
	color: var(--mg-muted);
}

/* バナー枠（ウィジェット: トップバナー） */
.mg-banner-area {
	margin: 0 0 26px;
	text-align: center;
}
.mg-banner-area img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ===== ハブページ（サークル/ジャンル） ===== */
.fanza-hub {
	max-width: 1024px;
	margin: 0 auto;
	line-height: 1.8;
}
.fanza-hub .fanza-breadcrumb {
	font-size: 12px;
	color: var(--mg-muted);
	margin-bottom: 12px;
}
.fanza-hub .fanza-breadcrumb a { color: var(--mg-muted) !important; }
.fanza-hub .fanza-breadcrumb .sep { margin: 0 6px; }
.fanza-hub-title {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
}
.fanza-hub-meta {
	font-size: 12.5px;
	color: var(--mg-muted);
	margin: 0 0 14px;
}
.fanza-hub-profile {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	background: #222;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 18px;
}
.fanza-hub .mg-section-title { margin-top: 34px; }
.fanza-hub .fanza-genre-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fanza-genre-chips a.chip {
	background: #2b2b2b;
	border-radius: 999px;
	font-size: 12.5px;
	padding: 4px 12px;
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: none !important;
}
.fanza-genre-chips a.chip:hover {
	background: var(--mg-pink);
	color: #fff !important;
}

/* ===== フッター ===== */
#mg-footer {
	background: #000;
	text-align: center;
	padding: 30px 16px 40px;
	margin-top: 40px;
}
#mg-footer-nav ul {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
}
#mg-footer-nav a {
	color: rgba(255, 255, 255, 0.75) !important;
	font-size: 12.5px;
	text-decoration: none;
}
#mg-footer-nav a:hover { color: #fff !important; }
.mg-footer-note {
	font-size: 11px;
	color: var(--mg-muted);
	margin: 0 0 6px;
}
.mg-footer-copy {
	font-size: 11px;
	color: var(--mg-muted);
	margin: 0;
}
