/* モーダル */
.modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.2, 1, 0.5, 1);
    z-index: 1000;
}

.modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal.is-closing {
    opacity: 0;
    pointer-events: none;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.modal__content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #32345B;
    padding: 64px;
    max-width: 568px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.2, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.2, 1, 0.5, 1);
}

.modal.is-open .modal__content {
    opacity: 1;
    visibility: visible;
}

.modal__close-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal__image {
    width: 123px;
    height: 44px;
}

.modal__image img {
    width: 100%;
    height: 100%;
}

.modal__name-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.modal__company {
    color: white;
    font-family: "Noto Sans JP",sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
}

.modal__name {
    color: white;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

.modal__description {
    width: 440px;
    color: white;
    font-feature-settings: 'palt' on;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
}

.modal__link {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    padding-right: 36px;
    position: relative;
    width: fit-content;
}

.modal__link::after {
    position: absolute;
    top: 4px;
    right: 0;
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background-image: url('../images/extra-link.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal__link a {
    color: white;
}

@media screen and (max-width: 1440px) {
    /* モーダル */

    .modal__content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 4.444vw;
        max-width: 39.44vw;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.2, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.2, 1, 0.5, 1);
    }

    .modal.is-open .modal__content {
        opacity: 1;
        visibility: visible;
    }

    .modal__close-icon {
        top: 1.667vw;
        right: 1.667vw;
        width: 1.667vw;
        height: 1.667vw;
    }

    .modal__body {
        gap: 1.667vw;
    }

    .modal__image {
        width: 8.542vw;
        height: 3.056vw;
    }

    .modal__name-wrap {
        gap: 0.278vw;
    }

    .modal__company {
        font-size: 1.667vw;
    }

    .modal__name {
        font-size: 1.111vw;
    }

    .modal__description {
        width: 30.556vw;
        font-size: 1.389vw;
    }

    .modal__link {
        font-size: 1.389vw;
        padding-right: 2.5vw;
    }

    .modal__link::after {
        top: 0.278vw;
        width: 1.667vw;
        height: 1.667vw;
    }
}

@media screen and (max-width: 780px) {
    /* モーダル */

    .modal__content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 24px;
        max-width: 89.33%;
        width: 89.33%;
        max-height: 90vh;
        overflow-y: auto;
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.2, 1, 0.5, 1), visibility 0.5s cubic-bezier(0.2, 1, 0.5, 1);
    }


    .modal__close-icon {
        top: 24px;
        right: 24px;
        width: 24px;
        height: 24px;
    }

    .modal__body {
        gap: 24px;
    }

    .modal__image {
        width: 123px;
        height: 44px;
    }

    .modal__name-wrap {
        gap: 4px;
    }

    .modal__company {
        font-size: 12px;
    }

    .modal__name {
        font-size: 16px;
    }

    .modal__description {
        width: 100%;
        font-size: 16px;
    }

    .modal__link {
        font-size: 16px;
        padding-right: 28px;
    }
    
    .modal__link::after {
        top: 4px;
        width: 20px;
        height: 20px;
    }
}
