﻿@charset "UTF-8";

/*  modal
------------------------------------------------------------------*/
.modal{
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease-out;
    z-index: 1000;
}
.modal.is-show{
    opacity: 1;
    visibility: visible;
}
@media screen and (max-width:575px){
    .modal{
        padding: 30px 10px;
    }
}

/*  modal-overlay
------------------------------------------------------------------*/
.modal-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    cursor: pointer;
    z-index: -1;
}

/*  modal-box
------------------------------------------------------------------*/
.modal-box{
    position: relative;
    display: none;
    width: 100%;
    max-width: 1100px;
    max-height: calc(100vh - 60px);
    max-height: calc(100svh - 60px); /* iOS対策 */
    padding: 40px 20px 80px 40px;
    background: #fff;
}
@media screen and (max-width:767px){
    .modal-box{
        padding: 30px 10px 70px 20px;
    }
}

/*  modal-container
------------------------------------------------------------------*/
.modal-container{
    max-height: calc(100vh - 200px);
    max-height: calc(100svh - 200px); /* iOS対策 */
    padding-right: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}
.modal-container::-webkit-scrollbar{
    width: 4px;
}
.modal-container::-webkit-scrollbar-track{
    background: #ccc;
}
.modal-container::-webkit-scrollbar-thumb{
    background: var(--primary-color);
}
@media screen and (max-width:575px){
    .modal-container{
        padding-right: 10px;
        max-height: calc(100vh - 160px);
        max-height: calc(100svh - 160px); /* iOS対策 */
    }
}

/*  modal-close
------------------------------------------------------------------*/
.modal-close{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding-top: 15px;
    text-align: center;
}
@media screen and (max-width:575px){
    .modal-close{
        height: 60px;
        padding-top: 10px;
    }
}

/*  modal-close-btn
------------------------------------------------------------------*/
.modal-close-btn{
    display: inline-block;
    padding: 15px 40px;
    background: #333;
    border-radius: 2em;
    color: #fff;
    line-height: 1;
    transition: .2s;
}
.modal-close-btn:hover{
    background: var(--primary-color);
}
@media screen and (max-width:575px){
    .modal-close-btn{
        padding: 10px 40px;
    }
}