/* ========================================
   取り扱い店舗様一覧ページ：共通・PC
======================================== */

/* ページ背景 */
body.shop-benefits-page {
    color: #3e5780;
    background-color: #ffe466;
    background-image: url("../image/shopguide_bg.webp");
    background-position: center top;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

/* ページ全体の幅・位置 */
.shop-benefits-main {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0 80px;
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
}

/* 取り扱い店舗様一覧で使用するフォント */
.shop-benefits-heading-box,
.shop-benefits-caption,
.shop-benefit-store,
.shop-benefit-edition,
.shop-benefit-description,
.shop-benefit-button {
    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-weight: 400;
}

/* 見出し */
.shop-benefits-heading-box {
    margin-bottom: 50px;
    text-align: center;
}

.shop-benefits-heading {
    width: 480px;
    max-width: 80%;
    margin: 0 auto;
}

.shop-benefits-heading img {
    display: block;
    width: 100%;
    height: auto;
}

.shop-benefits-caption {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.6;
}

/* 店舗一覧：基本は2列 */
.shop-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 64px;
}

/* 店舗ボックス */
.shop-benefit-card {
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 28px;

    border: 6px solid #ffcf00;
    border-radius: 28px;

    background-color: #fff;
    background-image:
        linear-gradient(rgba(62, 87, 128, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 87, 128, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;

    text-align: center;
}

/* 横長ボックス：2列分を使用 */
.shop-benefit-card-wide {
    grid-column: 1 / -1;
}

/* 店舗名 */
.shop-benefit-store {
    box-sizing: border-box;
    width: 100%;
    margin: -28px 0 22px;
    padding: 12px 16px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    background: #3e5780;
    color: #fff;

    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* 横長ボックスの店舗名 */
.shop-benefit-card-wide .shop-benefit-store {
    max-width: 560px;
}

/* 付属対象のバージョン */
.shop-benefit-editions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 560px;
    margin-bottom: 24px;
}

.shop-benefit-edition {
    box-sizing: border-box;
    flex: 1 1 140px;
    max-width: 270px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1.5;
}

.shop-benefit-edition-normal {
    background: #74c7d5;
    color: #fff;
}

.shop-benefit-edition-special {
    background: #ffcf00;
    color: #3e5780;
}

/* 特典画像：通常・1列分 */
.shop-benefit-image {
    width: 440px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* 画像の縦横比を維持 */
.shop-benefit-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* 特典画像：横長・2列分 */
.shop-benefit-card-wide .shop-benefit-image {
    width: 1000px;
    max-width: 100%;
    height: auto;
}

/* 特典内容 */
.shop-benefit-description {
    margin: 24px 0;
    font-size: 24px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* 販売ボタン：内容量が違っても下側に配置 */
.shop-benefit-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

/* 販売・戻る・一覧への導線ボタン */
.shop-benefit-button,
.shop-benefits-entry-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 52px;
    padding: 12px 20px;

    border: 2px solid #3e5780;
    border-radius: 999px;
    background: #fff;
    color: #3e5780;

    font-family: "maru-maru-gothic-blr-stdn", sans-serif;
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.shop-benefit-button[href]:hover,
.shop-benefits-entry-button:hover {
    background: #3e5780;
    color: #fff;
    text-decoration: none;
}

.shop-benefit-button:focus-visible,
.shop-benefits-entry-button:focus-visible {
    outline: 3px solid #74c7d5;
    outline-offset: 4px;
}

.shop-benefit-button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: default;
}

/* ページ下部の戻るボタン */
.shop-benefits-back {
    margin-top: 60px;
    text-align: center;
}

/* トップページへ戻るボタン：通常時・訪問後 */
.shop-benefits-back .shop-benefit-button,
.shop-benefits-back .shop-benefit-button:visited {
    border-color: #3e5780;
    background: transparent;
    color: #3e5780;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* トップページへ戻るボタン：ホバー時 */
.shop-benefits-back .shop-benefit-button:hover {
    border-color: #3e5780;
    background: #3e5780;
    color: #fff;
    text-decoration: none;
}

/* index：DL版の下に置く導線 */
.shop-benefits-entry {
    margin: 0;
    text-align: center;
}


/* ========================================
   タブレット：899px以下
======================================== */

@media screen and (max-width: 899px) {
    .shop-benefits-main {
        width: 92%;
        padding: 100px 0 56px;
    }

    .shop-benefits-heading-box {
        margin-bottom: 60px;
    }

    .shop-benefits-heading {
        width: 280px;
    }

    .shop-benefits-caption {
        font-size: 16px;
    }

    .shop-benefits-grid {
        column-gap: 20px;
        row-gap: 52px;
    }

    .shop-benefit-card {
        padding: 0 16px 22px;
        border-width: 4px;
        border-radius: 22px;
    }

    .shop-benefit-store {
        margin-top: -22px;
        font-size: 26px;
    }

    .shop-benefit-editions {
        gap: 8px;
        margin-bottom: 18px;
    }

    .shop-benefit-edition {
        flex-basis: 100px;
        padding: 6px 8px;
        font-size: 18px;
    }

    .shop-benefit-image {
        height: 240px;
    }

    .shop-benefit-description {
        margin: 20px 0;
        font-size: 20px;
    }

    .shop-benefit-button,
    .shop-benefits-entry-button {
        font-size: 16px;
    }
}


/* ========================================
   スマホ：699px以下
======================================== */

@media screen and (max-width: 699px) {
    .shop-benefits-main {
        padding-top: 60px;
    }

    .shop-benefits-heading {
        width: 240px;
    }

    .shop-benefits-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-benefit-image {
        height: 200px;
    }

    .shop-benefits-back {
        margin-top: 40px;
    }
}