/*---------共通-----------*/
.content {
    max-width: 1000px;
    margin: auto;
}

section {
    margin-top: 20px;
}

.back-link,
.home-link {
    display: inline-block;
    font-size: 1.2rem;
    color: inherit;
    text-decoration: none;
    padding-top: 30px;
}


.back-link:hover,
.home-link:hover {
    text-decoration: underline;
    color: var(--main-color);
}

.responsive-br {
    display: none;
}

br.responsive-date-br {
    display: none;
}



/*-------お知らせ一覧----------*/
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    margin-bottom: 10px;
    white-space: nowrap;
}

.date {
    margin-right: 15px
}

.news-list a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: inherit;
    text-underline-offset: 2px;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.news-list a:hover {
    color: var(--main-color);
    text-decoration-color: var(--main-color);
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

#page-numbers {
    display: flex;
    padding: 5px 10px;
    cursor: pointer;
    gap: 10px;
    font-size: 1.2em;
}

#page-numbers:disabled {
    cursor: default;
}

#prev-btn:hover,
#next-btn:hover {
    color: var(--main-color);
}




/*---------お知らせ詳細------------*/
.news-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    font-size: 1.1rem;
}

#prev-news,
#post-news {
    display: inline-block;
    font-size: 1.1rem;
    color: inherit;
    text-decoration: none;
    padding-top: 30px;
}

.back-link:hover,
#prev-news:hover,
#post-news:hover {
    text-decoration: underline;
    color: var(--main-color);
}

#news-image {
    width: 65%;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: cover;
}

.news-textcontent {
    max-width: 650px;
    margin: 0 auto;
}

#news-text {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: left;
}


@media (max-width: 1024px) {


    .news-list li {
        overflow-wrap: break-word;
        word-wrap: break-word;
        white-space: normal;
    }

    .news-list a {
        display: block;
        white-space: normal;
        word-break: break-word;
    }

    .news-list {
        overflow-x: hidden;
    }

    #news-image {
        width: 80%;
    }

}

@media screen and (max-width: 767px) {
    .responsive-br {
        display: inline;
    }

    br.responsive-date-br {
        display: inline;
    }
}