/* ------------------------------------------------------------------------------------------------------------------ */

/* 検索ページ */
.cs-custom-search-page {
    display: flex;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0px;
    height: 100dvh;
    overflow: auto;
    align-items: center;
    flex-direction: column;
}

.cs-custom-search-header {
    padding: 5px;
    display: flex;
    border-bottom: 1px solid #ccc;
    z-index: 10;
    width: 100%;
    gap: 5px;
    flex-direction: column;
}

.open-detailed-conditions-modal-button {
    color: #333;
    border-radius: 8px;
    padding: 7px 2px;
    display: flex;
    justify-content: flex-start;
    gap: 0px;
    align-items: center;
    width: 100%;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.open-detailed-conditions-modal-button-image {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.open-detailed-conditions-modal-button img {
    width: 100%;
    height: 100%;
}



.open-date-conditions-modal-button {
    color: #333;
    border-radius: 8px;
    padding: 2px 12px;
    border: solid 1px;
    display: flex;
    justify-content: center;
    gap: 0px;
    align-items: center;
    flex-direction: column;
    width: 150px;
    margin: 0 auto;
}

.open-date-conditions-modal-button-day {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#cs-selected-date {
    font-size: 14px;
    font-weight: bold;
}

.open-date-conditions-modal-button-image {
    width: 15px;
    height: 15px;
}

.open-date-conditions-modal-button img {
    width: 100%;
    height: 100%;
}

#cs-selected-time {
    font-size: 12px;
}

.cs-date-picker {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.selected-detailed-conditions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-left: 5px;
    flex-grow: 1;
    overflow-x: auto;
}

.selected-detailed-conditions::-webkit-scrollbar {
    display: none;
}

/* Firefox用 */
.selected-detailed-conditions {
    scrollbar-width: none;
}



.selected-detailed-conditions .cs-selected-tag {
    padding: 5px 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 10px;
    width: auto;
    transition: all 0.2s ease;
    background-color: rgb(233, 81, 142);
    color: white;
    border-color: rgb(233, 81, 142);
    white-space: nowrap;
}


.cs-custom-search-result {
    display: grid;
    scrollbar-width: thin;
    position: relative;
    gap: 5px;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
}

.cs-therapist-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.cs-therapist-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.cs-therapist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.cs-therapist-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cs-therapist-info h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

.cs-therapist-info p {
    font-size: 14px;
    color: #555;
}

.cs-sort-radio-group-section {
    display: flex;
    flex-direction: column;
}

.cs-sort-radio-group-sub-section {
    display: flex;
    flex-direction: row;
}

.cs-sort-radio-group {
    display: flex;
    flex-direction: column;
    width: 100px;
}

.cs-sort-radio-group input[type="radio"] {
    display: none;
}

.cs-sort-radio-group .radio-label {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 5px 9px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    min-width: 60px;
    transition: all 0.2s ease;
    color: #333;
    display: inline-block;
    margin: 5px;
    text-align: center;
}

.cs-sort-radio-group input[type="radio"]:checked + .radio-label {
    background-color: rgb(233, 81, 142);
    color: white;
    border-color: rgb(233, 81, 142);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-result-empty {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin: 20px 0;
    grid-column: 1 / -1;
    justify-self: center;
}

.cs-reset-all-btn {
    padding: 5px;
    color: #333;
    font-size: 12px;
    border-radius: 50px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    margin: 5px;
}

.cs-custom-search-header-btn-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
}


/* ------------------------------------------------------------------------------------------------------------------ */

/* モーダル共通 */
.cs-date-conditions-modal,
.cs-detailed-conditions-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.cs-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: block;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.cs-date-conditions-modal,
.cs-detailed-conditions-modal,
.cs-loading-modal,
.cs-date-conditions-modal *,
.cs-detailed-conditions-modal *,
.cs-loading-modal * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cs-detailed-conditions-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 1024px;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    border: solid 1px #333;
    overflow: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.cs-date-conditions-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 1024px;
    max-height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    border: solid 1px #333;
    overflow: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.cs-date-conditions-modal-close,
.cs-detailed-conditions-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    z-index: 100;
}

.cs-loading-modal-content {
    border-radius: 12px;
    width: 100%;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    border: solid 1px #333;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 5px;
    justify-content: center;
    background-color: #fff;
}

.cs-up-button {
    position: absolute;
    bottom: 50px;
    right: 30px;
    padding: 4px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    z-index: 100;
    border-radius: 50%;
    background: #ffffff;
    border: solid 1px #333;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* ローディングモーダル */

.cs-loading-wrapper{
    width:200px;
    height:60px;
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
}

.cs-loading-circle{
    width:20px;
    height:20px;
    position: absolute;
    border-radius: 50%;
    background-color: rgb(233, 81, 142);
    left:15%;
    transform-origin: 50%;
    animation: circle .5s alternate infinite ease;
}

@keyframes circle{
    0%{
        top:60px;
        height:5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }
    40%{
        height:20px;
        border-radius: 50%;
        transform: scaleX(1);
    }
    100%{
        top:0%;
    }
}
.cs-loading-circle:nth-child(2){
    left:45%;
    animation-delay: .2s;
}
.cs-loading-circle:nth-child(3){
    left:auto;
    right:15%;
    animation-delay: .3s;
}
.cs-loading-shadow{
    width:20px;
    height:4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.5);
    position: absolute;
    top:62px;
    transform-origin: 50%;
    z-index: -1;
    left:15%;
    filter: blur(1px);
    animation: shadow .5s alternate infinite ease;
}

@keyframes shadow{
    0%{
        transform: scaleX(1.5);
    }
    40%{
        transform: scaleX(1);
        opacity: .7;
    }
    100%{
        transform: scaleX(.2);
        opacity: .4;
    }
}
.cs-loading-shadow:nth-child(4){
    left: 45%;
    animation-delay: .2s
}
.cs-loading-shadow:nth-child(5){
    left:auto;
    right:15%;
    animation-delay: .3s;
}
.cs-loading-wrapper span{
    position: absolute;
    top:75px;
    font-family: 'Lato';
    font-size: 20px;
    letter-spacing: 12px;
    color: #fff;
    left:15%;
}


#cs-progress {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 25px;
    margin-bottom: 20px;
    height: 12px;
    position: absolute;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
    left: 50%;
    top: 120px;
    transform: translate(-50%, -50%);
}

#cs-progress-bar {
    height: 100%;
    background: linear-gradient(to right, rgb(233, 81, 142), rgb(255, 140, 190));
    width: 0%;
    border-radius: 25px;
    transition: width 0.4s ease-out;
}

#cs-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* 日程条件モーダル */

.cs-date-conditions-content {
    height: 100%;
    overflow: hidden;
}

.cs-date-conditions-content {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#cs-time-select {
    border: 1px solid rgb(233, 81, 142);
    padding: 12px 18px;
    border-radius: 30px;
    text-align: center;
    text-align-last: center;
    color: #333 !important;
    font-size: 18px;
    background-color: #ffffff;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 150px;
}

#cs-time-select option {
    text-align: center;
}

#cs-calendar {
    height: auto;
}

.fc .fc-toolbar {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.cs-date-conditions-modal .fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 5px;
}

.cs-date-conditions-modal .fc .fc-toolbar-title {
    font-size: 20px;
    margin: 0px;
}

.cs-date-conditions-modal .fc .fc-daygrid-day-number {
    padding: 4px;
    position: relative;
    z-index: 4;
    font-size: 15px;
}

.fc .fc-button {
    background-color: #aaa !important;
    border: none;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    user-select: none;
    vertical-align: middle;
    transition: all 0.3s ease-in-out;
    color: white;
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(98, 0, 234, 0.1) !important;
}

.fc .fc-button-group {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
    gap: 5px;
}

button.fc-today-button.fc-button.fc-button-primary {
    display: none;
}

.cs-date-conditions-refine-btn{
    display: inline-block;
    border-radius: 50%;
    padding: 10px;
    font-size: 15px;
    color: white;
    width: 80px;
    height: 80px;
    text-align: center;
    line-height: 60px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2), -3px -3px 8px rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(233, 81, 142, 1), rgba(204, 55, 112, 1));
    z-index: 100;
}

/* ------------------------------------------------------------------------------------------------------------------ */

/* 詳細条件モーダル */

.cs-detailed-conditions-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}

.cs-detailed-conditions-section {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 30px;
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 20px;
    padding-top: 10px;
}

.cs-detailed-conditions-section h3 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.6em;
    font-weight: 600;
    color: #333;
}

.cs-tags-content {
    margin-top: 30px;
}

.cs-tags-content h4,
.cs-age-range-content h4 {
    font-size: 16px !important;
    color: #333 !important;
    text-align: center !important;
    letter-spacing: 0.1em !important;
}

.cs-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-tags .cs-tag-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    min-width: 60px;
    transition: all 0.2s ease;
    color: #333;
}

.cs-tags .cs-tag-button.selected {
    background-color: rgb(233, 81, 142);
    color: white;
    border-color: rgb(233, 81, 142);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.cs-footer {
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cs-detailed-conditions-refine-btn {
    display: inline-block;
    border-radius: 50%;
    padding: 10px;
    font-size: 15px;
    color: white;
    width: 80px;
    height: 80px;
    text-align: center;
    line-height: 60px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2), -3px -3px 8px rgba(255, 255, 255, 0.5);
    background: linear-gradient(145deg, rgba(233, 81, 142, 1), rgba(204, 55, 112, 1));
    z-index: 100;
}

.cs-detailed-conditions-reset-btn,
.cs-date-conditions-reset-btn {
    position: absolute;
    bottom: 20px;
    left: 10px;
    padding: 5px;
    color: #333;
    font-size: 14px;
    border-radius: 50px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    z-index: 100;
}

.cs-hit-count {
    font-size: 16px;
    color: #333;
    z-index: 100;
}

.cs-dot-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
  
.cs-dot-loader div {
    width: 5px;
    height: 5px;
    background-color: rgb(233, 81, 142);
    border-radius: 50%;
    animation: wave 1.2s infinite ease-in-out;
}
  
.cs-dot-loader div:nth-child(1) {
    animation-delay: -0.4s;
}
  
.cs-dot-loader div:nth-child(2) {
    animation-delay: -0.2s;
}
  
.cs-dot-loader div:nth-child(3) {
    animation-delay: 0s;
}
  
@keyframes wave {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.5);
    }
}


.cs-place-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 10px;
}

.cs-place-content .radio-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.cs-place-content .radio-group .radio-label {
    display: inline-block;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-size: 1em;
}

.cs-place-content .radio-group input[type="radio"] {
    appearance: auto;
    visibility: visible;
    position: static;
    display: inline-block;
    opacity: 1;
}

.cs-place-content #range-slider-container,
.cs-place-content #prefecture-dropdown-container {
    width: 90%;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.cs-place-content #prefecture-dropdown-container {
    width: 200px;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.cs-place-content #range-slider-container label {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.cs-place-content #range-value {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(233, 81, 142);
}

#current-location-address {
    margin-top: 8px; 
    font-size: 0.9em; 
    color: #555;
}

.cs-place-content #range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.cs-place-content #range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: -10px;
    border: 1px solid #D9D9D9;
    background: #FFF;
    box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}

.cs-place-content #range-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: -10px;
    border: 1px solid #D9D9D9;
    background: #FFF;
    cursor: pointer;
    box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}

.cs-place-content #prefecture-dropdown-container label {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.cs-place-content #prefecture {
    width: 100%;
    padding: 8px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #fff;
    text-align: center;
    text-align-last: center;
    transition: border 0.2s, box-shadow 0.2s;
    color: #333 !important;
}

.cs-place-content #prefecture option {
    text-align: center;
}

.cs-age-range-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;

}

.cs-age-range-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    width: 90%;
    height: 200px;
}

.cs-age-range-container label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

#age-range-slider {
    width: 100%;
    height: 10px;
    margin-top: 10px;
}

.cs-age-range-values {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

#age-range-label {
    font-size: 18px;
    font-weight: bold;
    color: rgb(233, 81, 142);
    margin-bottom: 5px;
}

.noUiSlider-wrap .inner-block {
    padding: 50px;

}

.noUiSlider-wrap .text-wrap {
margin: 30px auto;
}

.noUi-horizontal .noUi-handle {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    top: -10px !important;
}

.noUi-horizontal .noUi-tooltip {
    display: none !important;
}

.noUi-horizontal .noUi-handle::before, .noUi-horizontal .noUi-handle::after  {
content: none;
}

.noUi-connect {
    background: linear-gradient(90deg, rgba(255, 0, 255, 1) 0%, rgba(138, 43, 226, 1) 100%) !important;
  }

