@charset "utf-8";
/** 基本原則 */
:root {
	--rm-w: 390px; /*432px;*/
	--rm-mr: 30px;
}
section#vbkshelf,
section#ndcdist {
	background: var(--bg-l1);
	position: relative;
}

/** 平面図配置 */
section#vbkshelf h3 {
	font-weight: normal;
	color: var(--tx-dhead);
}
div#rmaps {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	/*transform: scale(0.8);
	margin-left: -10%;*/
}
#rmaps > section {
	position: relative;	/*absolute*/
	background: transparent;
	padding: 0;
	margin-right: var(--rm-mr);
	width: var(--rm-w);
	background: white;
}
#rmaps > section.floorplan {
	text-align:center;
}
#rmaps > section.noplan {
	display: flex;
	flex-direction: column;
}

#rmaps > section h3 {
	background: black;
	color: white;
	text-align:center;
	padding: 3px 0;
}
#rmaps > section p {
	font-size: 90%
}
section.noplan p {
	margin: auto 1.5rem 0.5rem;
}
#roomND p {
	position: absolute;
	bottom: 50px;
	left: 40px;
	background: #f6f4f2;
}
section.noplan ul {
	padding-left: 1.5rem;
}
section.noplan li {
	list-style: none;
}
section.noplan li:before {
	content: "❯";	/*>*/
	margin-right: 0.6em;
	color: var(--cg-accent);
}



:is(div, ul).room {
	position: relative;
	display: inline-block;
	margin: 1em; /*1em 1em 0;*/
	padding: 0;
}
:is(div, ul).room,
:is(div, ul).room img {
	max-height: 350px;
}
:is(div, ul).room img {
	width: 320px;
}
:is(div, ul)#roomND img {
	width: 350px;
}
	/*
#roomNA {
	transform: scale(0.75);
	margin: -4% -16%;
}
#roomNC {
	transform: scale(0.9);
	margin: 4% -6%;
}
	*/
.room ul {
	margin: 0;
	padding: 0;
}
.room :is(div, li) {
	position:absolute;
	background: #b99;
	color: white;
}
.room :is(div, li) {/*:not(a)*/
	display: flex;
	align-items: center;
	justify-content: center;
}
.room :is(div, li) a {
	display: flex;
	align-items: center;
	justify-content: center;
}
.room :is(div, li):not(:has(a)) {
	border: 1px solid #f6f4f2;
	box-sizing: border-box;
	cursor: default;
}
.room :is(div, li) a {
	width: 100%;
	height: 100%;
	text-decoration: none;
	border: white solid 1px;
	color: white;
}
.room :is(div, li) a[href] {
	background: url(../images/s-shelf.jpg) var(--bg-dark);	/*#fcc;*/
}
.room :is(div, li) a[href]:hover {
	background: var(--bg-dark);	/*#fdd;*/
}

/** threed */
.room img.show3d {
	position: absolute;
	cursor: pointer;
	z-index: 10;
	width: 32px;
	height: 32px;
	filter: grayscale(1);
	opacity: 0.6;
}
.room img.show3d:hover {
	opacity: 1;
}
div.threed {
	position: absolute;
	top: 32px;
	left: 0;
	right: 0;
	z-index: 20;
	width: 800px;
	max-width: 90vw;
	height: 400px;
	max-height: 45vw;
	margin: 1em auto;
	box-shadow: 2px 2px 8px rgb(0 0 0 / 0.8);
	display:none;
}
.threed .closer {
	position: absolute;
	z-index: 20;
	top: 0;
	left: 5px;
	color:gray;
	cursor: pointer;
	font-size: 20px;
	background: white;
	display: block;
	height: 18px;
	line-height: 1;
	padding: 2px;
}
.threed .closer:hover {
	color: var(--tx-link);
}
.psv-download-button ,
.psv-fullscreen-button {
	display:none;
}

.psv-label {
	border: 1px solid gray;
	background: var(--bg-l1); /*rgba(255 255 255 / 0.7);*/
	padding: 0.2em 0.5em;
}
.psv-label:hover {
	border-color: var(--tx-link);
	background: white;
	cursor: pointer;
}
#psv-marker-NC16 {
	z-index: -10;
}

/** NDC分布テーブル */
#ndcmap {
	height: 87vh; /*calc(1.5em * 25);*/
	overflow-y: auto;
	/*display: inline-block;*/
	border: #ddd solid 1px;
	background: white;
}
#ndcmap.open {
	height: auto;
}
#ndcmap,
#ndcdist p {
	max-width: calc(var(--rm-w) * 3 + var(--rm-mr) * 2);
}
#ndcmap table {
	border-collapse: collapse;
	width: 100%;
}
#ndcmap thead {
	position: sticky;
	top: 0;
	background: #393532; /*#eee;*/
	color: white;
	z-index: 1;
}
#ndcmap th {
	font-weight: normal;
	padding: 2px 4px;
	font-size: 90%;
	min-width: 3em;
}
#ndcmap th.nondc {
	padding: 2px 0;
}
#ndcmap thead tr th:first-child{
	min-width: 0;
}
#ndcmap tbody :is(th, td) {
	border-bottom: #c7c7c7 solid 1px;
	padding: 6px 3px;
}
#ndcmap tbody th {
	text-align: left;
	font-size: 100%;
	/*width: 20em;*/
	padding-right: 1em;
	letter-spacing: 0.1em;
	background: #f7f7f7; /*#fafafa;*/
	white-space: nowrap;
	min-width: fit-content;
}
#ndcmap tbody.b1 th {
	background: #f0f0f0; /*#f3f3f3;*/
}
#ndcmap tbody th.roomlabel {
	writing-mode: tb;
	text-orientation: upright;
	text-align: center;
	letter-spacing: 0.5em;
	padding: 0;
	/*background: #f6f6f6;*/
	/*border-bottom-color: #f6f6f6;*/
}
#ndcmap tbody th.roomlabel span{
	writing-mode: lr;
	letter-spacing: 0 !important;
	display:none;
}
#ndcmap tbody.b1 th.roomlabel{
	/*background: #eee;*/
	/*border-bottom-color: #eee;*/
}
#ndcmap :is(#ndc-NB, #ndc-TA) th.roomlabel 
{
	letter-spacing: 0.25em;
}
#ndcmap td {
	/*border: #eee solid 1px;*/
	font-size: 80%;
	text-align: center;
}
#ndcmap tbody tr td:last-child {
	color: #666;
	font-size: 75%;
}
#ndcmap td.nb {
	border: none;
}
#ndcmap td.dense {
	color: white;
}
#ndcmap td span {
	display: inline-block;
	background-color: hsl(var(--cb-hue) 66% var(--ndc-lt));
	/*border: #eee solid 1px;*/
	width: 100%;
}
#ndcmap td span:after {
	content: "%";
	color: gray;
	font-size: 80%;
	vertical-align: super;
}
#ndcmap td.dense span:after {
	color: #ddd;
}
#ndcdist em {
	font-style: normal;
	text-decoration: underline;
}
#ndcdist p span,
table.legend span {
	display: inline-block;
	padding: 0 8px;
	border: #eee solid 1px;
}
#ndcdist p span::first-letter,
table.legend span::first-letter {
	color: white;
}
#ndcdist p {
	text-align: right;
}
#ndcdist button {
}
/* legend table */
table.legend {
	font-size: 75%;
	margin-bottom: 1em;
}


/** メディアクエリ */
@media (max-width: 1110px){
	#ndcmap thead span {
		display: none;
	}
}
@media (max-width: 1030px){
	html {
		--mdsp: 0.5rem;
		--secpad: 0.5rem;
		--rspace: 1rem;
	--msec-pt:	0.5rem;
	}
	div.room,
	div.room img {
		/*max-height: 300px;*/
		max-width: 350px;
	}
	#ndcmap tbody th {
		/*width: 20em;*/
		padding-right: 0.5em;
		letter-spacing: 0;
	}
}
@media (max-width: 890px){/*842px*/
	#rmaps section {
		margin-right: 10px;
	}
}
@media (max-width: 840px){
	#rmaps section {
		margin-right: 5px;
	}
	/*
	#ndcmap {
		display: inline-block;
	}
	#ndcmap table {
		width: auto;
	}
	*/
	#ndcmap th {
		min-width: 0;/*2.8em;*/
	}
	#ndcmap tbody a span {
		display: none;
	}
	#ndcmap tbody th.roomlabel span{
		display: inline;
	}
}
@media (max-width: 760px){
	/*
	#ndcmap th {
		min-width: 2em;
	}
	div.room,
	div.room img {
		max-height: 250px;
		max-width: 300px;
	}
	*/
}
@media (max-width: 700px){
	/*
	div.room,
	div.room img {
		height: 35vw;
	}
	*/
	div.main > section {
		padding: 0.8em;
	}
}
@media (max-width: 630px){
	div.room,
	div.room img {
		max-width: 100%;
		height: auto;
	}
}
