/* =============================================
   ページ固有
============================================= */
.l-page.lower_layer-shop .mv {
    margin-bottom: 50px;
}

/* =============================================
   店舗カード SP
============================================= */
.section_content--shop {
    padding: 0 0 30px;
}

.shop_list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    list-style: none;
}

.shop_card {
    text-align: center;
}

.shop_card-photo {
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.shop_card-photo img {
    width: 100%;
    aspect-ratio: 335 / 200;
    object-fit: cover;
    display: block;
}

.shop_card-name {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--text-font);
    color: var(--main-color);
    margin-bottom: 15px;
}

.shop_card-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    width: 100%;
    max-width: 225px;
    margin: 0 auto;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--text-font);
    color: var(--main-color);
    background: #fff;
    border: 1px solid var(--main-color);
    cursor: pointer;
    transition: opacity 0.3s;
}

.shop_card-btn-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid var(--main-color);
    background: var(--main-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.shop_card-btn-icon::before,
.shop_card-btn-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
}

.shop_card-btn-icon::before {
    width: 7px;
    height: 1px;
}

.shop_card-btn-icon::after {
    width: 1px;
    height: 7px;
}

/* =============================================
   店舗カード PC
============================================= */
@media (min-width: 768px) {
    .l-page.lower_layer-shop .mv {
        margin-bottom: 100px;
    }

    .section_content--shop {
        padding: 0 20px;
        position: relative;
        overflow: visible;
    }

    .section_content--shop .section_space {
        position: relative;
    }

    .shop_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
        max-width: 1280px;
        margin: 0 auto;
    }

    .shop_card-photo {
        border-radius: 10px;
        margin-bottom: 20px;
        height: clamp(250px, 22vw, 410px);
    }

    .shop_card-photo img {
        height: 100%;
        aspect-ratio: auto;
    }

    .shop_card-name {
        font-size: clamp(18px, 1.1vw, 20px);
        margin-bottom: 20px;
    }

    .shop_card-btn {
        font-size: clamp(14px, 1vw, 16px);
        margin-left: auto;
        margin-right: inherit;
        padding: 4px 10px;
        max-width: 180px;
        gap: 10px;
    }

    .shop_card-btn-icon {
        width: 22px;
        height: 22px;
    }

    .shop_card-btn-icon::before {
        width: 9px;
    }

    .shop_card-btn-icon::after {
        width: 1px;
    }

    /* --- 装飾 --- */
    .section_content--shop .section_space::before,
    .section_content--shop .section_space::after {
        content: "";
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        pointer-events: none;
    }

    .section_content--shop .section_space::before {
        background-image: url("/images/shop/section-shop_deco_left.png");
        width: clamp(200px, 30vw, 587px);
        height: clamp(700px, 110vw, 2112px);
        top: 50px;
        left: clamp(-400px, -25vw, -200px);
    }

    .section_content--shop .section_space::after {
        background-image: url("/images/shop/section-shop_deco_right.png");
        width: clamp(200px, 30vw, 587px);
        height: clamp(220px, 33vw, 640px);
        top: 40%;
        right: clamp(-450px, -25vw, -200px);
    }
}

/* =============================================
   モーダル：外枠・オーバーレイ
============================================= */
.shop_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.shop_modal.is-active {
    display: flex;
}

.shop_modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* =============================================
   モーダル：コンテナ SP
============================================= */
.shop_modal-container {
    position: relative;
    background: #fff;
    border: 1px solid var(--main-color);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 5px;
    padding: 45px 30px;
    z-index: 1;
}

.shop_modal-container::-webkit-scrollbar {
    display: none;
}

/* --- 閉じるボタン --- */
.shop_modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25px;
    height: 25px;
    background: var(--main-color);
    border: 1px solid var(--main-color);
    cursor: pointer;
    padding: 0;
}

.shop_modal-close::before,
.shop_modal-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
}

.shop_modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.shop_modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- 店舗名 --- */
.shop_modal-name {
    font-size: 18px;
    font-weight: bold;
    font-family: var(--text-font);
    color: var(--main-color);
    letter-spacing: 0.06em;
    margin-bottom: 15px;
}

/* =============================================
   モーダル：スライダー
============================================= */
.shop_modal-slider {
    margin-bottom: 15px;
}

.shop_modal-slides {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.shop_modal-slides img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.shop_modal-slides img:first-child {
    position: relative;
}

.shop_modal-slides img.is-active {
    opacity: 1;
}

/* --- ドットナビ --- */
.shop_modal-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.shop_modal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
}

.shop_modal-dot.is-active {
    background: var(--main-color);
}

/* =============================================
   モーダル：店舗情報 SP
============================================= */
.shop_modal-dl {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.shop_modal-dl dt {
    font-size: 16px;
    font-weight: 500;
    font-family: var(--text-font);
    color: var(--main-color);
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.shop_modal-dl dd {
    font-size: 14px;
    font-family: var(--text-font);
    color: var(--main-color);
    line-height: 1.3;
}

/* --- 住所 --- */
.shop_modal-address {
    margin-bottom: 10px;
}

.shop_modal-map {
    text-align: right;
}

.shop_modal-map a {
    color: var(--main-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.shop_modal-map-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    position: relative;
}

.shop_modal-map-icon::after {
    content: "→";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
}

/* =============================================
   モーダル：支払い方法
============================================= */
.shop_modal-payment-title {
    font-size: 16px;
    font-weight: bold;
    font-family: var(--text-font);
    color: var(--main-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--main-color);
}

.shop_modal-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 740px;
}

.shop_modal-payment-icons img {
    height: 35px;
    width: auto;
}

/* =============================================
   モーダル PC
============================================= */
@media (min-width: 768px) {

    /* --- コンテナ --- */
    .shop_modal-container {
        max-width: 1072px;
        max-height: 90vh;
        padding: clamp(40px, 5vw, 100px);
        border-radius: 10px;
    }

    .shop_modal-close {
        top: clamp(20px, 3vw, 50px);
        right: clamp(20px, 3vw, 50px);
        width: clamp(30px, 2.5vw, 40px);
        height: clamp(30px, 2.5vw, 40px);
    }

    .shop_modal-name {
        font-size: clamp(20px, 1.5vw, 24px);
        margin-bottom: clamp(20px, 2vw, 30px);
    }

    /* --- レイアウト --- */
    .shop_modal-body {
        display: flex;
        align-items: stretch;
        gap: clamp(20px, 2vw, 35px);
        margin-bottom: clamp(40px, 2vw, 50px);
    }

    .shop_modal-slider {
        flex: 1 1 50%;
        max-width: clamp(250px, 25vw, 354px);
        margin-bottom: 0;
    }

    .shop_modal-info {
        flex: 1;
    }

    /* --- スライダー --- */
    .shop_modal-slides {
        border-radius: 10px;
        height: 100%;
    }

    .shop_modal-slides img {
        height: 100%;
        aspect-ratio: auto;
    }

    .shop_modal-dots {
        gap: 15px;
    }

    .shop_modal-dot {
        width: 12px;
        height: 12px;
    }

    /* --- 店舗情報 横並び --- */
    .shop_modal-dl {
        gap: 20px;
    }

    .shop_modal-dl-block {
        display: flex;
        align-items: baseline;
        gap: 20px;
        border-bottom: 1px solid var(--main-color);
        padding-bottom: 20px;
    }

    .shop_modal-dl-block:last-child {
        border-bottom: none;
    }

    .shop_modal-dl dt {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        white-space: nowrap;
        min-width: 70px;
        flex-shrink: 0;
    }

    .shop_modal-dl dd {
        font-size: 16px;
        flex: 1;
    }

    /* --- 支払い方法 --- */
    .shop_modal-payment-title {
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    .shop_modal-payment-icons img {
        height: clamp(35px, 4vw, 70px);
    }
}