/* ========================================
   フィルタータブ
======================================== */
.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: #fff;
    border-color: transparent;
}

/* ========================================
   支援事例一覧
======================================== */
.cases-list-section {
    padding: 80px 0;
}

.cases-list-section .case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========================================
   Case Card - Sairu Style
   .cases-list-section で詳細度を上げ、
   common.css の旧 .case-card を確実にオーバーライド
======================================== */
.cases-list-section .case-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    background: #000;
    padding: 0;
}

.cases-list-section .case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10, 18, 60, 0.16);
}

/* Photo - full bleed background */
.cases-list-section .case-card-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.cases-list-section .case-card:hover .case-card-photo {
    transform: scale(1.04);
}

/* Gradient - bottom 1/4 only (Pro-D-use style) */
.cases-list-section .case-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.15) 75%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Dual logos - Stella + Client (Sairu style) */
.cases-list-section .case-card-logos {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cases-list-section .case-card-logo {
    width: 110px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
}

.cases-list-section .case-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.cases-list-section .case-card-logo-stella {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cases-list-section .case-card-logo-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

/* Text overlay - bottom area */
.cases-list-section .case-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px;
}

.cases-list-section .case-card-company {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cases-list-section .case-card-excerpt {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Service badge - top right */
.cases-list-section .case-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 2px;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 991px) {
    .cases-list-section {
        padding: 64px 0;
    }

    .cases-list-section .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .filter-tabs {
        gap: 8px;
        margin-bottom: 36px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .cases-list-section {
        padding: 48px 0;
    }

    .cases-list-section .case-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cases-list-section .case-card {
        aspect-ratio: 16 / 10;
    }

    .cases-list-section .case-card-content {
        padding: 16px;
    }

    .filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin: 0 -20px 32px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .filter-btn {
        flex-shrink: 0;
    }
}
