@charset "utf-8";

.store-all-wrap {
    margin-bottom: 40px;
}

.search-link-wrap {
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 15px;
}

.search-link-wrap a {
    width: 50%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    text-decoration: none;
    color: black;
    background-color: #f2f2f2;
    font-weight: 600;
    font-size: 1.2rem;
}

.search-link-wrap a.active {
    background-color: #444;
    color: white;
}

.store-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.store-info-wrap:hover {
    background-color: rgb(236, 231, 231);
}

.store-info-wrap {
    width: 100%;
    padding: 25px;
    text-decoration: none;
    color: black;
    border-bottom: 1px solid rgba(162, 160, 160, 0.8);
}

.store-info-wrap:first-of-type {
    border-top: 1px solid rgba(162, 160, 160, 0.8);
}

.pro-image-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.pro_image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.store-name-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

h3 {
    margin-bottom: 0;
    font-weight: 600;
}

.store-address {
    margin: 10px auto;
}

.store-all-rate-wrap {
    display: flex;
    flex-direction: column;
}

.store-all-rate {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-all-rate p {
    margin-bottom: 0;
}

#rate-star-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
}

.rate-score {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.star {
    color: #ccc;
    font-size: 1.3rem;
    position: relative;
}

.star.full {
    color: gold;
    /* 塗りつぶしの星の色 */
}

.star.half::before {
    content: "★";
    position: absolute;
    width: 50%;
    overflow: hidden;
    color: gold;
    /* 半分塗りの星の色 */
}

.store-category {
    margin: 0;
    font-weight: 600;
}

.average-price-all-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 10px;
}

.average-price-wrap span {
    font-size: 1.1rem;
}

dl,
dd {
    margin-bottom: 0;
}

.average-price-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.store-photo-wrap {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    overflow: auto;
}

.store-photo {
    flex-shrink: 0;
    width: 50%;
    aspect-ratio: 1/1;
}

.store-photo>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-description {
    margin: 30px auto 10px;
    max-height: 200px;
    overflow: scroll;
}

/*広告枠のテンプレ*/

.advertisement-wrap {
    width: 100%;
    margin: 20px auto 0;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(162, 160, 160, 0.8);
    /*お店と広告の区切りとして入れる*/
}

.advertisement-text {
    text-align: right;
    margin-bottom: 5px;
    margin-right: 5px;
    font-size: 1.2rem;
}

.advertisement-area {
    text-decoration: none;
    color: black;
    border: 2px solid black;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 5/3;
    background-color: #FFF4E5;
    overflow: hidden;
}

.advertisement-area p {
    margin-bottom: 10px;
}

.ad-banner-headline {
    background-color: #FFA500;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.ad-banner-price {
    font-size: 1.1rem;
    font-weight: 600;
}

.ad-banner-price span {
    /* background: linear-gradient(to bottom, transparent 75%, #f59494 75%); */
    background: linear-gradient(to bottom,
            rgba(255, 213, 79, 0) 0%,
            rgba(255, 213, 79, 0.6) 60%,
            rgba(255, 213, 79, 1) 100%);
}

.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-list {
    list-style-type: none;
    padding-left: 0;
    /* 余白も消したい場合 */
}

.pagination-list-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.pagination-list li {
    width: 45px;
    height: 45px;
    border: 1px solid black;
    padding: 5px;
}

.pagination-list li a {
    width: 100%;
    height: 100%;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.current-page {
    background-color: #E63946;
}

.page-number {
    text-align: center;
}

.no-match-wrap {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-match-store {
    text-align: center;
}

.search-store-back-home {
    width: 60%;
    height: 50px;
    border-radius: 999px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-store-back-home a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    color: white;
    background-color: #0d6efd;
}

.side-column {
    display: none;
}


@media(min-width: 768px) {

    .search-store-all-wrap {
        width: 100%;
        max-width: 1500px;
        margin: 20px auto 30px;
    }

    .all-column-wrap {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .side-column {
        flex: 2.5;
        width: 25%;
        flex-shrink: 0;
        display: block;
        background-color: #f8f8f8;
        padding: 35px;
    }

    .search-field-wrap {
        margin: 20px 0 30px;
    }

    .search-field label {
        font-weight: 600;
    }

    .search-field {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 15px;
    }

    .search-field input {
        width: 100%;
        height: 40px;
    }

    .side-search-btn-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 40px auto 60px;
    }

    .side-search-btn-wrap button {
        width: 70%;
        height: 50px;
        border: none;
        background-color: #E63946;
        color: white;
    }

    .main-column {
        flex: 7.5;
        width: 75%;
    }

    .store-photo {
        width: 25%;
    }

    .store-all-rate-wrap {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .no-match-wrap {
        margin-top: 60px;
    }

    .search-store-back-home {
        width: 50%;
    }

    /*検索結果の間に入る広告枠*/
    .advertisement-area {
        padding: 30px;
    }

    /*サイドバーの広告*/
    .side-advertisement {
        padding: 10px;
        aspect-ratio: 1/1;
    }

    .side-advertisement .ad-banner-description {
        display: none;
    }

    .side-advertisement>P {
        margin-bottom: 10px;
    }

    .side-advertisement .ad-banner-headline {
        padding: 5px;
        font-size: 0.8rem;
    }

    .side-advertisement .ad-banner-price {
        font-size: 0.8rem;
    }

    .side-advertisement .ad-banner-note {
        font-size: 0.6rem;
    }
}

@media(min-width: 1200px) {

    /*検索結果の間に入る広告枠*/
    .advertisement-area {
        aspect-ratio: 4/1;
        align-items: center;
        margin: auto;
    }

    .advertisement-text {
        margin-right: 20px;
    }

    /*サイドバーの広告*/
    .side-advertisement {
        padding: 15px 20px;
        aspect-ratio: 5/3;
    }

    .side-advertisement .ad-banner-description {
        display: block;
    }

    .side-advertisement>P {
        margin-bottom: 10px;
        font-size: 0.8rem;
    }

    .ad-banner-headline {
        font-size: 1.4rem;
    }

    .side-advertisement .ad-banner-headline {
        font-size: 0.9rem;
        padding: 10px;
    }

    .side-advertisement .ad-banner-price {
        font-size: 0.9rem;
    }

    .ad-banner-price {
        font-size: 1.3rem;
    }

    .side-advertisement .ad-banner-note {
        font-size: 0.7rem;
    }
}