@keyframes slideDownFull {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 41, 89, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.modal-overlay.is-active {
    display: flex;
    animation: slideDownFull 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards
}

.modal-container__inner {
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 10px;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.modal-container__inner {
    overflow-y: auto;
}



.modal-close-x {
    position: fixed;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
}

.modal-header-content {
    background-color: #f4f7f8;
    padding: 40px 50px;
}

.profile-flex {
    display: flex;
    align-items: center;
    gap: 25px;
}

@media (max-width: 768px) {
    .profile-flex {
        gap: 5px;
    }
}

.m-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ddd;
}


@media (max-width: 768px) {
    .m-avatar {
        width: 15vw;
        height: 15vw;
    }
}

.m-info {
    text-align: left;
}

.m-info .m-tag {
    background-color: #003060;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    display: inline-block;
    border-radius: 5px;
    margin-bottom: 8px;
}

.m-name-wrap {
    margin: 0;
    font-size: 38px;
    color: #002d62;
    font-weight: bold;
    display: flex;
    align-items: first baseline;
    line-height: 1;
}

@media (max-width: 768px) {
    .m-name-wrap {
        font-size: clamp(13px, 2.25vw, 27px);
        font-size: clamp(20px, 5.25vw, 47px);
        flex-direction: column;
        gap: 5px;
    }
}

.m-name-wrap span {
    font-size: clamp(16px, 3.56vw, 36px);
    margin-left: 4px;
    color: #002d62;
    /* display: inline-flex; */
    display: block;
    align-items: end;
}

.m-name-wrap sub {
    font-size: 16px;
    color: #002d62;
    font-weight: 500;
    margin-left: 0px;
    bottom: 0;
}


.m-name-wrap small {
    font-size: 16px;
    color: #002d62;
    font-weight: 500;
    margin-left: 15px;
}


@media (max-width: 768px) {
    .m-name-wrap span {
        display: inline-flex;
        align-items: center;
        font-size: clamp(20px, 5.25vw, 47px);
    }
}


.modal-body {
    padding: 40px 50px;
    background-color: #fff;
}

.modal-body h3 {
    color: #002d62;
    font-weight: 500;
    font-size: 22px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .modal-body h3 {
        font-size: clamp(14px, 2.5vw, 18px);
        font-size: clamp(16px, 3.56vw, 30px);
    }
}

.modal-body p {
    color: #333;
    font-weight: 500;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}


@media (max-width: 768px) {
    .modal-body p {

        font-size: clamp(14px, 2.5vw, 18px);
    }
}


.m-btn-close {
    display: block;
    width: 220px;
    margin: 20px auto 40px;
    padding: 0.15em 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-weight: 500;
    color: #002d62;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s;
}

@media (max-width: 768px) {
    .m-btn-close {
        font-size: clamp(13px, 2.25vw, 27px);
    }
}

.m-btn-close:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
    }

    .modal-close-x {
        top: 3px;
        right: 15px;
    }

    .profile-flex {
        text-align: center;
    }

    .modal-header-content, .modal-body {
        padding: 30px 20px;
    }

    .m-name-wrap small {
        /* display: block; */
        /* margin-left: 0; */
        margin-top: 5px;
        font-size: clamp(16px, 2.25vw, 27px);

    }

    .forSP.m-tag {
        padding: 0.36em 0;
        text-align: center;
        color: #fff;
        margin: 0 auto;
        background: #002d62;
        border-radius: 5px;
        margin-bottom: 1rem;
    }
}