/* ==========================================
   Before Cut After 画像セクション
   ========================================== */
.section-intro {
    text-align: center;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 10px;
}

.section-intro strong {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 900;
}

.before-after-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 15px 0;
    padding: 0 8px;
}

.ba-image-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ba-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #ff0050;
    width: 100%;
}

.ba-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 11px;
    font-family: var(--font-accent);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.ba-label-before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ba-label-cut {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ba-label-after {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ba-caption {
    display: none;
}

.ba-arrow {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #ff0050;
}



.ba-arrow i {
    text-shadow: none;
}

/* 赤い下向き矢印 */
.ba-arrows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 8px;
    margin-top: 5px;
}

.ba-arrow-down {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 25px solid #ff0050;
    margin: 0 auto;
}

/* タブレット・PC対応 */
@media (min-width: 768px) {
    .before-after-images {
        flex-direction: row;
        max-width: 100%;
        justify-content: center;
        align-items: flex-start;
    }
    
    .ba-image-item {
        width: 280px;
    }
    
    .ba-arrow {
        font-size: 40px;
        margin: 0 20px;
        align-self: center;
    }
    
    .ba-arrow i {
        transform: rotate(-90deg);
    }
    
    @keyframes arrowBounce {
        0%, 100% { transform: rotate(-90deg) translateY(0); }
        50% { transform: rotate(-90deg) translateY(10px); }
    }
}

/* 大きい画面用 */
@media (min-width: 1024px) {
    .ba-image-item {
        width: 320px;
    }
}