/* モーダル全体のスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* モーダルコンテンツ */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 75%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.send-email-title,
.send-email-list-title,
.section-list-title,
.schools-list-title,
.reg-event-list-title,
.reg-video-list-title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 5px;
}

.news-headlines {
    cursor: pointer;
    width: 680px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-details-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 72px;
}

.news-details-image img {
    max-width: 90%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.news-details-header {
    font-family: Noto Sans JP;
    text-align: center;
}

.news-details-title {
    font-weight: 500;
    font-size: 16px;
    color: #4f4f4f;
    margin-bottom: 36px;
}

.news-details-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 72px;
}

.news-details-date {
    color: #9a9a9a;
    font-weight: 900px;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-sub-contents {
    display: flex;
    justify-content: center;
    margin-bottom: 72px;
}

.back-container {
    width: 150px;
    height: 28px;
    margin: 20px auto 100px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #9a9a9a;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    border: none;
    cursor: pointer;
    padding: 0;
}

.back_label {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    font-family: Noto Sans JP !important;
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 15px;
        max-width: 90%;
    }

    .news-details-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .news-details-content {
        width: 95%;
        font-size: 13px;
    }
}
