body { padding: 0; margin: 0 }
#unity-container { position: absolute; z-index:0; }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { width: 100%; height: 100% }
#unity-canvas { background: #231F20 }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-dark.png') no-repeat center }
#unity-progress-bar-empty { width: 141px; height: 18px; margin-top: 10px; margin-left: 6.5px; background: url('progress-bar-empty-dark.png') no-repeat center }
#unity-progress-bar-full { width: 0%; height: 18px; margin-top: 10px; background: url('progress-bar-full-dark.png') no-repeat center }
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

.modal{
    display: none;
    z-index:10;
}
.modal.show{
    display: block;
}

.modal,
.modal_bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
}

.modal_bg{
    background-color: transparent;
}

.modal_inner{
    width: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
    overflow: auto;    
}
#modal_img{
    width: 100%;
    height: auto;
}

.modal_contents{
    position: absolute;
    left: 50%;
    top: calc(50% - 20px);
    transform: translate(-50%, -50%);
    background:rgba(255,255,255,0.5);
    color:#333;
    width:80%;
    height: 80%;
}

#modal_notice{
    width: 100%;
    min-height: 40px;
    color:#000;
    background:#ccc;
    font-size:20px;
    line-height: 40px;
    text-align: center;
    bottom:100%;
    box-sizing: border-box;
    padding:0 10px;
}

.only_sp{
    display: none;
}

@media (max-width: 1058px) {
    #modal_notice{
        font-size:1.5vw;
    }
}
@media (max-width: 600px) {
    .only_pc{
        display: none;
    }
    .only_sp{
        display: inherit;
    }
    #modal_box_img .modal_contents{
        width:calc(100% - 20px);
        top:calc(50% - 10px);
        height: auto;
        max-height:calc(100% - 20px);
    }
    #modal_notice{
        line-height: 16px;
        font-size:1.5vw;
        padding-top:5px;
        min-height: auto;
    }
}



.modal_close{
	cursor:pointer;
    text-align: center;
    font-size:40px;
    color:#000;
    background-image:url("btn_close.png");
    background-repeat: no-repeat;
    background-size: contain;
    
    right:25px;
    top:15px;
}
@media (max-width: 600px) {
    .modal_close{
        top:5px;
        right:5px;
    }
}
.all_modal_close{
    display: none;
    width: 34px;
    height: 34px;
}
.all_modal_close.show{
    display: block;
    position: absolute;
}
.video_modal_close{
    position: absolute;
    width: 68px;
    height: 68px;
}
@media (max-width: 600px) {
    .modal_close{
        width: 34px;
        height: 34px;
    }
}

#modal_box_video .modal_contents{
    width: 80%;
    max-width:1560px;
    top:50%;
    height:auto;
}


#modal_box_video .modal_inner{
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bg_video_modal{
    position: absolute;
    top:0;
    left:0;
    height: 100%;
}

.modal_video_list{
    position: absolute;
    background:#000;
    display: none;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.modal_video_list.show{
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
}
.modal_video_list img{
    width: 25%;
    height:auto;
    cursor: pointer;
}
#modal_box_video .modal_inner #video_box{
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height:100%;
    margin:auto;
    background: #000;
}
#modal_box_video .modal_inner #video_box.show{
    display: flex;
    justify-content: center;
}
#modal_box_video .modal_inner #video_iframe_box{
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
@media (max-width: 600px) {
    #modal_box_video .modal_contents{
        width:calc(100% - 20px);
        height:calc(100% - 20px);
    }

    .modal_video_list img{
        width:50%;
    }
}

