/* 参加者の声セクション用スタイル */
.testimonials {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #192740 0%, #15202f 50%, #101a29 100%);
    /* グラデーション追加 */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f8f4e9;
}

/* グリッドパターン用のオーバーレイ */
.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(44, 59, 84, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(44, 59, 84, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    z-index: 1;
    /* 中央に向かって密度が変化するようにグラデーションマスクを適用 */
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.7) 70%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0.7) 70%);
}

/* 微妙な中央強調のためのオーバーレイ */
.testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(44, 59, 84, 0.1) 0%, transparent 70%);
    z-index: 1;
}

/* 粒子コンテナはグリッドデザインでは非表示 */
.particles-container {
    display: none;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

/* タイトルの色と装飾 */
.testimonials h2 {
    position: relative;
    display: inline-block;
    margin: 0 auto 50px;
    padding-bottom: 0 !important;
    border: none !important;
    color: #f8f4e9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* タイトル下の装飾線を完全に削除 */
.testimonials h2::after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}

/* 3Dカルーセル用のスタイル */
.carousel-container {
    position: relative;
    width: 100%;
    height: 700px;
    margin: 0 auto;
    perspective: 1200px;
    overflow: visible;
}

.testimonial-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card {
    position: absolute;
    width: 320px;
    max-width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    transition: all 0.5s ease;
    backface-visibility: hidden;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    color: #333;
}

/* 各カードの位置の設定 - 重ねない横並び表示 */
.testimonial-card[data-position="0"] {
    transform: translateX(-620px) translateZ(-100px) scale(0.7);
    opacity: 0.7;
    z-index: 1;
}

.testimonial-card[data-position="1"] {
    transform: translateX(-320px) translateZ(-50px) scale(0.8);
    opacity: 0.85;
    z-index: 2;
}

.testimonial-card[data-position="2"] {
    transform: translateX(0) translateZ(0) scale(1);
    opacity: 1;
    z-index: 5;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-card[data-position="3"] {
    transform: translateX(320px) translateZ(-50px) scale(0.8);
    opacity: 0.85;
    z-index: 2;
}

.testimonial-card[data-position="4"] {
    transform: translateX(620px) translateZ(-100px) scale(0.7);
    opacity: 0.7;
    z-index: 1;
}

/* カルーセルの矢印 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.carousel-arrow:hover {
    background-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

.carousel-arrow span {
    font-size: 24px;
    color: #d4af37;
    /* ゴールドの色に戻す */
    font-weight: bold;
}

/* 引用符の削除 */
.testimonial-card::before {
    display: none;
}

/* 新しく追加したヘッダー部分のスタイル */
.testimonial-header {
    margin-bottom: 20px;
}

.person-info {
    display: flex;
    align-items: center;
}

.person-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #f5f5f5;
    background-color: #e0e0e0;
    /* アバター画像がない場合のデフォルト背景色 */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* アバター画像の代替表示 */
.person-avatar::after {
    content: attr(data-initials);
    font-size: 24px;
    font-weight: bold;
    color: #777;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    /* 画像ファイルがないので非表示に */
}

.person-details {
    flex: 1;
}

/* 評価のスタイル */
.rating {
    display: flex;
    margin-top: 5px;
}

.star {
    color: #e0e0e0;
    font-size: 18px;
    margin-right: 2px;
}

.star.filled {
    color: #d4af37;
}

.star.half-filled {
    position: relative;
    color: #e0e0e0;
}

.star.half-filled::before {
    content: '★';
    position: absolute;
    color: #d4af37;
    width: 50%;
    overflow: hidden;
}

.quote {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #333;
    font-style: italic;
    position: relative;
    z-index: 2;
    text-align: left;
}

.author {
    font-weight: 600;
    color: #1a2942;
    margin-bottom: 0;
    font-size: 1.05rem;
}

.work-sample {
    margin-top: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    background-color: #f2f2f2;
    /* サンプル画像がない場合の背景色 */
    height: 420px;
    /* サンプル画像の高さを増加 (元は200px) */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* サンプル画像の代替表示 */
.work-sample::before {
    content: 'サンプル画像';
    color: #888;
    font-size: 16px;
    font-style: italic;
}

.work-sample::after {
    content: 'ワークショップ当日作成';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 41, 66, 0.8);
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 10px;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.testimonial-card:hover .work-sample::after {
    opacity: 1;
}

.sample-image {
    width: 100%;
    height: auto;
    display: none;
    /* 画像ファイルがないので非表示に */
    transition: all 0.3s ease;
}

.testimonial-card:hover .sample-image {
    transform: scale(1.05);
}

.note {
    text-align: center;
    margin: 40px auto 30px;
    font-style: italic;
    color: #f8f4e9;
    max-width: 800px;
    padding: 15px 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    border-left: 3px solid rgba(212, 175, 55, 0.5);
}

/* CTAボタンのスタイル */
.testimonial-cta {
    text-align: center;
    margin-top: 100px;
}

.testimonial-cta .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #f8f4e9;
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.testimonial-cta .btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .carousel-container {
        height: 600px;
    }

    .testimonial-card {
        width: 280px;
        padding: 20px;
    }

    .testimonial-card[data-position="0"] {
        transform: translateX(-400px) translateZ(-100px) scale(0.6);
    }

    .testimonial-card[data-position="1"] {
        transform: translateX(-200px) translateZ(-50px) scale(0.75);
    }

    .testimonial-card[data-position="3"] {
        transform: translateX(200px) translateZ(-50px) scale(0.75);
    }

    .testimonial-card[data-position="4"] {
        transform: translateX(400px) translateZ(-100px) scale(0.6);
    }

    .quote {
        font-size: 1rem;
    }

    .work-sample {
        height: 300px;
        /* モバイル時の高さも調整 */
    }
}