@charset "utf-8";
/** 共通 */
:root {
	--im: 75px;
	--ir: 1em;
}

dfn {
	font-weight: bold;
}
h1 {
	line-height: normal;
	height: auto;
	margin: 0;
}
.work h3 {
	margin-top: 2em;
	background: var(--cg-theme);	/*#4c506d;*/
	color: white;
	padding: 0.3em;
	/* padding-bottom: 0.5em; */
	border-left: none;
	vertical-align: middle;
}
.work h3:before {
	content: "|";
	font-size: 1.4em;
	margin-right: 0.2em;
	display: inline-block;
}
.mainbooks p.misc:before,
.digit:after,
#searchres li:before {
	content: "";
	background-repeat: no-repeat;
	border: none;
	display: inline-block;
	margin-right: 6px;
}
.mainbooks p.misc:before,
.digit:after {
	/*background-color: hsl(var(--cb-hue) var(--db-sat) var(--cb-lgh));*/
	/*background-position-y: -1px;*/
	height: 20px;
	width: 20px;
	vertical-align: middle;
}

/** 検索結果 */
li b {
	background: rgb(255 255 210 / 0.8);
}
section ul li {
	list-style: none;
}
section > ul > li {
	margin-bottom: 0.5em;
}
section > ol > li {
	margin-bottom: 0.2em;
}
/*
#searchres > li:before {
	content: "作品";
	color: white;
	background: #a0a0a0;
}
#searchres li li:before {
	content: "収録";
	color: gray;
}
*/
#searchres li:before {
	background-color: hsl(var(--cb-hue) var(--db-sat) var(--cb-lgh));
	border: none;
	height: 16px;
	width: 16px;
}

#searchres li:before {
}
#searchres > li:before {
	content: "";
	/*background-color: var(--cg-theme);*/
}
#searchres li li:before {
	content: "";
	/*background-color: hsl(var(--cb-hue) var(--db-sat) calc(var(--cb-lgh) * 0.6)); var(--cg-theme);*/
}
#searchres {
	padding: 1em 2em;
	background: hsl(from var(--bg-body) h s 98%);
}
div section ul li:before {
	/*width: 1em;*/
}
section ul li:before {
	content: "G";
	color:gray;
}
ul li.book:before {
	content: "本";
	color: white;
	background: silver;
}
section ul li:before {
	font-size: 66%;
	border: 1px gray dotted;
	padding: 0 1px;
	margin-right: 4px;
	vertical-align: middle;
	display: inline-block;
	text-align: center;
}

span.more {
	font-size: 80%;
	color: gray;
	border: dotted 1px gray;
	margin-left: 0.5em;
	padding: 0.1em 0.15em;
	width: 0.9em;
	height: 1em;
	line-height: 1.2;
	display: inline-block;
	text-align: center;
	cursor: copy;
}
ul.more {display: none;}
ul.more.as {display: block;}


/** 主要著作リスト */
/*** mainbooks */
section.mainbooks > div {
	/*display: flex;*/
}
section.categ {
	/*width: 47%;
	margin-right: 2%;*/
}
/*
.main > section {
	background: var(--bg-l3);
}
*/
section.mainbooks {
	/*margin-top: 2em;
	border-top: 1px dotted silver;
	padding-top: 0.8em;*/
	position: relative;
	/*background: var(--bg-l1);*/ /*white*/
}
.mainbooks hgroup {
	display: flex;
	background: transparent;
}
.mainbooks h2 {
	padding-right: 2em;
	margin-bottom: 0;
}
.mainbooks p.misc {
	font-size: 85%;
	color: #444;
	margin: 0.5em 0 0;
}
.mainbooks p.misc:before {
	vertical-align: middle;
}
.mainbooks > div {
	background: white;
	padding: 1em;
}

/*** 作品単位dl */
/*.grp dl*/
#bycat dl {
	column-count: 2;
	comumn-gap: 2em;
}
dl div {
	margin-bottom: 1em;
	padding: 1em 0;
	min-height: calc(var(--im) + 0.4em);
	clear: left;
	break-inside: avoid;
	border-top: black solid 1px;	/*2px*/
}
dl div:nth-child(odd){
	background: #f6f6f66b;
}
dl figure  {
	height: var(--im);
	width: var(--im);
	float:left;
	margin: 0.2em var(--ir) 0.2em 0;
	text-align: center;
	background: #ddd;
}
figure img {
	height: var(--im);
}
dt {
	font-weight: bold;
	/*background: var(--bg-l4);*/
	padding: 0.5em 0;
	margin-left: calc(var(--im) + var(--ir));
	margin-bottom: 0.5em;
	border-bottom: 1px rgb(192 192 192 / 0.6) solid;
}
div dd {
	margin-left: calc(var(--im) + var(--ir));
	display: flex;
	border-bottom: 1px rgb(192 192 192 / 0.15) solid;
	padding: 0.5em 0;
	word-break: break-word;
}
#dswitcher > span:before,
div dd:before {
	content: "❯";	/*>*/
	margin-right: 0.4em;
}
div dd:last-child {
	/*border-bottom: 1px silver solid;*/
	/*border-bottom: none;*/
}
div dd span:first-child {
	width: 5em;
	flex-shrink: 0
}
div dd span.toggler {
	cursor: pointer;
	margin-left: auto;
	width: 9em; /*2em*/
}
/*
div dd:before {
	content: "•";
	display: inline-block;
	margin-left: 1em;
	color: #999;
}
*/

/*** 並び順セクション切り替え*/
#dswitcher {
	background: transparent;
	padding: 0;
}
#dswitcher > span {
	display: inline-block;
	width: 8em;
	padding: 0.5em; /*0.5em 0;*/
	/*text-align: center;*/
	border: #eee 1px solid;
	border-bottom: none;
	cursor: pointer;
	background: var(--bg-dark);
	color: white;
}
#dswitcher > span.current {
	background: white;
	color: black;
	cursor: default;
}
#dswitcher > span.current:before {
	color: var(--cg-accent);
}
.grp nav a:before {
	content: "|";
	color: silver;
	margin: 0 0.5em;
	text-decoration: none;
	display: inline-block;
}
.grp nav a:first-child::before {
	content: "";
	margin: 0;
}

:is(#byyear, #byndc) dt:after {
	content: attr(data-cat);
	font-weight: normal;
	font-size: 80%;
	margin-left: 1em;
	padding: 0.1em 0.5em 0;
	border: silver 1px solid;
	background: white;
	color: #555;
}

/*** その他 */
/*デジタル化あり*/
.digit:after{
	margin-left: 6px;
	/*
	content: "★";
	color:gray;
	font-size: 80%;
	vertical-align: super;
	*/
}
form input[type=text] {
	height: 1.65em;
	width: 30em;
}

a:link {
	text-decoration-color: hsl(240deg 100% 83% / 0.8);
}
a:visited {
	text-decoration-color: hsl(271deg 22% 74% / 0.8);
}
a:link:hover {
	text-decoration-color: hsl(240deg 100% 32%);
}
a:visited:hover {
	text-decoration-color: hsl(271deg 68% 32%);
}


/** メディアクエリ */
@media (min-width: 1000px) {
	section ul ul {padding-left: 50px;}
}
@media (max-width: 800px) {
	section > ul {padding-left: 0;}
	section ul ul {padding-left: 2em;}
	.grp dl,
	#bycat dl {
		column-count: 1;
	}
	div dd span.toggler {
		width: auto;
	}
}
@media (max-width: 600px) {
	section > ul {padding-left: 0;}
	section ul ul {padding-left: 2em;}
	section.mainbooks > div {display: block;}
	section.categ {width: 100%; margin-right: 0;}
	form input[type=text] {width: auto;}
}
