* {
    margin: 0px;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    padding-left: 8px;
    padding-right: 8px;
    font-family: auto;
    font-size: 16px;
}

select {
    font-family: Arial;
}

img {
    pointer-events: none;
}

/* ロゴ */
.logo p {
    margin: 0px;
    /* padding-top: 16px; */
    padding-bottom: 16px;
}
.logo a img {
    width: 220px;
    height: 50px;
    border: 0px;
    pointer-events: auto;
}

#title_msg {
    position: absolute;
    padding: 5px;
    padding-left: 20px;
}

.pos_right {
    position: fixed;
    top: 29px;
    right: 20px; 
}
/* 戻るボタン */
#back_btn {
    /* background-color: #3f3fac; */
    background-color: #2a7762;
    color: white;
    border-radius: 3px;
    border-width: 3px;
    /* border-color: #8d8dce; */
    border-color: #00632a;
    font-weight: bold;
    width: 70px;
    text-align: center;
}

/* 切り替えタブ */
.tabs, .disp_flex {
    display: flex;
}

.disp_flex_row {
    height: 100%;
    /* 孫要素をスクロールさせるために必要 */
    display: flex;
    flex: 1;
    overflow: auto;
}

.wrap {
    margin-bottom: 10px;
}
.wrap, .wrap_camera {
    flex-wrap: wrap;
    position: relative;
}

.tab.active {
    background-color:#2a7762;
}
.tab:not(.active):hover {
    background-color:#2a7762;
    color: #ffcc00;
    cursor : pointer;
}

.tab {
    background-color: #bbbbbb;
    border-radius: 10px 10px 0px 0px;
    border-left-width: 5px;
    border-color: #2a7762;
    border-style: solid;
    border-bottom: none;
    color: white;
    padding: 5px;
    width: 150px;
    text-align: center;
    /* font-weight: bold; */
    /* font-size: larger; */
}

#tab_msg {
    padding-top: 8px;
    padding-left: 20px;
}

.camera_image_page {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* width: 100%; */
    height: 100%;
    border: solid 5px #2a7762;
    padding: 5px;
    /* min-width: 700px; */
    /* height: max-content; */
}

#select_from {
    padding-right: 8px;
    order: -1;
}

.update_time_disp {
    /* position: absolute; */
    /* right: 0px; */
    font-size: 12px;
    text-align: right;

    /* margin-left: auto; */
    margin-bottom: 5px;
    order: 1;
}
.update_time_disp div {
    line-height: 1em;
}

.update_btn {
    margin-left: auto;
    margin-right: 5px;
}

#camera_list {
    height: 100%;
    flex: 1;
    overflow: auto;
}

.one_camera {
    position: relative;
    background-color: white;
    text-align: center;
    border: solid 2px black;
    margin: 3px;
    /* width: 25%; */
}
.one_camera > div{
    /* height: 24px; */
    display: contents;
}
.one_camera a, .cam_pos a {
    display: block;
    color: black;
    font-weight: normal;
    text-decoration: none;
}
.one_camera.focus {
    border-width: 4px;
    border-color: yellow;
    margin: 1px;
}

/* カメラ画像上の日時 */
.one_camera span {
    position: absolute;
    font-family: fantasy;
    -webkit-text-stroke: 0.7px white;
}
.one_camera img {
    width: 150px;
    vertical-align: bottom;
    aspect-ratio: 4 / 3;
}

.one_camera_br {
    border: none;
    width: -webkit-fill-available;
}

.one_camera .video_icon {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 24px;
    height: 20px;
    border: black solid 1px;
}

.map_disp{
    /* display: flex; */
    /* flex-direction: column; */
    position: relative;
    text-align: center;
    margin-left: 5px;
    background-color: white;
    width: 48%;
    /* width: 600px; */
    /* height: 100%; */
    overflow: auto;
    /* padding-top: 8px;
    padding-bottom: 8px; */
    padding-top: 30px;
    padding-bottom: 30px;
}

.map_div {
    /* position: relative; */
    /* margin: 0 auto; */
    /* margin-top: 50%; */
    /* transform: translate(0, -50%); */
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    margin: auto;
    /* width: 100%; */
    /* left: 30px; */
    /* top: 10px; */
}
.map_div.zeniki {
    position: relative;
}

.zeniki_map_img {
    /* position: relative; */
    /* top: 75px; */
    /* top: 35px; */
    position: absolute;
    /* left: 30px;
    top: 10px; */
    left: 0px;
    top: 0px;
    transform: scale(1.3);
    transform-origin: 0px 0px;
    /* transform-origin: top; */
    pointer-events: auto;
}
.zeniki_map_name {
    position: absolute;
    width: 50px;
}

.cam_pos{
    position: absolute;
    /* width: 1em; */
    /* height: 1em; */
    width: 18px;
    height: 18px;
    line-height: 1em;
    border: solid 1px;
    background-color: white;
    /* transform: scale(1.3); */
    /* transform-origin: 0px 0px; */
    z-index: 0;

    /* font-size: 18px; */
} 

.cam_pos.focus{
    background-color: yellow;
    z-index: 1
}
.cam_pos a, .cam_pos img{
    width: 100%;
    height: 100%;
}

/* マップアイコンの数値が2桁の場合 */
/* .digits2 {
    font-size: 0.7rem;
} */

/* 各事務所のマップアイコン */
.p_jimu_11 {
    border-color: #1d1980;
}
.p_jimu_12 {
    /*border-color: #ffbb00;*/
    /*border-color: #f6fa94;*/
    border-color: #f3973f;
}
.p_jimu_13 {
    /*border-color: #75c758;*/
    /*border-color: #baddbf*/
    border-color: #269733;
}
.p_jimu_14 {
    /*border-color: #f2b1d3;*/
    border-color: #c71778;
}
.p_jimu_16 {
    /*border-color: #2ea959;*/
    border-color: #26932e;
}
.p_jimu_17 {
    /*border-color: #f6fa94;*/
    border-color: #e7983e;
}
.p_jimu_18 {
    /*border-color: #f2b1d3;*/
    border-color: #cf0a72;
}
.p_jimu_19 {
    /*border-color: #f5c8a2;*/
    border-color: #ab6417;
}
.p_jimu_20 {
    /*border-color: #e8e8f0;*/
    border-color: #643c8b;
}
.p_jimu_21 {
    /*border-color: #be7eba;*/
    border-color: #5d0075;
}
.cam_pos.icon_disabled {
    background-color: gray;
    pointer-events: none;
    z-index: 0;
}
