/* ========================================
   VOICE PAGE
======================================== */

.p-voice {
    background: #f5f5f5;
}


/* ========================================
   COMMON HEADING
======================================== */

.p-voiceHeading {
    margin-bottom: 44px;
    text-align: center;
}

.p-voiceHeading__en {
    margin: 0 0 8px;
    color: #1ba8b5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.p-voiceHeading__title {
    position: relative;
    margin: 0;
    padding-bottom: 18px;
    color: #222;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
}

.p-voiceHeading__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: #1ba8b5;
    transform: translateX(-50%);
}


/* ========================================
   REVIEWS
======================================== */

.p-voiceReviews {
    padding: 72px 0 88px;
}

.p-voiceReviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* ========================================
   REVIEW CARD
======================================== */

.p-voiceCard {
    padding: 30px;
    border: 1px solid #e6e6e6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.055);
}

.p-voiceCard__top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}


/* avatar */

.p-voiceCard__avatar {
    display: flex;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff8df;
}

.p-voiceCard__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* rating */

.p-voiceCard__summary {
    min-width: 0;
}

.p-voiceCard__evaluation {
    margin: 0 0 5px;
    color: #1ba8b5;
    font-size: 12px;
    font-weight: 700;
}

.p-voiceCard__rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-voiceCard__stars {
    display: flex;
    gap: 1px;
}

.p-voiceCard__stars span {
    color: #ddd;
    font-size: 19px;
    line-height: 1;
}

.p-voiceCard__stars span.is-active {
    color: #f8bd00;
}

.p-voiceCard__score {
    color: #222;
    font-size: 15px;
    font-weight: 700;
}


/* title */

.p-voiceCard__title {
    margin: 0 0 16px;
    color: #222;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
}


/* customer type */

.p-voiceCard__type {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
    color: #333;
    font-size: 12px;
    font-weight: 600;
}

.p-voiceCard__typeLabel {
    color: #1ba8b5;
}


/* review text */

.p-voiceCard__text {
    margin: 18px 0 0;
    color: #444;
    font-size: 14px;
    line-height: 1.95;
}


/* ========================================
   WORKS GALLERY
======================================== */

.p-voiceWorks {
    padding: 20px 0 88px;
}

.p-voiceGallery {
    width: 100%;
    overflow: hidden;
}

.p-voiceGallery__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    gap: 18px;

    animation: voiceGalleryScroll 35s linear infinite;
    will-change: transform;
}

.p-voiceGallery__item {
    flex: 0 0 360px;
    width: 360px;
    height: 240px;
    overflow: hidden;
    border-radius: 18px;
    background: #e9e9e9;
}

.p-voiceGallery__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* PCではマウスを乗せたら停止 */
.p-voiceGallery:hover .p-voiceGallery__track {
    animation-play-state: paused;
}

@keyframes voiceGalleryScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 9px));
    }
}


/* ========================================
   REASON
======================================== */

.p-voiceReason {
    padding: 16px 0 72px;
}

.p-voiceReason__box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.p-voiceReasonCard {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: center;
    padding: 32px;
}

.p-voiceReasonCard+.p-voiceReasonCard {
    border-left: 1px solid #e5e5e5;
}

.p-voiceReasonCard__icon {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #e5f8fa;
    font-size: 36px;
}

.p-voiceReasonCard__title {
    margin: 0 0 8px;
    color: #222;
    font-size: 17px;
    font-weight: 700;
}

.p-voiceReasonCard__text {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.8;
}


/* ========================================
   FREE MESSAGE
======================================== */

.p-voiceFree {
    padding: 8px 0 32px;
}

.p-voiceFree__text {
    margin: 0;
    text-align: center;
    color: #222;
    font-size: 18px;
    font-weight: 700;
}

.p-voiceFree__text span {
    margin: 0 10px;
    color: #1ba8b5;
    font-weight: 400;
}

.p-voiceFree__text strong {
    color: #1ba8b5;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

    .p-voiceReviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-voiceReason__box {
        grid-template-columns: 1fr;
    }

    .p-voiceReasonCard+.p-voiceReasonCard {
        border-top: 1px solid #e5e5e5;
        border-left: 0;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .p-voiceHeading {
        margin-bottom: 30px;
    }

    .p-voiceHeading__title {
        font-size: 26px;
    }


    /* reviews */

    .p-voiceReviews {
        padding: 48px 0 60px;
    }

    .p-voiceReviews__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .p-voiceCard {
        padding: 22px 20px;
        border-radius: 18px;
    }

    .p-voiceCard__top {
        gap: 14px;
    }

    .p-voiceCard__avatar {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .p-voiceCard__stars span {
        font-size: 16px;
    }

    .p-voiceCard__title {
        font-size: 17px;
    }

    .p-voiceCard__text {
        font-size: 13px;
        line-height: 1.85;
    }


    /* gallery */

    .p-voiceWorks {
        padding-bottom: 60px;
    }

    .p-voiceGallery__track {
        gap: 12px;
        animation-duration: 28s;
    }

    .p-voiceGallery__item {
        flex: 0 0 280px;
        width: 280px;
        height: 190px;
        border-radius: 14px;
    }


    /* reason */

    .p-voiceReason {
        padding-bottom: 48px;
    }

    .p-voiceReasonCard {
        grid-template-columns: 58px 1fr;
        gap: 14px;
        padding: 24px 20px;
    }

    .p-voiceReasonCard__icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 28px;
    }

    .p-voiceReasonCard__title {
        font-size: 16px;
    }

    .p-voiceReasonCard__text {
        font-size: 12px;
    }


    /* free */

    .p-voiceFree__text {
        font-size: 15px;
        line-height: 1.7;
    }

    .p-voiceFree__text span {
        display: none;
    }
}


/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {

    .p-voiceGallery__track {
        animation: none;
    }
}

/* スマホ：引越し区間の見出しを1行に */
@media (max-width: 767px) {
  .p-voiceCard {
    container-type: inline-size;
  }

  .p-voiceCard__title {
    font-size: min(14px, 4cqi);
    line-height: 1.6;
    letter-spacing: 0;
    white-space: nowrap;
  }
}