/* ==============================================
   CUSTOMER-VOICE.CSS - お客様の声セクションスタイル
   ============================================== */

/* お客様の声セクションの英語ワード - 背景色が異なるため調整 */
.customer-voice-section .section-title-en {
    color: rgba(173, 216, 230, 0.9); /* 薄い水色 - 暗い背景に対して少し濃く */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* 暗い背景に対するテキストシャドウ */
}

/* お客様の声セクション */
.customer-voice-section {
    padding: var(--space-md) 0;
    margin: 0;
    background: #0c3c69;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
}

.customer-voice-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/customer_voice_bg.jpg') center/cover;
    opacity: 0;
    z-index: 0;
}

.customer-voice-section .section-title {
    color: white;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.customer-voices-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 40vw, 400px), 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
    position: relative;
    z-index: 1;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* voice-card 2列表示時の余白問題修正 */
.voice-item {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: opacity 1.2s var(--transition-slow),
                transform 1.2s var(--transition-slow);
}

.voice-item.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.voice-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: var(--space-sm);
    position: relative;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
                0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal),
                box-shadow var(--transition-normal);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr clamp(150px, 20vw, 200px);
    grid-template-rows: auto 1fr;
    gap: var(--space-sm);
    grid-template-areas: 
        "header avatar"
        "text text";
}

.voice-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(72, 202, 228, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.voice-card:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
    opacity: 1;
}

.voice-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
                0 12px 24px rgba(0, 0, 0, 0.08);
}

.voice-card::after {
    display: none;
}

.voice-avatar {
    grid-area: avatar;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    width: 200px;
    max-width: 200px;
}

.voice-avatar img {
    width: clamp(120px, 18vw, 200px); /* 比率ベースサイズ */
    height: clamp(120px, 18vw, 200px); /* 比率ベースサイズ */
    object-fit: cover;
    transition: transform var(--transition-normal);
}

/* 個別の画像配置調整（はみ出し効果に最適化） */
.voice-avatar img[src*="customer_voice_woman01.png"] {
    object-position: center 15%; /* 顔を上部に配置 */
}

.voice-avatar img[src*="customer_voice_man01.png"] {
    object-position: center 20%; /* 顔を上部に配置 */
}

.voice-avatar img[src*="customer_voice_woman02.png"] {
    object-position: center 10%; /* 顔を上部に配置 */
}

.voice-avatar img[src*="customer_voice_man02.png"] {
    object-position: center 15%; /* 顔を上部に配置 */
}

/* woman_babyはそのまま中央配置 */
.voice-avatar img[src*="customer_voice_woman_baby01.png"] {
    object-position: center center;
}

.voice-card:hover .voice-avatar img {
    transform: scale(1.05);
}

.voice-initial {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.43rem;
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(135deg, #4A90E2, #48CAE4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* New voice-header styles for 4-division grid layout */
.voice-header {
    grid-area: header;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.voice-rating {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.3rem;
}

.voice-rating .star {
    font-size: 1.17rem;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.voice-text {
    grid-area: text;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
}

.voice-title {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1.69rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.voice-text {
    position: relative;
}

.voice-text p {
    font-family: 'Sawarabi Gothic', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* 吹き出し風の装飾 */
.voice-card::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 2rem;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgba(255, 255, 255, 0.95);
    z-index: 1;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.1));
}

/* ==============================================
   レスポンシブ対応 - タブレット・モバイル
   ============================================== */

/* 960px-1049pxブレークポイント削除: 比率ベースで自動調整
   .voice-avatar imgのサイズはclamp()により自動対応 */

/* voice-card モバイル対応 */
@media (max-width: 959px) {
    .voice-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        grid-template-areas: 
            "header"
            "avatar"
            "text";
        text-align: center;
    }
    
    .voice-header {
        text-align: center;
    }
    
    .voice-avatar {
        justify-self: center;
        width: 150px;
        max-width: 150px;
    }
    
    /* voice-avatar imgサイズは比率ベースで自動調整 */
} 