* {
    font-family: 'メイリオ', 'Meiryo UI', 'Segoe UI', sans-serif;
}

html, body {
	margin: 0;
	padding: 0;
	background-color: #f7f3ea;
	min-width: 50px;
	height: 100%; /* ウィンドウ全体の高さを使用 */
	overflow: hidden; /* ウィンドウ全体のスクロールを無効化 */
}

body {
	display: flex;
	flex-direction: column; /* 縦方向レイアウトに戻す */
}

#loading{
	position: absolute;
	left: 50%;
	top: 30%;
}
#loader-bg {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background-color: rgba(255,255,255,0.7);
	z-index: 10000000;
}

#dialog_background{
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(200,200,200,0.5);
	z-index: 101;
}

#left_menu {
    float: left;
    max-width: 300px;
    min-width: 300px;
	height: 100%;
}
#left_menu_inner {
	overflow-y: scroll;
	height: calc(100% - 3%);
	/* will-change: transform;
	transform: translate3d(0, 0, 0); */
}
#header_id img {
	margin-bottom: -5px;
}

.title_img:hover img {
	filter: alpha(opacity=70);
	-moz-opacity: 0.7;
	opacity: 0.7;
}

.title_word {
	display: none;
}

.top_url {
	position: absolute;
	top: 0;
	left: 0;
	width: 300px;
	height: 96px;
}

#humberger {
	display: none;
}

#layer_menu {
	height: auto;
	padding: 0 0 0 0;
}
.layer_menu_header .btn_group {
	display: inline-block;
	position: absolute;
	z-index: 100;
	right: 6px;
	top: 4px;
}
.layer_menu_header {
	display: block;
	cursor: pointer;
	position: relative;
	padding: .5em .5em .5em .7em;
	font-size: 100%;
	cursor: auto;
}
#summary_view {
	/* border-top: 1px solid #29ad4b;
	border-right: 1px solid #29ad4b;
	border-bottom: 1px solid #29ad4b;
	border-left: 1px solid #29ad4b; */
	border: 0;
	padding: 0;
	/* padding-top: 0.1em; */
	overflow: hidden;
}
#summary_view ul li {
	cursor: pointer;
}
#summary_view ul li:hover {
	background-color: #99FFFF;
}
#hanrei_dialog img {
	width: 100%;
	margin-top: 5px;
}

#hanrei_dialog p {
	border: 1px dashed #000000;
    padding: 5px;
}

#select_summary {
	width: 100%;
}

#top_menu{
	display: flex;
	position: absolute;
	width: 96%;
	margin: 0 2%;
	height: auto;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	z-index: 100;
	border-radius: 0%;
	backdrop-filter: blur(3px);
	background: rgba(255, 255, 255, 0.3);
	user-select: none;
}
#top_menu .btn_group {
	display: inline-block;
	padding-left: 6px;
	margin-right: 1em;
}
#copyright{
	position: absolute;
	top: 1em;
	right: 2em;
	height: 20px;
	user-select: none;
}
#copyright a { 
	text-decoration: none; 
}
#header {
	display: flex;
	align-items: center;
	font-weight: 600;
	width: auto;
	gap: 5%;
}
.top_title {
	white-space: nowrap;
	margin: 0 0em;
}

#view {
	position: relative;
	justify-content: center;
	width: 96%;
	/* height: 55vh; */
	height: 100%;
	padding: 0% 2% 0 2%;
}
#footer {
	/* display: flex; */
	position: absolute;
	bottom: 0%;
	left: 5.2%;
	white-space: wrap;
	height: 33%;
	/* ヘッダーの高さを最小値に設定 */
	min-height: 40px;
	max-height: 100vh;
	width: 91%;
}

/*一覧*/
.table-wrap {
    white-space: wrap;
	overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    width: 100%;
	max-width: 100%;
	min-width: 37%;
	height: 100%;
	resize: vertical;
	scrollbar-width: thin;
}
.facility-table {
	resize: vertical;
	scrollbar-width: thin;
	height: 100%;
}
.table-body {
	height: 100%;
	background-color: rgba(166, 208, 250, 0.2);
	backdrop-filter: blur(6.5px);
}

/* クリック行の背景色を追加 */
#facility-table tbody tr.is-active {
	background-color: rgba(53, 46, 249, 0.1);
	transform: scale(1.01);
	padding-left: 0.5%;
	transition: all 0.3s ease;
}

/* ホバー時のハイライト */
#facility-table tbody tr.is-hovered {
	box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), inset 0 0 10px rgba(255, 100, 100, 0.2);
	background-color: rgba(200, 100, 150, 0.15);
	transform: scale(1.01);
	padding-left: 0.5%;
	transition: all 0.3s ease;
}

/* フォーカス行の青線を削除 */
#facility-table tbody tr:focus {
	outline: none;
}

#facility-table tbody td {
	text-align: left;
}

.table {
    width: 100%;
    border-spacing: 0;
    margin-bottom: 0px;
    table-layout: auto;
    border-radius: 5px;
    text-align: center;
}
.table tr {
    /* background-color: #e6f1f6; */
	background-color: rgb(230, 241, 246, 0.64);
    backdrop-filter: blur(7px);
}
.table tr:nth-child(even) {
    /* background-color: #fff; */
	background-color: rgb(255, 255, 255, 0.64);
    backdrop-filter: blur(7px);
}
.table th, .table td {
    padding: 0.02em;
}
.table th a {
    color: #fff;
}
.table thead th {
    /* background-color: #4d9bc1; */
	background-color: rgb(78 195 249 / 70%);
    backdrop-filter: blur(2.5px);
	font-weight: bold;
    color: rgb(30, 90, 180, 0.87);
	text-shadow: 1px 1px 7px rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-align: center;
}
/* テーブルセルの余白設定 */
.table td {
    padding: 0.345em 0.5em;
    word-break: break-word;
}

.table tbody th {
    color: #4d9bc1;
}
.tblrow {
    cursor: pointer;
}
.tblselected {
    background-color: #ffa500!important;
}
/*一覧カラム*/
.col_icon {
    width: 1%;
    text-align: center!important;
}
/* 施設一覧のアイコンの大きさ */
.col_icon img {
	max-width: 2em;
	vertical-align: middle;
}
/* コース画面のサムネイルの大きさ */
.col_icon.course img{
	max-width: 5.2em; 
}
td.col_icon.course {
	padding: 0;
}
.col_index {
    width: 2.6%;
    min-width: 1.5em;
    text-align: center!important;
    color: #cd2a35;
    font-weight: bold;
    font-size: 1.035em;
}
.col_index.course {
	width: 5%;
	font-size: smaller;
}
.col_nextdistance {
	width: 5%;
	font-size: small;
	text-align: center!important;
}
.col_nexttime {
	width: 5%;
	font-size: small;
	text-align: center!important;
}

.col_name {
    width: 15%;
    min-width: 5.5em;
}

.col_address {
    width: 17%;
    min-width: 8em;
}

.col_openhours {
    width: 17%;
    min-width: 10em;;
	font-size: 0.95em;
}
/* 販売時間のHTMLタグを整形表示 */
.col_openhours dt {
	display: inline;
	font-weight: normal;
	margin: 0;
}
.col_openhours dt::after {
	content: "：　";
}
.col_openhours dd {
	display: inline;
	margin: 0;
	margin-inline-start: 0px;
}
.col_openhours dd::after {
	content: "\A";
	white-space: pre;
}

.col_overview {
    width: 30%;
    min-width: 12em;
}

.col_notes {
    width: 22%;
    min-width: 10em;
}

.col_tel {
    width: 10%;
    min-width: 5em;
}

.col_website {
    width: 5%;
    min-width: 2em;
}
.col_data_type {
    width: 6%;
    min-width: 3em;
}

/* マップ切替ボタン */
#radio_map_type{
	display: flex;
	/* inline-block;
    margin-left: 6px;
    margin-right: 1em;
    padding: 1px 6px 1px 0px;
    border: dotted 1px #000000;
    background-color: #ffffff; */
}
.hazardmap_radio{
	display: none;
}
.hazardmap_button{
	padding: 3px 5px;
	margin: 3px 14px;
	display: inline-block;
	width: 85px;
	text-align: center;
	color: #222222;
	background-color: #FFFFFF;
	font-size: 17px;
	border:solid;
	border-width: 2px 2px 2px 10px;
	border-radius: 5px;
}
.active{
	color: #FFFFFF;
	border-width: 2px 6px 2px;
}
#button_flood{
	border-color: #00BDBD;
}
#button_flood.active{
	background-color: #00BDBD;
}
#button_dosya{
	border-color: #663300;
}
#button_dosya.active{
	background-color: #663300;
}
#button_tsunami{
	border-color: #00007D;
}
#button_tsunami.active{
	background-color: #00007D;
}
#button_all{
	border-color: #777777;
}
#button_all.active{
	background-color: #777777;
}
#radio_map_type input, #radio_map_type label{
	cursor: pointer;
}

/* 標高・浸水深・市全域 */
#toolbox-centertop{
	position: absolute;
	top: 2px;
	right: 60px;
	background-color: (0,0,0,0);
	z-index: 101;
}
.ui-widget-header {
	border: 1px solid #003eff;
	background: #007fff;
	font-weight: normal;
	color: #fff;
}
/* 印刷ダイアログ */
#print_dialog{
	display: none;
}
.print_dialog_line{
	display: flex;
	padding: 7px 0px;
}
.print_dialog_key{
	width: 120px;
	height: 30px;
	line-height: 200%;
	margin: 0px ;
	text-align: center;
	font-size: 14px;
	background: #f0f0f0;
	border: 1px solid #000000;
}
.print_dialog_select{
	width: 270px;
	margin: 0 15px;
	border: 1px solid #aaaaaa;
	border-radius: 5px;
}
.print_dialog_button_line{
	display: flex;
	justify-content: space-around;
	margin: 20px 50px;
}
.print_dialog_message{
	padding: 2px 0;
	text-align: center;
	font-size: 14px;
}
#dialog_error_msg{
	height: 20px;
	color: #FF0000;
}
#print_dialog_samplearea{
	text-align: center;
	background-color: #E4E4E4;
	border: 1px solid #000000;
	border-radius: 10px;
}
#print_contents_img{
	height: 110px;
	width: 390px;
	margin: 3px auto 10px;
}
.hidden{
	visibility: hidden;
}

#d1 h3{
	font-size:80%;
	border-left:5px #006699 solid;
	padding:4px 0 3px 7px;
	margin:5px 0 5px 5px;
	color:#006699;
	font-weight:bold;
}

#d3_header{
    margin: 0 0 0 5px;
}

#d3_header h4{
	display: inline;
	float: left;
	font-size:80%;
	width: 20px;
	margin: 0 4px;
	background-color:#EEEEEE;
	color:#006699;
	padding:2px 0px;
	font-weight:normal;
	border-bottom:1px solid #AAA;
	border-right:1px solid #CCC;
	text-align: center;
}

#d1 dl{
	margin: 2px 5px;
	}

#d1 dt{
	font-size:80%;
	background-color:#E6F0FB;
	border-right:1px solid #C4DCF7;
	border-bottom:1px solid #B0D0F4;
	padding:3px 0 3px 7px;
	}

#d1 dd{
	display:none;
	margin: 0;

}

#d1 ul{
	margin: 0;
    padding-left: 5px;
}

#d1 li{
	font-size:80%;
	list-style:none;
	padding:4px 0 4px 16px;
	}

.br_mob {
	display: none;
}

/* 住所検索 */
#fa0,#fk0,#fs0,#ft0,#fn0,#fh0,#fm0,#fy0,#fw0{
	display:none;
}

/*　アイコンタップ時のポップアップ */
#popup {
	overflow-x: hidden;
	width: auto;
	min-width: 20em;
	height: auto;	
	scrollbar-width: none;
	border-radius: 1%;
	box-shadow: 18px 18px 3px 0 rgba(0, 0, 0, 0.2);
}
#popup-content {
	min-width: 20em;
	resize: both;
	overflow-y: auto;
	/* background-color: rgba(255,255,255,0.5); */
	background: rgba(255, 255, 255, 1);
	scrollbar-width: none;
}
#popup-title {
    padding: 0.5em;
    color: #333333;
    font-weight: bold;
    /* background: rgb(5 100 250 / 55%); */
	background: rgb(21, 130, 225);
    backdrop-filter: blur(5px);
    border-radius: 10px 10px 0px 0px;
    text-align: center;
    text-shadow: 
        -1px -1px 0 #ffffff,
         1px -1px 0 #ffffff,
        -1px  1px 0 #ffffff,
         1px  1px 0 #ffffff;
    cursor: move;
    user-select: none;
    font-family: auto;
    flex: 0 0 auto;
    touch-action: none; /* タッチ操作をカスタム処理 */
}
/* ポップアップのスクロールバーをホバー時のみ表示 */
#popup:hover {
	scrollbar-width: thin;
  }  
#popup table {
	width: 100%;
}
#popup table * {
	border: none;
}
#popup tbody tr td:nth-of-type(1) {
	/* float: left ; */
	/* clear: left ; */
	margin-right: 0.5em ;
	width: auto;
	border-bottom: 2px #eee9 dotted;
	font-weight: 500;
	font-size: 1em;
	word-break: break-word;
}
#popup tbody tr td:nth-of-type(2) {
	/* float: left ; */
	/* clear: left ; */
	margin-left: 0.5em;
	width: calc(100% - 80px);
	border-bottom: 1px #eee solid;
}
#popup a.maplink {
	border-bottom: 2px green solid;
}
#popup a.pdflink {
	border-bottom: 2px blue solid;
}

#popup .route_search {
	margin-top: 0.5em;
	text-align: center;
}
#popup .route_search a {
	text-decoration: none;
}
#popup .route_search a, #popup .route_search a:visited {
	color: #0000ee;
}

#popup .graph_link {
	margin-top: 0.5em;
	text-align: center;
}
#popup .graph_link a {
	text-decoration: none;
}
#popup .graph_link a, #popup .graph_link a:visited {
	color: #0000ee;
}
.pop_center {
	text-align: center;
}

.ol-popup {
	user-select: text;
}

#display-info {
	font-size: 10px;
	background-color: rgba(255,255,255,0.7);
	border-radius: 5px;
}
.color-red {
	color: #ff0000;
}
.color-blue {
	color: #0000ff;
}

@media screen and (max-width:1080px) {
	#view {
		width: 100%;
		margin: 0;
		padding: 0;
	}
	#top_menu{
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.table-header th{
		padding: 0.55em!important;
	}
	.col_course_name{
		width: 6%;
		font-size: smaller;
	}
	.col_website{
		width: 6%!important;
	}
	#footer{
		width: 100%;
		margin: 0;
		padding: 0;
		position: fixed;    /* relativeからfixedに変更 */
		bottom: 0;
		left: 0;
		right: 0;
		/* top: 0; を削除 */
		height: 200px;      /* 初期の高さを設定 */
	}

	#btn_map{
		position: absolute;
		left: 300px;
		top: 40px;
	}
	.table-wrap {
		font-size: small;
	}
	/* スマホ版ではテーブルヘッダーのドラッグ機能を無効化 */
	.table-header {
		cursor: move !important;
	}
	.ol-zoom button, .ol-zoomslider button{
		font-size: 17px!important;
	}
	.ol-zoomslider {
		top: 4.7em !important;
	}
}

@media screen and (max-width:820px) {
	.table-wrap {
		font-size: small!important;
	}
	.table-header th{
		padding: 0.55em!important;
	}
	.col_icon img{
		max-width: 1.5em!important;
	}
	.col_course_name{
		width: 10.5% !important;
		font-size: xx-small !important;
	}
	.col_nextdistance{
		font-size: xx-small !important;
		width: 9%;
	}
	.col_nexttime{
		font-size: xx-small !important;
		width: 9%;
	}
	.col_icon{
		width: 0.5%!important;
	}
	.col_index{
		width: 5%!important;
		font-size: xx-small !important;
	}
	.col_index.course{
		font-size: smaller !important;
	}
	.col_name{
		width: 10%!important;
		font-size: smaller !important;
	}
	.col_address{
		width: 15%!important;
	}
	.col_overview{
		width: 15%!important;
		font-size: smaller !important;
	}
	#legend-panel{
		padding: 0.5em!important;
		border-width: 0.82em!important;
	}
	#legend-panel .legend-icon {
		max-width: 22px!important;
		max-height: 22px!important;
	}
	#legend-panel .legend-title {
		font-size: 13px!important;
	}
	.legend-toggle {
		width: 34px!important;
	}
	#popup {
		min-width: 15.5em;
	}
	#popup-content {
		min-width: 15.5em;
	}
	#popup th{
		width: 5em!important;
		font-size: 0.75em!important;
		padding: 0.5em!important;
	}
	#popup td{
		font-size: 0.9em!important;
	}
}
/* スマホ向け */
@media screen and (max-width:500px) {
	.gmapIframe, body, html {
		width: 100%;
		height: 100%;
		overflow: hidden; /* ウィンドウ全体のスクロールを無効化 */
	}
	#left_menu {
		width: 100%;
		height: auto;
		max-width: 100%;
		float: none;
		margin-bottom: 5px;
	}
	#header_id img {
		width: 100%;
		margin-bottom: -5px;
	}
	#view {
		position: relative;
		width: 100%;
		height: 100%; /* ウィンドウ全体の高さを使用 */
		left: auto;
		top: auto;
	}
	#header{
		height: auto;
	}
	#btn_print {
		display: none;
	}
	#btn_map{
		position: static;
	}
	#radio_base_layrer {
		margin-bottom:5px;
	}
	.br_mob {
		display: inline-block;
	}
	#radio_map_type{
		display: flex;
		justify-content: space-evenly;
		width: 100%;
	}
	.hazardmap_button{
		width: 60px;
		padding: 2px 3px;
		margin: 3px 3px;
		font-size: 12px;
		font-weight: bold;
	}
	.table-wrap {
		height: calc(100vh - 300px); /* スマホでは上部メニューが多段になるため余裕を持たせる */
		max-height: calc(100vh - 300px);
		min-height: 200px; /* スマホでは最小高さを小さく */
	}
	#popup div#popup-content div.table {
		max-height: 400px;
		width: 280px;
	}
	#copyright{
		font-size: x-small!important;
	}
}

/* アクティブ時のハイライトが強すぎなので非アクティブと同じに */
.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-active span.fancytree-title,
.fancytree-plain.fancytree-container.fancytree-treefocus span.fancytree-selected span.fancytree-title {
	background-color: #f7f7f7;
	border-color: #dedede;
}
.my-fancytree-disable .fancytree-checkbox,
.my-fancytree-disable .fancytree-icon,
.my-fancytree-disable .fancytree-title {
	background-color: rgba(200,200,200,0.7) !important;
	font-style: italic !important;
}

#myattribution {
	width: 100%;
}
#myattribution div {
	width: auto !important;
}

.no_expander .fancytree-expander {
	opacity: 0;
}

.hide_checkbox > .fancytree-checkbox {
	opacity: 0;
	width: 0px;
}

#btn_Inundation.ui-state-active {
	border-color: #ff0000 !important;
	background: #ff0000 !important;
}

img.ctlSearchWindow {
	border: 3px #fff solid;
}
img.icon-legend {
	border: 3px #fff solid;
}


/* 施設一覧 select の option */
#select_summary option.invisible {
	display: none;
}

#top_icon{
	positon: static;
	width: 15%;
}

.table-header {
    position: sticky;
    top: 0;
    z-index: 1;
    cursor: move;
    user-select: none;
    touch-action: none; /* タッチ操作をカスタム処理 */
}

.table-header th {
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: move;
    user-select: none;
    background-color: rgb(78 195 249 / 55%);
    backdrop-filter: blur(1.8px);
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 0.22em 0.22em;
    touch-action: none; /* タッチ操作をカスタム処理 */
}

/* tableのヘッダー行を固定するためのスタイル */
th {
    position: sticky;
    top: 0;
	padding: 0.5em;
}

/* ポップアップの背景色と文字の影を設定 */
#popup th{
	font-weight: normal;
	text-align: left;
	width: 5em;
	margin: 0.2% 2%;
	/* padding: 0.3em 0.5em; */
	position: static!important;
    background-color: rgba(95, 202, 255, 0.3);
    backdrop-filter: blur(0px);
	color: #000;
	/* text-shadow: 1px 2px 3px white; */
	font-size: 0.81em;
}
#popup td{
	color: #000;
	font-weight: bold;
	text-shadow: 2px 3px 5px white;
	padding-left: 0.5em;
	padding-right: 0.5em;
}
/* ポップアップ内の画像を収まるようにする */
#popup img {
	max-width: 100%;
	height: auto;
	display: block;
}
#popup_course_label {
	background-color: #e0e0e05e;
	font-size: smaller !important;
	vertical-align:baseline;
	padding-top: 2.5px;
}
#popup_course{
	padding: 0.16em!important;
	background-color: white !important;
}
#popup_course th{
	width: 4.2em !important;
	background-color: white !important;
}

/* 地図表示切替ボタン */
#layerbox_1 {
	width: 23em;
	top: 0em;
	right: 9.8em;
}
#popup .popup-image td{
	/* padding: 0!important; */
}
.col_index {
	vertical-align: middle;
}
.col_index img{
	width: 2em;
}
.col_course_name{
	font-size: small;
	width: 8%;
}
.circle-num {
	width: 2em;
	height: 2em;
}
.circle-num circle {
	fill: #147A52;
}
.circle-num text {
	fill: #fff;
	font-size: 48px;
}