/* =============================================
   ニュースアーカイブ - サイドバー付き2カラムレイアウト
   ============================================= */

.sub-news-archive .news-archive-layout {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 48px;
    align-items: flex-start;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: 0;
}

.sub-news-archive .news-archive-main {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
}

.sub-news-archive .news-archive-sidebar {
    width: 260px !important;
    min-width: 260px;
    flex-shrink: 0 !important;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 28px 24px;
}

.sidebar-heading {
    font-size: 14px;
    font-weight: 600;
    color: #0e357f;
    letter-spacing: 0.06em;
    margin: 0 0 20px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #0e357f;
}

.sidebar-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-tag-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #d0cec5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #313131;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-tag-btn:hover {
    background: #f4f2e9;
    border-color: #28a4a3;
    color: #28a4a3;
}

.sidebar-tag-btn.is-active {
    background: #0e357f;
    border-color: #0e357f;
    color: #ffffff;
}

.sidebar-tag-count {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-left: 2px;
}

.sidebar-tag-btn:hover .sidebar-tag-count {
    color: #28a4a3;
}

.sidebar-tag-btn.is-active .sidebar-tag-count {
    color: rgba(255, 255, 255, 0.75);
}

@media screen and (max-width: 1024px) {
    .sub-news-archive .news-archive-layout {
        flex-direction: column !important;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .sub-news-archive .news-archive-sidebar {
        width: 100% !important;
        min-width: 0;
        position: static;
        order: -1;
        margin-bottom: 24px;
    }

    .sidebar-section {
        padding: 20px;
    }

    .sidebar-tag-list {
        gap: 8px;
    }

    .sidebar-tag-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}