/* =========================================
    10. Before/After (スライダー)
========================================= */
.before-after {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
}

.swipe-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 700;
    animation: bounceHorizontal 2s infinite;
}

@keyframes bounceHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.ba-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 20px 30px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ba-slider::-webkit-scrollbar {
    display: none;
}

.ba-slide {
    flex: 0 0 90%;
    max-width: 500px; /* PCでも大きくなりすぎないように調整 */
    scroll-snap-align: center;
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
}

.ba-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ba-box {
    position: relative;
    flex: 1;
}

.ba-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.ba-label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    letter-spacing: 0.1em;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ba-before .ba-label {
    background: #999;
}

.ba-after .ba-label {
    background: var(--primary-orange);
}

.ba-text {
    text-align: left; /* テキストは左揃えの方が読みやすいので調整 */
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    padding: 5px;
}