/* Before & After Section */
.ba-container {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* スマホ向けに縮小 */
    margin-top: 2rem; /* スマホ向けに縮小 */
}

@media (min-width: 768px) {
    .ba-container {
        gap: 3rem;
        margin-top: 3rem;
    }
}

.ba-category-title {
    color: var(--c-accent-cyan);
    font-size: 1.2rem; /* スマホサイズ */
    margin-bottom: 1.5rem;
    font-family: var(--font-jp-serif);
    border-bottom: 1px solid rgba(127, 234, 255, 0.3);
    padding-bottom: 0.5rem;
    display: inline-block;
}

@media (min-width: 768px) {
    .ba-category-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
}

.ba-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ba-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
}

.ba-card {
    padding: 1.5rem; /* スマホ向けパディング */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .ba-card {
        padding: 2rem;
    }
}

/* Before Styles */
.ba-card.before {
    background: rgba(20, 20, 30, 0.8);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .ba-card.before {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }
}

.ba-card.before .ba-label {
    background: #444;
    color: #ccc;
}

.ba-card.before .ba-title {
    color: #aaa;
    font-weight: 500;
}

.ba-card.before .ba-desc {
    color: #888;
}

/* After Styles */
.ba-card.after {
    background: linear-gradient(135deg, rgba(50, 20, 60, 0.9), rgba(80, 40, 90, 0.9));
    position: relative;
    overflow: hidden;
}

.ba-card.after::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/img_benefits_bg.png');
    /* Reuse background for texture if needed, or subtle noise */
    background-size: cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.ba-card.after .ba-label {
    background: var(--c-accent-gold);
    color: #000;
    box-shadow: 0 0 10px var(--c-accent-gold);
}

.ba-card.after .ba-title {
    color: var(--c-text-white);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ba-card.after .ba-desc {
    color: var(--c-text-main);
}

/* Common Elements */
.ba-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    font-family: var(--font-en);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.ba-title {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.ba-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Arrow */
.ba-arrow {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
}

.ba-arrow::after {
    content: "↓";
}

@media (min-width: 768px) {
    .ba-arrow {
        top: 50%;
        left: auto;
        right: -1rem;
        bottom: auto;
        transform: translateY(-50%);
        z-index: 10;
        color: var(--c-accent-gold);
        text-shadow: 0 0 5px var(--c-accent-gold);
    }

    .ba-arrow::after {
        content: "→";
    }
}