@charset "utf-8";
/*** basic rules */
/** common variables and grand structure*/

:root {
	/** basic HLS bg / link text color values */
	/* color-background basic hsl components */
	--cb-hue: 240deg;
	--cb-sat: 52%;	/*39%*/
	--cb-lgh: 88%;	/*86%*/
	/* color-background multiplier */
	--cb-mul-dk: 0.82;	/* color-background multiplier darker */
	--cb-mul-md: 0.87;	/* color-background multiplier middle */
	--cb-mul-lg: 1.09;	/* color-background multiplier lighter */
	
	/* color-link decoration multipliers */
	--cl-deco-sat: 87%;
	--cl-deco-lgh: 73%;
	--cl-deco-alph: 0.25;
	
	/* size related */
	--pimg-w: 200px;	/* primimgの幅 */
	--s-mg-l: 1rem;	/* sectionの左（および一部で右）マージン */
	--wd-term-ratio: 22%;	/* col.term＝describeでのプロパティ名セルの比率 */
	--wd-term: calc((100vw - var(--s-mg-l)) * var(wd-term-ratio));	/* 全体から左マージンを除いて計算する */
	--wd-term-min: 130px;
	--wd-term-pad: 0.3em;
}
/* can override basic HLS ratio by body[data-type=xxx] */
body {

	--bg-basic: hsl(var(--cb-hue) var(--cb-sat) var(--cb-lgh));
	--bgd-l: calc(var(--cb-lgh) * var(--cb-mul-dk));	/* background dark -- lightness */
	--bgt-l: 95%;	/* 88% * 1.09 = fix table lightness regardress of color scheme */
	/*--bgt-l: calc(var(--cb-lgh) * var(--cb-mul-lg));*/	/* background table -- lightness */
	--bgth-l: 77%;	/* 88% * 0.87 = fix table lightness regardress of color scheme */
	/*--bgth-l: calc(var(--cb-lgh) * var(--cb-mul-md));*/	/* background table header -- lightness */
	
	/*--bg-dark: hsl(var(--cb-hue) var(--cb-sat) calc(var(--cb-lgh) * var(--cb-mul-dk)));*/
	--bg-dark: hsl(from var(--bg-basic) h s var(--bgd-l));
	--bg-table: hsl(from var(--bg-basic) h s var(--bgt-l));
	--bg-th: hsl(from var(--bg-basic) h s var(--bgth-l));
	--bg-header: hsl(from var(--bg-th) h s l / 0.8);
	--bg-hdeven: hsl(from var(--bg-th) h s l / 0.75);
	/* lighter colors and table cell */
	--bg-l0: var(--bg-table);
	--bg-l1: hsl(from var(--bg-table) h s l / 0.9);
	--bg-l2: hsl(from var(--bg-table) h s l / 0.55);
	--bg-l3: hsl(from var(--bg-table) h s l / 0.4);
	--bg-l4: hsl(from var(--bg-table) h s l / 0.25);
	
	--bg-body: hsl(from var(--bg-basic) h s 95% / 0.15);
	--bg-term: hsl(from var(--bg-basic) h s 86% / 0.16);	/*#f7f7fc*//*0.25*/
	--bg-type: hsl(from var(--bg-basic) h s 95% / 0.95);
	--bg-agential: hsl(57deg 100% 96% / 0.56);
	--bg-spatial: hsl(40deg 75% 95% / 0.76);
	--bg-temporal: hsl(31deg 100% 96% / 0.51);
	
	/* link text colors */
	--tx-link: hsl(240deg 100% 46%);
	--tx-llink: hsl(from var(--tx-link) h s l / 0.5);
	--tx-dlink: hsl(from var(--tx-link) h s calc(l * 0.7));
	--tx-dhead: hsl(from var(--tx-link) h s calc(l * 0.7));
	--tx-blink: hsl(from var(--tx-link) h s calc(l * 1.3));
	--tx-link-decor: hsl(from var(--tx-link) h var(--cl-deco-sat) var(--cl-deco-lgh) / var(--cl-deco-alph));
	--tx-visited: hsl(305deg 94% 24%); 
	--tx-visited-decor: hsl(from var(--tx-visited) h var(--cl-deco-sat) var(--cl-deco-lgh) / var(--cl-deco-alph));
	
	--wd-term: 22%;

}
html {
	margin: 0;
	padding: 0;
	min-height: 100%;
}
body {
	background: linear-gradient(var(--bg-body), var(--bg-l2));
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-size: 100%;
}
body[data-type=prepare] {
	--cv-r: 223;
	--cv-g: 223;
	--cv-b: 223;
}
/* added large grouping section 2024-08-31 */
.main {
	flex: 1;
}
#easyspql {
	margin: 0;
	padding: 0;
	background: transparent;
}
#footer,
footer {
	font-size: 85%;
	width: 100%;
}

/*
	--tx-visited: rgb(
		calc(min(192, min(128, max(26, var(--cv-tr) - 33, var(--cv-tr) * 0.7)) + 64)),
		calc(min(128, max(26, var(--cv-tg) - 33, var(--cv-tg) * 0.7))),
		calc(min(128, max(26, var(--cv-tb) - 33, var(--cv-tb) * 0.7))),
	);
*/


/** header and h1 */

#header,
header {
	padding: 0.1em;/*0.5em;*/
}
.snorql h1 {
	font-size: 85%;
	/*color: #533;*/
}
header.intro {
	padding: 0.5em;
}
.snorql header.intro h1,
.snorql .container h1 /* on error */
{
	font-size: 160%;
	color: #400;
}
.snorql #header,
.snorql header,
.snorql .section,
.snorql section {
	background: var(--bg-basic); /*override style.css*/
}

.snorql h1,
.snorql h2 {
	color: var(--tx-dhead) ; /*#400*/
}
.snorql h1,
.snorql .section h2,
.snorql section h2 {
	/*text-shadow: 1px 1px 2px #ddd;*/ /*#dcdcff*/ /* #dadaff */
}
#result .empty {
	color: var(--tx-dhead);
	text-shadow: 0px 1px 1px #d6d6fc;
}
/*@media (min-width: 600px) {*/
	.section,
	section {
		/*margin: 1em 1em 0;*/
		margin: 1em var(--s-mg-l) 0;
		padding: 0.8em 1.5em;
	}
/*}*/
#moreform {
	margin: 0 var(--s-mg-l); /*1em;*/
	padding: 0.8em 1.5em;
}
#footer,
footer {
	font-size: 85%;
	width: 100%;
}

/** misc */
.busy:after {
	/*content: url(spinner.gif);*/
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url(spinner.gif) no-repeat;
	background-size: contain;
	vertical-align: -4px;
}
img[src$="spinner.gif"] {
	width: 16px;
}

h2, .uri, .literal {
	word-break: break-all
}
.describe span.literal {
	white-space: pre-wrap;
	display: block;
	max-height: 15em;
	overflow-y: auto;
}
.misc {
	color: gray;
	font-size: 80%;
}
/** link anchors */
.uri a:hover,
*[itemprop='url'] a:hover,
a.uri:hover,
a.qname:hover,
td a[href].prop:hover,
.queryresults a[href^="?query="] {
	text-decoration-color: var(--tx-link-decor); /*rgba(80, 80, 255, 0.33)*/
}
.uri a:visited:hover,
*[itemprop='url'] a:visited:hover,
a.uri:visited:hover,
a.qname:visited:hover,
td a[href].prop:visited:hover,
.queryresults a[href^="?query="]:visited {
	text-decoration-color: var(--tx-visited-decor); /*rgba(80, 80, 255, 0.33)*/
}
a:visited {
	color: var(--tx-visited);
}

a:not([href]):hover {
	text-decoration: none;
	cursor: default;
}

/** min display mode */
body.min h1 {
	font-size: 16px;
	line-height: 1;
}
body.min h2 {
	display: none;
}
body.min td .literal {
	display: inline-block;
	max-width: 46em;
}
body.min .plus3 .literal {
	display: inline-block;
	max-width: 38em;
}
body.min section {
	padding: 0.4em 1.5em
}
body.min .ctrl0 {
	margin: 0 0 -0.2em;
}
body.min .ctrl1 {
	margin: 0.2em 0 -0.3em;
}
body.min #prefixestext {
	height: 3.3em;
}
body.min .CodeMirror {
	height: 189px;
}
body.min .spread select.example {
	height: 190px;
}
body.min .strigger {
	color: rgba(140, 140, 140, 0.08); /*rgba(124, 121, 200, 0.08)*/
}

/*** select query */
/** queryresults table row */
table.queryresults {
	background: white;
}
/*original color */
.snorql .queryresults th {
	/*background: #b9b9fd;*/
	background: var(--bg-header);
}
/* changed to nth-child from .even/.odd classes 2021-12-09 */
.snorql .queryresults th:nth-child(even) {
	background: var(--bg-hdeven);
}
.snorql .queryresults tr:nth-child(odd) td {
	background: var(--bg-l2); /*#f2f2ff*/ 
}
.snorql .queryresults tr:nth-child(even) td {
	background: var(--bg-l0); /*#eae9ff*/
}
.snorql .queryresults tr:nth-child(odd) td:nth-child(even) {
	background: var(--bg-l3); /*#f4f3ff*/
}
.snorql .queryresults tr:nth-child(even) td:nth-child(even) {
	background: var(--bg-l1); /*#ecebff*/
}

#ressection.intro {
	background: var(--bg-l3); /*rgba(242, 242, 254, 0.6)*/
}



/** query info */
#querytext {
	width: 100%;
	height: 300px;
	font-size: 100%;
	padding: 0.1em 0.3em;
}
.queryresults {
	border-collapse: collapse;
	margin-top: 0.3em; 
	margin-bottom: 1em; 
	min-width: 1000px;
}
.queryresults th {
	/* adjusted for sbholder */
	position: relative;
	padding-right: 0.9em;
}
.queryresults td {
	min-width: 4em; /*2.5em*/
}
.queryresults.plus5 td {
	max-width: 1200px;
}
.queryresults.plus3 td {
	max-width: 1600px;
}
.queryresults.even th {
	width: 50%;
}
#prefixestext {
	color: #555;
	margin: 0; 
	height: 4.5em;
	overflow-y: scroll;
	resize: vertical;
	padding: 0.1em 0.3em;
}


/** query section switcher */
#qsection h2 {
	display: inline-block;
}
#qsection.toggle h2 {
	cursor: pointer;
}
#qsection .switcher {
	float: none;
	color: var(--bg-l0);
	padding-left: 2px;
}
#qsection.hide > div {
	display: none;
}
/** query examples */
div.spread {
	position: relative;
	padding-right: 350px;
}
.spread select.example {
	position: absolute;
	top: 0;
	right: 0;
	width: 351px;	/* padding ++ 1 to collapse border */
	height: 301px;	/* border of codemirror ? */
	border: 1px #f6f6f6 inset;
}
.spread select.example option {
	padding: 0 4px 1px; 
	cursor: pointer;
}
.spread select.example option:nth-child(even) {
	background: rgb(248 248 248 / 0.5); 
}
div.spread select.example option:hover {
	background: var(--bg-l2); /*rgb(241 241 255 / 0.7);*/
	color: #009;
}
.spread select.example option:first-child {
	text-align: center;
	background: var(--bg-l1); /*#f4f0fd;*/
	height: 23px;	/*minor adjust */
	cursor: default;
}
div.spread select.example option:checked {
	/* to avoid default background */
	/*background: #eee8ff linear-gradient(0deg, #eee8ff 0%, #eee8ff 100%);*/
	background: var(--bg-l0) linear-gradient(0deg, var(--bg-l0) 0%, var(--bg-l0) 100%);
	color: black !important;
}
div.spread select.example:focus option:checked {
	background: gray;
}
/* @media max-width 1000 -> change padding/width */


/** increment (select query result table) */
.pseudolink.skipper {
	color: #99f;
	letter-spacing: -10px;
	display: inline-block;
	width: 1.2em;
	margin-left: -0.2em;
}
.ism .pseudolink.skipper {
	letter-spacing: -4px;
	margin-left: 0;
}
.ism .pseudolink.left::first-letter {
	margin-right: 2px;
}
.isa .pseudolink.skipper {
	letter-spacing: -1px;
	margin-left: 0.2em;
	margin-right: -0.3em;
}
.isa .pseudolink.left::first-letter {
	margin-right: 2px;
}
.skipper:hover {
	color: blue;
}
.incCtrl .wait {
	color: rgb(140 140 140);
	text-decoration: none;
	cursor: default
}
.incCtrl a {
	display: none
}
.incCtrl a.active {
	display: inline
}
.incCtrl select {
	margin-left: 0.5em;
}
.ctrl0 {
	margin: -0.2em 0 0.2em;
}
.ctrl1 {
	margin: 0.3em 0 -0.5em;
}
.queryresults tbody.wait {
	display: none
}
.queryresults.showall tbody.wait {
	display: table-row-group;
}
.pager {
	font-size: 90%;
}
.pager input {
	margin-left: 0.5em;
	width: 2em;
	background: rgba(255,255,255,0.6);
	border: 1px solid silver;
	font-size: 100%;
	height: 1em;
	text-align: right;
	padding-right: 0.25em;
}
a, 
.switcher,
.pseudolink {
	cursor: pointer;
	color: var(--tx-link); /*blue*/
}
td a.prop {
	color: var(--tx-dlink); /*#0000ac*/
}
td a.prop:hover {
	color: var(--tx-blink); /*#0000ac*/
}
/** sorter */
span.sbholder {
	display: inline-block;
	/*vertical-align: sub;*/
	/*float: right;*/
	margin-left: 0.3em;
	position: absolute;
	right: 0.33em;
	top: 0.33em;
}
span.sortbtn {
	display: block;
	color: #6d6d6d; /*#9696aa var(--tx-llink)*/ 
	text-shadow: 0px 1px 1px #ededed; /*#dadaff var(--tx-link-decor)*/
	line-height: 1;
	cursor: pointer;
	font-size: 65%;
}
span.sortbtn:hover,
span.sortbtn.now {
	color: black;
}
span.sortbtn:hover {
	background: var(--bg-l4); /*rgba(136, 136, 255, 0.33)*/
}

/*switcher class is also used for sub-table toggler */
.switcher {
	display: inline-block;
	float:right;
}

/** subtext */
table.describe .subtext,
table.queryresults .subtext {
	font-size: 90%;
	color: #666;
	font-weight: normal;
	/* so as to selected text will be better turtle sample */
	user-select: none !important;
}
table.queryresults .subtext {
	margin-left: 1em;
}
table.queryresults .subtext.pseudolink:hover {
	color: blue;
}
table.nosubtext .subtext {
	display: none;
}
table.nosubtext th .subtext {
	display: inline;
}
table.queryresults .subtext:before {
	content: "(";
}
table.queryresults .subtext:after {
	content: ")";
}
/* query link in result table */
.queryresults a[href^="?query="] {
	/*color: #063dc2;*/
}
.queryresults a[href^="?query="]:hover {
	color: #0096fc;
	text-decoration-color: var(--tx-dlink); /*rgb(30 30 255 / 0.5);*/
}

/*** describer */
/** describer table */
table.describe {
	width: 100%;
	border: 1px solid #ccc;
	margin-bottom: 1em;
	background: white;
}
/*
div > table.describe {
	background: white;
}
*/
.describe td.repeated {
	display: none;
}

/** table column / on propety */
col.term {
	/*width:22%;*/
	/*入れ子テーブルも一定にする。calcで * 22%とすると何故かtable-layout:fixedのときにうまく行かない*/
	width: var(--wd-term); /*calc((100vw - var(--s-mg-l)) * 0.22);*/
	min-width: var(--wd-term-min);
	background: var(--bg-term);
}
table.describe .type {
	background: var(--bg-type);
}
table.describe .agential {
	background: var(--bg-agential);
}
table.describe .spatial {
	background: var(--bg-spatial);
}
table.describe .temporal {
	background: var(--bg-temporal);
}

td[itemprop=abstract] a {
	margin-left: 0.8em;
}

/* individual policy definition */
table.describe .ipd .subtext {
	color: green;
}
td[itemprop="license"] img {
	max-height: 16px;
	max-width: 80px;
	vertical-align: middle;
	margin-left: 3px;
}
td[itemprop="license"] img[src^="https://licensebutton"] {
	filter: opacity(55%);
}

/* addex.ncname_hint */
table.describe .more-chname td {
	border-top-style: double;
	border-top-width: 3px;
}
.more-chname td a {
	text-decoration-color: var(--tx-link-decor); /*rgba(80, 90, 140, 0.33)*/
	text-decoration-line: underline;
}

/* rdf list */
td.rdflist {
	color: gray;
	width: 2em;
}
/* multi values with more than 1000 */
td span.scl {
	display: block;
	height: 15em;
	overflow-y: scroll;
	resize: vertical;
}

/** readable property description label */
/* to add readable label berore property qname. see yma 2024-08-17 */
span[data-pdesc]:before {
	content: attr(data-pdesc);
	color: var(--tx-dlink);
	margin-right: 8px;
	min-width: 4em;
	text-align-last: justify;
	display: inline-block;
}
span[data-pdesc] a {
	color: gray;
	font-size: 12px;
}
/*
span[data-pdesc].twochar:before {
	letter-spacing: 8px;;
}
span[data-pdesc].twochar a {
	letter-spacing: normal;
	text-indent: -12px;
}
*/

/** describer row toggler */
td .toggler,
td .switcher {
	font-size: 80%;
	color: gray;
	display: block;
}
td .toggler:hover {
	cursor: pointer;
	text-decoration: underline;
}
td .toggler:before {
	content: "(";
}
td .toggler:after {
	content: ")";
}
td[rowspan] {
	position: relative;
}
td .toggler {
	position: absolute;
	bottom: 5px;
	right: 10px;
}
/* td .switcher toggles sub-description table */
td .switcher {
	margin-right: 0.5em;
}

/** table border */
/* for rowspan x relative bug in Chrome */
table.describe {
	border-collapse: separate;
	border-spacing: 0;
	border-style: none solid solid none;
	background-color: white;
}
table.describe, table.describe th, table.describe td {
	border-collapse: collapse;
}
table.describe th, table.describe td {
	border: 1px solid #ccc;
	padding: var(--wd-term-pad);
	vertical-align: top;
}
table.describe td {
	border-style: solid none none solid;
}

/** nested describer */

table.describe table {
	border-collapse: collapse;
	border-style: solid;
}
table.describe table.describe {
	margin-bottom: 0;
}

/** caption */
table.describe caption {
	text-align: left;
}
td table.describe caption {
	font-size: 80%;
	color: gray;
}
td table.describe caption:before {
	content: "<";
}
td table.describe caption:after {
	content: ">";
}
td table.describe.viabnode caption:before {
	content: "(";
}
td table.describe.viabnode caption:after {
	content: ")";
}


/** describer link */
a.dlink {
	color: var(--tx-dlink);
}
a.dlink:hover {
	text-decoration-color: rgb(var(--cv-ltr) var(--cv-ltg) var(--cv-ltb) / 0.33); /*rgba(80, 90, 140, 0.33)*/
	background-color: var(--bg-l4); /*rgba(184, 198, 219, 0.1)*/
}
a.dlink.subtext {
	text-decoration-color: var(--tx-link-decor); /*rgba(148, 148, 255, 0.33)*/
}

td a.uri.dlink:after {
	content: ">➹";
}

/* expander for trimed long URI */
a span.exspn {
	color: black;
	background-color: var(--bg-l4); /*rgba(184, 198, 219, 0.1)*/
	cursor: zoom-in;
}
a span.exspn.expanded {
	cursor: zoom-out;
}

/* a marked value, e.g. incoming triple */
span.marked {
	border-bottom: silver dotted 1px;
	display: inline-block;
	height: 1.4em;
	margin-left: 0.4em;
}
/*⟴✈♘♐☄✴✲❉↗➶*/
/* external link */
a.extlink,
a.extlink img {
	user-select: none !important;
}

/** object-subject-property table */
div.osp {
	margin-top: 1em;
}
div.ops table {
	width: 100%;
}


/** describer image */
#ressection {
	position: relative;
	margin-top: 0.8em;
}
#ressection figure {
	margin:0 ;
	padding: 0;
	z-index: 30;
	position: relative;
}
#ressection figure.primimage,
#ressection div.waka {
	position: absolute;
	top: 0;
	right: 0;
	box-shadow: 2px 2px 8px rgb(0 0 0 / 0.3);
}
#ressection figure.primimage img {
	max-width: var(--pimg-w);
	max-height: 200px;
	background: rgb(255 255 255 / 0.6);
	display: block;
}
#ressection figure.primimage img:hover {
	cursor: zoom-in;
}
#ressection figure.primimage img.still:hover {
	cursor: default;
}
#ressection figure.primimage img:active,
#ressection figure.primimage.zoomed img {
	max-width: calc(100vw - 3em); /*1200px; added 1em space for ctrl*/
	max-height: calc(100vh - 4.5em); /*1000px;*/
	cursor: zoom-out;
}
#ressection figure.primimage img.still:active {
	max-width: var(--pimg-w);
	max-height: 200px;
	cursor: default;
}

/** primimage toggler */
.waka .wbar,
.primimage .wbar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	font-size: 10px;
	writing-mode: horizontal-tb;
	text-align: center;
	cursor: pointer;
}
.primimage .wbar {
	height: 16px;
	background: linear-gradient(#f1efd733, #fefdfd33);
	color: var(--bg-l2); /*#fcfcfc44;*/
}
.primimage .wbar:hover,
.primimage.hide .wbar {
	background: linear-gradient(#f1efd7aa, #fefdfdaa);
	color: var(--tx-llink); /*#ddd;*/
}
.primimage.hide {
	height: 12px;
	min-height: 12px;
	padding: 0 2em;
	overflow: hidden;
}
.primimage.zoomed .wbar {
	display:none;
}

/* brightness control */
#ressection figure .ctrl {
	display: none;
	position: absolute;
	top: 0;
	left: -18px;
	opacity: 0.6;
	color: #eee;
	background: rgb(192 192 192 / 0.8);
	height: 22px;
	line-height: 1;
	cursor: pointer;
}
figure .ctrl span {
	font-size: 18px;
	vertical-align: top;
	display: inline-block;
	margin: 3px 0 0 2px;
	width: 16px;
}
#ressection figure input[type=range] {
	width: 120px;
}
#ressection figure.zoomed .ctrl {
	display: block;
}
#ressection figure.zoomed .ctrl:hover,
#ressection figure.zoomed .ctrl:active,
#ressection figure.zoomed .ctrl.show {
	color: #eef263;
	opacity: 1;
}

/* exhibition item image */
td figure.subimage {
	float: right;
}
td figure.subimage img {
	max-height: 150px;	/*90px*/
	max-width: 200px;	/*120px*/
}


/*** extensions */
/** map */
td {
	position: relative;
}
td.map {
	/* only map container td is static = attatch the map to parent td */
	position: static;
}
td.map > div {
	height: 140px;
	width: 200px;
	position: absolute !important;
	right: 0;
	top: 0;
	z-index: 20;
}
/* not direct properties */
.viabnode col.term {
	background: transparent;
}
table.viabnode td,
table.viabnode td a
span.structbnode
 {
	color: #555555;
}
/*graph draw*/
.strigger {
	float: right;
	color: rgb(140 140 140 / 0.15); /*rgba(124, 121, 200, 0.15)#c2c0fc*/
	cursor: pointer;
	margin-right: 0.5em;
}
.strigger:hover {
	color: rgb(140 140 140 / 0.25);
}
/** title/image finder */
a.finder {
	float: right;
	margin-right: 0.5em;
	font-size: 70%;
	text-decoration: none;
	color: rgb(21 21 21 / 0.25);
}
a.finder:hover {
	color: rgb(21 21 21 / 0.5);
	cursor: pointer;
}
td[itemprop=isbn] a.finder {
	float: none;
	margin-left: 0.3em;
}
div.finder {
	position: absolute;
	top: 34px;
	left: 4em;
	display: none;
	width: max-content;
	min-width: 600px;
	min-height: 50px;
	z-index: 30;
	font-size: 80%;
	border: 1px solid #ccc;
	background: #fcfcfc;
}
.thumb div.finder {
	background: #f8f9ff;/*#fefaf0;*/
}
div.finder.show {
	display: block;
}
div.finder.bookinfo {
	width: 40em;
	font-size: 90%;
	box-shadow: 2px 1px 2px rgb(0 0 0 / 0.3);
	max-height: 20em;
	overflow-y: scroll;
}
div.finder.bookinfo > p {
	font-weight: bolder;
	margin: 0 0 0.3em;
	padding: 0.3em;
	background: #eef;
}
div.finder div.fbox {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-start;
	max-width: 90vw;
	padding: 0 3px 3px;
}
div.finder.bookinfo div.fbox {
	padding: 0 0.7em 0.7em;
}
div.finder p {
	text-align: center;
	margin: 0.5em 0 0;
}
div.finder div.fbox span {
	min-width: 100px;
	min-height: 90px;
	/*border: silver solid 1px;*/
	box-shadow: 2px 2px 4px rgb(0 0 0 / 0.3);
	padding: 0.5em;
}
div.fbox span img {
	max-width: 180px;
	border: transparent solid 1px;
}
.thumb div.fbox img {
	max-width: 130px;
	max-height: 130px;
}
div.fbox span img:hover {
	border-color: blue;
}
div.fbox span a {
	color: blue;
	text-decoration: none;
}
div.fbox span a:hover {
	text-decoration: underline;
}
div.finder .closer {
	position: absolute;
	top: 0;
	width: 1.3em;
	line-height: 1.3;
	text-align: center;
	color: gray;
	border: transparent solid 1px;
}
div.finder .closer:hover {
	cursor: pointer;
	color: #333;
	background: #eee;
	border-color: silver;
}
/* hilite excerpts test, assumes white background area */
span.literal em {
	font-style: normal;
	background: rgb(255 255 190 / 0.2);
}
.pseudoquery:hover {
	text-decoration: underline;
	text-decoration-color: var(--tx-link-decor); /*rgba(158, 158, 255, 0.23)*/
}
/* hilite section via Util.check_hilite() */
.qshilite {
	border: 3px fuchsia solid !important;
}

/** easy sparql */
#moreform {
	background: var(--bg-l0);; /*f2edf8*/
	/* see .section for margin, padding */
}
#moreform input[type=text] {
	width: 8em;
}
#moreform input[type=submit] {
	height: 1.8em;
	margin-left: 0.5em;
}
#moreform.ja span[lang=en],
#moreform.en span[lang=ja] {
	display: none;
}
input[name=who] {
	background: #fff7d18f;
}
input[name=where] {
	background: #f9edd68f;
}
input[name=when] {
	background: #fdefef69;
}
input[name=title] {
	background: #f8f7f9a1;
}
input[name=text] {
	background: #f8f7f9a1;
}
table.describe .ats td {
	background: transparent;
}
table.describe .ats > tr > td:nth-child(2) {
	background: #fefefe9c;
}
table.describe .type > tr > td:nth-child(2),
table.describe .label > tr > td:nth-child(2) {
 	background: rgb(250 250 250 / 0.50); /*rgba(247, 247, 252, 0.50)*/
}

td img.thumb {
	max-width: 150px;
	max-height: 80px;
}
.expandimg td img.thumb {
	max-width: 350px;
	max-height: 300px;
}
.toggler {
	cursor: pointer;
}
/*.with_pimg h2 はスクリプト制御に変更*/

/** gallery 2022-11-27 */
table.gallery thead {
	display: none;
}
table.gallery tbody,
.queryresults.showall.gallery tbody {
	display: flex;
	flex-wrap: wrap;
	/*align-items: start;*/
}
table.gallery.fixed tbody {
	background: var(--bg-l4) ;/*#f4f3ff;*/
}
table.gallery tr {
	display: flex;
	flex-direction: column-reverse;
	margin: 0 6px 6px 0;
}
#result .queryresults.gallery td {
	background: var(--bg-l2) ;/*#eeecff;*/
}
table.gallery td {
	display: inline-block;
	width: 200px;
	padding: 0 6px;
	font-size: 80%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}
table.gallery td.thumb {
	/*height: 200px;*/
	text-align: center;
	padding: 6px;
	flex-grow: 1;
}
table.gallery img.thumb {
	max-width: 200px;
	max-height: 200px;
}
table.gallery td span{
}
table.gallery a.uri {
	width: 100%;
	display: inline-block;
	overflow-x: scroll;
	scrollbar-width: thin;
	scrollbar-color: #ddf #eee;
	direction: rtl;
}
table.gallery a.uri::-webkit-scrollbar{
   height: 3px;
}
table.gallery a.uri::-webkit-scrollbar-track{
   background-color: #eee;
}
table.gallery a.uri::-webkit-scrollbar-thumb{
   background-color: #ddf;
}
table.gallery a.extlink {
	display: none;
}
/** cluster map */
.clmap {
	position: absolute;
	z-index: 10;
	min-width: 85%;
	box-shadow: 2px 5px 5px rgb(87 87 87 / 60%);
}
.clmap .leaflet-popup-content img {
	max-width: 300px;
}
table.map tbody {
	display:none;
}
/** waka */
.waka {
	writing-mode: vertical-rl;
	min-width: 160px;
	min-height: 400px;
	padding: 2em 1em 2em 1.5em;
	font-family: serif;
	background: white url("washi.jpg");
	font-size: 105%;
	z-index: 10;
}
.waka.hide {
	height: 12px;
	min-height: 12px;
	padding: 0 2em;
}
.waka.hide span {
	display: none;
}
/* .wbarの基本設定は.primimage .wbarと共通 */
.waka .wbar {
	height: 20px;
	background: linear-gradient(#f1efd7, #fefdfd);
	color: #fcfcfc;
}


.waka span {
	display: block;
	max-height: 600px;
}
.waka .kotoba {
	max-height: 440px;
	margin-top: 1em;
}
.waka .verse {
	font-size: 150%;
	/*white-space: nowrap;*/
	line-height: 2;
	margin-right: 0.5em;
}
.waka .author {
	text-align: end;
	font-size: 114%;
	line-height: 1.2;
}
.waka .shimo {
	/*text-align: end;*/
	margin-top: 6em;
}
.waka .nav {
	position:absolute;
	bottom: 0;
	display: block;
	width: 2em;
	height: 1.5em;
	color: #fcfcfc;
	text-decoration: none;
}
.waka .nav.prev {
	right: 0;
}
.waka .nav.next {
	left: 0;
}
.waka.hide .nav {
	display: none;
}
.waka a.nav:hover {
	color: silver;
}

/*** media query */
@media (max-width: 1200px) {
	.queryresults {
		min-width: max(90%, 780px);
	}
	div.spread {
		padding-right: 280px;
	}
	div.spread select.example {
		width: 281px;
	}
}
@media (max-width: 1050px) {
}
@media (max-width: 875px) {
	table.describe td.maplabel {
		vertical-align: bottom;
	}
	.queryresults {
		width: 100%;
		min-width: 100%;
	}
}
@media (max-width: 780px) {
	.queryresults {
		width: 100%;
	}
	td {
		word-break: break-all;
	}
	:root {
		/* 単位なしの 0 ではcol.termの幅計算がおかしくなる */
		--s-mg-l: 0px !important;
	}
	section, .section, #moreform {
		/*margin: 1em 0;*/
		padding: 0.6em 0.8em;
	}
	.isa span.sbholder {
		top: 0.15em;
	}
	span[data-pdesc] a {
		display: block;
		font-size: 11px;
	}
	a.finder {
		position: absolute;
		top: 5px;
		right: 0;
	}
}
@media (max-width: 600px) {
	section, .section, #moreform {
		padding: 0.6em 0.4em;
	}
}
@media (max-width: 540px){
	--wd-term-min: 0;
}
/*** fix for external css */
/* CodeMirro fix 2022-09-08 */
#qsection .CodeMirror-scroll {
	overflow-y: scroll !important;
	overflow-x: auto !important; /* changed to adjust input[button] problem on Chrome 2022-09-08 */
	/* 30px is the magic margin used to hide the element's real scrollbars --> reduced to 16px for the above problem */
	margin-bottom: -16px; margin-right: -16px;
	padding-bottom: 16px;
}
