/* ===== voiceページ固有のスタイル ===== */

/* ページタイトルセクション - 背景画像のみ定義 */
.page-title__bg {
    background-image: url('../images/voice-bg.jpg');
}

/* お客様の声セクション */
.voice-section {
    padding: var(--spacing-2xl) 0;
}

.voice-section:nth-child(odd) {
    background-color: #f8f9fa;
}

.voice-section:nth-child(even) {
    background-color: var(--color-white);
}


/* お客様の声グリッド */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

/* お客様の声カード */
.voice-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.voice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-main), var(--color-dark));
}

/* カードヘッダー */
.voice-header {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
}

.voice-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.voice-location {
    font-size: var(--font-sm);
    color: var(--color-main);
    font-weight: bold;
    background-color: rgba(220, 0, 12, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    align-self: flex-start;
}

.voice-customer {
    font-size: var(--font-lg);
    font-weight: bold;
    color: var(--color-dark-gray);
}

.voice-age {
    font-size: var(--font-sm);
    color: #666;
}

.voice-rating {
    flex-shrink: 0;
}

.stars {
    color: #ffd700;
    font-size: var(--font-lg);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* カードコンテンツ */
.voice-content {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
}

.voice-title {
    font-size: var(--font-lg);
    font-weight: bold;
    color: var(--color-dark-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.voice-text {
    font-size: var(--font-sm);
    line-height: 1.8;
    color: var(--color-dark-gray);
    margin: 0;
}

/* 吹き出し風デザイン */
.voice-card {
    position: relative;
}

.voice-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: var(--spacing-lg);
    font-size: 60px;
    color: rgba(220, 0, 12, 0.2);
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

.voice-content::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: var(--spacing-lg);
    font-size: 60px;
    color: rgba(220, 0, 12, 0.2);
    font-family: serif;
    line-height: 1;
    z-index: 1;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .voice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 900px) {
    .intro__title {
        font-size: var(--font-2xl);
    }

    .intro__text {
        font-size: var(--font-sm);
    }

    .voice-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .voice-header {
        padding: var(--spacing-md);
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .voice-rating {
        align-self: flex-end;
    }

    .voice-content {
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
    }

    .voice-title {
        font-size: var(--font-md);
    }

    .voice-text {
        font-size: var(--font-xs);
    }
}

@media (max-width: 576px) {
    .intro__content {
        padding: 30px 15px;
    }

    .intro__title {
        font-size: var(--font-xl);
        margin-bottom: 20px;
    }

    .intro__text {
        font-size: var(--font-sm);
    }

    .voice-section {
        padding: var(--spacing-lg) 0;
    }

    .voice-grid {
        gap: var(--spacing-md);
    }

    .voice-card {
        border-radius: 8px;
    }

    .voice-header {
        padding: var(--spacing-sm);
    }

    .voice-customer {
        font-size: var(--font-md);
    }

    .voice-location {
        font-size: var(--font-xs);
    }

    .voice-age {
        font-size: var(--font-xs);
    }

    .stars {
        font-size: var(--font-md);
    }

    .voice-content {
        padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-sm);
    }

    .voice-title {
        font-size: var(--font-sm);
        margin-bottom: var(--spacing-sm);
    }

    .voice-text {
        font-size: var(--font-xs);
        line-height: 1.6;
    }

    .voice-content::before,
    .voice-content::after {
        font-size: 40px;
    }

    .voice-content::before {
        top: -5px;
        left: var(--spacing-sm);
    }

    .voice-content::after {
        bottom: 5px;
        right: var(--spacing-sm);
    }
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voice-card {
    animation: fadeInUp 0.6s ease forwards;
}

.voice-card:nth-child(1) {
    animation-delay: 0.1s;
}

.voice-card:nth-child(2) {
    animation-delay: 0.2s;
}

.voice-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* プリント時の調整 */
@media print {
    .voice-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .voice-card:hover {
        transform: none;
    }

    .stars {
        color: #333;
    }
}
