/***********************************************
REVIEW レイアウト調整 表示枠
***********************************************/

#ctl00_ContentPlaceHolder1_ctl10_upUpdatePanel,
div#ctl00_ContentPlaceHolder1_ctl10_dvProductReviewInput {
    max-width: 1200px;
    padding: 0 60px;
    margin: 5vw auto;
    box-sizing: border-box;
    width: 100%;
}

.review_box_wrapper {
    margin-bottom: 3em;
}

.reviewTop {
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.reviewTop h2 {
    padding-bottom: 20px;
    position: relative;
    color: #4e3227;
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 40px;
    text-align: center;
}

.reviewTop h2::after {
    content: " ";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #4e3227;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

#dvProductReviewButtonControls {
    margin: 0 auto 20px;
    text-align: center;
    max-width: 250px;
}

#dvProductReviewButtonControls a {
    display: block;
    background-color: #f3a449;
    padding: 1rem;
    border-radius: 5px;
}

@media only screen and (max-width:768px) {

    #ctl00_ContentPlaceHolder1_ctl10_upUpdatePanel,
    div#ctl00_ContentPlaceHolder1_ctl10_dvProductReviewInput {
        max-width: auto;
        padding: 0 4%;
        width: 100%;
    }

    #dvProductReviewButtonControls {
        width: 80%;
        max-width: auto;
    }
}


.review_comment {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #999;
    padding: 2em;
    margin: 0 auto;
    box-sizing: border-box;
}

.review_comment:first-child {
    border-top: 1px solid #999;
}

.review_comment .first_row {
    align-items: center;
    display: grid;
    grid-template-columns: 40px 1fr;
    min-height: 40px;
}

.review_comment .first_row .person_img svg {
    width: 40px;
    height: 40px;
    display: block;
}

.review_comment .person_name_wrapper {
    display: flex;
    flex-direction: column;
    grid-column: 2 / 3;
    padding-left: 12px;
}

.review_comment .first_row .name {
    font-size: 90%;
}

.review_comment .first_row .date {
    font-size: 80%;
    color: #999;
}

.review_comment .second_row {
    margin: 1rem 0;
    overflow: hidden;
    max-width: 150px;
}

.review_comment .second_row img {
    height: 100%;
}

.review_comment .third_row .coment_title {
    margin-bottom: 1rem;
    font-weight: bold;
    color: #444
}

.review_comment .third_row .coment_detail {
    color: #444
}

.review_comment .third_row .coment_detail .text-wrapper {
    position: relative;
    line-height: 1.5em;
    margin-bottom: 24px;
}

.review_comment .third_row .coment_detail .text-container {
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: relative;
}

.review_comment .third_row .coment_detail .text-container.collapsed {
    max-height: 7.5em;
    /* 5行分 */
}

.review_comment .third_row .coment_detail .fade-overlay {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity 0.3s;
}

.review_comment .third_row .coment_detail .text-container.expanded .fade-overlay,
.review_comment .third_row .coment_detail .text-container.no-fade .fade-overlay {
    opacity: 0;
}

.review_comment .third_row .coment_detail .fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity 0.3s;
}

/* ▼ 完全に非表示にするクラス */
.review_comment .third_row .coment_detail .text-container.expanded .fade-overlay,
.review_comment .third_row .coment_detail .text-container.no-fade .fade-overlay {
    display: none;
}


.review_comment .third_row .coment_detail .read-more {
    color: #0073e6;
    cursor: pointer;
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
}

.review_comment .third_row .coment_detail .read-more.hidden {
    display: none;
}


@media only screen and (max-width:768px) {
    #ctl00_ContentPlaceHolder1_ctl10_upUpdatePanel {
        padding: 0 4%;
    }

    .review_comment {
        padding: 6% 4%;
    }

    .box.box_pager.mdl_box_pager {
        margin-top: 5vw;
    }
}

.allReview {
    display: block;
    position: relative;
    padding: 1rem;
    margin: 20px auto 0 auto;
    max-width: 350px;
    width: 100%;
    text-align: center;
    color: #63564a;
    border: 2px solid #63564a;
    border-radius: 5px;
}

.allReview:after {
    content: " ";
    display: block;
    width: 10px;
    height: 10px;
    border: 0px;
    border-top: 2px solid #4e3227;
    border-right: 2px solid #4e3227;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(45deg);
}



/***********************************************
REVIEW レイアウト調整 記入枠
***********************************************/

.tblReviewInput {
    border-collapse: separate;
    border-spacing: 10px;
    width: 90%;
    margin: 0 auto;
}

.tblReviewInput th {
    word-break: keep-all;
    text-align: left;
    font-size: 80%;
    display: flex;
    align-items: center;
}

.tblReviewInput th span {
    display: inline-block;
}

.tblReviewInput th .heading_title {
    /* width: 80%; */
    font-size: 1.6rem;
}

.tblReviewInput th .required {
    display: inline-block;
    background: #d51919;
    color: #fff;
    text-align: center;
    font-size: 80%;
    border-radius: 5px;
    width: fit-content;
    padding: 1px 5px;
    margin-left: 10px;
}

.tblReviewInput textarea {
    display: block;
    width: 100%;
    padding: 10px 2%;
    background-color: #fff;
    border: 1px solid #b5b5b5;
    border-radius: 5px;
}

.review_send_button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0 auto;
    max-width: 350px;
}


.review_send_button .send_button {
    max-width: 350px;
    width: 100%;
    text-align: center;
    background: #63564a;
    border-radius: 5px;
}

.review_send_button .send_button a {
    position: relative;
    display: block;
    color: #fff;
    padding: 1rem;
}

.review_send_button .send_button a:after {
    content: " ";
    display: block;
    width: 10px;
    height: 10px;
    border: 0px;
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(45deg);
}

.review_send_button .back_button {
    /* border: 1px solid #63564a; */
    width: 100%;
    text-align: center;
    border-radius: 5px;
}

.review_send_button .back_button a {
    display: block;
    color: #63564a;
    padding: 0.5rem 1rem;
}

@media only screen and (max-width:768px) {
    .tblReviewInput {
        width: 100%;
    }

    .tblReviewInput th {
        /* display: block; */
        position: relative;
        margin-bottom: 0.5rem;
        font-size: 100%;        
    }

    .tblReviewInput td {
        display: block;
        width: 100%;
    }

    .tblReviewInput th .required {
        margin-left: 20px;
        /* position: absolute;
        right: 0; */
    }

    .review_send_button .send_button {
        width: 100%;
        max-width: 0 auto;
    }
}

/***********************************************
REVIEW レイアウト調整 プレビュー枠
***********************************************/
#ctl00_ContentPlaceHolder1_ctl10_dvProductReviewComplete .message {
    max-width: 500px;
    margin: 0 auto;
    background: #f3f3f3;
    padding: 2em 2em;
}

span.spMessage {
    display: block;
    text-align: center;
    background: #e5e5e5;
    border-radius: 5px;
    margin: 0 auto 30px auto;
    max-width: 500px;
}

@media only screen and (max-width:768px) {
    span.spMessage {
        width: 100%;
    }

    .review_send_button .send_button {
        width: 100%;
        max-width: 0 auto;
    }
}