.review_text {
    max-height: 4.8em; /* 初期状態の高さ制限（例えば、3行分の高さ） */
    overflow: hidden;
    position: relative;
}

.read-more {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.6;
    text-decoration: underline;
    cursor: pointer;
}

.expanded {
    max-height: none; /* 全文表示時には高さ制限を解除 */
}

/*PC用レビューCSS*/
@media screen and (min-width: 768px) {
    .slick-track {
        display: flex; /* sp→pcにリサイズした時の対策 */
    }
    .reviewlist__wrap {
        display: flex;
        overflow: hidden;
        padding: 10px 0;
    }
    #section-review {
        margin-bottom: 40px;
    }
    #section-review .reviewlist__pc {
        display: flex;
        padding: 0;
    }
    #section-review .reviewlist__pc li {
        width: 310px;
        height: auto !important;
        margin: 0 17.5px;
        padding: 20px 20px 25px;
        position: relative;
        overflow: hidden;
        background: #FFF;
        border-radius: 10px;
        box-shadow: 0 0 6px rgba(0,0,0,.16);
    }
    #section-review .reviewlist__pc li .profile {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 14px;
    }
    #section-review .reviewlist__pc li .profile .icon {
        display: block;
        width: 70px;
        height: 70px;
        margin-right: 8px;
        border-radius: 50%;
    }
    #section-review .reviewlist__pc li .profile .text .age {
        margin-bottom: 8px;
        font-size: 16px;
        font-weight: bold;
    }
    #section-review .reviewlist__pc li .profile .text .date {
        font-size: 12px;
        font-weight: normal;
        color: #666;
    }
    #section-review .reviewlist__pc li .star img {
        width: 120px;
    }
    #section-review .reviewlist__pc li .review_title {
        margin-bottom: 18px;
        font-size: 20px;
        font-weight: bold;
        line-height: 1.4;
    }
    #section-review .reviewlist__pc li .review_text {
        font-size: 14px;
        line-height: 1.6;
    }
    #section-review .reviewlist__pc__wrap {
        display: flex;
        overflow: hidden;
        padding: 10px 0;
    }
    #section-review .reviewlist__pc {
        display: flex;
        list-style: none;
        animation :infinity-scroll-left 90s infinite linear 0.5s both;
    }
    #section-review .reviewlist__wrap:hover .reviewlist__pc {
        animation-play-state: paused;
    }
    #section-review .reviewlist__pc__dots {
        display: none;
    }
    
}

/*PC用スライダーアニメーション*/
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/*SP用レビューCSS*/
@media screen and (max-width: 767px) {
    #section-review .reviewlist__pc:not(.reviewlist)  {
        display: none;
    }
    #section-review {
        overflow: hidden;
        margin-bottom: 8vw;
        padding: 4vw 0;
    }
    #section-review .container-fluid {
        padding: 0;
    }
    #section-review .title {
        max-width: 80vw;
        margin-top: 0;
        margin-bottom: 6vw;
    }
    #section-review .slick-track {
        display: flex;
    }
    #section-review .slick-slide {
        /* height: auto !important; */
    }
    #section-review .reviewlist__pc li {
        width: 77.5vw;
        /* height: auto !important; */
        margin: 0 3vw;
        padding: 5vw 5vw 6.25vw;
        position: relative;
        overflow: hidden;
        background: #FFF;
        border-radius: 2.5vw;
        box-shadow: 0 0 1.5vw rgba(0,0,0,.16);
    }
    #section-review .reviewlist__pc li .profile {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 3.5vw;
    }
    #section-review .reviewlist__pc li .profile .icon {
        display: block;
        width: 17.5vw;
        height: 17.5vw;
        margin-right: 2vw;
        border-radius: 50%;
    }
    #section-review .reviewlist__pc li .profile .text .age {
        margin-bottom: 2vw; 
        font-size: 4vw;
        font-weight: bold;
    }
    #section-review .reviewlist__pc li .profile .text .date {
        font-size: 3vw;
        font-weight: normal;
        color: #666;
    }
    #section-review .reviewlist__pc li .star img {
        width: 30vw;
    }
    #section-review .reviewlist__pc li .review_title {
        margin-bottom: 4.5vw;
        font-size: 5vw;
        font-weight: bold;
        line-height: 1.4;
    }
    #section-review .reviewlist__pc li .review_text {
        font-size: 3.5vw;
        line-height: 1.6;
    }
    #section-review .slick-dots {
        position: static;
        display: flex;
        justify-content: center;
        padding: 0 4vw;
        margin-top: 6vw;
        height: 2.5vw;
    }
    #section-review .slick-dots li + li {
        margin-left: 1vw;
    }
    #section-review .slick-dots li,
    #section-review .slick-dots li button {
        width: 1.5vw;
        height: 1.5vw;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 50%;
        background-color: #fff;
        font-size: 0;
    }
    #section-review .slick-dots li button:before {
        position: absolute;
        width: 1.5vw;
        height: 1.5vw;
        padding: 0;
        content: "";
        background-color: #ddd;
        opacity: 1;
        border-radius: 50%;
    }
    #section-review .slick-dots li.slick-active button:before {
        position: absolute;
        width: 1.5vw;
        height: 1.5vw;
        padding: 0;
        content: "";
        opacity: 1;
        background: #006EE4;
        border-radius: 50%;
    }
}
