/**
 * お客様の声セクション スタイル
 * css/components/testimonials.css
 */

/* ================================
   お客様の声セクション
================================ */
.testimonials-section {
    background: var(--bg-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* スライダーコンテナ */
.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* 証言アイテム */
.testimonial-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.testimonial-item:hover {
    box-shadow: var(--shadow-md);
}

/* 証言画像 */
.testimonial-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.testimonial-item:hover .testimonial-image img {
    transform: scale(1.05);
}

/* 画像オーバーレイ */
.testimonial-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(52, 152, 219, 0.1) 0%,
        rgba(44, 62, 80, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-item:hover .testimonial-image::before {
    opacity: 1;
}

/* 証言コンテンツ */
.testimonial-content {
    padding: 20px;
}

/* 評価 */
.rating {
    color: #f39c12;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

/* 証言テキスト */
.testimonial-text {
    font-size: 16px;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    position: relative;
    padding-left: 30px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 48px;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* 著者 */
.testimonial-author {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-author::before {
    content: '—';
    color: var(--accent);
}

/* ================================
   スライダーコントロール
================================ */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}

.slider-dot:hover {
    background: var(--text-secondary);
}

.slider-dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

/* 矢印ボタン */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 2;
}

.slider-arrow:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.slider-arrow.prev {
    left: -60px;
}

.slider-arrow.next {
    right: -60px;
}

/* ================================
   アニメーション
================================ */
.testimonial-item {
    opacity: 0;
    transform: translateX(50px);
}

.testimonial-item.animate-in {
    animation: slideInFromRight 0.6s ease forwards;
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   レスポンシブ対応
================================ */
@media (max-width: 1024px) {
    .slider-arrow.prev {
        left: 20px;
    }
    
    .slider-arrow.next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonial-item {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 20px;
    }
    
    .testimonial-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .testimonial-content {
        padding: 0;
        text-align: center;
    }
    
    .testimonial-text {
        font-size: 15px;
        padding-left: 0;
        padding-top: 20px;
    }
    
    .testimonial-text::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .testimonial-author {
        justify-content: center;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .testimonial-item {
        padding: 24px 16px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .rating {
        font-size: 14px;
    }
    
    .testimonial-author {
        font-size: 13px;
    }
    
    .slider-controls {
        margin-top: 24px;
    }
}

/* ================================
   特殊効果
================================ */
/* 背景パターン */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
        circle at 20% 80%,
        rgba(52, 152, 219, 0.05) 0%,
        transparent 50%
    );
    pointer-events: none;
}

/* フォーカス状態 */
.slider-arrow:focus,
.slider-dot:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}