@charset 'utf-8';

.outage-numbers .num {
	display: inline-block;
}

.show-detail {
	display: inline;
	margin: 0;
	padding: 0;
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	color: var(--link-text-color);
	border: currentColor;
	border-image: none;
	background: none;
}

.show-detail:hover {
	text-decoration: underline;
	color: rgb(153, 204, 221);
}

.statusbox {
	position: relative;
	display: none;
	margin: 1% 0 0;
	padding: 14px 0 0;
}

.statusbox .streetname {
	font-size: 16px;
	font-weight: bold;
	text-align: center;
}

.statusbox dl {
	font-size: 100%;
	display: grid;
	justify-content: space-between;
	grid-template-columns: auto 1fr;
	grid-gap: .5em;
	align-items: flex-start;
	grid-gap: 1em .5em;
}

.statusbox dl:not(.active) {
	display: none;
}

.statusbox dt {
}

.statusbox dd {
	/* margin-top: 8px; */
}

.statusbox dt {
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	flex-basis: 30%;
	padding: 0 1em;
	text-align: right;
	text-align: left;
	color: #35a1b1;
	border-right: none;
}

.statusbox dd {
	font-size: 110%;
	font-weight: bold;
	line-height: 1.3;
	display: inline-flex;
	align-items: center;
	/* width: 60%; */
	border-left: none;
}

.statusbox dd .comment {
	font-weight: normal;
}

.statusbox dd .repairtime {
	display: inline-block;
	margin-bottom: .24ch;
}

@media screen and (max-width:460px) {
	.statusbox dt {
		display: block;
		width: auto;
		padding: 0 .4ch;
		text-align: left;
	}

	.statusbox dd {
		width: 100%;
	}

	.multi-comment p::before {
		display: none !important;
	}
}
@media screen and (max-width: 767px) {
.multi-comment {
	font-size: 12px;
	padding: 0 10px;
}

.status-shown .statusbox-wrapper {
	position: fixed;
	top: auto !important;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	transform: translateX(0);
}

.statusbox-overflow {
	margin: 0;
	padding: 10px;
}


.statusbox {
	padding-top: .4ch;
}

.statusbox .streetname {
	margin-bottom: .4ch;
	padding: .24ch 0;
}

.statusbox dt {
	font-size: 12px;
	align-items: flex-start;
	flex-basis: auto;
	width: 22%;

	/* padding: 0.24ch 0.4ch; */

	white-space: nowrap;
}

.statusbox dd {
	font-size: 14px;
	line-height: 1.3;
	display: inline-flex;
	align-items: center;
	flex-grow: 1;
	padding: 0 .24ch .24ch 1em;
}

.legend-wrapper {
	padding-top: 0;
}

.legend .label {
	font-size: 11px;
	padding: 10px 3px;
}

a.btn_type1.popup-table {
	display: inline-block;
	width: auto;
	max-width: 90%;
	margin: 5px 0 0;
}

.inner-tablist li button {
	padding: 0 1.4ch;
}
}



@media screen and (min-width: 768px) {
	.statusbox dt {
		flex-basis: auto;
		padding: .4ch 0 .4ch 0;
		white-space: nowrap;
	}

	.statusbox dd {
		flex-grow: 1;
		/* padding: 1em 1em 1em 0; */
		/* width: 35%; */
	}

	.statusbox dd.w1 {
	grid-column: span 3;
	}


	.inner-tablist li button {
		font-size: 14px !important;
	}

	.statusbox dl {
		grid-template-columns: repeat(2,auto 1fr);
		grid-template-rows: auto;
		grid-template-areas:
			"dt-datetime dd-datetime dt-causes dd-causes"
			"dt-status dd-status  dd-status  dd-status"
			"dt-recovery dd-recovery  dd-recovery  dd-recovery";
		grid-gap: 0.5em 1em;
		align-items: center;
		margin: 0 1em 1em;
	}

	.dt-datetime{
		grid-area:dt-datetime;
	}
	.dd-datetime{
		grid-area:dd-datetime;
	}
	.dt-causes{
		grid-area:dt-causes;
	}
	.dd-causes{
		grid-area:dd-causes;
	}
	.dt-status{
		grid-area:dt-status;
	}
	.dd-status{
		grid-area:dd-status;
	}
	.dt-recovery{
		grid-area:dt-recovery;
	}
	.dd-recovery{
		grid-area:dd-recovery;
	}


}

@media screen and (min-width:740px) {
	.legend li:not(:last-of-type)::after {
		border-width: 10px !important;
	}
}



.statusbox-wrapper {
	position: absolute;
	z-index: 0;
	top: 50vw;
	left: 50%;
	overflow: hidden;
	box-sizing: border-box;
	width: 100vw;
	max-width: 700px;
	max-height: 0;
	transition: opacity .5s;
	transform: translateX(-50%);
	opacity: 0;
	background: rgb(233, 237, 239);
	box-shadow: 0 3px 3px 3px rgba(194, 194, 194, .3), 0 1px 3px rgba(98, 98, 98, .73);
}

.status-shown .statusbox-wrapper {
	z-index: 998;
	overflow: visible;
	max-height: 500vw;
	cursor: move;
	opacity: 1;
}

.effect-refresh {
	animation: InOut .5s;
}

.statusbox-wrapper .statusbox {
	display: block;
}

.inner-tablist+.statusbox-overflow {
	box-shadow: 0 -1px 3px -1px #ccc;
}

.statusbox-overflow {
	font-size: 14px;
	position: relative;
	-ms-overflow-y: auto;
	margin: 0;
	padding: 1em 1em 1px;
	background: #fff;
}

.streetname+.statusbox-overflow {
	margin-top: 1em;
}

.statusbox-wrapper .bt-close {
	font-size:24px;
	line-height: 0;
	display: inline-block;
	position: absolute;
	top: -20px;
	right: 0;
	margin-left: .4ch;
	padding: 5px;
	cursor: pointer;
	transition: top .2s, opacity .5s;
	vertical-align: middle;
	color: rgb(255, 255, 255);
	border: currentColor;
	border-radius: 100%;
	border-image: none;
	background: rgb(137, 137, 137);
	padding: 10px;
	height: 45px;
}

.multi-comment {
	font-size: 14px;
	line-height: 1.4;
	position: relative;
	margin: .4ch 0 1em;
	text-align: center;
}

.multi-comment p::before {
	font-family: Arial;
	font-size: 20px;
	font-weight: bold;
	line-height: 1em;
	position: absolute;
	top: 50%;
	left: -40px;
	display: inline-block;
	width: 1em;
	height: 1em;
	content: 'i';
	transform: translateY(-50%);
	text-align: center;
	color: #2bbfd2;
	border: solid 3px #2bbfd2;
	border-radius: 100%;
}

.multi-comment p {
	position: relative;
	display: inline-block;
	margin-bottom: 14px;
	text-align: left;
}

.inner-tablist {
	display: flex;
	overflow-x: auto;
	margin-top: 10px;
	padding-top: 10px;
}

.inner-tablist li {
	position: relative;
	z-index: 3;
	margin-left: 1.24ch;
	filter: drop-shadow(0 -3px 2px #ccc);
}

.inner-tablist li.active {
	z-index: 4;
}

.inner-tablist li button {
	font-size: 12px;
	position: relative;
	top: -.24ch;
	left: .74ch;
	width: 100%;
	min-width: 7.4ch;
	padding: 0 1em;
	border-radius: 3px 3px 0 0;
	background: transparent;
	line-height: 1;
}

.inner-tablist li::before {
	position: absolute;
	bottom: 0;
	left: 0;
	display: inline-block;
	width: 100%;
	height: 0;
	content: '';
	border-width: 0 .74ch 2em;
	border-style: solid;
	border-right-color: transparent;
	border-bottom-color: #35a1b1;
	border-left-color: transparent;
}

.inner-tablist li:not(.active) button {
	cursor: pointer;
	color: #fff;
}

.inner-tablist li.active::before {
	border-bottom-color: #fff;
}

.inner-tablist li.active button {
	color: #000;
}

.inner-tablist li:not(.active):hover::before {
	transition: color .3s ease 0s, background .3s ease 0s;
	animation: hov 1s;
}

@keyframes hov {
	from {
		opacity: .2;
	}

	to {
		opacity: 1;
	}
}

.legend-wrapper {
	font-size: 13px;
	padding: 14px 10px 20px;
	background: #fff;
}

.legend {
	font-size: 96%;
	display: flex;
	justify-content: space-between;
	margin: 0 2% 14px;
	color: rgb(35, 35, 35);
}

.legend .icon i {
	font-size: 1.24ch;
}

.legend li {
	position: relative;
	flex-basis: calc(100% /6);
}

.legend li>div {
	line-height: 1.5;
	height: 100%;
}

.legend li:not(:last-of-type)::after {
	position: absolute;
	top: calc(50%);
	right: calc(-25%);
	display: inline-block;
	width: 0;
	height: 0;
	content: '';
	transform: translateY(-50%);
	opacity: .9;
	border-width: 1vw;
	border-style: solid;
	border-color: transparent transparent transparent rgb(158, 158, 158);
}

.legend li.active::after {
	animation: blink 1s steps(2, end) infinite;
	border-left-color: #2bbfd2;
}

.legend .label {
	font-size: 96%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-around;
	box-sizing: border-box;
	height: 100%;
	min-height: 3em;

	/* background: rgb(232 ,232, 232); */
	padding: .4ch .24ch;
	cursor: pointer;
	transition: transform .2s;
	text-align: center;
	color: #717171;
	border: 2px solid rgb(232, 232, 232);
	border-radius: 5px;
	border-image: none;
}

.legend .set-note:not(.active) .label {
	font-weight: bold;
}

.legend .label:hover {
	border-color: rgb(179, 219, 230);
}

.legend .active .label {
	color: rgb(255, 255, 255);
	border-color: #2bbfd2;
	background-color: #2bbfd2;
}

.legend .set-note .label::after,
.legend .set-note .label::before {
	position: absolute;
	z-index: 2;
	bottom: -19px;
	left: 50%;
	display: inline-block;
	width: 0;
	height: 0;
	content: '';
	transform: translateX(-50%);
	border-width: 15px 10px;
	border-style: solid;
	border-color: transparent transparent rgb(245, 245, 245);
}

.legend .set-note .label::before {
	bottom: -17px;
	/* border-color: transparent transparent #2ea7d0; */
}

.legend-wrapper .description {
	font-size: 96%;
	line-height: 1.3;
	position: relative;
	overflow: hidden;
	align-items: center;
	margin: 0 2%;
	padding: .4ch 1em;
	color: rgb(16, 16, 16);
	border-radius: 3px 3px 3px 3px;
	background: #f5f5f5;
}

.description .set-note {
	display: block;
	display: block;
	padding: .4ch 1em;
	transform: translateY(100%);
	animation: slidein .25s .15s forwards;
	text-align: center;
}

@keyframes slidein {
	0% {
		transform: translateY(100%);
	}

	100% {
		transform: translateY(0);
	}
}


@media (max-width: 767px) and (orientation: landscape) {
	.status-shown .statusbox-wrapper {
		right: 0 !important;
		left: auto;
		overflow-y: scroll;
		width: 60vw;
		height: calc(100vh - 50px);
	}

	.multi-comment p::before {
		display: none;
	}

	.statusbox-wrapper .bt-close {
		top: 3px;
	}

	.statusbox-overflow {
		padding: 10px 20px 5px;
	}

	.statusbox dl {
		display: block !important;
	}

	.statusbox dt {
		font-size: 14px;
		width: 100% !important;
		padding: 0;
	}

	.statusbox dd {
		width: 100% !important;
	}
}