/* 災害時に備えた食品の家庭備蓄の例 モーダル */

/* PCレイアウト */
/*-------------------------------------------*/
.modal-bg {`
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background-color:rgba(0,0,0,0.6);
    cursor:pointer;
}
.modal-wrap {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    z-index:100;
}
.modal-inner {
    position:absolute;
    top:4%;
    left:0;
    right:0;
    width:90%;
    max-width:900px;
    height:calc(84vh - 100px);
    margin:auto;
    line-height:1.6;
}

.modal-inner .content {
    overflow-y:auto;
    width:calc(100% - 100px);
    height:100%;
    background-color:#ffffff;
    margin:0 auto;
    padding:2% 0;
    border:50px solid #6fb92c;
}
.modal-inner img {
    max-width:100%;
    height:auto;
}

.modal-inner h3 {
    margin-bottom:0.5em;
    padding:0 2%;
    text-align:center;
    font-size:1.1em;
}
.modal-inner h4 {
    background-color:#e50012;
    margin-bottom:1em;
    padding:0.5em;
    text-align:center;
    font-weight:normal;
    color:#ffffff;
}
.modal-inner h5 {
    margin-bottom:0.5em;
    padding:0 2%;
    text-align:center;
    font-size:1.1em;
    font-weight:bold;
}
.modal-inner p,
.modal-inner ul {
    padding:0 2%;
}

/* close button */
span.modal-close {
    cursor:pointer;
}
span.modal-close:hover {
    opacity:0.7;
}

.btn-close {
    position:absolute;
    top:30px;
    right:30px;
    width:40px;
    height:40px;
    margin:auto;
    z-index:9999;
}
.btn-close span {
    display:inline-block;
    background-repeat:no-repeat;
    background-position:left center;
    background-image:url("../images/notice_close.png");
    background-size:contain;
    width:100%;
    height:100%;
    text-indent:-9999px;
    z-index:2;
    cursor:pointer;
    transition:opacity .3s ease-in;
}




/* 768px以下 */
/*-------------------------------------------*/
@media only screen and (max-width: 768px) {

.modal-inner {
    width:calc(94% - 8vw);
    height:calc(86vh - 8%);
}
.modal-inner .content {
    width:calc(100% - 8vw);
    border:4vw solid #6fb92c;
}

.btn-close {
    top:calc(4vw - 15px);
    right:calc(4vw - 15px);
    width:30px;
    height:30px;
}

}
/*-------------------------------------------*/
/* 768px以下 END */











