@charset "utf-8";

.news_list_section {
    max-width: 1100px;
    padding: 4rem 0 4rem;
}

/* === Latest News Section === */
.latest_news_section_wrapper {
    background-color: #f0f2f5; /* 背景色 */
    padding: 30px 0;
}

.latest_news_container {
    align-items: stretch;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    margin: 0 auto;
    max-width: 1100px; /* コンテナの最大幅 */
    padding: 24px;
}

.latest_news_title_area {
    border-right: 1px solid #e0e0e0; /* タイトルとコンテンツの区切り線 */
    display: flex; /* タイトルを垂直中央に配置するため（オプション） */
    flex-basis: 200px; /* タイトルエリアの基本幅 */
    flex-shrink: 0; /* 幅が縮まないように */
    margin-right: 24px;
    padding-right: 24px;
    /* align-self: stretch; は親の align-items: stretch; でカバーされる */
}

.latest_news_section_title {
    color: #333333;
    font-size: 1.15em; /* 18px / 16px */
    font-weight: 600;
    margin: 0; /* h2のデフォルトマージンリセット */
}

.latest_news_content_area {
    display: flex;
    flex-direction: column; /* お知らせアイテムと一覧リンクを縦に並べる */
    flex-grow: 1; /* 残りのスペースを全て使う */
    justify-content: space-between; /* 上のアイテムと下のリンクを両端に配置 */
}

.latest_news_item {
    /* お知らせ一件のスタイル */
}

.news_item_header {
    align-items: center;
    display: flex;
    gap: 8px; /* アイコンと日付の間隔 */
    margin-bottom: 8px;
}

.news_item_icon {
    color: #ffc107; /* アイコンの色 (ゴールド/オレンジ系) */
    height: 18px; /* アイコンサイズ */
    width: 18px; /* アイコンサイズ */
}

.news_item_date {
    color: #555555;
    font-size: 0.875em; /* 14px / 16px */
    font-weight: 500;
}

.news_item_summary {
    color: #444444;
    font-size: 0.9375em; /* 15px / 16px */
    line-height: 1.7;
    margin: 0 0 16px 0; /* 下にマージン */
}

.news_list_link_wrapper {
    /* margin-top: auto; は justify-content: space-between; で不要になることも */
    text-align: right; /* リンクを右寄せ */
}

.news_list_link {
    color: #007bff;
    font-size: 0.875em; /* 14px / 16px */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news_list_link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .latest_news_container {
        flex-direction: column; /* タイトルとコンテンツを縦積みに */
        align-items: stretch;  /* 縦積みでもstretchを維持 */
        padding: 20px;
    }

    .latest_news_title_area {
        align-items: flex-start; /* モバイルではタイトルを上寄せに戻す */
        border-bottom: 1px solid #e0e0e0; /* 下に区切り線 */
        border-right: none; /* 元の区切り線を消す */
        display: block; /* flexを解除 */
        flex-basis: auto; /* 幅を自動に */
        margin-bottom: 20px;
        margin-right: 0;
        padding-bottom: 15px;
        padding-right: 0;
        width: 100%;
    }

    .latest_news_section_title {
        font-size: 1.1em;
    }
    .latest_news_content_area {
        justify-content: flex-start; /* モバイルでは上から順に配置 */
    }
    .news_item_summary {
        font-size: 0.9em;
    }

    .news_list_link_wrapper {
        margin-top: 16px; /* 縦積み時のマージン調整 */
    }
}

@media (max-width: 480px) {
    .latest_news_section_wrapper {
        padding: 20px 0;
    }
    .latest_news_container {
        padding: 15px;
    }
    .latest_news_title_area {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    .news_item_icon {
        height: 16px;
        width: 16px;
    }
    .news_item_date {
        font-size: 0.825em;
    }
    .news_item_summary {
        font-size: 0.875em;
    }
    .news_list_link {
        font-size: 0.825em;
    }
}