@charset "utf-8";

body.modal-open {
    overflow: hidden;
}


.sec_book {
    display: block;
    position: sticky;
    top: calc(51.25px + 16px);
    height: fit-content;
    max-height: calc(100vh - 51.25px - 32px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    padding-right: 8px;
    margin-right: -8px;
    box-sizing: content-box;
}

@media (max-width: 767px) {
    .sec_book {
        position: static;
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
        margin-right: 16px;
    }
}

.book_wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    line-height: 1.5em;
}

#close_search_menu_button {
    display: none;
}

@media (max-width: 767px) {
    .sp_book_modal {
        display: none;
    }
    .sp_book_modal.active {
        display: flex;
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 100;
    }
    #close_search_menu_button {
        display: block;
        text-align: right;
        background: none;
        font-size: 2rem;
    }
}

.book {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-height: none;
    overflow: visible;
    box-shadow:
        rgba(0, 0, 0, 0.08) 0px 4px 12px 0px,
        rgba(0, 0, 0, 0.04) 0px 2px 6px 0px,
        rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
        rgba(0, 0, 0, 0.01) 0px 0px 1.5px 0px;
    background-color: rgb(250, 250, 250);
    border-radius: 10px;
}

@media screen and (max-width: 767px) {
    .book {
        background-color: rgb(250, 250, 250);
        width: auto;
        height: auto;
        max-height: 80%;
        overflow-y: auto;
    }
}

.input_item {
    width: 100%;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.book label {
    color: rgb(103, 103, 103);
}

label[for] {
    cursor: pointer;
}

.select_box_wrapper {
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 40px;
    height: fit-content;
    border: solid 1px rgb(234, 234, 234);
    border-radius: 7.5px;
    background-color: #fff;
}

.select_box_over {
    display: flex;
    width: -webkit-fill-available;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    cursor: pointer;
    white-space: normal;
    padding: 0 .3rem;
    border: none;
    background-color: #fff;
}

select:focus {
    outline: none;
    box-shadow: none;
    border-color: initial;
}

.clear_btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    width: 25px;
    align-items: center;
    border-width: 0;
}

.input_item .search_menu_button {
    border: none;
    border-radius: 9999px;
    background-color: #a01b1f;
    color: white;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    height: 40px;
}

@media screen and (max-width: 767px) {
    .input_item .search_menu_button {
        margin-bottom: 220px;
    }
}

/* 検索モーダル */
.search-modal {
    display: none;
    position: absolute;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
}

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

.search-modal-content {
    position: absolute;
    left: 310px;
    top: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 300px;
    max-height: 70vh;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    overflow: hidden auto;
}

.search-modal-content.fading {
    opacity: 0.2;
}

@media screen and (min-width: 768px) {
    .search-modal-content {
        width: 800px;
    }
}

@media screen and (max-width: 767px) {
    .search-modal-content {
        position: absolute;
        left: 20px;
        right: 20px;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
    }
}

.search-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.search-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;
}

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

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

.modal-options {
    display: none;
}

.modal-options.active {
    display: block;
}

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

    .modal-options {
        flex-wrap: wrap;
    }
}

.modal-search-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.modal-search-link:hover {
    background-color: #f8f8f8;
    color: #a51b20;
}

.modal-search-link.current {
    background-color: #a51b20;
    color: #fff;
}

.modal-search-link.current:hover {
    background-color: #8a1519;
    color: #fff;
}

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

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

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

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

@media screen and (min-width: 768px) {
    .modal-search-checkbox {
        width: 12px;
        height: 12px;
    }
}

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

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

/* 地方ごとの都道府県表示 */
.modal-region-group {
    margin-bottom: 20px;
    width: 100%;
}

.modal-region-title {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin: 0 0 10px 0;
    padding: 8px 20px;
    background-color: #f5f5f5;
    border-left: 3px solid #a51b20;
}

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

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

    .modal-region-prefs .modal-search-item {
        width: 180px;
        margin-right: 10px;
    }
}

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

    .modal-search-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* 都道府県エリアリンク */
.pref_area_container_sp {
    display: none;
}

@media (max-width: 767px) {
    .pref_area_container_sp {
        font-weight: bold;
        display: block;
    }

    .pref_area_header {
        margin-bottom: 5px;
    }

    .pref_area_link_icon {
        width: auto;
        height: 1.3rem;
        filter: hue-rotate(240deg) brightness(1.9) saturate(0.6);
    }

    a.pref_area_link_item {
        padding: 1px 5px;
        display: inline-block;
        white-space: nowrap;
        margin: 2px;
        border: 2px solid #757575;
        border-radius: 5px;
    }
}
/* 都道府県エリアリンク */

/* 人気エリア */
.popular_area_container {
    background-color: #fff;
    margin-top: 16px;
    border-radius: 10px;
    padding: 16px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px 0px, rgba(0, 0, 0, 0.04) 0px 2px 6px 0px;
    overflow: visible;
    height: auto;
}

.popular_area_container dl {
    display: grid;
    gap: 2px;
}

.popular_area_container dt {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0;
}

.popular_area_container dd {
    margin: 0;
    padding: 0;
}

.popular_area_container dd a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
}

.popular_area_container dd a:hover {
    background-color: #e9ecef;
    color: #a01b1f;
    transform: translateX(2px);
}

.popular_area_container_sp {
    display: none;
}

@media (max-width: 767px) {
    .popular_area_container {
        display: none;
    }

    .popular_area_container_sp {
        display: block;
        padding: 10px 5px;
        font-size: 16px;
        background-color: #f7f7f7;
    }

    .popular_area_wrapper {
        position: relative;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .popular_area_icon {
        position: absolute;
        left: 10px;
        height: 18px;
        width: auto;
        z-index: 1;
    }

    .popular_area_icon::before {
        content: '📍';
        font-size: 18px;
    }

    .popular_area_select {
        width: 100%;
        border: none;
        height: 3rem;
        line-height: 3rem;
        font-size: 1rem;
        background-color: #fff;
        padding-left: 35px;
        padding-right: 35px;
        box-shadow: 0px 4px 4px 0px rgba(110, 110, 110, 0.35);
        color: #333;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .popular_area_text {
        flex: 1;
    }

    .popular_area_arrow {
        width: 16px;
        height: 16px;
    }
}

/* セレクトボックス改修 */
.select_box_wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.select_box_wrapper .select_box {
    flex: 1;
}

.select_box_wrapper > .clear_btn {
    position: absolute;
    right: 0;
    z-index: 10;
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-right: 5.5px;
}

.select_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.select_box.modal-trigger {
    position: relative;
}

.select_box.modal-trigger::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 767px) {
    .select_box.modal-trigger::after {
        pointer-events: auto;
    }
}

.select_box_inner {
    display: flex;
    align-items: center;
}

.select_icon {
    max-width: 20px;
}

.select_text {
    margin: 0 20px 0 10px;
    font-size: 14px;
    color: #cecece;
    max-width: 300px;
    word-break: break-word;
}

.select_text.active {
    color: #000;
}

.select_box_over {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


/* 店舗名検索 */
.shopsearch,
input[name="txtCommuNameKana"],
.shop_search_button {
    height: 40px;
}

.shopsearch {
    width: 100%;
    margin: 16px 0;
    letter-spacing: 0.1em;
    font-weight: bold;
    line-height: 0;
    box-sizing: border-box;
}

.shopsearch form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

input[name="txtCommuNameKana"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 5px;
    border: 2px solid #757575;
    border-radius: 5px 0 0 5px;
    font-size: 14px;
}

.shop_search_button {
    box-sizing: border-box;
    margin: 0;
    padding: 6px 10px;
    border: none;
    border-radius: 0 5px 5px 0;
    background: #757575;
    color: #fff;
    cursor: pointer;
}

.search_menu_button_icon {
    display: inline-block;
    width: auto;
    height: 18px;
    margin: 0 3px 0 0;
    vertical-align: middle;
}

@media screen and (max-width: 767px) {
    .shopsearch.execute-search {
        margin: 20px auto;
    }

    .shopsearch {
        width: 320px;
        margin: 16px auto;
    }

    .shopsearch form {
        justify-content: center;
    }

    input[name="txtCommuNameKana"] {
        width: 270px;
    }

    .search_menu.execute-search {
        display: none;
    }
}

/* 店舗名検索 */


/* 検索方法選択 */
.search_method_wrap {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    margin-block: 10px;
    padding: 10px;
    gap: 10px;
    background-color: rgb(250, 250, 250);
    box-shadow:
        rgba(0, 0, 0, 0.08) 0px 4px 12px 0px,
        rgba(0, 0, 0, 0.04) 0px 2px 6px 0px,
        rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,
        rgba(0, 0, 0, 0.01) 0px 0px 1.5px 0px;
    border-radius: 10px;
}

.search_method_wrap > * {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 7.5px;
    font-size: 1rem;
    font-family: inherit;
    height: 50px;
    gap: 0.3rem;
    padding: 0 0.5rem;
    word-break: normal;
    overflow-wrap: break-word;
}

.search_method_button_icon {
    width: auto;
    height: 2rem;
}

@media (max-width: 767px) {
    .search_method_wrap {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "areaGenre_button areaGenre_button"
            "currentLocation_link AI_link";
    }

    .search_method_wrap > * {
        justify-content: center;
        height: 100px;
        box-sizing: border-box;
    }

    .areaGenre_button {
        grid-area: areaGenre_button;
        color: rgb(51, 51, 51);
    }

    .currentLocation_link { grid-area: currentLocation_link;}
    .AI_link { grid-area: AI_link;}

    .currentLocation_link,
    .AI_link {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .areaGenre_button {
        display: none;
    }
}
/* 検索方法選択 */

/* アンバサダーバナー */
.active_banner {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.ambassador_banner {
    width: 100%;
}

@media screen and (max-width:767px) {
    .ambassador_banner {
        max-width: calc(100% - 22px);
        margin: 0 10px;
    }
}
