﻿
/* bootstrapのカスタマイズ  ****************************************/
/* 共通 */
.border-primary {
    border-color: #3A7996 !important;
}

.border-info {
    border-color: #2968a1 !important;
}

/* primaryボタン */
.btn-primary {
    background-color: #3A7996 !important;
    border-color: #1a4165 !important;
    color: white !important;
}
/* infoボタン */
/* secondaryボタン */
.btn-secondary {
    background-color: #C55A11 !important;
    border-color: #964500 !important;
    color: white !important;
}
/* outline-primaryボタン */
.btn-outline-primary {
    border-color: #1f4e79 !important;
    background-color: rgba(58, 121, 150, 0.5) !important;
    color: black !important;
}

    .btn-outline-primary:active, .btn-outline-primary:focus,
    .btn-outline-primary.active {
        background-color: #3A7996 !important;
        border-color: #1a4165 !important;
        color: white !important;
    }

.collapse-horizontal {
    transition: none !important;
}

/* 画面全般 ****************************************/
html, body {
    width: 100%;
    height: 100%;
}

.page-body {
    width: 100%;
    min-width: 375px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    font-size: small;
    user-select: none;
}

.main-color {
    color: #007FC8 !important;
}

.sub-color {
    color: #3A7996 !important;
}

/* ヘッダー  ****************************************/
#pref-image {
    width: 20px;
    height: 20px;
}

#header h1 {
    font-size: 20px;
}

/* ツールバー  ****************************************/
#toolbar #toolbar-panel {
    z-index: 10;
    right: 0;
    left: auto;
    border-bottom-left-radius: 4px;
    border-width: 1px;
    border-style: outset;
    border-color: rgb(128, 128, 128);
}

    #toolbar #toolbar-panel svg {
        cursor: pointer;
    }
/* コンテンツ  ****************************************/
#main-content .control-btn {
    width: 50px;
    background-color: white;
    color: black;
    min-height: 40px;
    cursor: pointer;
    border-radius: 4px;
    border-width: 1px;
    border-style: outset;
    border-color: rgb(128,128,128);
    z-index: 10;
    word-break:break-all;
}

/* コンテンツ：メニュー  ****************************************/
#main-content #main-menu {
    position: absolute;
    top: 42px;
    box-sizing: border-box;
    z-index: 200;
    max-height: 95%; /* iphoneの翻訳見切れ対策 */
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#main-content #main-menu::-webkit-scrollbar {
    display: none;
}


    #main-content #main-menu #main-menu-child {
        width: 180px;
    }

    #main-content #main-menu a {
        text-decoration-line: underline;
    }

    #main-content #main-menu img {
        width: 25px;
        height: 25px;
    }

/* コンテンツ：地図  ****************************************/
#main-content #map {
    width: 100%;
    height: 100%;
    z-index: 0;
}

    #main-content #map .move-up {
        top: 5px;
        left: 25px;
    }

    #main-content #map .move-down {
        top: 65px;
        left: 25px;
    }

    #main-content #map .move-right {
        top: 35px;
        left: 45px;
    }

    #main-content #map .move-left {
        top: 35px;
        left: 5px;
    }

    #main-content #map .gps-button {
        top: 170px;
        left: 25px;
    }

    #main-content #map .ol-zoom {
        top: 105px;
        left: 25px;
    }

    /* コンテンツ：コントロール  ****************************************/
    #main-content #map #toggle-base-layer-panel {
        top: auto;
        left: 10px;
        bottom: 60px;
        right: auto;
    }

    #main-content #map #scene-view {
        top: auto;
        left: 10px;
        bottom: 10px;
        right: auto;
    }

    #main-content #map #opacity-setting {
        top: auto;
        left: 85px;
        bottom: 10px;
        right: auto;
        width: 190px !important;
    }

    #main-content #map #opacity-range {
        width: 75px !important;
    }

    #main-content #map #hatching {
        top: auto;
        left: 75px;
        bottom: 60px;
        right: auto;
        width: 100px !important;
    }

    #main-content #map #timebar {
        top: auto;
        left: 85px;
        bottom: 60px;
        right: auto;
        width: 190px !important;
    }

    #main-content #map #timebar-select {
        width: 70px !important;
        background-image: url("./chevron-white.svg");
        background-position: right 5px center !important;
        background-color: #3A7996 !important;
        border-color: #1a4165 !important;
        color: white !important;
    }

    #main-content #map #timebar-state-container {
        word-break: break-all;
        max-width: 26px; /* 多言語対応 */
    }

/* コンテンツ：背景図レイヤ選択パネル  ****************************************/
#main-content #base-layer-panel {
    top: auto;
    left: 10px;
    bottom: 110px;
    right: auto;
    z-index: 100;
    max-width: 260px;
    max-height: 80%; /* iphoneの翻訳見切れ対策 */
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#main-content #base-layer-panel::-webkit-scrollbar {
    display: none;
}


    #main-content #base-layer-panel #base-layer-list .card {
        background-color: inherit;
        border: none;
    }

    #main-content #base-layer-panel #base-layer-list .card-text {
        font-size: 8pt;
    }

    #main-content #base-layer-panel #toggle-base-layer-panel {
        width: 50px;
        background-color: white;
        color: black;
        height: 30px;
        cursor: pointer;
    }

        #main-content #base-layer-panel #toggle-base-layer-panel svg {
            padding: 0;
            margin: 8px 0px 8px 10px;
        }

        #main-content #base-layer-panel #toggle-base-layer-panel:is(.show) svg.bi-plus-circle {
            display: none;
        }

        #main-content #base-layer-panel #toggle-base-layer-panel:not(.show) svg.bi-dash-circle {
            display: none;
        }

#main-content #base-layer-list img {
    border-color: rgb(128,128,128) !important;
    border-width: 2px !important;
}

#main-content #base-layer-list .active img {
    border-color: #fff000 !important;
}

/* コンテンツ：3Dパネル  ****************************************/
#main-content #map #control-panel-3d {
    top: auto;
    left: auto;
    bottom: 0px;
    right: 0px;
    width: 125px;
    z-index: 10;
}
    #main-content #map #control-panel-3d #map-rotation {
        right: 10px;
        bottom: 44px;
        background-color: transparent;
    }

        #main-content #map #control-panel-3d #map-rotation #comapss3dbtn {
            pointer-events: auto;
            background-color: transparent;
            width: 40px;
            height: 40px;
            text-decoration: none !important;
            outline: none !important;
            color: none !important;
        }

            #main-content #map #control-panel-3d #map-rotation #comapss3dbtn #compass3d img {
                width: 40px;
                height: 40px;
                object-fit: contain;
            }

/* コンテンツ：検索パネル  ****************************************/
#main-content #search-panel {
    top: 50px;
    left: auto;
    bottom: auto;
    right: 48px;
    z-index: 100;
    width: 260px;
}

    #main-content #search-panel .search-icon-box {
        width: 32px;
        height: 32px;
        padding: 2px;
    }

/* コンテンツ：操作ガイド  ****************************************/
#main-content #user-guide-panel {
    top: 50px;
    left: auto;
    bottom: auto;
    right: 0px;
    z-index: 90;
    width: 140px; /* 初期値は2d。3d切り替えで変更 */
    max-height: 90%; /* iphoneの翻訳見切れ対策 */
    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#main-content #user-guide-pane::-webkit-scrollbar {
    display: none;
}

#main-content #user-guide {
    background-color: rgba(38, 38, 38, 0.75);
    border-color: rgb(38, 38, 38);
}

    #main-content #user-guide img {
        height: 32px;
        width: 32px;
    }

    #main-content #user-guide .guidebox-content-pan {
        color: #6cf;
        font-weight: 700
    }

    #main-content #user-guide .guidebox-content-zoom {
        color: #65fd00;
        font-weight: 700
    }

    #main-content #user-guide .guidebox-content-tilt {
        color: #ffd800;
        font-weight: 700
    }

    #main-content #user-guide .guidebox-content-rotate {
        color: #d800d8;
        font-weight: 700
    }



/* コンテンツ：結果パネル(区域情報)  ****************************************/
#main-content #map-tool-result-panel {
    top: 50px;
    left: auto;
    bottom: auto;
    right: 0px;
    z-index: 110;
    width: 290px;
    max-height: 90%; /* iphoneの翻訳見切れ対策 */
    overflow-y: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#main-content #map-tool-result-panel::-webkit-scrollbar {
    display: none;
}


/* city-select-modal ****************************************/
#city-select-modal button.link-to-tab,
#city-select-modal input,
#city-select-modal a.list-group-item {
    font-size: small;
}

#city-select-modal .address-list {
    max-height: 35vh;
}

#city-select-modal .city-select-info {
    font-size: 10px;
}

/* legend-modal ****************************************/
#legend-modal {
    width: 300px;
    left: calc(50% - 150px);
}

/* map-mode-detail-modal *******************************/
#map-mode-detail-modal .form-check {
    margin-top: 5px;
}


/* openlayer用 ****************************************/
.ol-scale-line {
    bottom: 42px;
    left: auto;
    right: 0;
    top: auto;
}

.ol-attribution {
    width: 109px;
    pointer-events: auto;
    right: 1px !important;
    bottom: 1px !important;
}

    .ol-attribution a {
        color: #3A7996 !important;
        font-weight: bold;
    }

/* dtTableTools用 ****************************************/
.f-small {
    font-size: small;
}

.form-select-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

#map-tool-result-mobile {
    padding: 0 !important;
}

    #map-tool-result-mobile div.dts div.dt-scroll-body {
        background: white;
    }

    #map-tool-result-mobile .pagination {
        --bs-pagination-font-size: 0.6rem;
        --bs-pagination-padding-x: 0.7rem;
    }

#result-tables-panel{
    max-height: 500px;
}

#result-tables-panel .wrapper-nav {
    margin-bottom: 0px;
    height: 28px;
}

    #result-tables-panel .wrapper-nav .nav-tabs a {
        padding: 5px;
    }

#result-tables-panel #close-result-tables-btn {
    right: 0;
    top: 0;
    padding: 9px;
}

.scroller-right {
    margin-right: 33px;
}

.dt-empty-footer > .dt-layout-table {
    margin-top: 0px !important;
}

/* 検索結果カード */
#identify-vtables-panel .card {
    border: none !important;
}

    #identify-vtables-panel .card .card-body {
        padding-top: 0px !important;
        padding-bottom: 1px !important;
    }

#identify-vtables-panel table tr td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 5px !important;
    padding-right: 2px !important;
    white-space: normal !important;
}

#identify-vtables-panel .row {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
}
#identify-vtables-panel .row > * {
    margin-top: 2px !important;
}

/* 項目名 */
#identify-vtables-panel td:nth-of-type(1) {
    width: 40%;
}

/* snake graph */
html, body {
    /* GetGraph.cssの設定を無効にする */
    min-width: initial;
}

#snake-content {
    z-index: 1;
}

#graph-window-close {
    position: absolute;
    right: 0; 
    z-index: 2;
}
#window-close-btn {
    /* GetGraph.cssを上書き */
    min-width: 20px !important;
    min-height: 20px !important;
}

#snake-comment {
    font-size: 2.5em;
}

/* disclaimer-3d-modal ****************************************/
#disclaimer-3d-modal .modal-footer #disclaimer-disagree {
    background-color: #0bb5d8 !important;
    border-color: #1f4e79 !important;
    color: black !important;
}

#disclaimer-3d-modal .modal-footer #disclaimer-agree {
    background-color: #3A7996 !important;
    border-color: #1a4165 !important;
    color: white !important;
}