/* ニュース一覧画面のmain余白調整 */
.news-main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 90px 0 64px 0;
    box-sizing: border-box;
}

/* ニュース一覧 固定長リスト */
.news-list-fixed {
    max-height: 420px;
    min-height: 420px;
    overflow-y: auto;
}

/* ニュース一覧 日付 */
.news-list .news-date {

    margin: 10px;
    min-width: 90px;
    color: #888;
    font-size: .98rem;
}

/* ニュース一覧ページネーション */
.news-pagination {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.news-page-link {
    color: #00adb5;
    text-decoration: underline;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 6px;
}

.news-page-link:hover {
    background: #00adb5;
    color: #fff;
    text-decoration: none;
}

.news-page-current {
    font-weight: bold;
    color: #00adb5;
    padding: 2px 10px;
    border-radius: 6px;
    background: #e6fafd;
}

/* ニュース詳細画像 */
.news-detail-image-wrap {
    width: 100%;
    margin-bottom: 28px;
    text-align: center;
}

.news-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px #0002;
    background: #f7f7f7;
}

/* ニュース詳細ページ全体のレイアウト */
.news-detail-main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 90px 0 64px 0;
}

/* 記事本体 */
.news-detail-article {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 日付表示 */
.news-date {
    margin-bottom: 32px;
    color: #888;
    font-size: 1rem;
    min-width: 90px;
}

/* 戻る・トップボタン配置 */
.news-detail-links {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

/* ニュース詳細画面の戻る・トップボタン */
.news-detail-links {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #00adb5;
    border: 1.5px solid #00adb5;
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px #00adb522;
    cursor: pointer;
}

.back-btn:hover {
    background: #00adb5;
    color: #fff;
    border-color: #00adb5;
    box-shadow: 0 4px 16px #00adb533;
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

/* news_list.twig, news_detail.twig専用CSS */
.news {
    background: #f7f7f7;
}

.news-title {
    color: #222831;
    font-size: 2rem;
    margin-bottom: 24px;
}

.news-list-scroll {
    max-height: 260px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
}

.news-list-wrap {
    width: 100%;
    max-width: 600px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    width: 100%;
    max-width: 600px;
    flex: 1 1 auto;
}

.news-more-link-wrap {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: flex-end;
    margin-top: -24px;
    margin-bottom: 24px;
}

.news-more-link {
    white-space: nowrap;
    color: #00adb5;
    text-decoration: underline;
    font-size: 1rem;
}


.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.news-link {
    color: #00adb5;
    font-size: 1.08rem;
    text-decoration: none;
}

.news-link:hover {
    text-decoration: underline;
}


@media screen and (max-width: 800px) {

    .news-item {
        padding: 10px;
        border-radius: 8px;
    }

    .news-list-fixed,
    .news-list-wrap {
        width: 90%;
    }

    .news-detail-article {
        width: 90%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}