@charset "UTF-8";

/* ==========================================================================
   news.css ニュース・お知らせ共通スタイル（stores.css統一調和テイスト）
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. トップページ用：最新のお知らせ（1件引用表示エリア #js-news-latest）
   -------------------------------------------------------------------------- */
.news-section {
    padding: 60px 20px;
    background-color: #fffaf5; /* stores.cssと統一 */
}

.news-head {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #8b5e3c; /* 和風の深みのある茶線 */
    padding-bottom: 12px;
}

.news-head h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a3d32;
    margin: 0;
}

.news-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #1a3d32;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-more-link:hover {
    color: #8b5e3c;
}

/* 1件表示用カードスタイル */
.news-latest {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.news-latest .news-item {
    background-color: #ffffff;
    border: 1px solid #e0d5c5; /* stores.cssと同様の細い和風枠線 */
    border-radius: 0; /* 角丸を排して上品な和の佇まいに */
    overflow: hidden;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.news-latest .news-item:hover {
    border-color: #8b5e3c;
    background-color: #fffdf9;
}

.news-latest .news-link {
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-decoration: none;
    color: #444444;
    gap: 10px;
}

@media (min-width: 768px) {
    .news-latest .news-link {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.news-date {
    font-size: 0.9rem;
    color: #1a3d32;
    font-weight: 600;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b5e3c;
    background-color: #fff3e6; /* stores.cssのアクセント背景色 */
    border-radius: 4px;
    line-height: 1;
    letter-spacing: 0.05em;
}

.news-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1a3d32;
    line-height: 1.5;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* --------------------------------------------------------------------------
   2. 一覧読み込みエリア（#news-section / #dynamic-notification-list）
   -------------------------------------------------------------------------- */
.notification-box {
    padding: 60px 20px;
    background-color: #fffaf5;
}

.notification-header {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #1a3d32;
    margin: 0;
}

.past-articles-link {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a3d32;
    border: 1px solid #e0d5c5;
    border-radius: 0;
    text-decoration: none;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.past-articles-link:hover {
    background-color: #8b5e3c;
    color: #ffffff;
    border-color: #8b5e3c;
}

/* 一覧リスト全体の装飾 */
.notification-list {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 取得された各リスト項目（li）のスタイル */
.notification-list li {
    background-color: #ffffff;
    border: 1px solid #e0d5c5;
    border-radius: 0;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.notification-list li:hover {
    border-color: #8b5e3c;
    background-color: #fffdf9;
}

.notification-list li a {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    text-decoration: none;
    color: #444444;
    gap: 8px;
}

@media (min-width: 768px) {
    .notification-list li a {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }
}

/* リスト内部の要素（取得元のクラス名に対応） */
.notification-list time,
.notification-list .date {
    font-size: 0.85rem;
    color: #1a3d32;
    font-weight: 600;
    min-width: 90px;
}

.notification-list .category {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b5e3c;
    background-color: #fff3e6;
    border-radius: 4px;
    width: fit-content;
}

.notification-list .title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a3d32;
}