html {
    height: auto;
}
.area-search-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    /* height: calc(100vh - 8.8rem - 3.2rem); */
    margin-top: calc(8.8rem + 3.2rem);
    padding-bottom: 8rem;
    margin-bottom: 20rem;
}
.area-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, auto) 1fr;
    height: 100%;
}
.shop-list-sec,
.image-sec {
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.image-sec {
    margin-top: -50px;
    max-width: 300px;
    /* max-width: 100%; */
}
.image-sec img {
    width: 100%;
}
.shop-list-sec {
    justify-content: flex-start;
    /* overflow-y: scroll; */
    margin-bottom: 3.2rem;
}
.area-name {
    grid-column: 1 / 3;
    text-align: left;
    font-size: 2.4rem;
    font-weight: bold;
    margin-top: 4rem;
    margin-bottom: 3.3rem;
    margin-left: 2rem;
    width: 80rem;
    margin-inline: auto;
}
.shop-list {
    border: 1px solid #cccccc;
    border-radius: 8px;
    max-height: 560px;
    overflow-y: auto;
    padding: 3.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1.6rem;
    grid-row-gap: 0.8rem;
}
.card {
    display: flex;
    align-items: center;
    width: 36rem;
    height: 4.8rem;
    padding: 0 1.6rem;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}
.card:hover {
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}
.card-text {
    flex: 1;
    font-size: 1.6rem;
}

.card-arrow {
    width: 1.6rem;
    height: 2.4rem;
    margin-left: 1rem;
}

.card-arrow img {
    width: 100%;
    height: 100%;
}
.area-search-wrap.select-wrapper {
    position: relative;
    display: inline-block;
}

.area-search-wrap.select-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 2px);
    z-index: 1;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 32rem;
    overflow-y: auto;
}
.area-search-wrap.select-wrapper input {
    height: 2rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px 4px 0 0;
}

.area-search-wrap.select-wrapper input:focus + .select-list {
    display: block;
}
.area-search-wrap.select-wrapper {
    position: relative;
    display: inline-block;
    width: 90%;
    margin: 0 auto;
}

.area-search-wrap.select-wrapper input {
    padding-right: 2.6rem;
    cursor: pointer;
    padding-right: 2rem;
}

.area-search-wrap.select-wrapper .dropdown-icon {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    right: 1.6rem;
    transform: translateY(-50%);
}

.area-search-wrap input[type="text"].area-name-header {
    width: 100%;
    height: 4.8rem;
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 1rem;
    box-sizing: border-box;
}
.select-wrapper.sp {
    display: none;
}
@media screen and (max-width: 768px) {
    .area-search-wrap {
        width: 100%;
    }
    .area-container {
        grid-template-columns: 1fr;
        place-items: center;
    }
    .area-name {
        grid-column: 1 / 2;
        margin: 3rem 0;
        width: 80%;
    }
    .shop-list-sec {
        order: 2;
        overflow-y: visible;
    }
    .image-sec {
        order: 1;
        /* width: 60%; */
        margin-top: 0;
        margin-bottom: 6rem;
    }
    .image-sec img {
        max-width: 70%;
        max-height: 500px;
        height: auto;
    }

    .shop-list {
        grid-template-columns: 1fr;
        padding: 1.6rem;
        max-height: 50vh;
    }
    .area-search-wrap {
        margin-top: 15rem;
    }
    .select-wrapper.sp {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 90%;
    }
    .area-search-wrap .select-wrapper input,
    .area-search-wrap .select-wrapper ul li {
        font-size: 1.5rem;
        padding: 2rem;
    }
    .area-search-wrap .select-wrapper ul li {
        padding: 0;
        height: 4rem;
    }
    .area-search-wrap .select-wrapper ul li a {
        padding: 0 2rem;
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: left;
        align-items: center;
    }

    .card {
        width: 100%;
    }
    .shop-list-sec {
        width: 80%;
    }
    .shop-list {
        width: 100%;
    }
}
