/* ================================
   即ヒメ検索ページ CSS
   ================================ */

/* 基本レイアウト */
.panelbox.active {
    background-color: #f7f7f7;
}
.contents {
    background: #fff;
}

/* 検索ボックス */
.search_menu--li {
    padding: 5px 10px;
}
.search_menu_title {
    font-size: 17px;
    font-weight: bold;
    word-break: normal;
}
.select_box_wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.select_box_wrapper > img[src*="xmark-circle"] {
    position: absolute;
    right: 0;
    z-index: 10;
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 10px 10px 10px 0;
}
.select_box {
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    flex: 1;
}
.select_box_inner {
    display: flex;
    align-items: center;
}
.select_icon {
    max-width: 20px;
}
.select_text {
    margin-left: 10px;
    font-size: 14px;
    color: #cecece;
    max-width: 300px;
}
.select_text.active {
    color: #000;
}
.select_box_over {
    display: none;
}

@media screen and (min-width: 768px) {
    .select_text {
        max-width: 200px;
    }
}

/* 検索ボタン */
.search_menu_button {
    border-radius: 8px;
    color: #fff;
    background-color: #A51B20;
    border: none;
    width: 100%;
    height: 45px;
    font-size: 16px;
    cursor: pointer;
}
.search_menu_button:disabled {
    opacity: 0.5;
    cursor: default;
}
.search_menu_button_icon {
    margin-right: 10px;
}

/* 女の子一覧 */
.girls_list {
    width: 100%;
    padding: 10px;
}
.girls_list_title {
    margin-bottom: 10px;
    font-size: 30px;
    font-weight: bold;
    word-break: normal;
}
.girls_list_wrapper {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
}
.girls_box {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 5px 5px 0;
}
.girls_box_img_wrap {
    position: relative;
    width: 100%;
}
.girls_box_img {
    width: 100%;
    opacity: 0;
    min-height: 250px;
    max-height: 450px;
}
.girls_box_img.lazyloaded {
    animation: fade 1s forwards;
    min-height: initial;
}
@keyframes fade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.girls_box_detail {
    width: 100%;
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    padding: 5px;
    box-sizing: border-box;
}
.girls_box_detail_name {
    display: flex;
}
.girls_box_detail_name_text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: block;
}
.girls_box_detail_years_text {
    display: block;
    white-space: nowrap;
    margin-left: 5px;
}
.girls_extra_icon_box {
    position: absolute;
    width: calc(80% / 2);
    right: 0;
    bottom: 100%;
    display: none;
}
.girls_extra_icon {
    max-height: 100%;
    opacity: 0;
}
.girls_extra_icon.lazyloaded {
    animation: fade 1s forwards;
}

/* ローディング */
.next_page_load {
    text-align: center;
    height: 40px;
}
.next_page_load_img {
    display: none;
    max-height: 100%;
}

/* 即ヒメ時間バッジ */
.sokuhime-time-badge {
    background: linear-gradient(90deg, #e91e63, #f06292, #e91e63);
    background-size: 200% 100%;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 4px 10px;
    border-radius: 3px;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: sokuhime_gradient 2s ease infinite;
    position: absolute;
    bottom: 45px;
    left: 3%;
    visibility: hidden;
}

/* 空状態表示 */
.sokuhime-empty {
    text-align: center;
    padding: 40px;
    color: #888;
    word-break: normal;
}

/* ↓ PC ↓ */
@media screen and (min-width: 767px) {
    .sp_mode {
        display: none;
    }
    .pc_mode {
        display: block;
    }
    .contents {
        max-width: 980px;
    }
    .contents-block {
        display: flex;
        overflow: visible;
    }
    .search_menu {
        min-width: 290px;
        width: 290px;
    }
    .girls_box {
        width: calc(33.33% - 5px);
    }
}
/* ↑ PC ↑ */

/* ↓ SP ↓ */
@media screen and (max-width: 767px) {
    .sp_mode {
        display: block;
    }
    .pc_mode {
        display: none;
    }
    .girls_list_title {
        padding: 10px;
    }
    .girls_box {
        width: calc(50% - 5px);
    }
    .girls_list {
        width: auto;
    }
    /* 英語の次回枠（「Available from HH:MM」）は文言が長く SP のカード幅からはみ出すため、左右の余白と左端の位置を詰める
       （次回枠のバッジは is-immediate を持たない。英語の判定はレイアウトが出力する <html lang="en"> で行う） */
    html[lang="en"] .sokuhime-time-badge:not(.is-immediate) {
        padding: 4px 4px;
        left: 5px;
    }
}
/* ↑ SP ↑ */

/* =========================================================================
   検索モーダル（女の子検索と同じデザイン）
   ========================================================================= */
.sokuhime-modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    .sokuhime-modal {
        background-color: rgba(0, 0, 0, 0.3);
        pointer-events: auto;
    }
}

.sokuhime-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 70vh;
    overflow-y: auto;
    pointer-events: auto;
}

@media screen and (min-width: 768px) {
    .sokuhime-modal-content {
        max-height: 80vh;
    }
}

@media screen and (max-width: 767px) {
    .sokuhime-modal-content {
        max-height: 60vh;
    }
}

.sokuhime-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.sokuhime-modal-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.sokuhime-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sokuhime-modal-close:hover {
    color: #333;
}

.sokuhime-modal-body {
    padding: 10px 0;
}

@media screen and (min-width: 768px) {
    .sokuhime-modal-body {
        display: block;
        padding: 10px 0 15px 0;
    }
}

.sokuhime-modal-options {
    display: none;
    flex-wrap: wrap;
}

.sokuhime-modal-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    transition: background-color 0.2s;
}

.sokuhime-modal-item:hover {
    background-color: #f8f8f8;
}

.sokuhime-modal-checkbox {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    transform: scale(1.2);
}

.sokuhime-modal-label {
    flex: 1;
    cursor: pointer;
    color: #a51b20;
    text-decoration: none;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.sokuhime-modal-label.current {
    font-weight: bold;
}

@media screen and (min-width: 768px) {
    .sokuhime-modal-item {
        width: 230px;
        font-size: 12px;
        padding: 2px 10px;
    }

    .sokuhime-modal-checkbox {
        width: 12px;
        height: 12px;
    }
}

@media screen and (max-width: 767px) {
    .sokuhime-modal-header {
        padding: 12px 15px;
    }

    .sokuhime-modal-item {
        padding: 10px 15px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* 地域グループ表示 */
.sokuhime-modal-group {
    margin-bottom: 15px;
    width: 100%;
}

.sokuhime-modal-region-title {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 18px;
    margin: 0;
    color: #333;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.sokuhime-modal-group:first-child .sokuhime-modal-region-title {
    border-top: none;
}

.sokuhime-modal-region-prefs {
    padding-left: 10px;
}

@media screen and (min-width: 768px) {
    .sokuhime-modal-region-prefs {
        display: flex;
        flex-wrap: wrap;
    }

    .sokuhime-modal-region-prefs .sokuhime-modal-item {
        width: 230px;
    }
}

@media screen and (max-width: 767px) {
    .sokuhime-modal-region-prefs {
        display: block;
    }
}

/* モーダルフェードアウト */
.sokuhime-modal-content {
    transition: opacity 0.28s ease;
}

.sokuhime-modal-content.fading {
    opacity: 0;
}
