/* Voice Page Specific Styles */

/* Page Header (共通スタイルを再利用) */
.page-header {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A5F8E 0%, #2E86C1 100%);
    opacity: 0.95;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-title {
    margin-bottom: 20px;
}

.page-title .title-en {
    font-size: 14px;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
    opacity: 1;
    color: #E8F8F5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-title .title-ja {
    font-size: 36px;
    font-weight: 700;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.6;
}

.breadcrumb span {
    margin: 0 10px;
}

/* Voice Intro */
.voice-intro {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 18px;
    line-height: 2;
    color: var(--text-dark);
}

/* Satisfaction Stats */
.satisfaction-stats {
    padding: 80px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .stat-item:hover {
        transform: none;
    }
}

.stat-icon {
    margin-bottom: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* Service Tabs */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.service-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 30px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover,
.tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    overflow: hidden;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 60px;
    color: rgba(46, 134, 193, 0.1);
    font-weight: 700;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.customer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.customer-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-light);
}

.customer-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.customer-details p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(46, 134, 193, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.rating .stars {
    color: #FFA726;
    font-size: 18px;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-result {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.result-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.result-text {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Industry Voices */
.industry-voices {
    padding: 80px 0;
    background: var(--bg-light);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.industry-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.industry-item:hover {
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .industry-voices {
        overflow: hidden;
    }
}

.industry-icon {
    margin-bottom: 20px;
}

.industry-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.industry-item p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.industry-stat {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(46, 134, 193, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Implementation Flow */
.implementation-flow {
    padding: 80px 0;
    background: white;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.flow-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.flow-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.flow-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.flow-step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.flow-step p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Filter Functionality */
.testimonial-card.hidden {
    display: none;
}

.testimonial-card.filtered {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    .page-header {
        height: 200px;
        margin-top: 60px;
    }

    .page-title .title-ja {
        font-size: 28px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    /* Tabs */
    .service-tabs {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .tab-button {
        width: 200px;
        text-align: center;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .testimonial-card {
        padding: 25px;
        transform: none;
    }
    
    .testimonial-card:hover {
        transform: none;
    }

    .customer-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .customer-details {
        text-align: center;
    }

    .testimonial-header {
        flex-direction: column;
        gap: 15px;
    }

    .rating {
        text-align: center;
    }

    /* Industry */
    .industry-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .industry-item {
        padding: 30px 25px;
        transform: none;
    }
    
    .industry-item:hover {
        transform: none;
    }

    /* Flow */
    .flow-steps {
        grid-template-columns: 1fr;
    }

    .flow-step::after {
        display: none;
    }

    .flow-step {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    /* Fix mobile scrolling issues */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    /* Page Title */
    .page-title .title-ja {
        font-size: 24px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    /* Text Sizes */
    .intro-text {
        font-size: 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 18px;
    }

    /* Tabs */
    .tab-button {
        padding: 10px 20px;
        font-size: 14px;
        width: 180px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
        margin: 0 auto;
        max-width: 100%;
    }

    .customer-photo {
        width: 50px;
        height: 50px;
    }

    .customer-details h3 {
        font-size: 16px;
    }

    .customer-details p {
        font-size: 13px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .result-label,
    .result-text {
        font-size: 13px;
    }

    /* Industry */
    .industry-item {
        padding: 25px 20px;
        margin: 0 auto;
        max-width: 100%;
    }

    .industry-item h3 {
        font-size: 18px;
    }

    .industry-item p {
        font-size: 13px;
    }

    /* Flow */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .flow-step h3 {
        font-size: 16px;
    }

    .flow-step p {
        font-size: 13px;
    }
}

/* Animation for filtered testimonials */
.testimonial-card {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.testimonial-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.testimonial-card.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Loading state for testimonials */
.testimonials-loading {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light);
}

.testimonials-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}