/*--------------------------------------
モーダル
--------------------------------------*/
.entry-modal-pare {
    text-align: left;
    display: initial;
    position: relative;
    z-index: 999;
}

.entry-modal-pare input {
    display: none;
}

.entry-modal-pare label.open,
.close-label {
    cursor: pointer;
}

/*ボタンver*/
.entry-modal-pare label.open {
    padding: .84em 3.3em .84em 3.8em;
    font-family: Hiragino Sans, ヒラギノ角ゴシック, Hiragino Kaku Gothic ProN, ヒラギノ角ゴ ProN W3, メイリオ, Meiryo, sans-serif;
    font-weight: 500;
    font-size: .9em;
    background-color: #f8c678;
    color: #fff;
    border-radius: 5px;
    display: inline-block;
    margin: 0 auto 1em;
    text-align: center;
    letter-spacing: .01em;
}

.entry-modal-pare label.open:hover {
    outline: 1px solid rgb(255, 179, 107);
    color: rgb(255, 179, 107);
    background-color: #fff;
}

.entry-modal-pare label.open:hover:after {
    color: rgb(255, 179, 107);
}

.entry-modal-pare label.open:after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f138";
    display: inline-block;
    padding-left: 8px;
    color: #fff;
}

/*シンプルver*/
.entry-modal-pare.simple {
    display: inline-block;
}

.entry-modal-pare label.simple {
    color: #4f96f6;
    font-size: .95em;
}

.entry-modal-pare label.simple:hover {
    text-decoration: underline;
    cursor: pointer;
    color: #c7511f
}

.entry-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.entry-modal__open:checked + label + input + .entry-modal {
    display: block;
    animation: modal-animation .6s;
}

.entry-modal__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    /* PCでのモーダルの幅 */
    max-width: 650px;
    background-color: #fefefe;
    z-index: 2;
    border-radius: 5px;
}

.close-label {
    background: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.25;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -13px;
    right: -2%;
    z-index: 99999;
    font-size: 1.5em;
}

.entry-modal__content {
    max-height: 70vh;
    /* モーダルの高さ */
    overflow-y: auto;
    padding: 39px 45px 40px;
}

.entry-modal__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes modal-animation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.entry-content .entry-modal__content table {
    margin-bottom: 0;
}

@media only screen and (max-width: 480px) {
    .entry-modal-pare label.open {
        max-width: 90%;
        padding: .94em 2.1em .94em 2.6em;
    }

    .close-label {
        top: -17px;
        right: -4%;
    }

    .entry-modal__content-wrap {
        width: 90vw;
        /* モバイルでのモーダルの幅 */
    }

    .entry-modal__content {
        padding: 33px 21px 35px;
        max-width: 100%;
    }
}
