/* 検索時のmodalウィンドウ */
.modal-window
/* ,.modal-window2 */
{
    height: 80%;
    overflow: visible;
}
@media (max-width: 844px){
    .modal-window
    /* ,.modal-window2 */
    {
        width: 80vw;
    }
}
.modal-window-top{
    z-index: 99;
}
.modal-window-top.flex{
    height: 60px;
    background-color: #051e5e;
}
.modal-window .modal-window-top .left h4,
.modal-window2 .modal-window-top .left1 h4{
    margin: 0;
}
.modal-window .modal-window-top .js-close.batsu,
.modal-window2 .modal-window-top .js-close2.batsu1{
    width: 20px;
    height: 20px;
}
.modal-window2 .modal-window-top .js-close2{
    margin-left: auto;
}
.modal-window .modal-window-top.flex1,
.modal-window2 .modal-window-top.flex1{
    padding: 20px 0;
    background-color: #fff;
}
.modal-window .research-form{
    height: calc(100% - 100px);
    overflow-y: scroll;
}
.modal-window .research-form div:first-of-type,
.modal-window .research-form div:nth-of-type(2){
    margin-top: 20px;
}
.modal-window .research-form div p:first-of-type
/* .modal-window2 .research-form div p:nth-of-type(2),
.modal-window2 .research-form div p:nth-of-type(3),
.modal-window2 .research-form div p:nth-of-type(4),
.modal-window2 .research-form div p:nth-of-type(5) */{
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #e8e8e8;
    border-radius: 3px;
}
.modal-window .research-form div ul{
    margin-bottom: 20px;
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 5px;
}
.research-form hr{
    display: none;
}
.modal-window-top.flex1 button.btn-primary{
    background-color: #051e5e;
    border: none;
}
.modal-window-top.flex1 button.btn-primary:hover{
    background-color: #0a41cc;
}
.modal-window-top.flex{
    align-items: center;
}
.modal-window-top.flex .left,
.modal-window2 .modal-window-top.flex .left1{
    width: fit-content;
    padding-top: 0;
    padding-left: 30px;
}
@media (max-width: 767px){
    .modal-window-top.flex h4{
        font-size: 1.3rem;
    }
}
/* modal window2 */
@media (min-width: 885px){
    .modal-window2{
        width: 45%;
    }
}
.modal-window2 .research-form-wrapper{
    overflow-y: auto;
    height: calc(100% - 120px);
}
.modal-window2 .research-form div p{
    margin: 20px 0 10px;
}
.modal-window2 .modal-window-top .right2{
    height: auto;
    margin-top: 0;
} 
/* mapのsidebar */
.sidebar.leaflet-touch{
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
    border: none;
}
#sidebar .sidebar-tabs ul li.active{
    color: #0a41cc;
}
.sidebar-content .sidebar-pane{
    padding: 0;
}
.sidebar-content .sidebar-pane .sidebar-header{
    display: flex;
    align-items: center;
    margin: 0;
    padding: 20px;
    background-color: #051e5e;
}
.sidebar-content .sidebar-pane .sidebar-header button#delete.btn-danger{
    margin: 0 20px 0 auto;
    padding: 2px 20px;
    color: #01113b;
    background-color: #e8e8e8;
    font-weight: bold;
    border: none;
}
@media (max-width: 992px){
    .sidebar-content .sidebar-pane .sidebar-header button#delete.btn-danger{
        padding: 2px 10px;
    }
}
@media (max-width: 767px){
    .sidebar-content .sidebar-pane .sidebar-header{
        font-size: .9rem;
    }
    .sidebar-content .sidebar-pane .sidebar-header button#delete.btn-danger{
        font-size: .7rem;
    }
}
#ajax_form .tab-wrap div{
    margin: 1.5em 0;
}
#ajax_form .tab-contents.show p{
    display: flex;
    align-items: center;
    gap: 0 10px;
}
/* 日付 */
.modal-window2 .research-form input#id_shooting_search_start,
.modal-window2 .research-form input#id_shooting_search_end,
#ajax_form .tab-contents.show p input{
    text-align: right;
    padding: 5px 10px;
}
#id_todoufuken_search{
    padding: 5px 10px;
}
.tab-contents.show{
    padding-left: 0;
}
#ajax_form .tab-wrap div p{
    margin: 0;
    color: #333;
}
#ajax_form .tab-wrap div:nth-last-child(1) p:last-of-type,
#ajax_form .tab-wrap div:nth-last-child(2) p:last-of-type{
    display: flex;
    flex-wrap: wrap;
    gap: 0 30px;
}
#ajax_form .tab-wrap div:nth-last-child(1) p:last-of-type label input,
#ajax_form .tab-wrap div:nth-last-child(2) p:last-of-type label input{
    margin: 0;
}
#ajax_form p button:first-of-type{
    padding: 5px 50px;
    color: #fff;
    background-color: #051e5e;
    border: none;
    border-radius: 3px;
}
#ajax_form p button:last-of-type{
    padding: 5px 20px;
    border: solid 1px #a0a0a0;
    border-radius: 3px;
}
#ajax_form p button:last-of-type a{
    color: #333;
}
/* 地図選択 */
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar{
    padding: 10px;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/* 地図選択ラジオボタン */
/* input[type=radio]{
    display: none;
}
.leaflet-control-container .leaflet-control-layers-base label{
    box-sizing: border-box;
    -webkit-transition: 0.2s linear;
    transition: 0.2s linear;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.leaflet-control-container .leaflet-control-layers-base label span{
    margin-left: 10px;
}
.leaflet-control-container .leaflet-control-layers-base label:hover:after{
    border-color: #051e5e;
}
.leaflet-control-container .leaflet-control-layers-base label:after{
    -webkit-transition: 0.2s linear;
    transition: 0.2s linear;
    position: absolute;
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid #bbb;
    border-radius: 50%;
    content: '';
}
.leaflet-control-container .leaflet-control-layers-base label::before{
    -webkit-transition: 0.2s linear;
    transition: 0.2s linear;
    position: absolute;
    top: 50%;
    display: block;
    margin-top: -5px;
    margin-left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #051e5e;
    content: '';
    opacity: 0;
}
input[type=radio]:checked + .leaflet-control-container .leaflet-control-layers-base label::before{
    opacity: 1;
} */
/* ログイン */
div#logreg-forms{
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: solid 1px #ccc;
    border-radius: 3px;
}
#logreg-forms .form-signin input#inputPassword{
    margin-bottom: 20px;
}
#logreg-forms .form-signin .btn-success{
    background-color: #051e5e;
    border: none;
}
#logreg-forms .form-signin .btn-success:hover{
    background-color: #01113b;
}
/* Django */
.main .content{
    background-color: #f8f8f8;
}
#header{
    background-color: #051e5e;
}
span a.button.cancel-link{
    padding: 5px 10px;
    background-color: #051e5e;
}
span a.button.cancel-link:hover{
    background-color: #0a41cc;
    transition: .3s;
}
#branding h1 a{
    pointer-events: none;
}
#container div.breadcrumbs{
    display: none;
}
#branding h1 a:link, #branding h1 a:visited{
    color: #fff;
}
#toolbar{
    border: none;
    padding: 20px 10px;
}
#toolbar form#changelist-search{
    text-align: center;
    width: auto;
    margin: 0 auto;
}
#toolbar form#changelist-search div{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 0;
    width: fit-content;
}
#toolbar form#changelist-search div ul{
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 0;
}
#toolbar form#changelist-search div li{
    list-style: none;
    margin: 0 10px;
}
#toolbar form#changelist-search select,
#toolbar form#changelist-search input[type="month"]{
    padding: 0 10px;
}
#toolbar form#changelist-search input[type="month"]{
    width: 100px;
    margin: 0 5px;
    text-align: right;
    border: solid 1px #ccc; 
}
#toolbar form#changelist-search input[type="submit"].search_btn{
    padding: 5px 70px;
    color: #fff;
    background-color: #051e5e;
    box-shadow: none;
    border: none;
}
#toolbar form#changelist-search input[type="submit"].search_btn:hover{
    background-color: #0a41cc;
}
#toolbar form#changelist-search span a.cancel-link{
    display: block;
    padding: 5px 20px;
    color: #333;
    background-color: #fff;
    border: solid 1px #ccc;
}
#toolbar form#changelist-search span a.cancel-link:hover,
#toolbar form#changelist-search input.btn:hover{
    border-color: #666;
    transition: .3s;
}
#toolbar form#changelist-search input[type="submit"].btn{
    background: #fff;
    box-shadow: none;
}
.paginator span .pagination-link{
    background-color: #051e5e;
}

/* django ファイルアップロード */
#content-main form#user_form .module .form-row{
    margin: 0 20px;
}
#content-main form#user_form .module .form-row:first-of-type{
    margin-top: 20px;
}
#content-main form#user_form .module .submit-row{
    margin: 0;
    padding: 20px;
    border: none;
}
#content-main form#user_form .module .submit-row input{
    background-color: #051e5e;
}