@charset "UTF-8";

/* 事業別ブログ一覧ページ用スタイル */
.page-template-page-blog #main_content .l-content,
.page-template-page-blog #main_content .l-container {
    background-color: #F9F9F9;
}

.p-blog-container {
    padding-bottom: 160px;
}

/* カテゴリフィルタタブ */
.p-blog__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.p-blog__tab {
    display: inline-flex;
    align-items: center;
    padding: 4px 16px;
    border: 1px solid var(--color_main);
    border-radius: 2px;
    color: var(--color_main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.p-blog__tab:hover,
.p-blog__tab.is-active {
    background-color: var(--color_main);
    color: #ffffff;
}

/* カードグリッド */
.p-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px;
    margin-bottom: 48px;
}

/* 記事なし */
.p-blog__empty {
    text-align: center;
    padding: 64px 0;
    color: var(--color_text);
    font-size: 14px;
}

/* VIEW MORE */
.p-blog__more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* タブレット */
@media screen and (min-width: 600px) and (max-width: 1024px) {
    .p-blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SP */
@media screen and (max-width: 599px) {
    .p-blog-container {
        padding-bottom: 80px;
    }

    .p-blog__tabs {
        margin-top: 32px;
        margin-bottom: 32px;
        gap: 6px;
    }

    .p-blog__tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .p-blog__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }

    .p-blog__more {
        margin-top: 32px;
    }
}
