/* ニュースセクション */
.news-section {
    background-color: #ffffff; /* 背景色を白 */
    padding-top: 0px; /* 上部のパディング */
    padding-bottom: 20px; /* 下部のパディング */
    font-family: 'Noto Serif JP', serif;
    text-align: center;
}

/* セクション見出し */
.news-header {
    margin-bottom: 20px;
}

.news-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #003300;
    margin-bottom: 20px;
}

/* ニュースリスト */
.news-list {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    border-top: 1px solid #000; /* 上部の強調ライン */
    border-bottom: 1px solid #000; /* 下部の強調ライン */
}

.news-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.news-item:last-of-type {
    border-bottom: none;
}

.news-date {
    font-size: 16px;
    color: #444;
    width: 100px;
    text-align: left;
}

.news-text {
    font-size: 16px;
    color: #444;
    flex: 1;
    text-align: left;
}

/* お知らせ新着用 */
.news-item.new {
    background-color: #fff7e6;
    border-left: 5px solid #ff6600;
    padding: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

.badge {
    background-color: #ff6600;
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    margin-right: 8px;
    font-size: 0.9em;
}

.news-link-text {
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link-text:hover {
    color: #048319; /* 上品な琥珀（アンバー）系ブラウンに変化 */
}


/* ニュース一覧ボタン */
.news-footer {
    max-width: 800px;
    margin: 10px auto 0;
    display: flex;
    justify-content: flex-end;
}

.news-link {
    font-size: 14px;
    font-weight: bold;
    color: #003300;
    text-decoration: none;
    border: 1px solid #003300;
    padding: 2px 6px;
    transition: all 0.3s ease;
}

.news-link:hover {
    background-color: #003300;
    color: #ffffff;
}

/* レスポンシブ対応: スマホ表示でのニュースセクション調整 */
@media (max-width: 768px) {
    .news-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .news-footer .news-link {
        margin-right: 10px; /* ボタンの右側余白 */
    }

    .news-date {
        font-size: 14px; /* スマホ版のフォントサイズ */
        color: #444; /* スマホ版の色 */
        width: 86px; /* スマホ版の幅 */
        text-align: left;
    }

    .news-text {
        font-size: 14px; /* スマホ版のフォントサイズ */
        color: #444; /* スマホ版の色 */
        flex: 1;
        text-align: left;
    }
}

/* ニュースセクション (PC版: 768px以上) */
@media (min-width: 769px) {
    .news-date {
        font-size: 16px; /* PC版のフォントサイズ */
        color: #444; /* PC版の色 */
        width: 105px; /* PC版の幅 */
        text-align: left;
    }

    .news-text {
        font-size: 16px; /* PC版のフォントサイズ */
        color: #444; /* PC版の色 */
        flex: 1;
        text-align: left;
    }
}


 /* ★ スマホ用の新着スタイル */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        width: auto;
        margin-bottom: 4px;
    }

    .news-text {
        font-size: 14px;
        flex: unset;
        width: 100%;
    }

    /* ★ スマホ用の新着スタイル補強 */
    .news-item.new {
        background-color: #fff7e6;
        border-left: 5px solid #ff6600;
        padding: 10px;
        margin-bottom: 10px;
        width: 100%;
        display: block;
    }

    .badge {
        display: inline-block;
        background-color: #ff6600;
        color: white;
        padding: 3px 8px;
        border-radius: 5px;
        font-size: 0.9em;
        margin-right: 6px;
        margin-bottom: 6px;
    }

    .news-link-text {
        display: inline-block;
        color: #444;
        text-decoration: none;
    }
}
