@charset "UTF-8";

/* ============================================
        20200304 modal
============================================= */

#overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: rgba(255, 255, 255, .80);
}
#modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10001;
    transform: translate(-50%, -50%);
    width: 89.33%;
    box-sizing: border-box;
    /* box-shadow: 0px 0px 30px 15px rgba(0,0,0,0.2); */
    background: url(/contents/topics/image/modal/bg_sp.png) center bottom no-repeat;
    background-size: cover;
    /* max-height: calc(100vh - 50px); */
    max-height: 90%;
    overflow-y: scroll;
    /* border: 1px solid #000000; */
}
#modal .modalTitle{
    margin: 11px 12px 15px 16px;

}
#modal .modalTitle img{
    width: 100%;
}
#modal p{
    color: #FFFFFF;
    font-size: 1.2rem;
    line-height: 1.666;
    text-align:justify;
    padding: 0 12px;
    margin-bottom: 12px;
}
#modal .modalContent{
    background: url(/contents/topics/image/modal/bg-green_sp.png) center top repeat;
    background-size: cover;
    width: 100%;
    box-sizing: border-box;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    -moz-border-image: url(/contents/topics/image/modal/bg-green-line01_sp.png) 1 1 1 1 round round;
    -webkit-border-image: url(/contents/topics/image/modal/bg-green-line01_sp.png) 1 1 1 1 round round;
    -o-border-image: url(/contents/topics/image/modal/bg-green-line01_sp.png) 1 1 1 1 round round;
    border-image: url(/contents/topics/image/modal/bg-green-line01_sp.png) 1 1 1 1 round round;
}
#modal .modalComment{
    padding: 0 12px;
    margin-bottom: 15px;
}
#modal .modalComment img{
    width: 100%;
}
#modal .modalImage{
    
}
#modal .modalImage img{
    width: 100%;
}
#modal .closeContainer{
    height: 59px;
    text-align: center;
    line-height: 1.0;
}
#modal #close{
    display:inline-block;
    margin-top: 17px;
}
#modal #close img{
    width: 27.81vw;
}
#modal button {
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
button#modalOpen{
    border: solid 1px #3cb371;
    background-color: #3cb371;
    background-image: url(/media/image/common/common_icon_arrow01_right_white.png);
    background-repeat: no-repeat;
    background-position: right 2.985% center;
    background-size: 20px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
    padding: 16px 9% 16px 5%;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
    margin: 0 auto;
    color: #fff;
    width: 100%;
    text-align: left;
}
.buttonModal{
    margin-bottom:30px;
}
.active {
    display: block !important;
    animation: active 0.5s;
}
@keyframes active{
    0% {
        opacity: 0;
        margin-top: 30px;
    }
    100% {
        opacity: 1;
        margin-top: 0px;
    }
}

/* 以下、edgeおよびIE11のみ対応 */
/* edge */
_:-ms-lang(x)::backdrop, .active {
    animation: none;
}
/* IE11 */
_:-ms-lang(x)::-ms-backdrop, .active {
   animation: none;
}  


@media print, screen and (min-width: 768px) {
    #modal {
        left: 50%;
        top: 50%;
        z-index: 10001;
        transform: translate(-50%, -50%);
        max-width: 1000px;
        max-height: 619px;
        background: url(/contents/topics/image/modal/bg_pc.png) center bottom no-repeat;
        box-shadow: 0px 0px 30px 15px rgba(0,0,0,0.2);
        background-size: cover;
        border-radius: 20px;
        overflow-y: hidden;
        border: none;
   }
   #modal .modalContent{
        background: none;
        background-size: cover;
        margin: 0px;
        padding: 0px;
        border: none;
        border-image: none;
    }
    #modal .modalTitle{
        margin: 34px 20px 0 20px;
    }
    #modal .modalTitle img{
        width: 100%;
    }
    #modal p{
        display: none;
    }
    #modal .modalComment{
        display: none;
    }
    #modal .modalImage{
        display: none;   
    }
    #modal .closeContainer{
        height: 92px;
        text-align: center;
        line-height: 1.0;
    }
    #modal #close{
        display:inline-block;
        margin-top: 33px;
        cursor: pointer;
    }
    #modal #close img{
        width: 112px;
    }
    button#modalOpen{
        padding-left: 25px;
        background-position: right 10px center;
        background-size: 24px 24px;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
    }
    .topicsButtonWrap button#modalOpen{
        font-size: 1.7rem;
    }
    button#modalOpen:hover{
        background-image: url(/media/image/common/common_icon_arrow01_right.png);
        background-size: 24px 24px;
        background-color: #FFFFFF;
    }
    button#modalOpen:hover {
        color: #3c3c3c;
    }
    /* .active {
    -ms-animation:  none;
    } */
}