/* ==============================================
   製品ページ: 導入事例（カルーセル）
============================================== */

.pp-voices {
    background: linear-gradient(180deg, #f4f6f8 0%, #fff 100%) !important;
    padding: 48px 0 !important;
}

.pp-voices__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---- ヘッダー ---- */

.pp-voices__header {
    max-width: 800px;
    margin: 0 auto 32px !important;
    text-align: center !important;
}

.pp-voices__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(204, 255, 0, 0.2);
    color: #1A1A1A;
    border-radius: 9999px;
    font-size: 16px;
    margin-bottom: 16px;
}

.pp-voices__title {
    font-size: 28px !important;
    font-weight: 400 !important;
    color: #1A1A1A !important;
    margin: 0 0 16px !important;
    text-align: center !important;
}

.pp-voices__desc {
    font-size: 18px !important;
    color: #1A1A1A !important;
    margin: 0 !important;
    text-align: center !important;
}

/* ---- カルーセル ---- */

.pp-voices__carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 56px;
}

.pp-voices__track {
    overflow: hidden;
}

.pp-voices__slides {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

/* カルーセル不要時（4枚以下）はカードを中央寄せ */
.pp-voices__carousel:not([data-carousel="true"]) .pp-voices__slides {
    justify-content: center;
}

/* ---- カード ---- */

.pp-voices__card {
    flex: 0 0 calc(25% - 18px);
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.pp-voices__card:hover {
    border-color: #CCFF00;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pp-voices__card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f4f6f8;
}

.pp-voices__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.pp-voices__card:hover .pp-voices__card-image img {
    transform: scale(1.05);
}

.pp-voices__card-body {
    padding: 16px;
}

.pp-voices__industry {
    display: inline-block;
    padding: 4px 12px;
    background: #002040;
    color: #fff;
    font-size: 14px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.pp-voices__company {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #1A1A1A !important;
    margin: 0 0 8px !important;
    line-height: 1.4 !important;
}

.pp-voices__comment {
    font-size: 16px !important;
    color: #6b7280 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ---- ナビボタン ---- */

.pp-voices__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    color: #002040;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.3s;
}

.pp-voices__nav:hover {
    background: #CCFF00;
}

.pp-voices__nav--prev {
    left: -6px;
}

.pp-voices__nav--next {
    right: -6px;
}

.pp-voices__nav svg {
    width: 24px;
    height: 24px;
}

/* ---- ドットインジケーター ---- */

.pp-voices__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pp-voices__dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.pp-voices__dot.is-active {
    width: 32px;
    background: #002040;
}

/* ---- CTA ---- */

.pp-voices__cta {
    text-align: center !important;
    margin-top: 32px;
}

.pp-voices__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    background: #CCFF00;
    color: #1A1A1A;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pp-voices__cta-btn:hover {
    background-color: #b8e600;
}

/* ---- darkBg 対応 ---- */

.pp-voices.pp-dark-bg .pp-voices__badge {
    background: #CCFF00 !important;
}

.pp-voices.pp-dark-bg .pp-voices__title {
    color: #fff !important;
}

.pp-voices.pp-dark-bg .pp-voices__desc {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* カードは白背景を維持 */
.pp-voices.pp-dark-bg .pp-voices__card {
    background: #fff !important;
}

/* ---- レスポンシブ ---- */

@media only screen and (max-width: 1024px) {
    .pp-voices__card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media only screen and (max-width: 640px) {
    .pp-voices__card {
        flex: 0 0 100%;
    }

    .pp-voices__nav {
        display: none;
    }

    .pp-voices__title {
        font-size: 24px !important;
    }
}
