.bslg-news-topic-tab-card-frame {
    box-sizing: border-box;
}

.bslg-news-topic-tab-card {
    width: 100%;
    color: #202936;
    font-family: "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

.bslg-news-topic-card-tabs {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 0 28px 0;
    border-left: 1px solid #b7b7e1;
}

.bslg-news-topic-card-tabs-align-left { justify-content: flex-start; }
.bslg-news-topic-card-tabs-align-center { justify-content: center; }
.bslg-news-topic-card-tabs-align-right { justify-content: flex-end; }
.bslg-news-topic-card-tabs-wrap { flex-wrap: wrap; }
.bslg-news-topic-card-tabs-nowrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}
.bslg-news-topic-card-tabs-equal .bslg-news-topic-card-tab {
    flex: 1 1 0;
    min-width: 0;
}
.bslg-news-topic-card-tabs-auto .bslg-news-topic-card-tab {
    flex: 1 1 0;
    min-width: 0;
}

.bslg-news-topic-card-tab {
    min-width: 150px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid #b7b7e1;
    border-bottom: 1px solid #b7b7e1;
    background: linear-gradient(#ffffff, #f1f1f1);
    color: #17146f;
    font-size: var(--bslg-news-header-font-size, 14px);
    font-weight: var(--bslg-news-header-weight, 700);
    letter-spacing: 0.04em;
    cursor: pointer;
    position: relative;
}

.bslg-news-topic-card-tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bslg-news-topic-tab-color, #8f8f8f);
}

.bslg-news-topic-card-tab.is-active {
    background: #ffffff;
    border-bottom: 1px solid #ffffff;
}

.bslg-news-topic-card-grid {
    display: grid !important;
    grid-template-columns: repeat(var(--bslg-news-topic-card-columns-pc, 4), minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.bslg-news-topic-card-item {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    border: 1px solid #c8ced6;
    background: #ffffff;
    color: #202936;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.bslg-news-topic-card-item:hover {
    color: #202936;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.bslg-news-topic-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #dfe5ea;
    overflow: hidden;
}

.bslg-news-topic-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bslg-news-topic-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: linear-gradient(135deg, #e6edf3, #cfd9e2);
    color: #5d6c7b;
    font-weight: 700;
    text-align: center;
    line-height: 1.6;
    box-sizing: border-box;
}

.bslg-news-topic-card-new-label {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 6px;
    background: var(--bslg-news-new-bg, #e60012);
    color: var(--bslg-news-new-text, #ffffff);
    font-size: var(--bslg-news-new-font-size, 11px);
    font-weight: var(--bslg-news-new-weight, 800);
    line-height: 1;
    z-index: 2;
}

.bslg-news-topic-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 26px 26px;
}

.bslg-news-topic-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.bslg-news-topic-card-date {
    color: var(--bslg-news-date-text, #082448);
    font-size: var(--bslg-news-date-font-size, 14px);
    font-weight: var(--bslg-news-date-weight, 800);
    letter-spacing: .03em;
    white-space: nowrap;
}

.bslg-news-topic-card-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 2px;
    background: var(--bslg-news-topic-card-category-color, #999999);
    color: var(--bslg-news-category-text, #ffffff);
    font-size: var(--bslg-news-category-font-size, 13px);
    font-weight: var(--bslg-news-category-weight, 700);
    line-height: 1.2;
}

.bslg-news-topic-card-title {
    color: var(--bslg-news-title-text, #082448);
    font-size: var(--bslg-news-title-font-size, 14px);
    line-height: 1.75;
    font-weight: var(--bslg-news-title-weight, 400);
    word-break: break-word;
}

.bslg-news-topic-card-description {
    margin-top: 10px;
    color: #596879;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 500;
    word-break: break-word;
}

.bslg-news-topic-card-empty {
    grid-column: 1 / -1;
    padding: 32px 0;
    color: #777777;
    text-align: center;
    border: 1px solid #d8e0e8;
    background: #ffffff;
}

.bslg-news-topic-card-item.is-hidden {
    display: none !important;
}

@media screen and (max-width: 1100px) {
    .bslg-news-topic-card-grid {
        grid-template-columns: repeat(var(--bslg-news-topic-card-columns-tablet, 2), minmax(0, 1fr));
    }
}

@media screen and (max-width: 820px) {
    .bslg-news-topic-card-grid {
        grid-template-columns: repeat(var(--bslg-news-topic-card-columns-tablet, 2), minmax(0, 1fr));
    }

    .bslg-news-topic-card-tabs {
        margin-bottom: 22px;
    }

    .bslg-news-topic-card-tabs-equal .bslg-news-topic-card-tab,
    .bslg-news-topic-card-tabs-auto .bslg-news-topic-card-tab {
        flex: 1 1 calc(50% - 1px);
        min-width: 0;
        width: auto;
    }

    .bslg-news-topic-card-tabs-nowrap .bslg-news-topic-card-tab {
        flex: 0 0 auto;
        min-width: 150px;
    }

    .bslg-news-topic-card-body {
        padding: 18px 18px 22px;
    }
}

@media screen and (max-width: 560px) {
    .bslg-news-topic-card-grid {
        grid-template-columns: repeat(var(--bslg-news-topic-card-columns-mobile, 1), minmax(0, 1fr));
    }

    .bslg-news-topic-card-title {
        font-size: 15px;
    }
}

/* v1.1.15: タブ別パネル方式。非表示パネルは必ず隠す。
   .bslg-news-topic-card-grid の display:grid!important が勝つと、
   全カテゴリのパネルが下に全部表示されるため、ここも !important で制御する。 */
.bslg-news-topic-card-panels {
    width: 100%;
}

.bslg-news-topic-card-panel {
    display: none !important;
}

.bslg-news-topic-card-panel.is-active {
    display: grid !important;
}


.bslg-news-topic-tab-card .bslg-news-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:var(--bslg-news-pagination-gap,6px); margin-top:var(--bslg-news-pagination-margin-top,20px); }
.bslg-news-topic-tab-card .bslg-news-pagination[hidden] { display:none !important; }
.bslg-news-topic-tab-card .bslg-news-pagination button { min-width:var(--bslg-news-pagination-min-width,36px); height:var(--bslg-news-pagination-height,36px); padding:0 10px; border:var(--bslg-news-pagination-border-width,1px) solid var(--bslg-news-pagination-border-color,#b7b7e1); border-radius:var(--bslg-news-pagination-radius,4px); background:var(--bslg-news-pagination-bg,#fff); color:var(--bslg-news-pagination-text,#17146f); font-size:var(--bslg-news-pagination-font-size,13px); font-weight:var(--bslg-news-pagination-font-weight,600); cursor:pointer; }
.bslg-news-topic-tab-card .bslg-news-pagination .bslg-news-page-prev,.bslg-news-topic-tab-card .bslg-news-pagination .bslg-news-page-next { min-width:max(64px,var(--bslg-news-pagination-min-width,36px)); }
.bslg-news-topic-tab-card .bslg-news-pagination button:not(:disabled):not(.is-active):hover { background:var(--bslg-news-pagination-hover-bg,#f5f5f5); }
.bslg-news-topic-tab-card .bslg-news-pagination .bslg-news-page-number.is-active { background:var(--bslg-news-pagination-active-bg,#17146f); color:var(--bslg-news-pagination-active-text,#fff); }
.bslg-news-topic-tab-card .bslg-news-pagination button:disabled { opacity:.45; cursor:default; }
.bslg-news-topic-tab-card-frame .bslg-news-shape-space { position:relative; width:100%; overflow:hidden; }
