.brand-mark {
	width: 46px;
	height: 46px;
	overflow: hidden;
	border-radius: 12px;
	background: transparent;
}

.brand-mark img {
	display: block;
	width: 100%;
	height: 100%;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

html[data-theme="dark"] .brand-mark img {
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

html[data-theme="dark"] .site-header {
	border-bottom-color: transparent;
}

html[data-theme="dark"] .age-note {
	background: var(--paper);
	color: var(--muted);
}

html[data-theme="dark"] .read-button {
	color: #102820;
}

.series-section {
	scroll-margin-top: 112px;
}

.series-archive-list {
	max-width: 920px;
	margin: 0 auto;
}

.series-archive-card {
	border-top: 1px solid var(--line);
}

.series-archive-card:last-child {
	border-bottom: 1px solid var(--line);
}

.series-archive-card-link {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 32px;
	align-items: center;
	padding: 28px 0;
}

.series-archive-card.no-thumbnail {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 32px !important;
	padding: 32px 0 !important;
}

.series-archive-card.no-thumbnail .series-archive-card-link {
	display: block !important;
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	padding: 0 !important;
}

.series-archive-thumbnail {
	position: relative;
	height: 126px;
	overflow: hidden;
	background: linear-gradient(145deg, #315c4b, #102820);
	color: #f4f0e6;
	box-shadow: 5px 8px 18px rgba(16, 40, 32, 0.18);
}

.series-archive-thumbnail::after {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	pointer-events: none;
}

.series-archive-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 420ms ease;
}

.series-archive-thumbnail > span {
	display: grid;
	place-items: center;
	height: 100%;
	padding: 20px;
	font: 500 15px/1.7 "Yu Mincho", serif;
	text-align: center;
}

.series-archive-copy small {
	color: var(--muted);
	font-size: 9px;
}

.series-archive-copy h2 {
	margin: 8px 0 10px;
	font: 500 24px "Yu Mincho", serif;
}

.series-archive-tags {
	margin: 0 0 12px;
}

.series-archive-copy p {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.8;
}

.series-archive-card.no-thumbnail .series-archive-copy p {
	margin-bottom: 0;
}

.series-archive-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 180px));
	gap: 10px;
	margin: -12px 0 28px 212px;
}

.series-archive-card.no-thumbnail .series-archive-actions {
	margin: 0 !important;
	flex: 0 0 160px !important;
	width: 160px !important;
}

.series-archive-actions.single-action {
	grid-template-columns: minmax(0, 180px);
}

.series-archive-card.no-thumbnail .series-archive-actions.single-action {
	grid-template-columns: 1fr;
}

.series-archive-card-link:hover .series-archive-thumbnail img,
.series-archive-card-link:focus-visible .series-archive-thumbnail img {
	transform: scale(1.05);
}

.series-archive-card-link:hover .series-archive-copy h2,
.series-archive-card-link:focus-visible .series-archive-copy h2 {
	color: var(--green2);
}

@media (max-width: 600px) {
	.series-archive-card.no-thumbnail {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 24px 0;
	}

	.series-archive-card.no-thumbnail .series-archive-actions {
		width: 100%;
		margin: 0;
	}

	.series-archive-card-link {
		grid-template-columns: 110px 1fr;
		gap: 18px;
		padding: 20px 0;
	}

	.series-archive-actions {
		grid-template-columns: 1fr 1fr;
		margin: -10px 0 24px;
	}

	.series-archive-actions.single-action {
		grid-template-columns: 1fr;
	}

	.series-archive-thumbnail {
		height: 96px;
	}

	.series-archive-copy h2 {
		font-size: 18px;
	}

	.series-archive-copy p {
		display: none;
	}
}

.reader-header > .reader-header-actions {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-self: end;
	gap: 6px;
}

.reader-home {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	gap: 9px;
	font: 13px Georgia, serif;
	letter-spacing: 0.1em;
}

.reader-home img {
	display: block;
	width: 34px;
	height: 34px;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

html[data-theme="dark"] .reader-home img {
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.reader-tools-toggle {
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: none;
	font: 11px Georgia, serif;
}

.reader-tools[hidden] {
	display: none;
}

.reader-tools {
	top: 78px;
	right: 22px;
	flex-direction: row;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.reader-tools i {
	width: 1px;
	height: auto;
}

html[data-theme="dark"] .novel-reader {
	scrollbar-width: thin;
	scrollbar-color: #5c7065 var(--paper2);
}

html[data-theme="dark"] .novel-reader::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

html[data-theme="dark"] .novel-reader::-webkit-scrollbar-track {
	background: var(--paper2);
}

html[data-theme="dark"] .novel-reader::-webkit-scrollbar-thumb {
	border: 2px solid var(--paper2);
	border-radius: 999px;
	background: #5c7065;
}

html[data-theme="dark"] .reader-progress > div {
	background: rgba(237, 232, 220, 0.12);
}

html[data-theme="dark"] .reader-progress i {
	background: #6f8b7c;
}

.reader-bookmark-bar {
	display: grid;
	place-items: center;
	width: 100%;
	padding: 7px 20px;
	border-top: 1px solid var(--line);
	background: var(--paper2);
	text-align: center;
}

.mnc-reader-page .reader-bookmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	width: min(280px, 100%);
	min-height: 40px;
	padding: 8px 24px;
	margin: 0 auto;
	border: 1px solid #315849;
	border-radius: 0;
	background: #183d32;
	color: #f6f1e7;
	font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-align: center;
}

.reader-bookmark-icon {
	display: block;
	width: 13px;
	height: 16px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linejoin: round;
}

html[data-theme="dark"] .reader-bookmark-bar {
	border-color: rgba(237, 232, 220, 0.12);
	background: #1d2420;
}

html[data-theme="dark"] .mnc-reader-page .reader-bookmark {
	border-color: #597568;
	background: #24483c;
	color: #eee8dc;
}

.reader-bookmark-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.reader-bookmark-notice {
	position: fixed;
	top: 84px;
	left: 50%;
	z-index: 8;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 32px);
	padding: 10px 12px 10px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
	font-size: 11px;
	transform: translateX(-50%);
}

.reader-bookmark-notice[hidden] {
	display: none;
}

.reader-bookmark-notice button {
	padding: 5px 9px;
	border: 0;
	border-radius: 999px;
	background: var(--green);
	color: var(--paper);
	font-size: 10px;
	white-space: nowrap;
}

.reader-bookmark-notice .reader-bookmark-remove,
.reader-bookmark-notice .reader-bookmark-close {
	padding: 5px;
	background: none;
	color: var(--muted);
}

.reader {
	height: 100dvh;
	grid-template-rows: 70px minmax(0, 1fr) 45px 52px calc(58px + env(safe-area-inset-bottom));
}

.novel-reader {
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

.novel-reader.vertical {
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	padding: 0;
	writing-mode: horizontal-tb;
}

/* Do not suppress the browser's edge-swipe back/forward controls on phones. */
@media (hover: none) and (pointer: coarse) {
	.novel-reader.vertical {
		overscroll-behavior-x: auto;
	}
}

.novel-reader.vertical .reader-scroll-content {
	box-sizing: border-box;
	height: 100%;
	min-width: 100%;
	width: max-content;
	padding: 55px max(90px, 12vw);
	writing-mode: vertical-rl;
}

.novel-reader.horizontal {
	width: 100%;
	max-width: 760px;
	height: 100%;
	padding: 55px max(28px, 5vw);
	overflow-x: hidden;
	overflow-y: auto;
	writing-mode: horizontal-tb;
	text-orientation: mixed;
}

.novel-reader.horizontal h1 {
	margin: 0 0 1.4em;
	line-height: 1.6;
}

.novel-reader.horizontal .reader-author {
	display: block;
	margin-bottom: 3em;
}

.novel-reader.horizontal p {
	margin: 0 0 1.8em;
}

.reader-nav {
	padding-bottom: env(safe-area-inset-bottom);
}

body.admin-bar.mnc-reader-page .reader {
	height: calc(100dvh - 32px);
}

.hero {
	min-height: 700px;
	position: relative;
	overflow: hidden;
	grid-template-columns: 1fr;
	color: #f7f3e9;
	background-color: #0b1712;
	background-image:
		linear-gradient(90deg, rgba(6, 20, 15, 0.92) 0%, rgba(8, 25, 19, 0.78) 38%, rgba(8, 25, 19, 0.25) 62%, rgba(5, 15, 12, 0.08) 82%, rgba(5, 15, 12, 0.22) 100%),
		url("../images/hero-night-library.jpg");
	background-position: center, center 72%;
	background-repeat: no-repeat;
	background-size: cover;
}

.hero::before {
	content: "";
	position: absolute;
	inset: -25% -20%;
	z-index: 0;
	background: linear-gradient(116deg, transparent 27%, rgba(230, 225, 194, 0.02) 37%, rgba(255, 246, 205, 0.24) 44%, rgba(198, 212, 195, 0.08) 51%, transparent 61%);
	transform-origin: 75% 0;
	animation: mnc-moonbeam 9s ease-in-out infinite;
	pointer-events: none;
}

.hero::after {
	content: none;
}

.hero-sparkles {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 32%, #000 58%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 32%, #000 58%, #000 100%);
}

.hero-sparkles i {
	--sparkle-x: 70%;
	--sparkle-size: 4px;
	--sparkle-duration: 33s;
	--sparkle-delay: -9s;
	--sparkle-drift: 18px;
	position: absolute;
	top: -12%;
	left: var(--sparkle-x);
	width: var(--sparkle-size);
	height: var(--sparkle-size);
	border-radius: 1px;
	background: #fff4bd;
	box-shadow: 0 0 5px rgba(255, 244, 189, 0.9), 0 0 13px rgba(218, 228, 197, 0.7);
	transform: rotate(45deg);
	animation: mnc-sparkle-fall var(--sparkle-duration) linear var(--sparkle-delay) infinite;
}

.hero-sparkles i:nth-child(1)  { --sparkle-x: 54%; --sparkle-size: 3px; --sparkle-duration: 36s; --sparkle-delay: -21s; --sparkle-drift: 24px; }
.hero-sparkles i:nth-child(2)  { --sparkle-x: 62%; --sparkle-size: 5px; --sparkle-duration: 45s; --sparkle-delay: -6s; --sparkle-drift: -18px; }
.hero-sparkles i:nth-child(3)  { --sparkle-x: 68%; --sparkle-size: 2px; --sparkle-duration: 30s; --sparkle-delay: -27s; --sparkle-drift: 12px; }
.hero-sparkles i:nth-child(4)  { --sparkle-x: 74%; --sparkle-size: 4px; --sparkle-duration: 39s; --sparkle-delay: -15s; --sparkle-drift: -28px; }
.hero-sparkles i:nth-child(5)  { --sparkle-x: 81%; --sparkle-size: 3px; --sparkle-duration: 33s; --sparkle-delay: -3s; --sparkle-drift: 20px; }
.hero-sparkles i:nth-child(6)  { --sparkle-x: 88%; --sparkle-size: 5px; --sparkle-duration: 48s; --sparkle-delay: -36s; --sparkle-drift: -16px; }
.hero-sparkles i:nth-child(7)  { --sparkle-x: 94%; --sparkle-size: 2px; --sparkle-duration: 27s; --sparkle-delay: -12s; --sparkle-drift: 10px; }
.hero-sparkles i:nth-child(8)  { --sparkle-x: 58%; --sparkle-size: 2px; --sparkle-duration: 51s; --sparkle-delay: -42s; --sparkle-drift: -22px; }
.hero-sparkles i:nth-child(9)  { --sparkle-x: 66%; --sparkle-size: 4px; --sparkle-duration: 42s; --sparkle-delay: -33s; --sparkle-drift: 30px; }
.hero-sparkles i:nth-child(10) { --sparkle-x: 77%; --sparkle-size: 2px; --sparkle-duration: 36s; --sparkle-delay: -18s; --sparkle-drift: -12px; }
.hero-sparkles i:nth-child(11) { --sparkle-x: 85%; --sparkle-size: 3px; --sparkle-duration: 30s; --sparkle-delay: -24s; --sparkle-drift: 16px; }
.hero-sparkles i:nth-child(12) { --sparkle-x: 91%; --sparkle-size: 4px; --sparkle-duration: 45s; --sparkle-delay: -9s; --sparkle-drift: -30px; }
.hero-sparkles i:nth-child(13) { --sparkle-x: 71%; --sparkle-size: 3px; --sparkle-duration: 54s; --sparkle-delay: -48s; --sparkle-drift: 21px; }
.hero-sparkles i:nth-child(14) { --sparkle-x: 97%; --sparkle-size: 2px; --sparkle-duration: 39s; --sparkle-delay: -30s; --sparkle-drift: -14px; }

.hero-steam {
	position: absolute;
	right: calc(20% - 80px);
	bottom: 35%;
	z-index: 1;
	width: 160px;
	height: 250px;
	pointer-events: none;
	filter: blur(0.7px);
}

.hero-steam i {
	position: absolute;
	bottom: 0;
	left: 50%;
	display: block;
	width: 52px;
	height: 190px;
	border-left: 2px solid rgba(237, 235, 218, 0.34);
	border-radius: 52% 0 0 46%;
	transform-origin: 50% 100%;
	opacity: 0;
	filter: drop-shadow(0 0 5px rgba(226, 232, 214, 0.22));
	animation: mnc-steam-drift 13s ease-in-out -4s infinite;
}

.hero-steam i:nth-child(2) {
	left: 32%;
	height: 160px;
	border-left-color: rgba(237, 235, 218, 0.25);
	animation-duration: 16s;
	animation-delay: -11s;
}

.hero-steam i:nth-child(3) {
	left: 65%;
	height: 215px;
	border-left-color: rgba(237, 235, 218, 0.2);
	animation-duration: 18s;
	animation-delay: -15s;
}

.hero-copy {
	position: relative;
	z-index: 2;
	max-width: 720px;
}

.hero .eyebrow {
	color: #d7c58e;
	text-shadow: 0 1px 16px rgba(226, 213, 162, 0.32);
}

.hero h1 {
	color: #fffdf7;
	text-shadow: 0 3px 30px rgba(0, 0, 0, 0.62);
}

.hero .hero-copy > p:not(.eyebrow) {
	color: rgba(247, 243, 233, 0.82);
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.68);
}

.hero-copy ruby {
	ruby-align: center;
}

.hero-copy rt {
	font-size: 0.5em;
	line-height: 1;
	position: relative;
	top: -0.35em;
	transform: translateY(-0.25em);
	letter-spacing: 0.05em;
}

.hero .button-primary {
	background: #f4f0e6;
	color: #102820;
}

.hero .button-text {
	color: #fffdf7;
	border-bottom-color: rgba(255, 253, 247, 0.72);
}

/* Interactive lift, bounce and light sweep. */
.button-primary,
.button-text,
.quick-search button,
.section-heading > a,
.series-grid > a {
	transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, color 220ms ease, border-color 220ms ease;
}

.button-primary {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.button-primary::before {
	content: "";
	position: absolute;
	top: -45%;
	bottom: -45%;
	left: -42%;
	width: 30%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
	transform: skewX(-18deg);
	transition: left 620ms cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 0;
	pointer-events: none;
}

.button-primary span,
.novel-card-copy footer b {
	display: inline-block;
	transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-primary:hover,
.button-primary:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(8, 22, 16, 0.24);
}

.button-primary:hover::before,
.button-primary:focus-visible::before {
	left: 118%;
}

.button-primary:hover span,
.button-primary:focus-visible span,
.novel-card-link:hover .novel-card-copy footer b,
.novel-card-link:focus-visible .novel-card-copy footer b {
	transform: translateX(5px);
}

.button-text:hover,
.button-text:focus-visible,
.quick-search button:hover,
.quick-search button:focus-visible,
.section-heading > a:hover,
.section-heading > a:focus-visible {
	transform: translateY(-3px);
	color: var(--gold);
	border-color: var(--gold);
}

.novel-card-link {
	transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.novel-card-tags {
	margin: 0 0 14px;
}

.novel-cover-overlay small {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 11px;
	color: #d7cfbf;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
	margin: 0 auto;
	padding: 0;
	background: none;
	border: none;
}

.novel-cover-overlay span,
.novel-cover-overlay > span {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 10px;
	letter-spacing: 0.28em;
	color: #f4eee2;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
	margin: 0 auto;
	padding: 0;
	background: none;
	border: none;
}

.novel-card-copy footer span {
	font-size: 11px;
}

.search-series-group + .search-series-group {
	margin-top: 72px;
}

.search-series-title {
	margin: 0 0 30px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
	font: 500 27px "Yu Mincho", serif;
	letter-spacing: 0.08em;
}

.archive-grid .novel-card {
	display: flex;
	flex-direction: column;
}

.archive-grid .novel-card-link {
	flex: 1;
}

.novel-card-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
}

.novel-card-actions--single {
	grid-template-columns: 1fr;
}

.novel-card-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border: 1px solid var(--green);
	font-size: 11px;
	transition: transform 220ms ease, background-color 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.novel-card-button-detail {
	color: var(--green);
}

.novel-card-actions .novel-card-button-read,
.series-archive-actions .novel-card-button-read {
	display: grid;
	place-items: center;
	text-align: center;
	padding: 0 15px;
	background: var(--green);
	color: var(--paper);
}

.novel-card-button:hover,
.novel-card-button:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(8, 22, 16, 0.16);
}

.novel-card-button-detail:hover,
.novel-card-button-detail:focus-visible {
	background: var(--green);
	color: var(--paper);
}

/* ==========================================================================
   上品な文庫本スタイル（Japanese Paperback / Bunkobon Style）
   ========================================================================== */

.novel-cover {
	position: relative;
	height: 320px;
	margin: 0 auto 46px;
	border-radius: 2px 6px 6px 2px;
	overflow: hidden;
	background: #1a2a22;
	background: radial-gradient(circle at 45% 35%, #1e352b 0%, #13241c 65%, #0c1712 100%);
	/* 右端に文庫本の小口（ページの厚み・生成り色の紙束）を再現 */
	box-shadow:
		2px 4px 10px rgba(0, 0, 0, 0.12),
		8px 16px 28px rgba(12, 22, 16, 0.18),
		inset -3px 0 0 rgba(246, 240, 228, 0.8),
		inset -4px 0 0 rgba(180, 165, 140, 0.45),
		inset 3px 0 5px rgba(0, 0, 0, 0.35);
	transform: perspective(900px) rotateY(-2deg);
	transform-origin: left center;
	transition: transform 380ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 380ms ease;
}

/* 文庫本カバーの背表紙折り目（紙ジャケットの折り返しライン）＆光沢 */
.novel-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	border-radius: inherit;
	background:
		/* 背表紙の柔らかい紙の折り目シャドウ（左から5〜12pxあたり） */
		linear-gradient(to right,
			rgba(0, 0, 0, 0.35) 0px,
			rgba(0, 0, 0, 0.05) 4px,
			rgba(255, 255, 255, 0.22) 6px,
			rgba(0, 0, 0, 0.2) 9px,
			transparent 18px
		),
		/* 右端のページ境界の細い陰影 */
		linear-gradient(to left,
			rgba(0, 0, 0, 0.2) 0px,
			transparent 6px
		),
		/* カバー用紙のマットPP光沢感 */
		linear-gradient(135deg,
			rgba(255, 255, 255, 0.1) 0%,
			rgba(255, 255, 255, 0.02) 30%,
			transparent 60%
		);
}

.novel-cover::after {
	content: none;
}

.novel-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	filter: saturate(0.96) contrast(1.02);
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 380ms ease;
}

/* 文庫本のすっきりした装丁オーバーレイ */
.novel-cover-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 24px 20px;
	background: linear-gradient(
		180deg,
		rgba(8, 16, 12, 0.42) 0%,
		rgba(8, 16, 12, 0.05) 35%,
		rgba(8, 16, 12, 0.18) 60%,
		rgba(8, 16, 12, 0.78) 100%
	);
	z-index: 4;
}

.novel-cover-overlay small {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 11px;
	color: #d7cfbf;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
	margin: 0 auto;
	padding: 0;
	background: none;
	border: none;
}

.novel-cover-overlay b {
	font: 500 20px/1.8 "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
	letter-spacing: 0.18em;
	writing-mode: vertical-rl;
	color: #ffffff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.9),
		0 2px 10px rgba(0, 0, 0, 0.75);
	margin: auto;
	max-height: 190px;
	overflow: hidden;
	transition: color 300ms ease, text-shadow 300ms ease;
}

/* 横書きモード（小説カード表紙） */
.novel-cover-overlay b.cover-title--horizontal {
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	letter-spacing: 0.08em;
	max-height: none;
	max-width: 180px;
	text-align: center;
	word-break: break-word;
	white-space: pre-line;
}

.novel-cover-overlay span,
.novel-cover-overlay > span {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 10px;
	letter-spacing: 0.28em;
	color: #f4eee2;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
	margin: 0 auto;
	padding: 0;
	background: none;
	border: none;
}

/* ホバー時の文庫本アクション（しなやかに軽やかに浮き上がる） */
.novel-card-link:hover .novel-cover,
.novel-card-link:focus-visible .novel-cover {
	animation: none;
	transform: perspective(900px) rotateY(1.8deg) translateY(-6px) scale(1.015);
	box-shadow:
		3px 6px 14px rgba(0, 0, 0, 0.16),
		12px 22px 36px rgba(12, 22, 16, 0.25),
		inset -3px 0 0 rgba(250, 244, 234, 0.95),
		inset 3px 0 5px rgba(0, 0, 0, 0.4);
}

.novel-card-link:hover .novel-cover img,
.novel-card-link:focus-visible .novel-cover img {
	transform: scale(1.035);
	filter: saturate(1.02) brightness(1.04);
}

.novel-card-link:hover .novel-cover-overlay b,
.novel-card-link:focus-visible .novel-cover-overlay b {
	color: #ffffff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.95),
		0 2px 12px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   大判文庫本スタイル（Detail Cover & Series Archive Card Cover）
   ========================================================================== */

.detail-cover,
.series-card-cover {
	position: relative;
	height: 530px;
	border-radius: 3px 8px 8px 3px;
	overflow: hidden;
	background: #1a2a22;
	background: radial-gradient(circle at 45% 35%, #1e352b 0%, #13241c 65%, #0c1712 100%);
	/* 右端に文庫本の小口（生成り色の紙束の厚み）を再現 */
	box-shadow:
		2px 6px 14px rgba(0, 0, 0, 0.15),
		14px 24px 45px rgba(10, 22, 16, 0.24),
		inset -4px 0 0 rgba(246, 240, 228, 0.85),
		inset -6px 0 0 rgba(180, 165, 140, 0.4),
		inset 4px 0 6px rgba(0, 0, 0, 0.35);
	transform: perspective(1000px) rotateY(-2.5deg);
	transform-origin: left center;
	transition: transform 420ms cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 420ms ease;
}

/* 背表紙の折り目ライン＆小口エッジ＆マットPP光沢 */
.detail-cover::before,
.series-card-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	border-radius: inherit;
	background:
		/* 左端：背表紙の紙カバー折り目シャドウ（左から0〜24px） */
		linear-gradient(to right,
			rgba(0, 0, 0, 0.4) 0px,
			rgba(0, 0, 0, 0.06) 6px,
			rgba(255, 255, 255, 0.24) 9px,
			rgba(0, 0, 0, 0.22) 14px,
			transparent 28px
		),
		/* 右端：小口境界の細い陰影 */
		linear-gradient(to left,
			rgba(0, 0, 0, 0.22) 0px,
			transparent 8px
		),
		/* カバー用紙のマットPP光沢感 */
		linear-gradient(135deg,
			rgba(255, 255, 255, 0.12) 0%,
			rgba(255, 255, 255, 0.02) 30%,
			transparent 60%
		);
}

/* 従来の四角い枠線を削除 */
.detail-cover::after,
.series-card-cover::after {
	content: none !important;
}

.detail-cover > img,
.series-card-cover > img,
.detail-cover.has-image > img,
.series-card-cover.has-image > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	filter: saturate(0.96) contrast(1.02);
	transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

.detail-cover > div,
.series-card-cover > div {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 30px 24px 30px 38px;
	background: linear-gradient(
		180deg,
		rgba(8, 16, 12, 0.42) 0%,
		rgba(8, 16, 12, 0.05) 35%,
		rgba(8, 16, 12, 0.18) 60%,
		rgba(8, 16, 12, 0.78) 100%
	);
	z-index: 4;
}

.detail-cover small,
.series-card-cover small {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 11px;
	color: #d7cfbf;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
	margin: 0 auto;
	padding: 0;
	background: none;
	border: none;
	align-self: center;
}

.detail-cover h1,
.series-card-cover h2 {
	font: 500 24px/1.8 "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
	letter-spacing: 0.18em;
	writing-mode: vertical-rl;
	color: #ffffff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.9),
		0 2px 10px rgba(0, 0, 0, 0.75);
	margin: auto;
	max-height: 320px;
	overflow: hidden;
	transition: color 300ms ease, text-shadow 300ms ease;
}

/* 横書きモード（シリーズアーカイブ・detail-cover） */
.detail-cover h1.cover-title--horizontal,
.series-card-cover h2.cover-title--horizontal {
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	letter-spacing: 0.08em;
	max-height: none;
	max-width: 320px;
	text-align: center;
	word-break: break-word;
	white-space: pre-line;
}

.detail-cover span,
.series-card-cover span {
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 10px;
	letter-spacing: 0.28em;
	color: #f4eee2;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
	margin: 0 auto;
	padding: 0;
	background: none;
	border: none;
	align-self: center;
}

/* ホバー演出 */
.series-card:hover .detail-cover,
.series-card:focus-within .detail-cover,
.detail-cover:hover {
	transform: perspective(1000px) rotateY(1.8deg) translateY(-6px) scale(1.015);
	box-shadow:
		3px 8px 18px rgba(0, 0, 0, 0.18),
		16px 28px 48px rgba(10, 22, 16, 0.3),
		inset -4px 0 0 rgba(250, 244, 234, 0.95),
		inset 4px 0 6px rgba(0, 0, 0, 0.4);
}

.series-card:hover .detail-cover > img,
.series-card:focus-within .detail-cover > img,
.detail-cover:hover > img {
	transform: scale(1.03);
	filter: saturate(1.02) brightness(1.03);
}

.series-grid > a:hover,
.series-grid > a:focus-visible {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.035);
}

@keyframes mnc-moonbeam {
	0% {
		opacity: 0.3;
		transform: translate3d(-4%, -2%, 0) rotate(-1deg) scale(0.98);
	}
	45% {
		opacity: 0.9;
		transform: translate3d(3%, 3%, 0) rotate(1.2deg) scale(1.04);
	}
	100% {
		opacity: 0.36;
		transform: translate3d(7%, 6%, 0) rotate(2deg) scale(1.08);
	}
}

@keyframes mnc-sparkle-fall {
	0% {
		opacity: 0;
		transform: translate3d(0, -8vh, 0) rotate(45deg) scale(0.3);
	}
	12% {
		opacity: 0.9;
	}
	48% {
		opacity: 0.48;
		transform: translate3d(calc(var(--sparkle-drift) * -0.35), 48vh, 0) rotate(135deg) scale(0.8);
	}
	72% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate3d(var(--sparkle-drift), 112vh, 0) rotate(225deg) scale(0.45);
	}
}

@keyframes mnc-steam-drift {
	0% {
		opacity: 0;
		transform: translate3d(0, 18px, 0) rotate(5deg) scaleX(0.7);
	}
	18% {
		opacity: 0.52;
	}
	48% {
		opacity: 0.36;
		transform: translate3d(-20px, -34px, 0) rotate(-8deg) scaleX(1.05);
	}
	72% {
		opacity: 0.21;
		transform: translate3d(16px, -72px, 0) rotate(9deg) scaleX(0.82);
	}
	100% {
		opacity: 0;
		transform: translate3d(-12px, -112px, 0) rotate(-5deg) scaleX(1.18);
	}
}

@keyframes mnc-cover-bounce {
	0% {
		transform: translateY(0) rotate(0);
	}
	42% {
		transform: translateY(-14px) rotate(-0.8deg);
	}
	68% {
		transform: translateY(-7px) rotate(0.35deg);
	}
	100% {
		transform: translateY(-10px) rotate(-0.25deg);
	}
}

@keyframes mnc-moonbeam-soft {
	0% {
		opacity: 0.26;
	}
	100% {
		opacity: 0.82;
	}
}

@media (max-width: 850px) {
	.brand-mark {
		width: 36px;
		height: 36px;
		border-radius: 9px;
	}

	.hero {
		min-height: 660px;
		background-image:
			linear-gradient(90deg, rgba(5, 18, 13, 0.9), rgba(5, 18, 13, 0.57)),
			url("../images/hero-night-library.jpg");
		background-position: center, 58% 68%;
	}

	.hero-steam {
		right: calc(20% - 80px);
		bottom: 28%;
	}

	.reader-tools {
		top: 64px;
		right: 8px;
	}
}

@media (max-width: 782px) {
	body.admin-bar.mnc-reader-page .reader {
		height: calc(100dvh - 46px);
	}
}

@media (max-width: 520px) {
	.reader-header > .reader-header-actions {
		gap: 3px;
	}

	.reader-tools-toggle,
	.reader-header .theme-toggle {
		width: 34px;
		height: 34px;
	}

	.reader-bookmark-bar {
		padding: 6px 12px;
	}

	.mnc-reader-page .reader-bookmark {
		width: min(300px, 100%);
		min-height: 40px;
		padding: 8px 18px;
		font-size: 13px;
	}

	.reader-bookmark-notice {
		top: 70px;
		display: grid;
		grid-template-columns: auto auto auto;
		grid-template-areas:
			"resume remove close"
			"message message message";
		justify-content: center;
		gap: 7px 8px;
		width: min(270px, calc(100vw - 32px));
		padding: 10px 12px 11px;
		border-radius: 24px;
	}

	.reader-bookmark-notice [data-bookmark-resume] {
		grid-area: resume;
	}

	.reader-bookmark-notice .reader-bookmark-remove {
		grid-area: remove;
	}

	.reader-bookmark-notice .reader-bookmark-close {
		grid-area: close;
	}

	.reader-bookmark-notice [data-bookmark-message] {
		grid-area: message;
		min-width: 0;
		text-align: center;
		line-height: 1.5;
		white-space: normal;
	}

	.reader-home span {
		display: none;
	}

	.reader-home img {
		width: 32px;
		height: 32px;
	}

	.reader {
		grid-template-rows: 60px minmax(0, 1fr) 38px 52px calc(52px + env(safe-area-inset-bottom));
	}

	.novel-reader.horizontal {
		padding: 38px 24px;
	}

	.novel-reader.vertical .reader-scroll-content {
		padding: 38px 30px 38px 68px;
	}

	.hero {
		min-height: 620px;
		background-image:
			linear-gradient(180deg, rgba(5, 18, 13, 0.78), rgba(5, 18, 13, 0.9)),
			url("../images/hero-night-library.jpg");
		background-position: center, 62% 68%;
	}

	.hero-steam {
		right: calc(20% - 60px);
		bottom: 28%;
		width: 120px;
		height: 210px;
		transform: scale(0.78);
		transform-origin: 50% 100%;
	}

}

@media (prefers-reduced-motion: reduce) {
	.brand-mark img {
		transition: none;
	}

	.reader-home img {
		transition: none;
	}

	.hero::before {
		animation: mnc-moonbeam-soft 5.2s ease-in-out infinite alternate;
		transform: none;
	}

	.novel-card-link:hover .novel-cover,
	.novel-card-link:focus-visible .novel-cover {
		animation: none;
		transform: translateY(-4px);
	}

	.button-primary,
	.button-primary::before,
	.button-primary span,
	.button-text,
	.quick-search button,
	.section-heading > a,
	.series-grid > a,
	.novel-card-link,
	.novel-cover,
	.novel-cover img,
	.novel-card-copy footer b {
		transition: none;
	}

	.novel-cover {
		transition: transform 140ms ease, box-shadow 140ms ease;
	}
}
