/* ミニマル＆スタイリッシュなヘッダー */
.testimonials-elegant-header {
    margin-bottom: 30px;
}

.testimonials-title-minimal {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 0 30px 0;
    color: #000;
    letter-spacing: -1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.testimonials-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
}

.testimonials-success-text {
    display: inline-block;
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #4FA5E6 20%, 
        #1a1a1a 40%, 
        #6BB6EA 60%, 
        #1a1a1a 80%, 
        #4FA5E6 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: testimonials-gradient-shift 4s ease-in-out infinite;
    letter-spacing: 1px;
    font-weight: 900;
    vertical-align: middle;
    line-height: 1;
}

@keyframes testimonials-gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.testimonials-maline-logo-wrap {
    display: inline-flex;
    align-items: center;
    margin: 0 5px;
    line-height: 1;
}

.testimonials-maline-logo {
    height: 4rem;
    width: auto;
    display: block;
}

.testimonials-maline-proof {
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #4FA5E6 20%, 
        #1a1a1a 40%, 
        #6BB6EA 60%, 
        #1a1a1a 80%, 
        #4FA5E6 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: testimonials-gradient-shift 4s ease-in-out infinite;
    font-weight: 900;
    vertical-align: middle;
    line-height: 1;
}

.testimonials-proof-desktop {
    display: inline;
}

.testimonials-proof-mobile {
    display: none;
}

.testimonials-subtitle-minimal {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin: 0 0 30px 0;
    font-weight: 400;
}

/* お客様の声カルーセルスタイル */
.testimonials-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    overflow: hidden;
}

/* メイン表示エリア */
.main-testimonial-display {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border: 1px solid rgba(79, 165, 230, 0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 900px;
}

.main-testimonial-display .testimonial-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.main-testimonial-display .customer-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.main-testimonial-display .placeholder-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4FA5E6 0%, #3394E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.main-testimonial-display .customer-info {
    flex: 1;
    min-width: 200px;
}

.main-testimonial-display .customer-info h4 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.main-testimonial-display .customer-info p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.main-testimonial-display .result-badge {
    background: linear-gradient(135deg, #87CEEB 0%, #5DADE2 100%);
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.25);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.main-testimonial-display .testimonial-image {
    margin: 35px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    background: #f5f5f5;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    position: relative;
}

.main-testimonial-display .testimonial-visual {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.main-testimonial-display .testimonial-image:hover .testimonial-visual {
    transform: scale(1.02);
}

.main-testimonial-display .testimonial-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #2c3e50;
    margin: 0;
    padding: 30px 0 0 0;
    border: none;
    background: none;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-align: left;
}

.main-testimonial-display .testimonial-text strong {
    color: #4FA5E6;
    font-weight: 700;
    background: linear-gradient(to bottom, transparent 60%, rgba(79, 165, 230, 0.15) 60%);
    padding: 2px 0;
}

/* サムネイルエリア */
.testimonials-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: nowrap;
    margin-bottom: 5px;
    overflow-x: auto;
    padding: 5px 0 0 0;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* 下部画像サムネイルナビゲーター */
.testimonials-image-thumbnails {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 20px 20px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-image-thumb {
    width: 280px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.testimonial-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.testimonial-image-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(79, 165, 230, 0.25);
    border-color: #4FA5E6;
}

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

.testimonial-image-thumb.active {
    border-color: #4FA5E6;
    box-shadow: 0 8px 25px rgba(79, 165, 230, 0.3);
    transform: translateY(-3px);
}

.testimonial-image-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-image-thumb:hover::after {
    opacity: 1;
}

.testimonial-image-thumb.active::after {
    opacity: 0.5;
    background: linear-gradient(135deg, rgba(79, 165, 230, 0.4) 0%, rgba(107, 182, 234, 0.4) 100%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .testimonials-image-thumbnails {
        gap: 15px;
        padding: 30px 15px 15px;
    }
    
    .testimonial-image-thumb {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
}

.testimonial-thumbnail {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 260px;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    box-sizing: border-box;
}

.testimonial-thumbnail:hover {
    border-color: #4FA5E6;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(79, 165, 230, 0.2);
}

.testimonial-thumbnail.active {
    border-color: #4FA5E6;
    background: linear-gradient(135deg, #f5faff 0%, #edf6ff 100%);
    box-shadow: 0 12px 35px rgba(79, 165, 230, 0.25);
    transform: translateY(-2px);
}

.testimonial-thumbnail img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-thumbnail .thumbnail-avatar-emoji {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4FA5E6 0%, #3394E1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-thumbnail .thumbnail-info {
    flex: 1;
    text-align: left;
}

.testimonial-thumbnail .thumbnail-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.testimonial-thumbnail .thumbnail-company {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .testimonials-title-minimal {
        font-size: 2.5rem;
    }

    .testimonials-success-text {
        font-size: 2.2rem;
        padding: 10px 24px;
    }

    .testimonials-ga {
        font-size: 3rem;
    }

    .testimonials-subtitle-minimal {
        font-size: 1rem;
    }

    .testimonials-carousel-container {
        min-height: 1200px;
    }

    .main-testimonial-display {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-testimonial-display .testimonial-image {
        aspect-ratio: 16 / 9;
        height: auto;
        width: 100%;
    }

    .main-testimonial-display .customer-avatar,
    .main-testimonial-display .placeholder-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .main-testimonial-display .customer-info h4 {
        font-size: 1.3rem;
    }

    .main-testimonial-display .customer-info p {
        font-size: 0.9rem;
    }

    .main-testimonial-display .result-badge {
        font-size: 0.85rem;
        padding: 8px 20px;
    }

    .main-testimonial-display .testimonial-text {
        font-size: 1rem;
        line-height: 1.9;
    }

    .testimonials-thumbnails {
        gap: 10px;
        padding: 5px 10px 0 10px;
        justify-content: flex-start;
    }

    .testimonial-thumbnail {
        max-width: 100%;
        min-width: 200px;
        padding: 12px 15px;
        box-sizing: border-box;
    }

    .testimonial-thumbnail img,
    .testimonial-thumbnail .thumbnail-avatar-emoji {
        width: 56px;
        height: 56px;
        font-size: 1.7rem;
    }

    .testimonial-thumbnail .thumbnail-name {
        font-size: 0.95rem;
    }

    .testimonial-thumbnail .thumbnail-company {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .testimonials-title-minimal {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .testimonials-success-text {
        font-size: 1.8rem;
    }

    .testimonials-maline-logo {
        height: 2.5rem;
    }

    .testimonials-maline-proof {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .testimonials-proof-desktop {
        display: none;
    }
    
    .testimonials-proof-mobile {
        display: inline;
    }

    .testimonials-subtitle-minimal {
        font-size: 0.95rem;
    }

    .testimonials-carousel-container {
        min-height: 800px;
        height: auto;
    }
    
    .main-testimonial-display {
        min-height: 850px;
        padding: 25px 15px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-testimonial-display .testimonial-image {
        aspect-ratio: 16 / 9;
        height: auto;
        max-height: 300px;
    }
    
    .main-testimonial-display .testimonial-visual {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonials-thumbnails {
        flex-direction: column;
        overflow-x: visible;
        padding: 5px 15px 0 15px;
    }

    .testimonial-thumbnail {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 下部の画像サムネイルを3列横並びに */
    .testimonials-image-thumbnails {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 20px 10px;
    }

    .testimonial-image-thumb {
        width: 100%;
        height: 120px;
    }
}
