/* ==========================================
   共通
========================================== */

h3 {
   font-size: clamp(16px, 2vw, 24px);
}

h3 > span {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 400;
}

form {
    margin-inline: auto;
    width: min(calc(100% - 40px), 1200px);
}

span.anchor {
    display: block;
    height: 100px;
}

.text-block {
    margin-bottom: 60px;
}

.genre-block,
.service-block {
/*    margin-bottom: 20px;*/
}


/* ==========================================
   検索フォーム
========================================== */

.scroll-area {
    background-color: #fff;
    box-sizing: border-box;
    box-shadow: 0 0 32px -3px rgba(240, 120, 134, 0.38);

    width: 70%;
    height: auto;
    margin: 0 auto 60px;
    padding: 2em;

    overflow: visible;
}


/* ==========================================
   カプセルボタン
========================================== */

.list-capsule-group {
    display: flex;
    gap: 6px;
    width: 100%;
    margin: 0 0 15px;
}

.list-capsule-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 15px;

    background: #fff;
    border: none;
    border-radius: 80px;
    outline: none;

    color: #111;
    font-size: clamp(12px, 1vw, 13px);
    text-align: center;

    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);

    -webkit-appearance: none;
    appearance: none;
}

.list-capsule-btn:focus {
    outline: none;
}

.list-capsule-btn:active {
    background: #e6f7ff;
}

.list-capsule-btn.is-active {
    background: #DFF0FF;
}


/* ==========================================
   キーワード検索
========================================== */

.list-search-inner {
    position: relative;
    width: 100%;
    height: 45px;
    margin-top: 0;
    margin-bottom: 15px;
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.list-search-inner input[type="text"] {
    width: 100%;
    height: 100%;
    padding: 8px 40px 8px 10px;

    border: 1px solid #ccc;
    box-sizing: border-box;

    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
}

.list-search-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);

    width: 24px;
    height: 24px;
    padding: 0;

    border: none;
    background: transparent;
    cursor: pointer;
}

.list-search-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ==========================================
   展開メニュー：本体
========================================== */

.list-filter-panel {
    display: none;

    position: static;
    width: 100%;
    max-height: none;
    margin: 15px 0;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-sizing: border-box;

    overflow: hidden;
}

.list-filter-panel.is-open {
    display: flex;
    flex-direction: column;
}


/* ==========================================
   展開メニュー：ヘッダー
========================================== */

.list-filter-panel .bottom-sheet-header {
    position: relative;
    display: flex;
    align-items: center;

    padding: 8px 45px 8px 12px;

    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.list-filter-panel .bottom-sheet-title {
    flex: 1;
    text-align: center;
    line-height: 1.4;
    padding: 10px 0;
}

.list-filter-panel .main-title {
    font-size: 16px;
    font-weight: bold;
}

.list-filter-panel .sub-title {
    font-size: 11px;
}


/* ==========================================
   展開メニュー：閉じるボタン
========================================== */

.list-filter-panel .bottom-sheet-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    padding: 0;

    background: #ccc;
    border: none;
    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.list-filter-panel .bottom-sheet-close::before,
.list-filter-panel .bottom-sheet-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 60%;
    height: 4px;

    background: #fff;

    transform: translate(-50%, -50%) rotate(45deg);
}

.list-filter-panel .bottom-sheet-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* ==========================================
   展開メニュー：検索条件
========================================== */

.list-filter-panel .bottom-sheet-body {
    padding: 20px 15px;
}

.list-filter-panel .bottom-sheet-body p {
    text-align: center;
    font-weight: bold;
    margin-top: 0;
}

.list-filter-panel .bottom-sheet-body label {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.list-filter-panel input[type="checkbox"] {
    flex-shrink: 0;
}


/* ==========================================
   展開メニュー：2列表示
========================================== */

.list-filter-panel .grid-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 20px;
    row-gap: 8px;

    margin: 10px 0 15px;
}

.list-filter-panel .grid-items label {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ==========================================
   展開メニュー：3列表示
========================================== */

.list-filter-panel .grid-items-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 15px;
    row-gap: 8px;

    margin: 10px 0;
}

.list-filter-panel .grid-items-3 label {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ==========================================
   展開メニュー：エリア
========================================== */

.list-filter-panel .bottom-sheet-body-area {
    padding: 30px 20px;
    text-align: center;
}

.list-filter-panel .bottom-sheet-body-area p {
    text-align: center;
    font-weight: bold;
    margin-top: 0;
}

.list-filter-panel .bottom-sheet-body-area label {
    display: flex;
    align-items: center;

    margin-bottom: 10px;

    font-size: 13px;
    cursor: pointer;
}

.list-filter-panel #region-select {
    width: 70%;
    height: 48px;
    padding: 12px 14px;

    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;

    font-size: 14px;
    box-sizing: border-box;
}

/* ==========================================
   一覧画面：下部メニュー
========================================== */

.list-bottom-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 150px;
    padding: 25px 15px;

    background: #fff;
    border: 2px solid #ccc;
    border-radius: 10px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    
    text-decoration: none;
    box-sizing: border-box;
}

.list-bottom-btn img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.list-bottom-btn:hover {
    background: #f5f5f5;
}

.list-bottom-btn.is-active {
    background: #DFF0FF;
    border-color: #8abfe8;
}

.run
{
    margin-bottom: 20px;
}

/* ==========================================
   検索結果：条件表示
========================================== */

.r-condition {
    margin: 20px auto;
    width: min(calc(100% - 40px), 1200px);
}


/* ==========================================
   検索結果一覧
========================================== */

.result-list {
    display: grid;
    font-size: 1.4rem;
    gap: 40px 20px;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    list-style: none;
    margin: 20px auto 0;
    padding: 0;

    width: min(calc(100% - 40px), 1200px);
}

.result-list > li {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.result-list > li > div {
    box-sizing: border-box;
    padding: 20px;
}

.result-list .flex {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.result-list .title {
    font-size: 1.6rem;
    margin-bottom: 0.5em;
}

.result-list .desc {
    margin-bottom: 0.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-list .icons {
    margin-bottom: 0.5em;
}

.result-list .icons img {
    height: 35px;
    width: 35px;
}

.img-genre,
.img-servicetype {
    margin: 0 0 5px 5px;
}


/* ==========================================
   検索結果：画像
========================================== */

.result-list .img-wrap {
    display: block;
    padding-top: 75%;
    position: relative;
}

.result-list .img-wrap > img {
    height: 100%;
    left: 0;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    width: 100%;
}

.result-list .img-wrap > img.flag-img {
    height: auto;
    left: 3px;
    top: 3px;
    width: 60%;
}

.result-list .img-wrap iframe {
    left: 0;
    position: absolute;
    top: 0;
}


/* ==========================================
   検索結果：ボタン
========================================== */

.result-list .btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 3px;
}

.result-list .fav,
.result-list .to-detail {
    border-radius: 1em;
    box-sizing: border-box;
    display: inline-block;

    font-size: 1.1rem;
    margin-bottom: 5px;
    padding: 5px 1em;

    text-decoration: none;
}

.result-list .fav {
    background-color: #ff9787;
    color: #fff;
    display: none;
}

.result-list .to-detail {
    color: #676767;
    box-shadow: 0 0 4px rgba(95, 40, 0, 0.38);
    text-align: center;
    width: 100%;
}


/* ==========================================
   ページネーション
========================================== */

ul.pagination {
    align-items: center;
    display: flex;
    font-size: 2.4rem;
    justify-content: center;

    list-style: none;
    margin: 0;
    padding: 1em 0;
}

ul.pagination > li {
    cursor: pointer;
}

ul.pagination > li:not(.prev):not(.next) {
    background-color: #fff;
    border: 2px solid #f07886;
    border-radius: 50%;
    box-sizing: border-box;

    color: #f07886;

    height: calc(1em * 1.5 + 4px);
    width: calc(1em * 1.5 + 4px);

    margin-inline: 0.3em;
    text-align: center;
}

ul.pagination > li.prev,
ul.pagination > li.next {
    color: #f07886;
    margin-inline: 0.5em;
}

ul.pagination > li.current {
    background-color: #f07886 !important;
    color: #fff !important;
}


/* ==========================================
   レスポンシブ
========================================== */

@media screen and (max-width: 768px) {

    /* 検索フォーム */
    .scroll-area {
        width: 100%;
        padding: 1em;
    }

    /* カプセルボタン */
    .list-capsule-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* 展開メニュー */
    .list-filter-panel .bottom-sheet-body {
        padding: 15px 10px;
    }

    .list-filter-panel .bottom-sheet-body label {
        font-size: 11px;
    }

    /* 2列表示 */
    .list-filter-panel .grid-items {
        column-gap: 10px;
    }

    /* 3列を2列に変更 */
    .list-filter-panel .grid-items-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* エリア */
    .list-filter-panel .bottom-sheet-body-area {
        padding: 20px 10px;
    }

    .list-filter-panel #region-select {
        width: 100%;
    }

    /* 検索結果 */
    .result-list {
        gap: 40px 0;
        grid-template-columns: 100%;
    }

    /* ページネーション */
    ul.pagination {
        font-size: 1.8rem;
    }

    ul.pagination > li:not(.prev):not(.next):not(.current) {
        display: none;
    }
}