/* 百合支部リニューアル：記事ページ（body.yz-layout のときだけ読み込む）
 * 配色A：メイン #7E57C2／サブ #26A69A／購入 #FF6D00／チップ #E6DDF5／背景 #F8F5FC／文字 #2E2A33 */
.yz-layout {
	--yz-main: #7E57C2;
	--yz-main-dk: #5E35B1;
	--yz-sub: #26A69A;
	--yz-buy: #FF6D00;
	--yz-buy-dk: #E65100;
	--yz-chip: #E6DDF5;
	--yz-bg: #F8F5FC;
	--yz-text: #2E2A33;
	--yz-mute: #6E6878;
	--yz-line: #E4DCEF;
	--yz-r: 10px;
}
.yz-layout .breadcrumb { display: none; } /* Cocoon のパンくずは使わない（①で出す） */
.yz-single { color: var(--yz-text); }
.yz-single img { max-width: 100%; height: auto; }

/* ① パンくず */
.yz-bc ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0 0 10px; padding: 0; font-size: 12px; color: var(--yz-mute); }
.yz-bc li { display: inline-flex; align-items: center; min-width: 0; }
.yz-bc li + li::before { content: "›"; margin: 0 6px; color: #B9AECB; }
.yz-bc a { color: var(--yz-main); text-decoration: none; }
.yz-bc li:last-child span { display: inline-block; max-width: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ② タイトル */
.yz-head { margin: 0 0 16px; }
.yz-single .yz-head .entry-title { font-size: 22px; line-height: 1.5; margin: 0 0 8px; padding: 0; border: 0; background: none; color: var(--yz-text); }
.yz-head-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--yz-mute); }
.yz-head-meta a { color: var(--yz-main); }

/* ③ 表紙＋購入ボタン */
.yz-hero { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 20px; align-items: center; background: var(--yz-bg); border-radius: var(--yz-r); padding: 16px; margin: 0 0 20px; }
.yz-cover { margin: 0; }
.yz-cover img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 4px 14px rgba(94, 53, 177, .18); }
.yz-hero-side { min-width: 0; }
.yz-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
@media (max-width: 600px) {
	.yz-hero { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
	.yz-cover img { max-width: 360px; margin: 0 auto; }
}

/* 価格（値があるときだけ） */
.yz-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; }
.yz-price-off { background: #E53935; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.yz-price-list { color: var(--yz-mute); font-size: 13px; }
.yz-price-now { font-size: 26px; font-weight: 700; color: #E53935; }
.yz-price-now small { font-size: 14px; margin-left: 1px; }

/* 購入ボタン */
.yz-cta { text-align: center; margin: 18px 0; }
.yz-hero .yz-cta { margin: 0; }
.yz-cta-copy { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--yz-main-dk); }
.yz-single a.yz-btn {
	display: block; max-width: 420px; margin: 0 auto; padding: 15px 18px;
	background: var(--yz-buy); color: #fff; font-size: 17px; font-weight: 700; line-height: 1.4;
	text-decoration: none; border-radius: 999px; box-shadow: 0 4px 0 var(--yz-buy-dk);
	transition: transform .1s, box-shadow .1s, filter .15s;
}
.yz-single a.yz-btn::after { content: " ›"; }
.yz-single a.yz-btn:hover { filter: brightness(1.06); color: #fff; }
.yz-single a.yz-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--yz-buy-dk); }

/* チップ・タグ */
.yz-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--yz-chip); color: var(--yz-main-dk); font-size: 12.5px; line-height: 1.4; text-decoration: none; }
.yz-chip-sit { background: var(--yz-main); color: #fff; }
a.yz-chip:hover { filter: brightness(.96); color: inherit; }
a.yz-chip-sit:hover { color: #fff; }
.yz-chip small { font-size: 11px; opacity: .8; }
.yz-tag { display: inline-block; margin: 0 8px 4px 0; color: var(--yz-sub); font-size: 13px; text-decoration: none; }
a.yz-tag:hover { text-decoration: underline; }

/* ④ リード文 */
.yz-lead { position: relative; margin: 0 0 22px; padding: 14px 16px 14px 18px; background: #fff; border: 1px solid var(--yz-line); border-left: 4px solid var(--yz-sub); border-radius: 0 var(--yz-r) var(--yz-r) 0; }
.yz-lead p { margin: 0; font-size: 15px; line-height: 1.85; }

/* 見出し・セクション */
.yz-sec { margin: 0 0 30px; }
/* Cocoon の設定に「.article h2 { color:#fff !important }」があるので !important で上書きする */
.yz-layout .article .yz-h2 {
	display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; padding: 0 0 8px 14px;
	font-size: 19px; line-height: 1.4; color: var(--yz-text) !important; background: none !important;
	border: 0 !important; border-bottom: 2px solid var(--yz-chip) !important; border-radius: 0; position: relative;
}
.yz-single .yz-h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: 12px; width: 5px; border-radius: 3px; background: linear-gradient(var(--yz-main), var(--yz-sub)); }
.yz-single .yz-h2::after { display: none; }
.yz-h2-sub { font-size: 13px; font-weight: 400; color: var(--yz-mute); }

/* ⑤ 作品情報の表 */
/* Cocoon の表（縞模様・枠線）と混ざらないように、すべて明示する */
.yz-layout .article .yz-spec table { display: table; width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 14px; background: #fff; border: 1px solid var(--yz-line); border-radius: var(--yz-r); overflow: hidden; }
.yz-layout .article .yz-spec tr { background: #fff !important; }
.yz-layout .article .yz-spec th, .yz-layout .article .yz-spec td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--yz-line); text-align: left; vertical-align: top; background: none; color: var(--yz-text); }
.yz-layout .article .yz-spec tr:last-child th, .yz-layout .article .yz-spec tr:last-child td { border-bottom: 0; }
.yz-layout .article .yz-spec th { width: 8.5em; background: var(--yz-bg); color: var(--yz-main-dk); font-weight: 700; white-space: nowrap; border-right: 1px solid var(--yz-line); }
.yz-spec td .yz-chip { margin: 0 4px 4px 0; }
.yz-spec td a:not(.yz-chip):not(.yz-tag) { color: var(--yz-main); }
@media (max-width: 480px) { .yz-spec th { width: 6.5em; padding: 9px 8px; font-size: 13px; } .yz-spec td { padding: 9px 10px; } }

/* ⑥ サンプル画像ビューア */
.yz-viewer-modes { display: inline-flex; margin: 0 0 12px; padding: 3px; background: var(--yz-chip); border-radius: 999px; }
.yz-viewer-modes button { appearance: none; border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--yz-main-dk); cursor: pointer; }
.yz-viewer-modes button[aria-pressed="true"] { background: #fff; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.yz-viewer-track { display: grid; gap: 8px; }
.yz-shot { margin: 0; cursor: zoom-in; background: var(--yz-bg); border-radius: 6px; overflow: hidden; }
.yz-shot img { display: block; width: 100%; }
.yz-shot.is-hidden { display: none; }
.yz-viewer[data-mode="read"] .yz-viewer-track { gap: 4px; }
.yz-viewer[data-mode="grid"] .yz-viewer-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yz-viewer[data-mode="grid"] .yz-shot { aspect-ratio: 3 / 4; }
.yz-viewer[data-mode="grid"] .yz-shot img { height: 100%; object-fit: cover; }
.yz-viewer[data-mode="slide"] .yz-viewer-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 0; border-radius: 6px; background: var(--yz-bg); }
.yz-viewer[data-mode="slide"] .yz-viewer-track::-webkit-scrollbar { display: none; }
.yz-viewer[data-mode="slide"] .yz-shot { flex: 0 0 100%; scroll-snap-align: center; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.yz-viewer[data-mode="slide"] .yz-shot.is-hidden { display: flex; }
.yz-viewer[data-mode="slide"] .yz-shot img { width: auto; max-width: 100%; max-height: 80vh; }
.yz-viewer-nav { display: none; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.yz-viewer[data-mode="slide"] .yz-viewer-nav { display: flex; }
.yz-viewer-nav button { appearance: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--yz-line); background: #fff; color: var(--yz-main); font-size: 22px; line-height: 1; cursor: pointer; }
.yz-count { font-size: 14px; color: var(--yz-mute); min-width: 4em; text-align: center; }
.yz-count b { color: var(--yz-main-dk); }
.yz-more { display: block; width: 100%; margin: 12px 0 0; padding: 13px; appearance: none; border: 2px solid var(--yz-main); background: #fff; color: var(--yz-main); font-size: 15px; font-weight: 700; border-radius: 999px; cursor: pointer; }
.yz-more:hover { background: var(--yz-bg); }
.yz-viewer.is-open .yz-more, .yz-viewer[data-mode="slide"] .yz-more { display: none; }
.yz-viewer-note { margin: 8px 0 0; font-size: 12px; color: var(--yz-mute); text-align: center; }
.yz-viewer:not(.is-js) .yz-viewer-modes, .yz-viewer:not(.is-js) .yz-more { display: none; } /* JS が動かないときは縦に全部 */

/* 拡大表示 */
.yz-lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(20, 14, 30, .94); }
.yz-lb.is-on { display: flex; }
.yz-lb img { max-width: 96vw; max-height: 86vh; object-fit: contain; user-select: none; }
.yz-lb button { position: absolute; appearance: none; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.yz-lb .yz-lb-close { top: 12px; right: 12px; }
.yz-lb .yz-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.yz-lb .yz-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.yz-lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 13px; }
html.yz-noscroll { overflow: hidden; }

/* ⑧ あらすじ */
.yz-story-text { background: #fff; border: 1px solid var(--yz-line); border-radius: var(--yz-r); padding: 14px 16px; font-size: 15px; line-height: 1.9; }
.yz-story-text p { margin: 0 0 1em; }
.yz-story-text p:last-child { margin-bottom: 0; }

/* ⑨⑩ レビュー（Gemini の HTML をそのまま整える。★・REVIEWバッジは出さない） */
.yz-review-body .review-main-badge,
.yz-review-body .evaluation-section,
.yz-review-body .manga-text-link-container { display: none !important; }
.yz-layout .yz-review-body .original-review-box {
	margin: 0 0 18px; padding: 16px 16px 14px; background: linear-gradient(135deg, #F3EDFB, #EAF7F5);
	border: 0; border-radius: var(--yz-r); box-shadow: none;
}
.yz-layout .yz-review-body .original-review-box h3 { margin: 0 0 10px; padding: 0; font-size: 17px; color: var(--yz-main-dk) !important; background: none !important; border: 0 !important; }
.yz-layout .yz-review-body .original-review-box h3::before, .yz-layout .yz-review-body .original-review-box h3::after { display: none; }
.yz-layout .yz-review-body .original-review-box p { margin: 0; font-size: 15px; line-height: 1.9; }
.yz-layout .yz-review-body .auto-review-box { display: grid; gap: 12px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.yz-layout .yz-review-body .review-unit { display: flex; gap: 12px; margin: 0; padding: 14px; background: #fff; border: 1px solid var(--yz-line); border-radius: var(--yz-r); box-shadow: none; }
.yz-layout .yz-review-body .review-number { display: none !important; } /* 番号・NEW の丸は出さない（ユーザー指示 2026-11-21） */
.yz-layout .yz-review-body .comment-section { flex: 1; min-width: 0; padding: 0; background: none; border: 0; }
.yz-layout .yz-review-body .comment-header { margin: 0 0 4px; padding: 0; background: none; border: 0; }
.yz-layout .yz-review-body .badge-comment { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--yz-chip); color: var(--yz-main-dk); font-size: 12px; font-weight: 700; }
.yz-layout .yz-review-body .comment-title { margin: 4px 0 6px; font-size: 15.5px; font-weight: 700; line-height: 1.5; color: var(--yz-text); }
.yz-layout .yz-review-body .comment-block { font-size: 14.5px; line-height: 1.85; color: var(--yz-text); background: none; border: 0; padding: 0; }
@media (max-width: 480px) { .yz-layout .yz-review-body .review-unit { flex-direction: column; gap: 6px; } }

/* ⑪ 最後の購入ボタン＋注意 */
.yz-final { margin: 0 0 34px; padding: 18px 14px; background: var(--yz-bg); border-radius: var(--yz-r); }
.yz-final .yz-cta { margin: 0 0 12px; }
.yz-piracy { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--yz-mute); }

/* ⑫ 関連作品 */
.yz-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
@media (max-width: 600px) { .yz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.yz-card { display: block; color: var(--yz-text); text-decoration: none; }
.yz-card:hover { color: var(--yz-main); }
.yz-card-thumb { display: block; aspect-ratio: 3 / 4; background: var(--yz-bg); border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
.yz-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.yz-card:hover .yz-card-thumb img { transform: scale(1.04); }
.yz-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.5; font-weight: 700; }
.yz-card-circle { display: block; margin-top: 2px; font-size: 11.5px; color: var(--yz-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yz-more-link { margin: 12px 0 0; text-align: right; font-size: 14px; }
.yz-more-link a { color: var(--yz-main); }

/* ⑬ シチュエーションから探す */
.yz-find-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yz-find .yz-chip { padding: 7px 14px; font-size: 13.5px; }

/* ⑭ 前後の記事 */
.yz-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; }
.yz-pn-item { display: flex; gap: 10px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--yz-line); border-radius: var(--yz-r); color: var(--yz-text); text-decoration: none; font-size: 13px; line-height: 1.5; min-width: 0; }
.yz-pn-item img { flex: 0 0 52px; width: 52px; height: 70px; object-fit: cover; border-radius: 4px; }
.yz-pn-item span { min-width: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yz-pn-item small { display: block; color: var(--yz-main); font-weight: 700; }
.yz-pn-next { flex-direction: row-reverse; text-align: right; }
.yz-pn-empty { border: 0; background: none; }
@media (max-width: 480px) { .yz-pn-item img { display: none; } }

/* ⑮ 姉妹サイト（ミント） */
.yz-single .yz-sister { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 24px; padding: 12px 16px; border-radius: var(--yz-r); background: #E0F2F1; color: #00695C; text-decoration: none; font-size: 13px; }
.yz-sister-label { background: var(--yz-sub); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.yz-sister-name { font-weight: 700; font-size: 14px; }
.yz-sister:hover { filter: brightness(.97); }

/* スマホ：画面下に固定の購入ボタン */
.yz-sticky { display: none; }
@media (max-width: 834px) {
	.yz-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); box-shadow: 0 -2px 10px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .25s; }
	.yz-sticky.is-on { transform: none; }
	.yz-sticky a { display: block; padding: 12px; text-align: center; background: var(--yz-buy); color: #fff; font-weight: 700; font-size: 15px; border-radius: 999px; text-decoration: none; }
	.yz-layout .go-to-top { bottom: 80px; }
	.yz-layout #footer { padding-bottom: 70px; }
}

/* 古いテンプレートの部品が本文に残っていても目立たせない */
.yz-layout .top-urgent-link { display: none; }
