@charset "utf-8";

.search-plan-all-wrap {
    width: 100vw;
}

/*検索の部分*/
.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;
}

.side-column {
    display: none;
}

/*プランの表示部分*/

.plans-wrap {
    margin-bottom: 50px;
}

.plan-wrap {
    display: flex;
    width: 100%;
    flex-direction: column;
    padding: 18px;
    border-bottom: 1px solid rgba(162, 160, 160, 0.8);
    text-decoration: none;
    color: black;
}

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

.name-image-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}


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

.name-image-wrap p {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.plan-country {
    width: 42px;
    height: 30px;
    border: 1px solid black;
}

.field-label::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: rgba(243, 209, 146, 0.7);
    margin-right: 7px;
}

.field-label {
    display: flex;
    align-items: center;
}

.plan-title {
    text-align: center;
    padding-bottom: 7px;
    width: 100%;
    font-size: 1.6rem;
    font-weight: 600;
    border-bottom: 2.5px solid rgb(0, 0, 0, 0.6);
    margin: 15px auto 18px;
}

.plan-detail-info-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 10px;
}

.plan-detail-info {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.plan-detail-info span {
    font-weight: 600;
    font-size: 1.2rem;
    width: 130px;
}

.plan-detail-info.category span {
    min-width: 120px;
}

.plan-detail-info p {
    margin-left: 10px;
    width: 100%;
    margin-bottom: 0;
}

.comment-wrap {
    margin: 5px 0;
}

.comment-wrap span {
    font-weight: 600;
    font-size: 1.2rem;
}

.comment-wrap p {
    width: 100%;
    padding: 10px;
    min-height: 70px;
    border: 1px solid black;
    margin-top: 5px;
}

/*プランアイテムのラッパー*/
.plan-item-wrap:has(.plan-item) {
    width: 100%;
    min-height: 400px;
    overflow: auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    /*border: 4px solid rgba(27, 26, 26, 0.55);*/
    border-radius: 10px;
    padding: 10px 20px;
}

.plan-item {
    width: 100%;
    min-width: 340px;
    max-width: 340px;
    height: 380px;
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: 1px solid black;
    position: relative;
    margin-bottom: 20px;
}

.plan-item-profile-image-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 5px;
}

.plan-item-profile-image-wrap img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.store-photo {
    flex: 5;
    flex-shrink: 0;
    width: 100%;
    height: 165px;
}

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

.plan-item .store-photo>p {
    background-color: #f0f0f0;
}

.store-photo>p {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.plan-item-info-wrap {
    flex: 5;
    flex-shrink: 0;
    height: 165px;
    margin-top: 20px;
}

.store-name {
    font-weight: 600;
    max-width: 100%;
    margin-bottom: 0;
    font-size: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
}

/*お店の評価*/
.rate-star-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rate-star-wrap p {
    margin-bottom: 0;
}

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

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

.rate-star-wrap .full {
    color: gold;
}

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

/*お店のカテゴリー*/
.store-category-wrap {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 10px 0;
}

.store-category-wrap p {
    margin-bottom: 0;
}

.store-category {
    margin-left: 10px;
    font-weight: 600;
}

/*お店の住所*/
.store-address {
    text-align: left;
    margin: 10px 0;
}

.store-description {
    height: 100px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid black;
    overflow: auto;
}

/*矢印*/
.plan-item:not(:last-child)::before {
    content: "→";
    display: inline-block;
    font-size: 1.1rem;
    position: absolute;
    top: 50%;
    right: -6%;
}

.plan-item .category-wrap {
    display: flex;
    flex-direction: row;
}

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

.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-plan {
    text-align: center;
    margin-top: 60px;
}

.go-create-plan-linkwrap {
    width: 60%;
    height: 50px;
    margin: 40px auto;
}

.go-create-plan-linkwrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: rgba(244, 162, 97);
    color: white;
}

@media(min-width: 768px) {

    .search-plan-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.8;
        width: 28%;
        max-width: 28%;
        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;
    }

    .choices-wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 30px 0;
    }

    .choices-wrap h3 {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
        font-weight: 600;
        background-color: rgba(245, 234, 214, 0.7);
    }

    .choices-wrap input {
        width: 20px;
        height: 20px;
    }

    .choices-check-box {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: 10px;
    }

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

    /*検索結果の間に入る広告枠*/

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

    .main-column {
        flex: 7.2;
        width: 72%;
        max-width: 72%;
    }

    .plan-detail-info-wrap {
        padding-left: 20px;
    }

    .comment-wrap {
        padding-left: 20px;
    }

    .no-match-plan {
        text-align: center;
        margin-top: 100px;
    }

    .go-create-plan-linkwrap {
        margin: 60px auto;
    }
}

@media(min-width:1200px) {

    .plan-item-wrap:has(.plan-item) {
        gap: 3rem;
    }

    .plan-item {
        width: 40%;
        min-width: 40%;
        max-width: 40%;
    }

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

    /*矢印*/
    .plan-item:not(:last-child)::before {
        content: "→";
        display: inline-block;
        font-size: 1.5rem;
        position: absolute;
        top: 50%;
        right: -10%;
    }

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

}