ruby.novel-tools-ruby {
	position: relative;
	display: inline-block;
	letter-spacing: normal;
	line-height: inherit;
	text-align: inherit;
	vertical-align: baseline;
}

ruby.novel-tools-ruby rt,
ruby.novel-tools-ruby .novel-tools-rt {
	display: none;
}

ruby.novel-tools-ruby::before {
	content: attr(data-novel-tools-reading);
	display: block;
	position: absolute;
	bottom: calc(100% - 0.54em);
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.5em;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.novel-tools-emphasis {
	position: relative;
	display: inline-block;
	letter-spacing: normal;
	line-height: inherit;
	text-align: inherit;
	vertical-align: baseline;
}

.novel-tools-emphasis::before {
	content: "・";
	display: block;
	position: absolute;
	bottom: calc(100% - 0.54em);
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.8em;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.novel-tools-emphasis[data-novel-tools-dots] {
	text-emphasis-style: "・";
	text-emphasis-position: over right;
	-webkit-text-emphasis-style: "・";
	-webkit-text-emphasis-position: over right;
}

.novel-tools-emphasis[data-novel-tools-dots]::before {
	content: none;
}

.novel-tools-reading-shell {
	position: relative;
}

.novel-tools-reading-toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 4rem;
}

.novel-tools-reading-tool-button {
	align-items: center;
	appearance: none;
	background: var(--color_content_bg, #fff) !important;
	background-image: none !important;
	border: 1px solid currentColor;
	border-radius: 4px;
	box-sizing: border-box;
	color: inherit !important;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	gap: 0.35em;
	line-height: 1;
	min-height: 3.1em;
	padding: 0.45em 0.7em;
}

.novel-tools-reading-tool-button:hover,
.novel-tools-reading-tool-button:focus,
.novel-tools-reading-tool-button:active,
.novel-tools-reading-tool-button[aria-pressed="true"] {
	background: var(--color_content_bg, #fff) !important;
	background-image: none !important;
	color: inherit !important;
}

.novel-tools-reading-tool-button > * {
	color: inherit !important;
}

.novel-tools-reading-toggle {
	display: none;
}

.novel-tools-reading-toggle__icon {
	display: inline-grid;
	grid-template-columns: repeat(4, 3px);
	grid-template-rows: 1fr;
	gap: 3px;
	height: 18px;
	justify-content: center;
	width: 21px;
}

.novel-tools-reading-toggle__icon > span {
	background: currentColor;
	border-radius: 999px;
	display: block;
	min-height: 0;
	min-width: 0;
}

.novel-tools-reading-toggle[aria-pressed="true"] .novel-tools-reading-toggle__icon {
	align-content: center;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(4, 3px);
	height: 21px;
	width: 21px;
}

.novel-tools-reading-toggle[aria-pressed="true"] .novel-tools-reading-toggle__icon > span {
	width: 17px;
}

.novel-tools-reading-toggle[aria-pressed="true"] .novel-tools-reading-toggle__icon > span:nth-child(2) {
	width: 14px;
}

.novel-tools-reading-toggle[aria-pressed="true"] .novel-tools-reading-toggle__icon > span:nth-child(3) {
	width: 11px;
}

.novel-tools-reading-toggle[aria-pressed="true"] .novel-tools-reading-toggle__icon > span:nth-child(4) {
	width: 8px;
}

.novel-tools-reading-content {
	min-width: 0;
}

.novel-tools-reading-shell.novel-tools-font-mincho .novel-tools-reading-content {
	font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

.novel-tools-reading-shell.novel-tools-font-mincho .p-toc {
	font-family: var(--swl-font_family, inherit);
}

.novel-tools-reading-content--vertical {
	display: none;
}

.novel-tools-reading-shell.is-vertical .novel-tools-reading-content--horizontal {
	display: none;
}

.novel-tools-reading-shell.is-vertical .novel-tools-reading-content--vertical {
	display: block;
}

.novel-tools-reading-shell:not(.is-vertical) .novel-tools-reading-content > * + * {
	margin-top: var(--swl-block-margin, 2em);
}

.novel-tools-page-break-gap {
	display: none;
}

.novel-tools-pagination-hidden {
	display: none !important;
}

.novel-tools-like {
	align-items: center;
	box-sizing: border-box;
	direction: ltr;
	display: flex;
	justify-content: center;
	margin: 3rem 0 2.5rem;
	position: relative;
	text-orientation: mixed;
	width: 100%;
	writing-mode: horizontal-tb !important;
}

.novel-tools-like__button {
	align-items: center;
	appearance: none;
	background: var(--color_content_bg, #fff) !important;
	background-image: none !important;
	border: 1px solid currentColor;
	border-radius: 4px;
	box-shadow: none !important;
	box-sizing: border-box;
	color: inherit !important;
	cursor: pointer;
	direction: ltr;
	display: inline-flex;
	font: inherit;
	gap: 0.45em;
	justify-content: center;
	line-height: 1;
	min-height: 3.1em;
	min-width: 5.5em;
	padding: 0.55em 0.9em;
	text-orientation: mixed;
	writing-mode: horizontal-tb !important;
}

.novel-tools-like__button:hover,
.novel-tools-like__button:focus,
.novel-tools-like__button:active {
	background: var(--color_content_bg, #fff) !important;
	background-image: none !important;
	color: inherit !important;
}

.novel-tools-like__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.novel-tools-like__icon {
	color: inherit !important;
	font-size: 1.45em;
	line-height: 1;
}

.novel-tools-like__count {
	color: inherit !important;
	line-height: 1;
	min-width: 1ch;
	text-align: left;
}

.novel-tools-like.is-liked .novel-tools-like__button {
	color: var(--color_main, #c44768) !important;
	cursor: default;
	opacity: 1;
}

.novel-tools-like.is-pending .novel-tools-like__button {
	cursor: wait;
	opacity: 0.65;
}

.novel-tools-like__status {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

body.novel-tools-novel-mode-enabled .p-toc,
body.novel-tools-novel-mode-enabled #fix_tocbtn,
body.novel-tools-novel-mode-enabled #index_modal {
	display: none !important;
}

@media (max-width: 959px) {
	.novel-tools-reading-toggle {
		display: inline-flex;
	}

	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content {
		-webkit-overflow-scrolling: touch;
		cursor: grab;
		height: 32rem;
		height: var(--novel-tools-vertical-reading-height, clamp(24rem, calc(100svh - 7rem), 44rem));
		font-size: 1.1em;
		line-height: 1.9;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: auto;
		padding: 0.6rem 0.5rem;
		scrollbar-width: thin;
		text-orientation: mixed;
		touch-action: pan-x pan-y;
		white-space: normal;
		writing-mode: vertical-rl;
	}

	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content.is-dragging {
		cursor: grabbing;
		user-select: none;
	}

	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > * {
		margin-block: 0 1.5em;
		margin-inline: 0;
	}

	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > h1,
	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > h2,
	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > h3,
	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > h4,
	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > h5,
	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > h6,
	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > p,
	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > .wp-block-heading {
		margin-block-end: 2em;
		margin-inline: 0;
	}

	.novel-tools-reading-shell.is-vertical .novel-tools-reading-content > *:last-child {
		margin-block-end: 0;
	}

	.novel-tools-reading-shell.is-vertical .novel-tools-page-break-gap {
		block-size: calc(4 * 1.9em);
		display: block;
		inline-size: 100%;
		margin: 0;
		padding: 0;
	}

	.novel-tools-reading-shell.is-vertical .wp-block-image {
		align-items: center;
		display: inline-flex;
		height: 100%;
		margin: 0 0 0 1.5em;
		max-height: 100%;
		max-width: min(80vw, 22rem);
		writing-mode: horizontal-tb;
	}

	.novel-tools-reading-shell.is-vertical .wp-block-image img {
		height: auto;
		max-height: 100%;
		max-width: 100%;
		object-fit: contain;
	}

	.novel-tools-reading-shell.is-vertical ruby.novel-tools-ruby::before {
		bottom: auto;
		left: calc(100% - 0.55em);
		top: 50%;
		transform: translateY(-50%);
		writing-mode: vertical-rl;
	}

	.novel-tools-reading-shell.is-vertical .novel-tools-emphasis::before {
		bottom: auto;
		left: calc(100% - 0.62em);
		top: 50%;
		transform: translateY(-50%);
		writing-mode: vertical-rl;
	}

	.novel-tools-reading-shell.is-vertical ruby.novel-tools-ruby::before {
		white-space: nowrap;
	}
}
