.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: 0 0 auto;
}

.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: 14px;
    font-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;
    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;
    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: #f4ff19;
    color: #009f97;
    font-size: 13px;
    font-weight: 700;
    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: #627386;
    font-size: 14px;
    font-weight: 700;
    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;
    border-left: 4px solid var(--bslg-news-topic-card-category-color, #999999);
    background: #eef2f5;
    color: #415166;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.bslg-news-topic-card-title {
    color: #202936;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 800;
    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;
}

@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;
    }
}
