/**
 * ニュースアーカイブページ専用スタイル
 *
 * @package Yorisou
 */

/* ============================================
   アーカイブヘッダー
   ============================================ */
   .archive-header {
    text-align: center;
    margin-top: 80px;
    padding-bottom: 3rem;
    /* ヘッダーメニューと被らないように上部余白を追加 */
}

/* .archive-title は common.css のスタイルを継承 */

.archive-description {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
}

/* ============================================
   ニュースリスト
   ============================================ */
/* ニュースリストコンテナ */
.news-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ニュースアイテム */
.news-item {
    border-bottom: 1px solid #e9e9e9;
    transition: background-color 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f9f9f9;
}

/* ニュースアイテムリンク */
.news-item-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.news-item:hover .news-item-link {
    padding-left: 1.5rem;
}

/* 日付ボックス */
.news-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    flex-shrink: 0;
}

.news-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
}

.news-date {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* ニュース内容 */
.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    line-height: 1.6;
}

.news-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 矢印アイコン */
.news-arrow {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.news-item:hover .news-arrow {
    transform: translateX(0.25rem);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .news-list {
        padding: 1rem 0.5rem;
    }

    .news-item-link {
        gap: 1rem;
        padding: 1.25rem 0.75rem;
    }

    .news-item:hover .news-item-link {
        padding-left: 1rem;
    }

    .news-date-box {
        min-width: 70px;
    }

    .news-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .news-date {
        font-size: 0.75rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-excerpt {
        font-size: 0.8125rem;
    }

    .news-arrow {
        font-size: 1.125rem;
    }
}

@media screen and (max-width: 480px) {
    .news-item-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-date-box {
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    .news-arrow {
        align-self: flex-end;
        margin-top: -2rem;
    }
}