/* PC styles */

/* Modal styles */
.modal {
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal__container {
    background: url(/images/conclusion/modal-bg_middle.png);
    background-position: center;
    background-repeat: repeat-y;
    background-size: 100% auto;
    width: 95%;
    height: 90%;
    max-width: 795px;
    max-height: 762px;
    box-sizing: border-box;
    position: relative;
    padding: 0 0 46px 0;
}

.modal__container::before {
    content: '';
    position: absolute;
    top: -14px;
    width: 100%;
    max-width: 795px;
    height: 16px;
    background-image: url(/images/conclusion/modal-bg_top.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.modal__container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    width: 100%;
    max-width: 795px;
    height: 16px;
    background-image: url(/images/conclusion/modal-bg_bottom.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.modal__container-deco {
    position: absolute;
    top: 10px;
    left: 20px;
}

.modal__header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 37px 0 0 0;
}

.modal__title {
    box-sizing: border-box;
}

.modal__close {
    background: transparent;
    border: 0;
}

.modal__header .modal__close:before {
    content: "\2715";
}

.modal__content-wrap {
    width: 89%;
    height: calc(100% - 96px);
    overflow-y: auto;
    margin: 35px auto 0;
}

.modal__content {
    height: auto;
    padding: 40px 0;
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    background-color: #fff;
}

.modal__content__text {
    padding: 70px 0 0 0;
}

.modal__content__text--first {
    padding: 25px 0 0 0;
}

.modal__content__text > img {
    display: block;
    margin: 0 auto;
}

.modal__content__text--comp {
    padding: 220px 0 0 0;
}

.modal__content__btn {
    display: block;
    margin: 55px auto 0;
}

.modal__content__btn--comp {
    margin: 210px auto 0;
}

.modal-radio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2%;
    row-gap: 15px;
    width: 100%;
    margin: 45px auto 0;
}

.modal-radio-box {
    position: relative;
    width: 21%;
}

.modal-radio-box-tile {
    display: flex;
    justify-content: center;
    background-color: #96C8E6;
    padding: 10px 25px;
    border: 3px solid #0068B6;
    border-radius:.5em;
    width: 100%;
}

.modal-radio {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    cursor: pointer;
}

.modal-radio__text {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.modal-radio:checked  + .modal-radio-box-tile {
    background-color: #FBAE39;
    border: 3px solid #F8941E;
}

.modal__error {
    display: none;
    margin: 10px 0 0 0;
    color: #ff0000;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.modal__error--display {
    display: block;
}

@keyframes mmfadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mmfadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes mmslideIn {
    from {
        transform: translateY(15%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes mmslideOut {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10%);
    }
}

.micromodal-slide {
    display: none;
}

.micromodal-slide.is-open {
    display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
    animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
    animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
    animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
    animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
    will-change: transform;
}

/* star-rating style */
.modal__content__rating {
    display: flex;
    justify-content: center;
    margin: 45px 0 0 0;
}

:root {
    --gl-star-size: 3rem;
}

.gl-star-rating--stars {
    gap: 1rem;
}

/* style */
.c-display--pc {
    display: block !important;
}

.c-display--sp {
    display: none !important;
}

.js-input-rating--comp {
    display: none;
}

#js-button-back-top {
    display: none;
}

#js-button-input-rating {
    display: block;
}
#js-button-input-rating:hover img {
    opacity: 0.7;
}
#js-button-input-rating img {
    transition: opacity 0.2s;
}

/* Tablet */
@media screen and (max-width: 767px) {
    .modal__content-wrap {
        width: 89%;
        height: calc(100% - 75px);
        margin: 5.7% auto;
        overflow-y: auto;
    }
    .modal__container::before {
        top: -10px;
        height: 16px;
    }

    .modal__content__text > img  {
        width: 95%;
    }

    .modal__content__text--first > img {
        width: auto;
    }

    .modal-radio__text {
        font-size: 1.82vw;
    }
}


/* SP styles */
@media screen and (max-width:599px) {
    .modal__container {
        height: auto;
        padding: 0 0 0 0;
    }

    .modal__container-deco {
        width: 25%;
    }
    .modal__title > img {
        width: 23.5vw;
    }

    .modal__content-wrap {
        width: 89%;
        height: 67%;
        margin: 5.7% auto;
        overflow-y: auto;
    }

    .modal__content {
        width: 100%;
        padding: 3% 0;
    }

    .modal__content__text {
        padding: 7% 0 0 0;
    }

    .modal__content__text > img {
        width: 72%;
    }

    .modal__content__text--first > img {
        width: 40%;
    }

    .modal-radio-container {
        row-gap: 10px;
        margin: 9.5% auto 0;
    }

    .modal__container::before {
        top: -1vw;
        height: 16px;
    }

    .modal-radio-box {
        width: 30%;
    }

    .modal-radio-box-tile {
        padding: 10px;
    }

    .modal-radio__text {
        font-size: 3vw;
    }

    .modal__content__text--comp {
        padding: 20.5% 0 0 0;
    }

    .modal__content__rating {
        margin: 9.5% 0 0;
    }

    :root {
        --gl-star-size: 2rem;
    }

    .gl-star-rating--stars {
        gap: 0.5rem;
    }

    .modal__content__btn {
        margin: 9.5% auto 0 auto;
        padding: 0 0 7% 0;
        width: 31%;
    }

    .modal__content__btn--comp {
        margin: 14% auto 0 auto;
    }

    .c-display--pc {
        display: none !important;
    }

    .c-display--sp {
        display: block !important;
    }
}