﻿@charset "utf-8";

/*////////////////////////////////////////////////////////////////////////////////////////
*/

.open_sub_window {
    display: block;
    width: 15em;
    padding: 2em 2em;
    border-radius: 10px;
    background-color: #3388dd;
/*    background-color: #b34522;*/
/*    background-color: #dd3388;*/
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}
.open_sub_window:hover {
    opacity: 0.7;
}

.check_sub_window {
    display: none;
}

.bg_sub_window {
    display: block;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
    z-index:30000;
}
.bg_sub_window:hover {
    transition: 0.5s;
}

.check_sub_window:checked + .bg_sub_window {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: 0.5s;
}

.sub_window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 0.5%;
//    max-height: 90%;
//    background-color: #fff;
    background-color: rgba(0, 0, 0, 0.0);
    overflow-y: auto;
    z-index:35000;
}
@media screen and (max-width: 767px) {
    .sub_window {
//        width: calc(100% - 20px);
//        width: calc(100% - 20px);
        width: 100%;
    }        
}
@media print, (min-width: 768px) {
    .sub_window {
        width: 100%;
        //max-width: 900px;
    }
}

.close_sub_window {
    position: absolute;
    top: 2.5%;
    right: 5%;
    transform: rotate(45deg);
    border: none;
    outline: none;
    width: 2vw;
    height: 2vw;
}
.close_sub_window::before,.close_sub_window::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
/*    background-color: #b34522;*/
    background-color: #cccccc;
/*    background-color: #dd3388;*/
    content: "";
}
.close_sub_window::before {
    width: 4.5vw;
    height: 0.8vw;
}
.close_sub_window::after {
    width: 0.8vw;
    height: 4.5vw;
}
.close_sub_window:hover {
    cursor: pointer;
}
.close_sub_window:hover::before {
    background-color: #ffffff;
}
.close_sub_window:hover::after {
    background-color: #ffffff;
}

.sub_window_content {
    display: table;
    margin: 0px auto;

}

