/*モーダルを開くボタン*/
.modal-open,
.modal02-open{
    display: inline-block;
    font-size: 1.6rem;
}

/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container,
.modal02-container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 50%);
    padding: 40px 20px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-sizing: border-box;
    z-index: 999;
}

/*モーダル本体の擬似要素の指定*/
.modal-container:before,
.modal02-container:before{
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active,
.modal02-container.active{
    opacity: 1;
    visibility: visible;
}

/*モーダル枠の指定*/
.modal-body {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: 450px;
    width: 90%;
}

/*モーダルを閉じるボタンの指定*/
.modal-close,
.modal02-close{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -30px;
    right: -20px;
    width: 30px;
    height: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
}

/*モーダル内のコンテンツの指定*/
.modal-content {
    background: #fff;
    text-align: left;
    padding: 25px 15px;
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.5;
}

.modal-content p {
    margin-bottom: 3%;
}

.modal-content p span{
    display:inline;
    color: #D13F1D;
}

.modal-content a {
    display: inline-block;
    margin: 2% auto;
    width: 80%;
    max-width: 280px;
    background-color: #142364;
    color: #fff;
    padding: 5px;
    border-radius: 15px;
}
