/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
	ノベルページ
	DOM
	<main class="container">
		<div class="novelLayout">
		<section class="novelNav">...</aside>
		<aside class="pane paneMain">...</section>
		<!-- 将来：<aside class="pane paneSub">...</aside> -->
		</div>
	</main>
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
/* 変数設定 */
:root {
	--bg: #fbfaf5; /* ページ背景 */
	--panel: #ffffff; /* ペイン背景 */
	--fg: #2b2b2b; /* 文字 */
	--shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
	--r: 12px;
	--gap: 14px;
	--pad: 14px;
}

/* ページの基本 */
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
}
.container {
	width: min(var(--maxw), 92vw);
	margin: clamp(12px, 2.5vw, 22px) auto;
}
/* レイアウト本体 */
.novelLayout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap);
	align-items: stretch;
	min-height: clamp(520px, 70vh, 860px);
}
.novelLayout ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.novelLayout a {
	text-decoration: none;
	color: var(--basic2);
}
.pane {
	background: var(--panel);
	border: 1px solid rgb(var(--line-rgb) / var(--line-a));
	border-radius: var(--r);
	box-shadow: var(--shadow);
	padding: var(--pad);
	/* 中身が長くても各ペイン内だけスクロール */
	min-height: 0;
	overflow: auto;
}

/* 左ペインを“目次/一覧”っぽくする時の定番 */
.novelInfo {
	position: static;
}
.novelInfo .infoInner {
	position: sticky;
	top: 12px;
	max-height: calc(100vh - 24px);
	overflow: auto;
}

/* メイン側の文章が長い前提 */
.paneMain {
	overflow-wrap: anywhere;
}

/* リストの初期化（ペイン内メニュー向け） */
.novelInfo ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.novelInfo a {
	display: block;
	padding: 10px 10px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	border: 1px solid transparent;
}
.novelInfo a:hover {
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.06);
}

/* 現在地（任意：li.current > a で光らせる） */
.novelInfo li.current > a {
	background: rgba(0, 0, 0, 0.06);
	border-color: rgba(0, 0, 0, 0.1);
	font-weight: 700;
}

/* モバイル：縦積み（2ペイン→1列） */
@media (max-width: 900px) {
	.novelLayout {
		grid-template-columns: 1fr;
	}
	.novelInfo {
		position: static;
		max-height: none;
	}
}

/* さらに狭い時：ペインの角丸/影を弱める（任意） */
@media (max-width: 520px) {
	:root {
		--r: 10px;
		--pad: 12px;
		--gap: 12px;
	}
	.pane {
		box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
	}
}

/* タグ */
.novelFilters {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.filterTitle {
	font-size: 13px;
	margin: 0 0 8px;
	opacity: 0.8;
}
.tagCurrent {
	font-size: 12px;
	opacity: 0.75;
	margin-bottom: 8px;
}
.tagList {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.tagBtn {
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	border-radius: 999px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 12px;
}

/* カード内タグ（表示だけ） */
.cardTags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.tagChip {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: rgba(0, 0, 0, 0.03);
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}

.tagBtn.isActive {
	border-color: rgba(0, 0, 0, 0.35);
	font-weight: 700;
}

.tagClear {
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(0, 0, 0, 0.03);
	border-radius: 10px;
	padding: 8px 10px;
	cursor: pointer;
	font-size: 12px;
}

/* 自作ソート */
.sortBox {
	position: relative;
	width: 280px;
}
.sortBtn {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgb(var(--line-rgb) / var(--line-a));
	background: var(--panel);
	color: var(--fg);
	font: inherit;
	cursor: pointer;
}
.sortBtnLabel {
	opacity: 0.75;
	font-size: 12px;
	white-space: nowrap;
}
.sortBtnValue {
	flex: 1;
	text-align: left;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sortBtnCaret {
	opacity: 0.7;
}
.sortBtn:focus {
	outline: 2px solid rgba(0, 0, 0, 0.12);
	outline-offset: 2px;
}
/* メニュー本体 */
.sortMenu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	background: var(--panel);
	border: 1px solid rgb(var(--line-rgb) / var(--line-a));
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: 6px;
	display: none;
	z-index: 20;
}
.sortBox.isOpen .sortMenu {
	display: block;
}
.sortOption {
	width: 100%;
	text-align: left;
	padding: 10px 10px;
	border-radius: 10px;
	border: 1px solid transparent;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.sortOption:hover {
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.06);
}
.sortOption[aria-selected="true"] {
	background: rgba(0, 0, 0, 0.06);
	border-color: rgba(0, 0, 0, 0.1);
	font-weight: 700;
}

/* カードタイトル */
.cardTitle {
	font-weight: 700;
	display: inline-block;
	padding: 2px 8px;
	background: rgba(0, 0, 0, 0.04);
}

/* 作品ごとの区切り線 */
#novelNav-classic > li,
#novelNav-modern > li {
	margin: 10px 0;
}
.cardLink {
	display: block;
	padding: 12px 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: var(--panel);
}
/* 横2列+スマホ縦表示調整*/
/* 左ペイン内だけ2列化 */
.navCols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
/* 見出しがデカいと詰まるなら少し調整 */
.navCol > h2 {
	margin: 0 0 10px;
	font-size: 14px;
	text-align: center;
}
/* スマホは縦に戻す */
@media (max-width: 900px) {
	.navCols {
		grid-template-columns: 1fr;
	}
}
.navCol {
	min-width: 0;
}
.cardTitle,
.cardSynopsis {
	overflow-wrap: anywhere;
}

/* 2列の区切り線（Modern側の左に線） */
.navCol + .navCol {
	border-left: 1px solid rgb(var(--line-rgb) / var(--line-a));
	padding-left: 14px; /* 線に近すぎるの防止 */
}
