/* ====================================
   notification.css
   最新のお知らせセクション（TOPページ用・和風ベージュ系）
==================================== */

/* 構造把握のための隠し見出し：画面には表示されませんが、検索エンジンには構造を伝えます */
.notification-main-ttl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 外枠のレイアウト */
.notification-box {
    width: 95%;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fdf6f0; /* 前のベージュ系 */
    border: 1px solid #e0d6c8; /* 枠も落ち着いたベージュ系 */
    box-sizing: border-box;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05); /* 控えめな影 */
}

/* ヘッダー部分 */
.notification-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    padding: 12px 15px;
    background-color: #f8e8d5; /* 前の薄茶色 */
    text-align: center;
    margin-bottom: 20px;
}

.header-title {
    font-size: 20px;
    font-weight: bold;
    color: #4a2e1d; /* 濃い茶色 */
    margin: 0;
}

.past-articles-link {
    font-size: 14px;
    font-weight: bold;
    color: #d16a2b; /* 濃いオレンジ茶 */
    text-decoration: none;
    white-space: nowrap;
    margin: 0 auto;
    transition: color 0.3s;
}

.past-articles-link:hover {
    color: #a84512;
}

/* PC：リンクを右端へ */
@media screen and (min-width: 769px) {
    .header-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .past-articles-link {
        margin-left: auto;
        margin-right: 0;
    }
}

/* SP：縦並びにする */
@media screen and (max-width: 768px) {
    .notification-header {
        flex-direction: column;
        padding: 15px 10px;
    }
    .header-title {
        font-size: 18px;
    }
    .past-articles-link {
        font-size: 12px;
        margin: 0 auto;
    }
}

/* お知らせ本文 */
.notification-content {
    padding: 15px;
}

/* メタ情報 */
.news-meta {
    font-size: 0.9em;
    color: #4a2e1d;
    margin-bottom: 10px;
    text-align: center;
}

.news-meta .news-date {
    font-weight: bold;
    margin-right: 10px;
}

.news-meta .news-category {
    background-color: #f0c78e; /* カテゴリラベルもベージュ系 */
    color: #4a2e1d;
    padding: 3px 10px;
    font-size: 0.85em;
}

/* タイトル */
.news-body .news-title {
    font-size: 20px;
    font-weight: bold;
    color: #4a2e1d;
    margin: 10px 0;
    text-align: center;
}

/* 本文テキスト */
.news-text {
    font-size: 15px;
    line-height: 1.6;
    color: #4a2e1d;
    text-align: center;
    margin-bottom: 20px;
}

/* 画像部分（中央寄せ・大きめ表示） */
.news-image {
    text-align: center;
    margin: 20px 0;
}

.news-image img {
    max-width: 90%;  
    height: auto;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

/* 過去のお知らせリスト */
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-list li {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #e0d6c8;
}

.notification-list .date {
    width: 120px;
    flex-shrink: 0;
    font-weight: bold;
    color: #4a2e1d;
    font-size: 0.9em;
}

.notification-list .article-title {
    flex-grow: 1;
    color: #4a2e1d;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SP：縦並び対応 */
@media screen and (max-width: 480px) {
    .notification-list li {
        flex-direction: column;
        gap: 5px;
    }
    .notification-list .date {
        width: auto;
    }
    .notification-list .article-title {
        width: 100%;
        white-space: normal;
    }
}
