/* ------------------------------------------------------------------------------------------------------------------ */
/* セラピスト */

.crl-for-therapist-page {
    background: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
}

.crl-page-content {
    height: 100%;
    overflow-y: auto;
    width: 100%;
}

.crl-page-content-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #E9528E;
    text-align: center;
    margin-top: 40px;
}

.crl-page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width:100%;
}

.crl-page-header-therapist-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.crl-page-header-rate-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: center;
    justify-content: space-around;
    min-height: 120px;
    margin-top: 20px;
}

.crl-page-header-five-star {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.crl-page-header-image-container {
    width: 80px;
    height: 80px;
    position: relative;
    display: inline-block;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.crl-page-header-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.crl-therapist-name {
    font-size: 1rem;
    color: #535353;
}

#starRatingChart {
    width: 50% !important;
    height: auto !important;
    display: block;
}

.crl-average-rating {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 0px;
    color: #E9528E;
    flex-direction: column;
}

.crl-average-rating .average-star {
    color: #AAAAAC;
    transition: color 0.3s, transform 0.2s ease-in-out;
    position: relative;
}

.crl-average-rating .average-star.selected {
    color: #E9528E;
    transform: scale(1.1);
}

.crl-average-rating .average-star.half-selected::before {
    content: "★";
    position: absolute;
    color: #E9528E;
    width: 50%;
    overflow: hidden;
}

.crl-average-rating .average-score {
    font-size: 1.5rem;
    color: #E9528E;
}

.crl-review-count {
    font-size: 0.875rem;
    font-weight: normal;
    color: #535353;
}

.crl-search-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #AAAAAC;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.crl-search-text-content {
    color: #535353;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    gap: 0px;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    height: 40px;
    align-items: center;
    padding-top: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
}

.crl-search-text-content-image {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.crl-search-text-content-image img {
    width: 100%;
    height: 100%;
}

.crl-review-search {
    font-size: 0.875rem;
    box-sizing: border-box;
    color: #535353;
    font-size: 0.875rem;
    margin-left: 5px;
}


.crl-sort-radio-group-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.crl-sort-radio-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.crl-sort-radio-group input[type="radio"] {
    display: none;
}

.crl-sort-radio-group .radio-label {
    border: 1px solid #AAAAAC;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: #AAAAAC;
    display: inline-block;
    text-align: center;
}

.crl-sort-radio-group input[type="radio"]:checked + .radio-label {
    background-color: #7D40A0;
    color: #ffffff;
}

.crl-review {
    margin-bottom: 20px;
}

.crl-review-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.crl-star-rating {
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    gap: 0px;
}

.crl-star-rating .star {
    color: #AAAAAC;
    transition: color 0.3s, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    transform: scale(1);
}

.crl-star-rating .star.selected {
    color: #E9528E;
    transform: scale(1.1); 
}

.crl-review-created_at {
    color: #535353;
    font-size: 1rem;
}

.crl-review-textarea {
    width: 100%;
    padding: 13px;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 25px;
    border: none;
    background-color: #F5F5F5;
    resize: none;
    box-sizing: border-box;
    pointer-events: none;
    overflow: hidden;
    color: #535353;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 5px;
}

.crl-no-review-message {
    color: #AAAAAC;
    font-size: 0.875rem;
    text-align: center;
    padding-top: 20px;
}

.crl-review-reply {
    margin-top: 0.3125rem;
    border-radius: 1.5625rem;
    border: 1px solid #AAAAAC;
    background: #fff;
    overflow: hidden;
}

.crl-review-reply > summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0.6rem;
    color: #535353;
    font-size: 0.875rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.crl-review-reply > summary::-webkit-details-marker {
    display: none;
}

.crl-review-reply > summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid #AAAAAC;
    border-bottom: 2px solid #AAAAAC;
    transform: rotate(-45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-left: 6px;
}

.crl-review-reply[open] > summary::after {
    transform: rotate(45deg);
    border-color: #E9528E;
}

.crl-review-reply-message {
    width: 100%;
    line-height: 1.5;
    border-top: 1px solid #EEEEEE;
    background-color: #F5F5F5;
    resize: none;
    box-sizing: border-box;
    pointer-events: none;
    overflow: hidden;
    color: #535353;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.875rem;
    padding: 0.6rem;
}

.crl-therapist-reply-entry {
    margin-top: 0.3125rem;
    border-radius: 1.5625rem;
    border: 1px solid #AAAAAC;
    background: #fff;
    overflow: hidden;
}

.crl-therapist-reply-open-modal {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.6rem;
    color: #535353;
    font-size: 0.875rem;
    justify-content: center;
    width: 100%;
}

.crl-post-button {
    position: fixed;
    bottom: 6.5rem !important;
    right: 20px;
    padding: 0.25rem 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.125rem;
    height: 3.125rem;
    z-index: 100;
    border-radius: 50%;
    background-color: #E9528E;
    border: none;
}

.crl-post-button img {
    height: 1.5rem;
    width: 1.5rem;
}

@media screen and (min-width: 1024px) {
    .crl-post-button {
        right: calc(13.0208333333% + 1.25rem);
    }
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 店舗 */

.crl-for-store-page {
    background: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
}

.crl-page-header-store-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.crl-store-name {
    font-size: 1rem;
    color: #535353;
}

.crl-for-store-review-header {
    display: flex;
    flex-direction: column;
}

.crl-for-store-review-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.crl-for-store-therapist-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.crl-for-store-therapist-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.crl-for-store-therapist-name {
    color: #535353;
    font-size: 0.875rem;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 店舗(管理) */

.crl-for-store-management-page {
    background: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
}

.crl-for-store-display-btn-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 5px;
}

.crl-for-store-non-display-btn {
    font-size: 0.875rem;
    text-align: center;
    color: #7D40A0;
    width: 100px;
    height: 30px;
    border-radius: 30px;
    border: solid 1px #7D40A0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crl-for-store-display-btn {
    font-size: 0.875rem;
    text-align: center;
    color: #fff;
    background: #AAAAAC;
    width: 100px;
    height: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crl-review-hidden {
    position: relative;
}

.crl-review-hidden::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    border-radius: 10px;
}

.crl-for-store-display-btn {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* セラピスト(管理) */

.crl-for-therapist-management-page {
    background: #fff;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
}

.crl-for-therapist-display-btn-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 5px;
}

.crl-for-therapist-non-display-btn {
    font-size: 0.875rem;
    text-align: center;
    color: #7D40A0;
    width: 100px;
    height: 30px;
    border-radius: 30px;
    border: solid 1px #7D40A0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crl-for-therapist-display-btn {
    font-size: 0.875rem;
    text-align: center;
    color: #fff;
    background: #AAAAAC;
    width: 100px;
    height: 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crl-for-therapist-display-btn {
    position: relative;
    z-index: 1;
}