/* 🎯 AndSecurity 従業員の声セクション専用CSS - 理想レイアウト⑩.png完全対応 */

/* ================================================
   セクション8: 従業員の声 - 大型カード3つレイアウト
   ================================================ */

/* メインセクションスタイル */
.testimonial-section {
    background: #ffffff !important;
    padding: 100px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(29, 42, 74, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(0, 102, 204, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* メインタイトル */
.testimonial-main-title {
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1D2A4A !important;
    margin-bottom: 60px !important;
    line-height: 1.4 !important;
    text-shadow: 0 2px 4px rgba(29, 42, 74, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
}

.testimonial-main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #1D2A4A 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ================================================
   大型カード3つの縦並び配置レイアウト
   ================================================ */

.testimonial-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
}

/* 大型カードスタイル（理想レイアウト⑩.png対応） */
.testimonial-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 30px !important;
    width: 100% !important;
    min-height: 200px !important;
    margin-bottom: 30px !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 42, 74, 0.02) 0%, rgba(0, 102, 204, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(0, 102, 204, 0.2) !important;
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* ================================================
   左右分割デザイン（左30%：右70%）Flexbox実装
   ================================================ */

.testimonial-content {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    min-height: 140px !important;
}

/* 左側30%: 円形人物画像エリア */
.testimonial-image {
    flex: 0 0 30% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-right: 20px !important;
}

/* 円形画像スタイル（120px×120px） */
.testimonial-avatar {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid rgba(29, 42, 74, 0.1) !important;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
}

.testimonial-card:hover .testimonial-avatar {
    border-color: rgba(0, 102, 204, 0.3) !important;
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.05) !important;
}

/* 右側70%: プロフィール + 証言内容エリア */
.testimonial-text {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 15px !important;
    padding-left: 10px !important;
}

/* ================================================
   タイポグラフィ - 理想レイアウト⑩.png対応
   ================================================ */

/* プロフィール（18px, color: #666） */
.testimonial-profile {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #666666 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
}

/* 証言ハイライト部分 */
.testimonial-quote {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.testimonial-quote p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333333 !important;
    margin: 0 !important;
    font-weight: 500 !important;
    text-align: left !important;
    position: relative !important;
}

/* 引用符スタイル（オプション） */
.testimonial-quote p::before {
    content: '"';
    font-size: 24px !important;
    color: #0066cc !important;
    font-weight: 700 !important;
    position: absolute !important;
    left: -15px !important;
    top: -5px !important;
    line-height: 1 !important;
}

.testimonial-quote p::after {
    content: '"';
    font-size: 24px !important;
    color: #0066cc !important;
    font-weight: 700 !important;
}

/* ================================================
   レスポンシブ対応
   ================================================ */

/* タブレット向け調整 */
@media (max-width: 1024px) {
    .testimonial-section {
        padding: 80px 20px !important;
    }
    
    .testimonial-main-title {
        font-size: 26px !important;
        margin-bottom: 50px !important;
    }
    
    .testimonial-cards {
        max-width: 900px !important;
        gap: 25px !important;
    }
    
    .testimonial-card {
        padding: 25px !important;
        margin-bottom: 25px !important;
    }
    
    .testimonial-content {
        gap: 25px !important;
    }
    
    .testimonial-avatar {
        width: 100px !important;
        height: 100px !important;
    }
}

/* スマートフォン向け調整 */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 60px 15px !important;
    }
    
    .testimonial-main-title {
        font-size: 24px !important;
        margin-bottom: 40px !important;
        padding: 0 10px !important;
    }
    
    .testimonial-cards {
        gap: 20px !important;
    }
    
    .testimonial-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
        min-height: auto !important;
    }
    
    /* モバイルでは縦並び配置に変更 */
    .testimonial-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    
    .testimonial-image {
        flex: none !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
    
    .testimonial-text {
        padding-left: 0 !important;
        text-align: center !important;
    }
    
    .testimonial-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    .testimonial-profile {
        font-size: 16px !important;
        text-align: center !important;
    }
    
    .testimonial-quote p {
        font-size: 15px !important;
        text-align: center !important;
        line-height: 1.5 !important;
    }
    
    .testimonial-quote p::before,
    .testimonial-quote p::after {
        display: none !important;
    }
}

/* 極小デバイス対応 */
@media (max-width: 480px) {
    .testimonial-main-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
    
    .testimonial-card {
        padding: 15px !important;
        border-radius: 12px !important;
    }
    
    .testimonial-content {
        gap: 15px !important;
    }
    
    .testimonial-avatar {
        width: 70px !important;
        height: 70px !important;
    }
    
    .testimonial-profile {
        font-size: 15px !important;
    }
    
    .testimonial-quote p {
        font-size: 14px !important;
    }
}

/* ================================================
   アクセシビリティとパフォーマンス最適化
   ================================================ */

/* フォーカス状態の改善 */
.testimonial-card:focus {
    outline: 3px solid rgba(0, 102, 204, 0.5) !important;
    outline-offset: 2px !important;
    box-shadow: 
        0 0 0 3px rgba(0, 102, 204, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* GPU加速最適化 */
.testimonial-card,
.testimonial-avatar {
    will-change: transform !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
}

/* reduced-motionユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonial-avatar {
        transition: none !important;
        animation: none !important;
    }
    
    .testimonial-card:hover,
    .testimonial-card:hover .testimonial-avatar {
        transform: none !important;
    }
    
    /* アニメーション無効時の代替スタイル */
    .testimonial-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }
}

/* ================================================
   高コントラスト対応
   ================================================ */

@media (prefers-contrast: high) {
    .testimonial-card {
        border: 2px solid #000 !important;
        background: #fff !important;
    }
    
    .testimonial-profile {
        color: #000 !important;
        font-weight: 700 !important;
    }
    
    .testimonial-quote p {
        color: #000 !important;
        font-weight: 600 !important;
    }
    
    .testimonial-avatar {
        border: 3px solid #000 !important;
    }
}