/*
 * 配色
 * ダークモード (prefers-color-scheme: dark) では、ファイルの末尾でこれらの値だけを置き換える
 */
:root,
.read #body.authorColors,
.edit textarea#body.authorColors
{
	--page-background: #ccddcc;
	--header-1: #fefefe;
	--header-2: #f7f7f7;
	--header-3: #efefef;
	--header-4: #e4e4e4;
	--header-5: #d5d5d5;
	--bar-1: #d5d5d5;
	--bar-2: #bbbbbb;
	--text: #000000;
	--text-muted: #666666;
	--text-subtle: #767676;
	--link: #0000ff;
	--surface: #ffffff;
	--surface-alt: #efefef;
	--surface-hover: #f6f6f6;
	--border: #999999;
	--border-disabled: #cccccc;
	--accent-text: #005019;
	--accent-border: #005019;
	--accent-fill: #005019;
	--accent-soft: #559977;
	--on-accent: #ffffff;
	--button-background: #fcfcfc;
	--button-hover: #ffffff;
	/* ボタンの下半分に、下へ向かって濃くなる影を付ける */
	--button-gradient: linear-gradient(rgba(128, 128, 128, 0) 50%, rgba(128, 128, 128, 0.13) 50%, rgba(128, 128, 128, 0.48));
	--button-icon: #999999;
	--bevel: #ffffff;
	--notify-border: #ffbb00;
	--notify-background: #ffffcc;
	--point-plus: #0000cc;
	--point-minus: #cc0000;
}

:root
{
	color-scheme: light dark;
}

html
{
	margin: 0px;
	padding: 0px;
	/* 上端の 64px は、ヘッダの下で灰色になるグラデーション、緑の線、影の順に重ねる */
	background: var(--page-background) linear-gradient(var(--header-1) 42px, var(--header-2) 46.5px, var(--header-3) 49.5px, var(--header-4) 52.5px, var(--header-5) 55.5px, var(--accent-fill) 56px, var(--accent-fill) 57px, rgba(49, 98, 63, 0.34) 57px, rgba(49, 98, 63, 0.34) 57.5px, rgba(49, 98, 63, 0) 63.5px) no-repeat scroll left top / 100% 64px;
	font-family: sans-serif;
	line-height: 1.25;
}

body
{
	position: relative;
	margin: 0px 5% 0px 5%;
	padding: 0px;
	color: var(--text);
	min-width: 560px;
}

img
{
	border: none;
}

a
{
	color: var(--link);
	text-decoration: none;
}

a:hover
{
	text-decoration: underline;
}

#backToMobile
{
	position: absolute;
	left: 0px;
	top: 0px;
}

p
{
	margin: 0px 0px 16px 0px;
	padding: 0px;
}

hr
{
	margin: 0px 0px 8px 0px;
	border: none;
	border-top: var(--accent-border) 1px solid;
	height: 0px;
}

dl
{
	margin: 0px;
	padding: 0px;
}

input[type="submit"], input[type="reset"], input[type="button"], button
{
	position: relative;
	margin: 0px 0px 8px 0px;
	padding: 2px 8px 2px 8px;
	border: var(--border) 1px solid;
	border-radius: 4px;
	height: 24px;
	background: var(--button-background) var(--button-gradient);
	font: inherit;
	font-size: 9pt;
	text-shadow: 1px 1px 0px var(--bevel);
	line-height: 18px;
	overflow: visible;
	box-sizing: border-box;
	box-shadow: 1px 1px 0px var(--bevel) inset, -1px 1px 0px var(--bevel) inset, -1px -1px 0px var(--bevel) inset, 1px -1px 0px var(--bevel) inset;
}

button
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* アイコンの領域は、ボタンの高さによらず内側の上端から下端まで伸ばす */
button img
{
	align-self: stretch;
	margin: -2px 8px -2px -8px;
	padding: 0px 4px 0px 3px;
	border-right: var(--bevel) 1px solid;
	border-radius: 3px 0px 0px 3px;
	width: 16px;
	height: auto;
	background-color: var(--button-icon);
	object-fit: none;
}

button img.last
{
	margin: -2px -8px -2px 8px;
	border-right: none;
	border-left: var(--bevel) 1px solid;
	border-radius: 0px 3px 3px 0px;
}

input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, button:hover
{
	border-color: var(--accent-soft);
	color: var(--accent-text);
	background-color: var(--button-hover);
}

input[type="submit"]:active, input[type="reset"]:active, input[type="button"]:active, button:active
{
	border-color: var(--accent-border);
	box-shadow: 0px 0px 4px var(--accent-soft);
}

button:hover img
{
	background-color: var(--accent-soft);
}

button:active img
{
	background-color: var(--accent-fill);
}

input[type="submit"][disabled], input[type="reset"][disabled], input[type="button"][disabled], button[disabled]
{
	background-color: var(--surface) !important;
	border-color: var(--border-disabled) !important;
	text-shadow: var(--border-disabled) -1px -1px 0px !important;
	box-shadow: 1px 1px 0px var(--bevel) inset, -1px 1px 0px var(--bevel) inset, -1px -1px 0px var(--bevel) inset, 1px -1px 0px var(--bevel) inset !important;
}

button[disabled] img
{
	border-color: var(--bevel) !important;
	background-color: var(--border-disabled) !important;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="color"],
input[type="number"],
input[type="date"],
textarea,
select
{
	margin: 0px 0px 8px 0px;
	padding: 1px 2px 1px 2px;
	border: var(--border) 1px solid;
	min-height: 18px;
	color: var(--text);
	background-color: var(--surface);
	font: inherit;
	font-size: 9pt;
	line-height: 16px;
	box-sizing: content-box;
}

select
{
	padding: 1px;
	height: 22px;
	box-sizing: border-box;
}

textarea
{
	padding-right: 1px;
	overflow: auto;
}

input[type="checkbox"], input[type="radio"]
{
	margin: 0px;
	margin-right: 4px;
	padding: 0px;
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

header, footer, nav, hgroup, aside, article, section
{
	display: block;
}

body>header
{
	position: relative;
	margin: 0px 0px 8px 0px;
	padding: 16px 0px 16px 0px;
	height: 24px;
	/* ヘッダの高さが変わっても、灰色のグラデーションは下端に揃える */
	background: var(--header-1) linear-gradient(var(--header-1) 42px, var(--header-2) 46.5px, var(--header-3) 49.5px, var(--header-4) 52.5px, var(--header-5) 55.5px) no-repeat scroll left bottom / 100% 56px;
}

body>header>a:first-child
{
	margin: 0px;
	padding: 0px;
	line-height: 24px;
	font-size: 24px;
	font-weight: bold;
	color: var(--accent-text);
}

body>header nav
{
	position: absolute;
	right: 232px;
	top: 4px;
	margin: 0px 0px 8px 0px;
	padding: 16px 8px 8px 8px;
	height: 16px;
	line-height: 16px;
}

body>header nav ul
{
	margin: 0px;
	margin-top: -8px;
	margin-right: -8px;
	padding: 8px;
	height: 16px;
	background-color: var(--surface);
}

body>header nav ul li
{
	float: left;
	display: block;
	margin: 0px 0px 0px 8px;
	padding: 0px;
	height: 16px;
	font-size: 14px;
	line-height: 16px;
}

body>header nav ul li a img
{
	margin: 0px 4px 0px 0px;
	vertical-align: top;
	background-color: var(--accent-fill);
}

body>header form
{
	position: absolute;
	top: 17px;
	right: 0px;
	margin: 0px;
	padding: 0px;
	width: 224px;
	height: 22px;
}

body>header form input[name="query"]
{
	position: absolute;
	top: 0px;
	left: 0px;
	margin: 0px;
	padding-right: 20px;
	box-sizing: content-box;
	width: 200px;
	height: 18px;
	line-height: 18px;
}

body>header form input[type="submit"]
{
	position: absolute;
	top: 1px;
	right: 1px;
	margin: 0px;
	padding: 0px;
	border: none;
	border-radius: 0px;
	width: 20px;
	height: 20px;
	background: transparent url("searchIcon.png") no-repeat scroll center center;
	text-indent: -1000%;
	overflow: hidden;
}

body>header form input[type="submit"]:active
{
	box-shadow: none;
}

body>footer
{
	clear: both;
	position: relative;
	margin: 0px 0px 0px 0px;
	padding: 0px;
	font-size: 9pt;
}

body>footer>ul:first-child
{
	margin: 0px 0px 8px 0px;
	padding: 8px 142px 8px 8px;
	border: var(--border) 1px solid;
	border-radius: 4px;
	background: var(--surface-alt);
	text-align: center;
}

body>footer>ul:first-child li
{
	display: inline;
	margin: 0px;
	padding: 0px;
}

body>footer>ul:first-child li+li:before
{
	display: inline;
	content: " | ";
}

body>footer>ul:first-child+a
{
	display: block;
	position: absolute;
	top: 0px;
	right: 9px;
	margin: 0px;
	padding: 4px 22px 4px 12px;
	border: var(--border) 1px solid;
	border-top: none;
	border-radius: 0px 0px 4px 4px;
	height: 16px;
	background: var(--page-background) url("returnToTopIcon.png") no-repeat scroll right top;
	text-align: center;
	line-height: 16px;
}

.pagerContainer+footer
{
	margin-top: 32px;
}

.notify, .admin
{
	margin: 0px 0px 8px 0px;
	padding: 8px 8px 8px 32px;
	border: var(--notify-border) 1px solid;
	border-radius: 4px;
	min-height: 16px;
	background: var(--notify-background) none no-repeat scroll 8px 8px;
	line-height: 17px;
	font-size: 9pt;
}

.notify.info
{
	--notify-icon: url("infoIcon.png");
}

.notify.warning
{
	--notify-icon: url("warningIcon.png");
}

.notify.error
{
	--notify-icon: url("errorIcon.png");
}

.notify
{
	background-image: var(--notify-icon, none);
}

/* 箇条書きのお知らせは、項目の間だけを空ける */
.notify>li
{
	display: block;
	margin: 0px;
	padding: 0px;
}

.notify>li+li
{
	margin-top: 8px;
}

/*
 * ボタンのあるお知らせは、アイコン、文言 (.message)、ボタン (.buttons) の順に並べる。
 * 文言の 1 行目とアイコンをボタンの上下の中央にそろえ、上下の余白をボタンの高さの分だけ詰めて、ボタンの無いお知らせと同じ高さにする。
 * 幅が足りない場合は、文言を折り返し、さらに足りなければボタンを次の行の右に回す
 */
.notify
{
	--notify-line: 17px;
	--notify-button: 24px;
}

.notify:has(> .buttons)
{
	--notify-padding: max(4px, calc(8px - (var(--notify-button) - var(--notify-line)) / 2));
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 4px 8px;
	padding: var(--notify-padding) 8px;
	background-image: none;
}

/* アイコンは文言の 1 行目と同じ高さの行に置き、文言が折り返しても 1 行目の横に並べる */
.notify:has(> .buttons)::before
{
	content: "";
	flex: none;
	margin-top: calc((var(--notify-button) - var(--notify-line)) / 2);
	width: 16px;
	height: var(--notify-line);
	background: var(--notify-icon, none) no-repeat center;
}

.notify>.message
{
	flex: 1 1 12em;
	margin-top: calc((var(--notify-button) - var(--notify-line)) / 2);
	min-width: 0px;
}

.notify>.message>p
{
	margin: 0px;
}

.notify>.message>p+p
{
	margin-top: 8px;
}

.notify>.buttons
{
	display: flex;
	flex: none;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0px -4px 0px auto;
	padding: 0px;
	list-style: none;
}

.notify>.buttons>li
{
	display: block;
	float: none;
	margin: 0px;
	padding: 0px;
}

.notify>.buttons :is(form, div)
{
	display: flex;
	margin: 0px;
}

.notify>.buttons :is(input, button)
{
	margin: 0px;
	height: var(--notify-button);
}

.notes, .search section.filter
{
	margin: 0px 0px 8px 0px;
	padding: 8px;
	border: var(--border) 1px solid;
	border-radius: 4px;
	background: var(--surface-alt);
}

.search section.filter
{
	padding-bottom: 0px;
}

.headdingButtons
{
	position: absolute;
	top: 72px;
	right: 0px;
}

.shareButtons
{
	display: inline-flex;
	gap: 8px;
	align-items: center;
	flex-direction: row-reverse;
	/* 縦書きの本文の中でも、ボタンとメニューは横書きで表示する */
	writing-mode: horizontal-tb;
}

.shareButtons[hidden],
.shareMenu [hidden]
{
	display: none;
}

.shareMenu
{
	position: relative;
	display: inline-block;
	text-align: left;
}

/* 共有ボタンは、ほかのボタンと同じ見た目にする */
.shareMenu summary
{
	display: inline-flex;
	align-items: center;
	padding: 2px 8px 2px 8px;
	border: var(--border) 1px solid;
	border-radius: 4px;
	height: 24px;
	background: var(--button-background) var(--button-gradient);
	color: var(--text);
	font-size: 9pt;
	line-height: 18px;
	text-shadow: 1px 1px 0px var(--bevel);
	box-sizing: border-box;
	box-shadow: 1px 1px 0px var(--bevel) inset, -1px 1px 0px var(--bevel) inset, -1px -1px 0px var(--bevel) inset, 1px -1px 0px var(--bevel) inset;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

/* アイコンは、ほかのボタン (button img) と同じく左端の区切られた領域に表示する */
.shareMenu summary img
{
	align-self: stretch;
	margin: -2px 8px -2px -8px;
	padding: 0px 4px 0px 3px;
	border-right: var(--bevel) 1px solid;
	border-radius: 3px 0px 0px 3px;
	width: 16px;
	height: auto;
	background-color: var(--button-icon);
	object-fit: none;
}

.shareMenu summary:hover img,
.shareMenu[open] summary img
{
	background-color: var(--accent-soft);
}

.shareMenu summary::-webkit-details-marker
{
	display: none;
}

.shareMenu summary:hover,
.shareMenu[open] summary
{
	border-color: var(--accent-soft);
	color: var(--accent-text);
	background-color: var(--button-hover);
}

.shareMenu ul
{
	position: absolute;
	top: 28px;
	right: 0px;
	z-index: 10;
	margin: 0px;
	padding: 4px 0px 4px 0px;
	min-width: 12em;
	border: var(--border) 1px solid;
	border-radius: 4px;
	background: var(--surface);
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
	list-style: none;
	white-space: nowrap;
}

.shareMenu li a,
.shareMenu li button
{
	display: block;
	margin: 0px;
	padding: 4px 12px 4px 12px;
	border: none;
	border-radius: 0px;
	width: 100%;
	height: auto;
	background: none;
	box-shadow: none;
	color: var(--text);
	font-size: 9pt;
	line-height: 18px;
	text-align: left;
	text-shadow: none;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
}

.shareMenu li a:hover,
.shareMenu li a:focus-visible,
.shareMenu li button:hover,
.shareMenu li button:focus-visible
{
	background: var(--surface-hover);
	color: var(--accent-text);
	text-decoration: none;
}

/* 縦書きでは共有ボタンが本文の枠の下端にあり、下に開くと枠で切れるため、上に開く */
.read #body.vertical .shareMenu ul
{
	top: auto;
	bottom: 28px;
}

.shareStatus
{
	color: var(--text-muted);
	font-size: 9pt;
}

.shareStatus:empty
{
	display: none;
}

div.entries
{
	margin: 0px -4px 0px -4px;
	padding: 0px;
}

div.entries article
{
	position: relative;
	display: inline-block;
	margin: 0px;
	padding: 0px;
	width: 50%;
	vertical-align: top;
}

div.entries article .notify
{
	margin-left: 4px;
	margin-right: 4px;
}

div.entries article .articleBody
{
	margin: 0px 4px 8px 4px;
	padding: 8px;
	border: var(--accent-border) 1px solid;
	border-radius: 4px;
	background: var(--surface);
	overflow: hidden;
}

div.entries article time
{
	float: right;
	display: block;
	color: var(--text-subtle);
	text-align: right;
}

div.entries article time+time
{
	margin-right: 4px;
}

div.entries article time.hidden+time
{
	margin-right: 0px;
}

div.entries article time.lastUpdate
{
	color: var(--text-muted);
}

.entries .compact
{
	display: block;
	margin: 0px;
	padding: 0px;
}

.entries .compact>li
{
	display: block;
	margin: 0px;
	padding: 0px;
}

.entries .compact>li+li
{
	margin-top: 4px;
	padding-top: 8px;
	border-top: var(--border) 1px solid;
}

.entries .host
{
	color: var(--text-muted);
}

.entries .update
{
	float: right;
	display: block;
	padding: 0px 4px 0px 0px;
	color: var(--accent-text);
	font-weight: bold;
	text-align: right;
}

.entries .hidden
{
	display: none;
}

div.entries article h2
{
	margin: 0px 0px 4px 0px;
	font-size: 120%;
}

div.entries dl
{
	margin: 4px 0px 0px 0px;
	padding: 4px;
	background: var(--surface-alt);
	font-size: 90%;
	clear: both;
}

div.entries article time+dl
{
	margin-top: 24px;
}

div.entries dl dt
{
	display: inline;
	margin: 0px 0px 0px 4px;
	padding: 0px 0px 0px 4px;
	border-left: var(--text) 1px solid;
}

div.entries dl dt:first-child, div.entries dl dt.firstChild
{
	margin-left: 0px;
	padding-left: 0px;
	border-left: none;
}

div.entries dl dd
{
	display: inline;
	margin: 0px;
	padding: 0px;
	font-weight: bold;
}

div.entries dl dt:after
{
	display: inline;
	content: ": "
}

div.entries ul.tags
{
	margin: 2px 0px 0px -8px;
	padding: 0px;
	font-size: 90%;
}

div.entries ul.tags li
{
	display: inline;
	margin: 0px 0px 0px 8px;
	padding: 0px;
	border: none;
}

div.entries .summary
{
	margin: 4px 0px 0px 0px;
	padding: 8px 0px 0px 0px;
	border-top: var(--border) 1px solid;
}

section.entries
{
	font-size: 10pt;
	padding: 2px 4px 4px 4px;
}

.entries table
{
	margin: 0px;
	padding: 0px;
	width: 100%;
	border: none;
	border-collapse: collapse;
	line-break: strict;
	word-break: normal;
	word-wrap: break-word;
}

.entries table h2
{
	margin: 0px;
	font-size: 10pt;
}

.entries table .update
{
	float: left;
	text-align: left;
}

.entries table tr
{
	background: var(--surface);
}

.entries tbody .tags
{
	background: var(--surface-alt);
}

.entries tbody tr.tags+tr,
.entries tbody tr.notags+tr
{
	border-top: var(--border) 1px solid !important;
}

.entries tbody .hasSummary:hover, .entries table .hasSummary:hover+.tags, .entries th.clickable:hover
{
	background: var(--surface-hover);
}

.entries th.clickable:hover
{
	border-bottom: var(--border) 1px solid;
}

.entries table tr.tags ul
{
	display: block;
	margin: 0px;
	padding: 0px;
	min-height: 1em;
}

.entries table tr.tags ul li
{
	display: inline;
	margin: 0px;
	margin-right: 8px;
	padding: 0px;
	list-style: none;
}

.entries table tr.tags .summaryButton
{
	display: block;
	float: right;
	margin: 0px 0px 0px 8px;
	color: var(--text-subtle);
}

.entries table th, .entries table td
{
	border: none;
	padding: 8px;
	padding-top: 4px;
	padding-bottom: 4px;
}

.entries table thead tr
{
	font-weight: bold;
	color: var(--on-accent);
	border-bottom: var(--accent-border) 1px solid;
}

.entries table th
{
	text-align: left;
	color: var(--accent-text);
}

.entries table .checkbox
{
	padding-right: 0px;
	width: 16px;
	vertical-align: top;
}

.entries table .checkbox input
{
	width: 100%;
	height: 100%;
}

.entries table .title
{
	min-width: 12em;
}

.entries table .name
{
	width: 8em;
}

.entries table .dateTime, .entries table .lastUpdate
{
	width: 8em;
}

.entries table .info
{
	text-align: right;
	width: 3.5em;
}

.entries table .info.commentCount
{
	width: 4em;
}

.entries table .info.size
{
	width: 4.75em;
}

.entries table .summaryButton
{
	display: block;
	float: left;
	margin: 0px 4px 0px 0px;
	padding: 0px;
}

.entries table .summaryButton.opened
{
}

.entries table p
{
	margin: 0px;
	margin-top: 8px;
}

section, .taglist, main>ul
{
	margin: 0px 0px 8px 0px;
	padding: 8px 8px 0px 8px;
	border: var(--accent-border) 1px solid;
	border-radius: 4px;
	background: var(--surface);
}

main>ul
{
	padding: 8px 8px 8px 24px;
}

.taglist
{
	padding: 16px;
	line-height: 2;
}

.taglist dl
{
	display: block;
	margin: 0px;
	margin: 8px;
	padding: 0px;
}

.taglist dt
{
	display: block;
	margin: 0px;
	padding: 0px;
	color: var(--accent-text);
	font-weight: bold;
}

.taglist dd
{
	display: block;
	margin: 0px;
	padding: 0px;
}

.taglist ul
{
	display: block;
	margin: 0px;
	padding: 0px;
}

.taglist li
{
	display: inline-block;
	margin-right: 16px;
	font-size: 125%;
}

.taglist li a
{
	white-space: nowrap;
}

.taglist li .count
{
	margin-left: 4px;
	font-size: 80%;
}

h1
{
	margin: 16px 0px 8px 0px;
	padding: 0px 0px 0px 24px;
	color: var(--accent-text);
	background: transparent url("h1.png") no-repeat scroll left top;
	vertical-align: middle;
	line-height: 20px;
	font-size: 20px;
}

main>h1, .entries h1
{
	height: 20px;
}

.entries h1
{
	margin-top: 8px;
	margin-left: 4px;
	margin-right: 4px;
}

main>h1>span
{
	margin: 0px 8px 0px 8px;
	color: var(--text);
	font-size: 9pt;
	font-weight: normal;
	line-height: normal;
}

h2
{
	margin: 0px 0px 8px 0px;
	padding: 0px;
	color: var(--accent-text);
	font: inherit;
	font-weight: bold;
}

.edit section, .auth section
{
	padding-left: 110px;
}

.edit section:first-child
{
	float: right;
	padding-left: 80px;
	width: 276px;
}

.edit section .notice
{
	margin: 0px 0px 8px -72px;
	padding: 8px 0px 0px 0px;
	border-top: var(--border) 1px solid;
	color: var(--text-muted);
	font-size: 9pt;
}

.edit section+section
{
	margin-right: 374px;
}

.edit label[for], .edit section h2, .auth label, #commentform label, .config dt, .search section label[for]
{
	float: left;
	clear: left;
	margin: 0px 0px 8px -72px;
	padding: 2px 2px 2px 0px;
	color: var(--accent-text);
	font-size: 9pt;
	font-weight: bold;
	line-height: 16px;
}

.search section label[for]
{
	margin-left: 0px;
	margin-right: -80px;
	padding: 3px 2px 3px 0px;
}

.edit section h2
{
	padding-top: 0px;
}

.config dt
{
	margin-left: 16px;
	padding: 0px;
}

.config dd
{
	margin: 0px 0px 8px 180px;
	padding: 0px;
	min-height: 16px;
	line-height: 16px;
}

.edit section+section label[for], .auth label
{
	margin-left: -102px;
}

.search section.filter input
{
	margin-left: 80px;
}

.edit section input[type="text"],
.edit section input[type="email"],
.edit section input[type="url"],
.edit section input[type="color"],
.search section input[type="text"]
{
	width: 270px;
}

.search section input[type="number"],
.search section input[type="date"]
{
	width: 120px;
}

.search section input[type="number"]+span,
.search section input[type="date"]+span
{
	display: inline-block;
	margin: 0px 4px 0px 4px;
	width: 16px;
	text-align: center;
}

.search section.filter span+input
{
	margin-left: 0px;
}

.edit section input[type="password"]
{
	width: 128px;
}

#unpostForm section
{
	position: relative;
	margin-top: -42px;
	padding-top: 7px;
	border-color: var(--notify-border);
	background: var(--notify-background);
	width: 276px;
	height: 24px;
}

#unpostForm section h2
{
	padding-top: 1px;
}

#unpostForm section .buttons
{
	position: absolute;
	right: 4px;
	top: 4px;
}

#unpostForm button, button.unpost
{
	color: #ffffff;
	background-color: #ff3300;
	border-color: #aa0000;
	text-shadow: #aa0000 -1px -1px 0px;
	box-shadow: 1px 1px 0px #ff6633 inset, -1px 1px 0px #ff6633 inset, -1px -1px 0px #ff6633 inset, 1px -1px 0px #ff6633 inset;
}

#unpostForm button:hover, button.unpost:hover
{
	background-color: #ff4422;
	border-color: #cc3333;
}

#unpostForm button:active, button.unpost:active
{
	border-color: #880000;
	box-shadow: 0px 0px 4px #aa0000;
}

#unpostForm button img, button.unpost img
{
	border-color: #ff6633;
	background-color: #aa0000;
}

#unpostForm button:hover img, button.unpost:hover img
{
	background-color: #cc3333;
}

#unpostForm button:active img, button.unpost:active img
{
	background-color: #880000;
}

#commentform, #evaluateform
{
	position: relative;
	margin: 0px 0px 8px 0px;
	padding: 8px;
	border: var(--accent-border) 1px solid;
	border-radius: 0px 4px 4px 4px;
	background: var(--surface);
}

/* 右端の 640px に、右へ向かって濃くなる緑を重ねる */
#evaluateform
{
	background: var(--surface) linear-gradient(to right, rgba(0, 80, 25, 0), rgba(0, 80, 25, 0.6)) no-repeat scroll right top / 640px 100%;
}

#evaluateform p
{
	margin-bottom: 0px;
	height: 16px;
	line-height: 16px;
}

#commentformHeadding, #evaluateformHeadding
{
	display: block;
	margin: 0px 0px -1px 0px;
	padding: 2px 4px 2px 4px;
	width: 64px;
	height: 18px;
	border: var(--accent-border) 1px solid;
	border-bottom: none;
	border-radius: 4px 4px 0px 0px;
	color: var(--on-accent);
	background: var(--accent-fill);
	line-height: 18px;
	text-decoration: none;
	font-weight: bold;
}

#commentformHeadding.tab
{
	margin-left: 74px;
}

#evaluateformHeadding.first, #commentformHeadding.first
{
	margin-top: -22px;
}

#body+#links, .pagerContainer+#links
{
	margin-top: 50px;
}

#evaluateformHeadding.tab
{
	margin-bottom: -24px;
}

#commentformHeadding.inactive, #evaluateformHeadding.inactive
{
	position: relative;
	margin-top: 3px;
	padding-top: 1px;
	padding-bottom: 0px;
	border-color: var(--border);
	border-bottom: var(--accent-border) 1px solid;
	color: var(--link);
	background: var(--surface-alt);
	font-weight: normal;
}

#commentformHeadding.inactive:hover, #evaluateformHeadding.inactive:hover
{
	background: var(--surface);
}

#evaluateformHeadding.inactive
{
	margin-top: -20px;
	margin-bottom: -23px;
}

#commentform input[type="text"],
#commentform input[type="password"],
#commentform input[type="email"]
{
	width: 232px;
}

#commentform button
{
	margin-bottom: 5px;
}

#commentformContent
{
	padding-left: 318px;
	padding-right: 8px;
	width: 494px;
	margin-right: auto;
	margin-left: auto;
}

#commentformContent div
{
	position: relative;
	margin: 0px;
}

#commentformContent div div
{
	position: absolute;
	left: -238px;
	top: 0px;
}

#commentform .notify
{
	margin-bottom: 8px;
}

#commentform select
{
	width: 238px;
}

#commentform textarea
{
	margin-left: 8px;
	width: 480px;
	min-width: 480px;
	height: 48px;
	min-height: 48px;
}

#commentform textarea.usePoint,
#commentform textarea.usePostPassword
{
	height: 78px;
	min-height: 78px;
}

#commentform textarea.usePoint.usePostPassword
{
	height: 108px;
	min-height: 108px;
}

#commentformContent>.buttons
{
	float: none;
	margin: 0px;
	margin-bottom: -4px;
}

.edit section+section input[type="text"]
{
	width: 360px;
}

.edit textarea
{
	width: 360px;
}

.edit textarea[name="body"]
{
	min-height: 420px;
}

.edit section p
{
	margin-top: -8px;
	margin-bottom: 8px;
}

.edit section ul
{
	margin: 0px 0px 8px 0px;
	padding: 0px;
}

.edit section li
{
	display: block;
	list-style-type: none;
}

.buttons,
.edit section ul.buttons,
.search section ul.buttons
{
	display: block;
	margin: 0px 0px 0px auto;
	padding: 0px;
	text-align: right;
}

.search section ul.buttons
{
	clear: both;
}

ul.buttons li,
.search section ul.buttons li
{
	display: inline-block;
	margin: 0px;
	padding: 0px 0px 0px 8px;
}

.search section.admin
{
	float: none;
	padding-left: 8px;
	width: auto;
}

.admin
{
	clear: both;
	padding-left: 8px;
}

.admin .buttons
{
	margin: -4px 0px -4px -4px !important;
	text-align: left !important;
}

.admin button
{
	margin-bottom: 0px;
}

.admin .buttons li
{
	margin: 0px;
	padding: 0px 8px 0px 0px !important;
}

.edit section ul.palette
{
	display: flex;
	margin: -8px 0px 8px 0px;
	padding: 0px;
}

/* 色の入力欄は下の余白が 4px なので、その分だけ引き上げて入力欄の下端に接するようにする */
.edit section input[type="color"]+ul.palette
{
	margin-top: -4px;
}

.edit section ul.palette li
{
	display: block;
	margin: 0px;
	padding: 0px;
	border: var(--border) 1px solid;
	border-left: none;
	border-top: none;
}

.edit section ul.palette li:first-child
{
	border-left: var(--border) 1px solid;
}

/* 見本の大きさは a に直接指定し、正方形にする */
.edit section ul.palette li a
{
	display: block;
	margin: 0px;
	padding: 0px;
	width: 16px;
	height: 16px;
}

/* 無指定の欄は、左下から右上への斜線で表す。斜線が枠と接しないよう、内側に白い余白を設ける */
.edit section ul.palette li:first-child a
{
	background-image: linear-gradient(to bottom right, transparent 44%, #999999 44%, #999999 56%, transparent 56%);
	box-shadow: 0px 0px 0px 1px #ffffff inset;
}

.index h1, .read h1
{
	margin-top: 32px;
}

.index main>h1, .read main>h1
{
	height: auto;
	min-height: 20px;
}

.index .status, .read .status
{
	position: absolute;
	left: 0px;
	top: 64px;
	margin: 0px;
	padding: 0px;
	color: var(--text-muted);
	font-size: 9pt;
}

.index .status+.status, .read .status+.status
{
	left: auto;
	right: 0px;
	top: 56px;
	padding: 4px 8px 4px 0px;
	border: var(--accent-border) 1px solid;
	border-top: none;
	border-radius: 0px 0px 4px 4px;
	height: 16px;
	color: var(--text);
	background: transparent linear-gradient(var(--bar-1) 8.5px, var(--bar-2) 31.5px) no-repeat scroll right bottom / 100% 32px;
	line-height: 14px;
}

.index .status dt, .read .status dt
{
	float: left;
	display: block;
	margin: 0px 4px 0px 4px;
	padding: 0px 0px 0px 4px;
	border-left: var(--text-muted) 1px solid;
}

.index .status dt:first-child
{
	margin-left: 0px;
	padding-left: 0px;
	border-left: none;
}

.index .status dd, .read .status dd
{
	float: left;
	display: block;
	margin: 0px;
	padding: 0px;
}

.index .status dt:after, .read .status dt:after
{
	display: inline;
	content: ": "
}

.index .status+.status dt, .read .status+.status dt
{
	margin-left: 8px;
	padding-left: 0px;
	border-left: none;
}

.read #tags
{
	padding: 0px;
	border: none;
	background: none;
}

.read #tags h2
{
	display: inline;
	margin: 0px;
	margin-right: 8px;
}

.read #tags ul
{
	display: inline;
	margin: 0px;
	padding: 0px;
}

.read #tags li
{
	display: inline;
	margin: 0px 4px 0px 0px;
	padding: 0px;
}

.read #body
{
	position: relative;
	margin: 32px;
	padding: 16px;
	padding-bottom: 8px;
	line-height: 1.3;
	overflow: hidden;
	line-break: strict;
	word-break: normal;
	word-wrap: break-word;
}

.read #body #contentWrapper
{
	/* 行間は表示設定 (script/Read/Index.js) で変えられる */
	line-height: var(--reading-line-height, 1.8);
}

.read #body.serif #contentWrapper
{
	font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
}

.read #body h1
{
	margin: 0px;
	padding: 0px;
	height: auto;
	color: var(--text-muted);
	background: none;
}

.read #body address
{
	margin: 0px 0px 8px 0px;
	padding: 0px;
	color: var(--text-muted);
	font-style: normal;
	text-align: right;
}

.read #body table
{
	border-collapse: collapse;
}

.read #body table th, .read #body table td
{
	border: var(--border) 1px solid;
	padding: 4px;
}

.read .commentIsOnLastPage
{
	margin-bottom: 8px;
	color: var(--text-muted);
}

.read ul.options
{
	position: relative;
	float: right;
	margin: -23px 0px -1px 0px;
	padding: 4px 4px 0px 0px;
	border: none;
	background: none;
	height: 19px;
	z-index: 1;
}

.read .notify+ul.options
{
	margin-top: 0px;
}

.read ul.options li
{
	float: left;
	display: block;
	margin: 0px 0px 0px 4px;
	padding: 0px;
	height: 16px;
}

.read ul.options li
{
	position: relative;
}

.read ul.options li > button
{
	display: block;
	margin: 0px;
	padding: 0px;
	border: none;
	width: auto;
	height: 16px;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.read ul.options li > button img
{
	display: block;
	margin: 0px;
	padding: 0px;
	border: none;
	background: none;
}

.read ul.options li > button:hover img,
.read ul.options button.readingSettingsButton[aria-expanded="true"] img
{
	opacity: 0.7;
}

/* 表示設定のパネル */
.read .readingSettings
{
	position: absolute;
	top: 22px;
	right: -4px;
	z-index: 10;
	padding: 8px 12px 12px 12px;
	width: 20em;
	border: var(--border) 1px solid;
	border-radius: 4px;
	background: var(--surface);
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
	color: var(--text);
	font-size: 9pt;
	line-height: 1.5;
	text-align: left;
}

.read .readingSettings[hidden]
{
	display: none;
}

.read .readingSettings fieldset
{
	margin: 0px 0px 8px 0px;
	padding: 0px;
	border: none;
}

.read .readingSettings legend
{
	margin: 0px 0px 4px 0px;
	padding: 0px;
	color: var(--text-muted);
	font-weight: bold;
}

.read .readingSettings .stepper
{
	display: flex;
	align-items: center;
	gap: 8px;
}

.read .readingSettings .stepper output
{
	min-width: 4em;
	text-align: center;
}

.read .readingSettings button
{
	margin: 0px;
	min-width: 32px;
}

/* 選択肢は、つながったボタンのように並べる */
.read .readingSettings .segmented
{
	display: flex;
}

.read .readingSettings .segmented label
{
	flex: 1;
	position: relative;
	margin: 0px 0px 0px -1px;
	padding: 3px 4px 3px 4px;
	border: var(--border) 1px solid;
	background: var(--button-background);
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
}

.read .readingSettings .segmented label:first-child
{
	margin-left: 0px;
	border-radius: 4px 0px 0px 4px;
}

.read .readingSettings .segmented label:last-child
{
	border-radius: 0px 4px 4px 0px;
}

.read .readingSettings .segmented label:hover
{
	background-color: var(--button-hover);
	color: var(--accent-text);
}

.read .readingSettings .segmented input
{
	position: absolute;
	margin: 0px;
	opacity: 0;
	pointer-events: none;
}

.read .readingSettings .segmented label:has(input:checked)
{
	z-index: 1;
	border-color: var(--accent-border);
	background: var(--accent-fill);
	color: var(--on-accent);
}

.read .readingSettings .segmented label:has(input:focus-visible)
{
	z-index: 2;
	outline: 2px solid var(--accent-soft);
	outline-offset: 1px;
}

.read .readingSettings .note
{
	margin: 4px 0px 0px 0px;
	color: var(--text-muted);
}

.read .readingSettings .actions
{
	text-align: right;
}

.read #body #summary
{
	margin: 0px -8px 24px -8px;
	padding: 8px;
	background: var(--surface-alt);
}

.read #body.vertical
{
	height: 528px;
}

.read #body.vertical #verticalWrapper
{
	position: absolute;
	right: 0px;
	top: 0px;
	margin: 0px;
	padding: 0px;
	width: 100%;
	overflow: auto;
}

.read #body.vertical #contentWrapper
{
	margin: 0px;
	padding: 16px;
}

.read #body #content
{
	margin: 0px 0px 24px 0px;
	padding: 0px;
}

.read #body footer
{
	margin: 8px -8px 0px -8px;
	padding: 0px;
	text-align: right;
}

/*
 * リーダーモード (script/Read/Index.js)。本文の枠をブラウザの中で画面いっぱいに広げ、
 * 上に題名と作者名とボタン、下に読んでいる位置のスライダーとページの移動を置く
 */
html.readerMode,
html.readerMode body
{
	overflow: hidden;
}

.read #body.reader
{
	position: fixed;
	inset: 0px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	margin: 0px;
	padding: 0px;
	border: none;
	border-radius: 0px;
	height: auto;
	overflow: hidden;
}

/* タッチやマウスで全画面のままページを移ったときは、移った先の本文の領域にフォーカスの枠を出さない */
.read #verticalWrapper.noFocusRing:focus
{
	outline: none;
}

/* 上下の帯の間をまるごとスクロールする領域にし、余白はその内側に取る (スクロールバーは画面の端に出る) */
.read #body.reader #verticalWrapper
{
	position: static;
	flex: 1 1 auto;
	box-sizing: border-box;
	margin: 0px;
	padding: 24px 32px;
	width: auto;
	height: auto;
	min-height: 0px;
	overflow: auto;
	overscroll-behavior: contain;
}

.read #body.reader .readerHeader,
.read #body.reader .readerFooter
{
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	margin: 0px;
	padding: 0px 16px;
	background: inherit;
	line-height: 1.3;
	writing-mode: horizontal-tb;
}

.read #body.reader .readerHeader
{
	height: 48px;
	border-bottom: var(--border-disabled) 1px solid;
}

.read #body.reader .readerFooter
{
	height: 56px;
	border-top: var(--border-disabled) 1px solid;
}

.read #body.reader .readerBack
{
	flex: none;
	display: block;
	margin-left: -8px;
	padding: 8px;
	line-height: 0;
}

.read #body.reader .readerBack img
{
	display: block;
	border: none;
}

.read #body.reader .readerBack:hover img
{
	opacity: 0.7;
}

.read #body.reader .readerTitle
{
	flex: 1;
	min-width: 0px;
	margin: 0px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 14px;
}

.read #body.reader .readerTitle .title
{
	font-weight: bold;
}

.read #body.reader .readerTitle .name
{
	margin-left: 1em;
	color: var(--text-muted);
	font-size: 12px;
}

.read #body.reader ul.options
{
	position: static;
	display: flex;
	float: none;
	flex: none;
	margin: 0px;
	padding: 0px;
	height: auto;
}

.read #body.reader .readerFooter input[type="range"]
{
	flex: 1;
	min-width: 0px;
	margin: 0px;
	accent-color: var(--accent-fill);
}

.read #body.reader .readerFooter output
{
	flex: none;
	min-width: 9em;
	color: var(--text-muted);
	font-size: 12px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
}

.read #body.reader .readerFooter button
{
	flex: none;
	margin: 0px;
	padding: 4px 10px;
	width: auto;
}

/* ページの端からさらにスクロールすると前後のページへ移ることの案内と、引っ張った量 */
.read #body.reader .readerEdge
{
	position: absolute;
	left: 50%;
	bottom: 68px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: var(--border-disabled) 1px solid;
	border-radius: 16px;
	background: var(--surface);
	color: var(--text-muted);
	font-size: 12px;
	line-height: 1.3;
	writing-mode: horizontal-tb;
	white-space: nowrap;
	box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s, visibility 0.2s;
}

.read #body.reader .readerEdge.visible
{
	opacity: 1;
	visibility: visible;
}

.read #body.reader .readerEdge .bar
{
	display: block;
	inline-size: 10em;
	block-size: 4px;
	border-radius: 2px;
	background: var(--border-disabled);
	overflow: hidden;
}

.read #body.reader .readerEdge .bar span
{
	display: block;
	inline-size: 0%;
	block-size: 100%;
	background: var(--accent-fill);
}

/* 前のページへの案内は先頭の側 (上) に出す */
.read #body.reader .readerEdge.previous
{
	top: 60px;
	bottom: auto;
}

/* 縦書きでは、次のページへは読み終わる側 (左) に、前のページへは先頭の側 (右) に、本文と同じ縦向きで出す */
.read #body.vertical.reader .readerEdge
{
	top: 50%;
	bottom: auto;
	padding: 16px 8px;
	writing-mode: vertical-rl;
	transform: translateY(-50%);
}

.read #body.vertical.reader .readerEdge.next
{
	left: 16px;
}

.read #body.vertical.reader .readerEdge.previous
{
	left: auto;
	right: 16px;
}

@media (prefers-reduced-motion: reduce)
{
	.read #body.reader .readerEdge
	{
		transition: none;
	}
}

/* 縦書きでは右から左へ読み進めるため、スライダーとページの移動も右から左に並べる */
.read #body.vertical.reader .readerFooter
{
	direction: rtl;
}

/* 横書きでは、1 行が長くなりすぎないよう、文字の大きさに合わせた幅で中央に置く */
.read #body.reader:not(.vertical) #verticalWrapper
{
	padding-left: max(32px, calc((100% - 40em) / 2));
	padding-right: max(32px, calc((100% - 40em) / 2));
}

.read #body.vertical.reader #verticalWrapper
{
	height: auto;
}

/* 読み終わる側に、次のページへの案内の分の余白を取り、あとがきの終わりに案内が重ならないようにする */
.read #body.reader:not(.vertical) #verticalWrapper
{
	padding-bottom: 80px;
}

.read #body.vertical.reader #verticalWrapper
{
	padding-left: 84px;
}

.read #body.reader #contentWrapper
{
	margin: 0px;
	padding: 0px;
}

/* ページを移ったことをスクリーンリーダーに伝える欄は、画面には表示しない */
.read #body.reader .readerStatus
{
	position: absolute;
	margin: -1px;
	padding: 0px;
	border: 0px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* リーダーモードで開いたときの「続きから読む」は、枠の上に重ねて出す */
html.readerMode .read .notify.resume
{
	position: fixed;
	left: 50%;
	bottom: 72px;
	z-index: 1001;
	box-sizing: border-box;
	width: max-content;
	max-width: calc(100% - 32px);
	transform: translateX(-50%);
}

/* 横書きでは、共有ボタンがあとがきの枠の右下に接しないよう余白を空ける */
.read #body:not(.vertical) #afterword footer
{
	margin: 8px 0px 0px 0px;
	padding: 0px 0px 8px 0px;
}

.read #afterword
{
	margin: 64px -8px 0px -8px;
	padding: 8px 8px 0px 8px;
	border: none;
	border-radius: 4px;
	color: var(--text);
	background-color: var(--surface-alt);
}

.read #afterword address
{
	margin: 0px;
	padding: 0px;
	font-style: normal;
	font-weight: bold;
	text-align: right;
}

.read #afterword address a
{
	font-weight: normal;
}

.read #afterword address .host
{
	font-weight: normal;
	color: var(--text-muted);
}

.read #comments
{
	margin: 0px 0px 8px 0px;
	padding: 0px 8px 8px 8px;
	border: var(--accent-border) 1px solid;
	border-radius: 4px;
	background: var(--surface);
}

.read #comments dt
{
	margin: 8px 0px 0px 0px;
	padding: 8px 0px 0px 0px;
	border-top: var(--border) 1px solid;
	line-height: 16px;
}

.read #comments dt:first-child
{
	padding-top: 0px;
	border-top: none;
}

.read #comments dt.evaluation
{
	padding-top: 0px;
	border-top: none;
	color: var(--text-muted);
}

.read #comments dt .point
{
	margin-left: 4px;
}

.read #comments dt .point.none, .read #comments dt.none
{
	color: var(--text-muted);
}

.read #comments dt .point.plus
{
	color: var(--point-plus);
	font-weight: bold;
}

.read #comments dt .point.minus
{
	color: var(--point-minus);
	font-weight: bold;
}

.read #comments dt .name
{
	margin-left: 4px;
	font-weight: bold;
}

.read #comments dt.evaluation .name
{
	font-weight: inherit;
}

.read #comments dt time,
.read #comments dt span.host
{
	float: right;
	color: var(--text-muted);
}

.read #comments dt time:before
{
	display: inline;
	content: "■";
}

.read #comments dt span.host
{
	margin-right: 4px;
}

.read #comments dt>a
{
	float: right;
	margin-right: 4px;
}

.read #comments dd
{
	margin: 0px 0px 0px 16px;
	padding: 0px;
}

.read #evaluateform>.buttons
{
	float: right;
	margin-top: -4px;
	margin-right: -4px;
	padding-left: 0px;
}

.read #evaluateform>ul.buttons>li
{
	display: block;
	float: left;
	margin-left: 0px;
}

.read #evaluateform>div
{
	float: right;
	margin-top: -3px;
}

.read #evaluateform>div.notify
{
	float: none;
	margin-top: 0px;
}

.read #evaluateform>div input[type="password"]
{
	width: 120px;
}

.read #evaluateform>div label
{
	margin-right: 8px;
	color: var(--accent-text);
	font-weight: bold;
}

.pagerContainer
{
	position: relative;
	height: 34px;
}

.pager
{
	position: relative;
	left: 50%;
	float: left;
	margin: 0px 0px 8px 0px;
	padding: 0px;
}

.pager:after
{
	display: block;
	clear: left;
	content: "";
}

.pager li
{
	display: block;
	position: relative;
	left: -50%;
	float: left;
	margin: 0px 2px 0px 2px;
	padding: 0px;
}

.pager li a, .pager li form
{
	display: block;
}

.pager li a, .pager li button
{
	display: block;
	margin: 0px;
	padding: 0px 5px 0px 5px;
	border: var(--border) 1px solid;
	border-radius: 0px;
	color: var(--link);
	min-width: 14px;
	height: 24px;
	background: var(--surface-alt);
	line-height: 24px;
	text-align: center;
	text-shadow: none;
	box-shadow: none;
}

.pager li button
{
	min-width: 26px;
	height: 26px;
}

.pager li a:hover, .pager li button:hover
{
	background: var(--surface);
	text-decoration: none;
}

.pager li:first-child a, .pager li:first-child button
{
	border-radius: 4px 0px 0px 4px;
}

.pager li.last a, .pager li.last button
{
	border-radius: 0px 4px 4px 0px;
}

.pager li a[href="#"], .pager li a[href=""], .pager li button.loopback
{
	border-color: var(--accent-fill);
	color: var(--on-accent);
	background: var(--accent-fill);
	font-weight: bold;
}

.pager li.nav a[href="#"], .pager li.nav a[href=""], .pager li.nav button.loopback
{
	border-color: var(--border);
	color: var(--text-subtle);
	background: var(--surface-alt);
	font-weight: normal;
}

.index .pagerContainer.subjectPager span
{
	float: left;
	display: block;
	height: 26px;
	margin: 0px 4px 0px 4px;
	padding: 1px 0px 1px 0px;
	line-height: 26px;
	font-weight: bold;
}

.index .pagerContainer.subjectPager form
{
	display: inline;
	margin: 0px;
	padding: 0px;
}

.index .pagerContainer.subjectPager select
{
	margin: 0px 2px 0px 2px;
	padding: 1px;
	border: var(--border) 1px solid;
	border-radius: 0px 4px 4px 0px;
	min-width: 56px;
	height: 26px;
	background: var(--surface-alt);
	line-height: 26px;
	font-size: inherit;
	vertical-align: top;
}

.index .pagerContainer.subjectPager button
{
	margin: 0px 2px 0px 2px;
	padding: 1px 4px 1px 4px;
	border: var(--border) 1px solid;
	border-radius: 4px;
	min-width: 14px;
	height: 26px;
	background: var(--surface-alt);
	line-height: 26px;
	font-size: inherit;
	text-shadow: none;
	box-shadow: none;
}

.index .pagerContainer.subjectPager button:hover
{
	color: var(--text);
	background: var(--surface);
}

.index .pagerContainer.subjectPager .pager
{
	left: 0px;
}

.index .pagerContainer.subjectPager .pager li
{
	left: 0px;
}

.read .pager
{
	text-align: center;
}

.index .pagerContainer.subjectPager
{
	position: absolute;
	left: auto;
	right: 0px;
	top: 56px;
	padding: 2px 2px 0px 2px;
	border: var(--accent-border) 1px solid;
	border-top: none;
	border-radius: 0px 0px 4px 4px;
	color: var(--text);
	height: 30px;
	background: transparent linear-gradient(var(--bar-1) 8.5px, var(--bar-2) 31.5px) no-repeat scroll right bottom / 100% 32px;
}

.index .subjectPager .pager
{
	margin-bottom: 0px;
}

.search ul.params
{
	margin: 0px -8px 8px 0px;
	padding: 0px;
}

.search .params li
{
	display: block;
	float: left;
	margin: 0px;
	padding: 0px;
	width: 50%;
}

.dropDown
{
	position: relative;
	display: inline-block;
	margin: 0px;
	padding: 1px 1px 1px 3px;
	border: var(--accent-border) 1px solid;
	border-radius: 3px 0px 0px 3px;
	width: 76px;
	height: 18px;
	background-color: var(--surface);
	font-size: 9pt;
	font-weight: normal;
	line-height: 18px;
	vertical-align: top;
}

.dropDown+.dropDown
{
	border-left: none;
	border-radius: 0px 3px 3px 0px;
}

.dropDown .button
{
	float: right;
	margin: 0px 0px 0px 3px;
	padding: 0px;
	background: var(--accent-fill) url("dropDownIcon.png") no-repeat scroll 0 -18px;
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.dropDown.open
{
	border-radius: 3px 0px 0px 0px;
	color: var(--on-accent);
	background-color: var(--accent-fill);
	box-shadow: 0px 0px 4px var(--accent-fill);
}

.dropDown+.dropDown.open
{
	border-radius: 0px 3px 0px 0px;
}

.dropDown.open .button
{
	background-position: -18px -18px;
}

.dropDown.open>.button
{
	background-color: transparent;
}

.dropDown.ascending .button
{
	background-position: 0px 0px;
}

.dropDown.ascending.open .button
{
	background-position: -18px 0px;
}

.dropDown ul
{
	position: absolute;
	left: -1px;
	top: 21px;
	display: block;
	margin: 0px;
	padding: 0px;
	width: 80px;
	border: var(--accent-border) 1px solid;
	border-top: none;
	border-radius: 0px 0px 3px 3px;
	color: var(--accent-text);
	background-color: var(--surface);
	box-shadow: 0px 0px 4px var(--accent-fill);
	z-index: 1;
}

.dropDown ul li
{
	position: relative;
	display: block;
	padding: 2px 3px 2px 3px;
	height: 16px;
	line-height: 16px;
	cursor: pointer;
}

.dropDown ul li:hover
{
	color: var(--on-accent);
	background-color: var(--accent-fill);
}

.dropDown ul li.listType+.listVisibility
{
	border-top: var(--accent-border) 1px solid;
}

.dropDown ul li .button
{
	position: absolute;
	right: 1px;
	top: 1px;
	background: var(--surface);
}

.dropDown ul li:hover .button
{
	background-color: transparent;
}

.dropDown ul li.selected .button
{
	background: var(--accent-fill) url("dropDownIcon.png") no-repeat scroll 0px -36px;
}

.dropDown ul li:hover.selected .button
{
	background-color: transparent;
	background-position: -18px -36px;
}

.success
{
	padding: 8px;
	text-align: center;
}

body>header form input[name="query"]::placeholder {
	color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="color"],
input[type="number"],
input[type="date"],
textarea,
select {
	min-height: 20px;
	line-height: 21px;
}

body>header form input[type="search"] {
	line-height: 22px;
}

body>header form input[type="submit"] {
	top: 2px;
	right: 2px;
}

.read #body {
	overflow: visible;
}

.read #body.vertical #summary {
	margin: -8px 0px -8px 24px !important;
}

.read #body.vertical #verticalWrapper {
	writing-mode: vertical-rl;
	text-orientation: mixed;
	/* 横書き用の字詰め (カーニング) は縦書きでは字間が不揃いになるため使わず、約物の空きも詰めない */
	font-kerning: none;
	text-spacing-trim: space-all;
	height: 100%;
}

/* 縦中横 (script/Read/Index.js で、短い数字や感嘆符を囲む) */
.read #body.vertical .tcy {
	text-combine-upright: all;
}

.read #body.vertical h1 {
	height: auto;
	margin-left: 8px;
}

.read #body.vertical #content {
	margin-right: 24px;
	margin-bottom: 0px;
}

.read #body.vertical #contentWrapper>address {
	margin-left: 8px;
	margin-bottom: 0px;
}

.read #body.vertical #afterword {
	margin: -8px 64px -8px 0px;
	padding: 8px 8px 8px 0px;
}

.read #body.vertical #afterword footer {
	padding-left: 8px;
	padding-right: 16px;
}

*:first-child+html .taglist li {
	display: inline;
}

input[type="submit"],
input[type="reset"],
input[type="button"],
button {
	box-sizing: border-box;
	box-shadow: 1px 1px 0px var(--bevel) inset, -1px 1px 0px var(--bevel) inset, -1px -1px 0px var(--bevel) inset, 1px -1px 0px var(--bevel) inset;
}

input[type="submit"][disabled],
input[type="reset"][disabled],
input[type="button"][disabled],
button[disabled] {
	box-shadow: 1px 1px 0px var(--bevel) inset, -1px 1px 0px var(--bevel) inset, -1px -1px 0px var(--bevel) inset, 1px -1px 0px var(--bevel) inset !important;
}

#unpostForm button,
button.unpost {
	box-shadow: 1px 1px 0px #ff6633 inset, -1px 1px 0px #ff6633 inset, -1px -1px 0px #ff6633 inset, 1px -1px 0px #ff6633 inset;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="color"],
input[type="number"],
input[type="date"],
textarea,
select {
	box-sizing: content-box;
}

input[type="color"] {
	margin-bottom: 4px;
}

select {
	box-sizing: border-box;
}

@media (max-width: 600px)
{
	body.responsive
	{
		margin: 0px;
		min-width: 0px;
	}
	
	.responsive input[type="text"],
	.responsive input[type="password"],
	.responsive input[type="search"],
	.responsive input[type="email"],
	.responsive input[type="url"],
	.responsive input[type="number"],
	.responsive input[type="date"],
	.responsive textarea,
	.responsive select
	{
		font-size: 16px;
	}
	
	body.responsive>header
	{
		margin: 0px;
		padding: 8px;
		height: auto;
	}

	body.responsive>header:after
	{
		position: absolute;
		left: 0px;
		right: 0px;
		top: 100%;
		height: 8px;
		/* PC ではページの背景が描いているヘッダ下端の線と影を、ヘッダの高さに合わせて描く */
		background: linear-gradient(var(--accent-fill) 1px, rgba(49, 98, 63, 0.34) 1px, rgba(49, 98, 63, 0.34) 1.5px, rgba(49, 98, 63, 0) 7.5px);
		content: "";
	}
	
	body.responsive>header>a:first-child
	{
		display: block;
		font-size: 20px;
	}
	
	body.responsive>header nav
	{
		position: static;
		margin: 0px;
		padding: 0px;
		height: auto;
	}
	
	body.responsive>header nav ul
	{
		margin: 4px 0px 0px 0px;
		padding: 0px;
		height: auto;
		background: none;
		overflow: hidden;
	}
	
	body.responsive>header nav ul li
	{
		margin: 0px 16px 0px 0px;
		height: auto;
		line-height: 32px;
	}
	
	body.responsive>header nav ul li a img
	{
		vertical-align: middle;
	}
	
	body.responsive>header form
	{
		position: relative;
		top: auto;
		right: auto;
		margin: 4px 0px 0px 0px;
		width: auto;
		height: auto;
	}
	
	body.responsive>header form input[type="search"]
	{
		position: static;
		margin: 0px;
		padding: 4px 32px 4px 4px;
		width: 100%;
		height: 32px;
		box-sizing: border-box;
	}
	
	body.responsive>header form input[type="submit"]
	{
		top: 1px;
		right: 1px;
		width: 30px;
		height: 30px;
		box-shadow: none;
	}
	
	.responsive main>h1
	{
		margin: 16px 8px 8px 8px;
		height: auto;
	}
	
	.responsive .status,
	.read .status+.status
	{
		position: static;
		margin: 0px 8px 4px 8px;
		padding: 0px;
		border: none;
		height: auto;
		color: var(--text-muted);
		background: none;
		line-height: inherit;
		overflow: hidden;
	}
	
	.read .status+.status dt
	{
		margin: 0px 4px 0px 4px;
		padding: 0px 0px 0px 4px;
		border-left: var(--text-muted) 1px solid;
	}
	
	.read .status+.status dt:first-child
	{
		margin-left: 0px;
		padding-left: 0px;
		border-left: none;
	}
	
	.read #tags
	{
		margin: 0px 8px 8px 8px;
	}
	
	.responsive .notify,
	.responsive .admin
	{
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	.responsive .admin button
	{
		height: 36px;
		font-size: inherit;
	}
	
	.responsive .pagerContainer
	{
		margin: 0px 8px 0px 8px;
		height: auto;
	}
	
	.responsive .pager
	{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		left: 0px;
		float: none;
		row-gap: 4px;
	}
	
	.responsive .pager li
	{
		left: 0px;
		float: none;
	}
	
	.responsive .pager li a,
	.responsive .pager li button
	{
		min-width: 24px;
		height: 32px;
		line-height: 32px;
	}
	
	.read ul.options
	{
		display: flex;
		justify-content: flex-end;
		float: none;
		margin: 0px 8px 0px 8px;
		padding: 0px;
		height: auto;
	}
	
	.read ul.options li
	{
		float: none;
		margin: 0px 0px 0px 4px;
		height: auto;
	}
	
	.read ul.options li > button
	{
		padding: 12px;
		height: auto;
	}
	
	.read .readingSettings
	{
		top: 44px;
		right: 0px;
	}

	.read #body.reader #verticalWrapper
	{
		padding: 16px;
	}

	.read #body.reader .readerHeader
	{
		padding-right: 4px;
	}

	.read #body.reader .readerBack
	{
		margin-left: -12px;
		padding: 12px;
	}

	.read #body.reader .readerFooter output
	{
		min-width: 0px;
	}
	
	.read #body
	{
		margin: 0px 0px 16px 0px;
		padding: 16px 12px 8px 12px;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	.read #body.vertical #contentWrapper
	{
		padding: 12px;
	}
	
	.read #afterword
	{
		margin-top: 48px;
	}
	
	.read #commentformHeadding,
	.read #evaluateformHeadding
	{
		margin-left: 8px;
	}
	
	.read #commentformHeadding.tab
	{
		margin-left: 82px;
	}

	/* 簡易評価とコメントのタブを、指で押しやすい大きさにする。タブは横に並べ、選んでいるほうを枠につなげる */
	.read #commentformHeadding,
	.read #evaluateformHeadding
	{
		padding: 0px 16px;
		width: auto;
		min-width: 64px;
		height: 36px;
		line-height: 36px;
		text-align: center;
	}

	.read #links:has(> .tab)
	{
		display: flex;
		align-items: flex-end;
		gap: 4px;
		padding-left: 8px;
	}

	.read #links:has(> .tab) > .tab
	{
		margin: 0px 0px -1px 0px;
	}

	/* 選んでいないほうの下線は、枠の上の線と重ねる */
	.read #links:has(> .tab) > .tab.inactive
	{
		height: 32px;
		line-height: 32px;
	}

	.read #links:has(> .tab) + #evaluateform,
	.read #links:has(> .tab) ~ #commentform
	{
		margin-top: 0px;
	}

	/* ページの先頭へのリンクも、指で押しやすい高さにする */
	body.responsive>footer>ul:first-child+a
	{
		padding: 10px 28px 10px 16px;
		background-position: right 8px center;
	}
	
	.read #commentform,
	.read #evaluateform,
	.read #comments
	{
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	.read #evaluateform>.buttons
	{
		float: none;
		margin: 0px;
		text-align: left;
	}
	
	.read #evaluateform>ul.buttons>li
	{
		padding: 0px 8px 0px 0px;
	}
	
	.read #evaluateform input[type="submit"]
	{
		min-width: 44px;
		height: 36px;
		font-size: inherit;
	}
	
	/* お知らせのボタンを、指で押しやすい高さにする */
	.responsive .notify
	{
		--notify-button: 36px;
	}

	.responsive .notify>.buttons :is(input, button)
	{
		font-size: inherit;
	}
	
	.read #evaluateform>div
	{
		float: none;
		margin: 0px 0px 8px 0px;
	}
	
	.read #evaluateform p
	{
		height: auto;
	}
	
	.read #commentformContent
	{
		padding: 0px;
		width: auto;
	}
	
	.read #commentformContent div div
	{
		position: static;
	}
	
	.read #commentform label
	{
		float: none;
		display: block;
		margin: 0px;
	}
	
	.read #commentform input[type="text"],
	.read #commentform input[type="password"],
	.read #commentform input[type="email"],
	.read #commentform select
	{
		padding: 4px;
		width: 100%;
		height: 36px;
		box-sizing: border-box;
	}
	
	.read #commentform textarea,
	.read #commentform textarea.usePoint,
	.read #commentform textarea.usePostPassword,
	.read #commentform textarea.usePoint.usePostPassword
	{
		margin: 0px 0px 8px 0px;
		padding: 4px;
		width: 100%;
		min-width: 0px;
		height: 120px;
		box-sizing: border-box;
	}
	
	.read #commentform button
	{
		height: 36px;
		font-size: inherit;
	}
	
	.read #comments dd
	{
		margin-left: 8px;
		overflow-wrap: anywhere;
	}
	
	body.responsive>footer
	{
		display: flex;
		flex-direction: column-reverse;
	}
	
	body.responsive>footer>ul:first-child
	{
		margin: 0px;
		padding: 8px;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	body.responsive>footer>ul:first-child+a
	{
		position: static;
		align-self: flex-end;
		margin: 0px 8px -1px 0px;
		z-index: 1;
		border-top: var(--border) 1px solid;
		border-bottom: none;
		border-radius: 4px 4px 0px 0px;
		/* 作品の背景色が style 属性で指定されるため、フッタと同じ色で上書きする */
		background-color: var(--surface-alt) !important;
	}
	
	.responsive .headdingButtons
	{
		position: static;
		margin: 0px 8px 8px 8px;
	}
	
	.responsive .pagerContainer.subjectPager
	{
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		margin: 0px 0px 8px 0px;
		padding: 4px 8px 4px 8px;
		/* ページの途中に置くので、ほかの欄と同じく上下を線で区切る */
		border-top: var(--accent-border) 1px solid;
		border-left: none;
		border-right: none;
		border-radius: 0px;
		height: auto;
		/* 帯の高さが変わっても、グラデーションは帯の全体に伸ばす */
		background-image: linear-gradient(var(--bar-1) 27%, var(--bar-2) 98%);
		background-size: 100% 100%;
		row-gap: 4px;
	}
	
	.responsive .pagerContainer.subjectPager span
	{
		float: none;
	}
	
	.responsive .pagerContainer.subjectPager select
	{
		height: 34px;
	}
	
	.responsive .notes
	{
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	.responsive div.entries
	{
		margin: 0px;
	}
	
	.responsive div.entries article
	{
		display: block;
		width: auto;
	}
	
	.responsive div.entries article .articleBody
	{
		margin: 0px 0px 8px 0px;
		padding: 8px 12px 8px 12px;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	/* 折り返した行の先頭に区切り線が来ないよう、区切り線をやめて間隔で区切る */
	.responsive div.entries dl dt
	{
		margin: 0px;
		padding: 0px;
		border-left: none;
		white-space: nowrap;
	}
	
	.responsive div.entries dl dd
	{
		margin-right: 12px;
		white-space: nowrap;
	}

	/* HTML の出力ではタグ間の空白が詰められるため、項目の後に改行できる位置を作る */
	.responsive div.entries dl dd:after
	{
		white-space: normal;
		content: "\200B";
	}
	
	/* 並べ替えと表示形式のメニューは、件数の後で改行して 2 つ並べる */
	.responsive main>h1>span:not(:last-child)
	{
		margin-right: 0px;
	}
	
	.responsive main>h1>span:not(:last-child):after
	{
		display: block;
		content: "";
	}
	
	/* 見出しのアイコン分の字下げを打ち消し、左右の余白をヘッダと同じ 8px にして 2 つを等分に並べる */
	.responsive .dropDown
	{
		margin-top: 8px;
		padding: 4px 4px 4px 6px;
		width: calc(50% + 12px);
		height: 36px;
		line-height: 26px;
		font-size: 14px;
		box-sizing: border-box;
	}
	
	.responsive h1 .dropDown:not(.dropDown+.dropDown)
	{
		margin-left: -24px;
	}
	
	.responsive .dropDown .button
	{
		margin-top: 4px;
	}
	
	.responsive .dropDown ul
	{
		top: 34px;
		width: calc(100% + 2px);
		box-sizing: border-box;
	}
	
	.responsive .dropDown ul li
	{
		padding: 8px 6px 8px 6px;
		height: 18px;
		line-height: 18px;
	}
	
	.responsive .dropDown ul li .button
	{
		top: 8px;
		right: 6px;
		margin-top: 0px;
	}
	
	.responsive section.entries
	{
		padding: 0px;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	/* テーブル表示は 1 作品ずつのカードに組み替える */
	.responsive .entries table,
	.responsive .entries table tbody,
	.responsive .entries table tr,
	.responsive .entries table td
	{
		display: block;
	}
	
	.responsive .entries table thead
	{
		display: none;
	}
	
	.responsive .entries table tr.article
	{
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		padding: 8px 12px 4px 12px;
		column-gap: 8px;
	}
	
	.responsive .entries table td
	{
		padding: 0px;
		width: auto;
		min-width: 0px;
		text-align: left;
	}
	
	.responsive .entries table td.title
	{
		flex: 1 0 100%;
		margin-bottom: 4px;
	}
	
	.responsive .entries table td.checkbox+td.title
	{
		flex-basis: calc(100% - 24px);
	}
	
	.responsive .entries table td.checkbox
	{
		width: 16px;
	}
	
	.responsive .entries table h2
	{
		font-size: 120%;
	}

	.responsive .entries table td.title br
	{
		display: none;
	}

	.responsive .entries table td.title .host
	{
		display: block;
	}
	
	.responsive .entries table td.dateTime,
	.responsive .entries table td.lastUpdate,
	.responsive .entries table td.info
	{
		width: auto;
		color: var(--text-muted);
		font-size: 90%;
		white-space: nowrap;
	}
	
	.responsive .entries table td.lastUpdate:before
	{
		content: "更新: ";
	}
	
	.responsive .entries table td.pageCount:before
	{
		content: "ページ: ";
	}
	
	.responsive .entries table td.readCount:before
	{
		content: "閲覧: ";
	}

	.responsive .entries table td.evaluationCount:before
	{
		content: "評価: ";
	}
	
	.responsive .entries table td.commentCount:before
	{
		content: "コメント: ";
	}

	.responsive .entries table td.points:before
	{
		content: "POINT: ";
	}
	
	.responsive .entries table td.rate:before
	{
		content: "Rate: ";
	}
	
	.responsive .entries table tr.tags td
	{
		padding: 4px 12px 8px 12px;
	}
	
	.responsive .entries table .hidden
	{
		display: none;
	}
	
	.search section.filter
	{
		margin: 0px 0px 8px 0px;
		padding: 8px 12px 0px 12px;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	.search ul.params
	{
		margin: 0px;
	}
	
	.search .params li
	{
		float: none;
		margin: 0px 0px 4px 0px;
		width: auto;
	}
	
	.search section label[for]
	{
		float: none;
		display: block;
		margin: 0px 0px 4px 0px;
	}
	
	.search section.filter input
	{
		margin-left: 0px;
		padding: 4px;
		height: 36px;
		box-sizing: border-box;
	}
	
	.search section input[type="text"]
	{
		width: 100%;
	}
	
	/* 範囲指定の 2 つの入力欄は「～」を挟んで 1 行に並べる */
	.search section input[type="number"],
	.search section input[type="date"]
	{
		width: calc(50% - 12px);
	}
	
	.search section ul.buttons
	{
		margin-bottom: 8px;
	}
	
	.search section ul.buttons button
	{
		height: 36px;
		font-size: inherit;
	}
	
	.recent div.entries h1
	{
		margin-left: 8px;
		margin-right: 8px;
	}
	
	.responsive div.entries article .notify
	{
		margin-left: 0px;
		margin-right: 0px;
	}
	
	.edit section,
	.edit section:first-child,
	.edit section+section
	{
		float: none;
		margin: 0px 0px 8px 0px;
		padding: 8px 12px 0px 12px;
		width: auto;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	.edit section label[for],
	.edit section+section label[for],
	.edit section h2
	{
		float: none;
		display: block;
		margin: 0px 0px 4px 0px;
	}
	
	.edit section .notice
	{
		margin-left: 0px;
	}
	
	.edit section input[type="text"],
	.edit section input[type="email"],
	.edit section input[type="url"],
	.edit section input[type="password"],
	.edit section input[type="color"],
	.edit section+section input[type="text"],
	.edit textarea
	{
		padding: 4px;
		width: 100%;
		box-sizing: border-box;
	}
	
	.edit section input[type="text"],
	.edit section input[type="email"],
	.edit section input[type="url"],
	.edit section input[type="password"],
	.edit section input[type="color"],
	.edit section+section input[type="text"]
	{
		height: 36px;
	}
	
	.edit textarea[name="body"]
	{
		min-height: 320px;
	}
	
	.edit section ul.palette li a
	{
		width: 32px;
		height: 32px;
	}
	
	.edit section ul.buttons button
	{
		height: 36px;
		font-size: inherit;
	}
	
	#unpostForm section
	{
		margin-top: 0px;
		padding-top: 8px;
		padding-bottom: 8px;
		width: auto;
		height: auto;
	}
	
	#unpostForm section .buttons
	{
		right: 12px;
		top: 8px;
	}
	
	#unpostForm button
	{
		height: 36px;
		font-size: inherit;
	}
	
	.responsive section,
	.responsive .taglist
	{
		padding-left: 12px;
		padding-right: 12px;
		border-left: none;
		border-right: none;
		border-radius: 0px;
	}
	
	/* section のお知らせ欄は、左にアイコンの余白を残す (ボタンのあるお知らせは、アイコンを文言の横に並べる) */
	.responsive section.notify:not(:has(> .buttons))
	{
		padding-left: 32px;
		padding-right: 8px;
	}
	
	.responsive .notify
	{
		overflow-wrap: anywhere;
	}
	
	.auth section
	{
		padding-bottom: 8px;
	}
	
	.auth label
	{
		float: none;
		display: block;
		margin: 0px 0px 4px 0px;
	}
	
	.auth input[type="password"]
	{
		padding: 4px;
		width: 100%;
		height: 36px;
		box-sizing: border-box;
	}
	
	.auth button
	{
		height: 36px;
		font-size: inherit;
	}
	
	/* 設定情報は、項目名を値の上に置く */
	.config dt
	{
		float: none;
		margin: 0px;
		padding: 0px;
	}
	
	.config dd
	{
		margin: 0px 0px 8px 0px;
		overflow-wrap: anywhere;
	}
}

/*
 * ダークモード
 * 配色の値だけを置き換える
 */
@media (prefers-color-scheme: dark)
{
	:root
	{
		--page-background: #141a16;
		--header-1: #1f2120;
		--header-2: #1d1f1e;
		--header-3: #1b1d1c;
		--header-4: #191b1a;
		--header-5: #171918;
		--bar-1: #2e302f;
		--bar-2: #252726;
		--text: #e2e4e2;
		--text-muted: #a8aca9;
		--text-subtle: #868a87;
		--link: #8cb4ff;
		--surface: #1f2120;
		--surface-alt: #2a2c2b;
		--surface-hover: #262827;
		--border: #565a57;
		--border-disabled: #3c3f3d;
		--accent-text: #8fd1a6;
		--accent-border: #3d7a52;
		--accent-fill: #1f5f36;
		--accent-soft: #5aa37c;
		--on-accent: #ffffff;
		--button-background: #2c2e2d;
		--button-hover: #363937;
		/* 暗い地では灰色の影が明るく見えるため、上半分を白で明るくし、下半分を黒で暗くして立体感を出す */
		--button-gradient: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3));
		--button-icon: #5d615e;
		--bevel: rgba(255, 255, 255, 0.06);
		--notify-border: #8a6d1a;
		--notify-background: #332d17;
		--point-plus: #8cb4ff;
		--point-minus: #ff8080;
	}

	/* 作品ごとに指定されたページの背景色は、本文の枠の中だけに使う */
	html
	{
		background-color: var(--page-background) !important;
	}

	/*
	 * ヘッダのメニューのアイコンとドロップダウンの矢印は、白地から形を抜いた画像を緑の地に重ねている。
	 * 暗い背景では白地が枠に見えるため、色を反転して白地を黒にし、screen で背景になじませる。
	 * 抜いた形は、緑の地を反転して色相を戻した明るい緑になる
	 */
	body>header nav ul li a img,
	.dropDown:not(.open) .button,
	.dropDown ul li.selected:not(:hover) .button
	{
		filter: invert(1) hue-rotate(180deg);
		mix-blend-mode: screen;
	}

	/* 虫眼鏡のアイコンは白地の画像のため、白を入力欄の暗い色に近づける */
	body>header form input[type="submit"]
	{
		filter: invert(0.88);
	}

	/*
	 * 作者が文字色、背景色、背景画像を指定した作品や、本文で文字の色を指定している作品は、
	 * 指定された配色で読めるよう、本文の枠の中だけ明るい配色のままにする (値は先頭で定義)
	 */
	/* 作者の指定 (Read/Index.php の .read #body) を優先するよう、詳細度を 0 にする */
	:where(.read #body.authorColors, .edit textarea#body.authorColors)
	{
		color-scheme: light;
		color: var(--text);
	}
}
