/* 検索結果後 */

/* ↓↓検索結果後のページのみ反映↓↓ */
/* .l-header.is-scroll {
    top: 0;
}

div.c-product-toolbar {
    top: 50px;
} */

.search-results__title {
    border: none;
    text-align: center;
    margin: 0;
}

/* ↑↑検索結果後のページのみ反映↑↑ */


/* stg-search 上書き */
.c-card-section {
    margin-bottom: 72px;
}

div[data-tab-content="content"] .c-card-grid,
div[data-tab-content="store"] .c-card-grid {
    gap: 32px;
}

.c-card {
    gap: 24px;
}

.c-card__body {
    gap: 4px;
}

div[data-tab-content="content"] button.c-product-list__more-btn,
div[data-tab-content="store"] button.c-product-list__more-btn {
    margin-top: 32px;
}

/* FAQ */
.c-btn-group {
    gap: 16px;
}

.c-action-btn {
    text-decoration-line: none;
}

@media screen and (min-width: 768px) {
    .c-card-grid__item {
        width: calc((100% - 96px) / 3);
    }

    div[data-tab-content="content"] .c-card-grid,
    div[data-tab-content="store"] .c-card-grid {
        gap: 48px;
    }
}

/* 261002追記 */
div.c-product-toolbar--search {
    position: sticky;
    top: 50px;
    z-index: 98;
    background-color: #fff;
    transition: box-shadow .2s ease;
}

div.c-product-toolbar--search.is-stuck {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 767px) {
    div.c-product-toolbar--search div.c-product-toolbar__actions {
        width: 100%;
        justify-content: end;
    }

    div.c-product-toolbar--search div.c-product-toolbar__select-wrapper {
        width: fit-content;
        justify-content: end;
    }
}

/* 261002追記：タブ（SP時のみSwiperスライダー） */
.c-tab__arrow {
    display: none;
}

@media screen and (max-width: 767px) {
    .c-tab {
        position: relative;
    }

    .c-tab__container.swiper {
        display: block;
    }

    .c-tab__item.swiper-slide {
        width: auto;
        white-space: nowrap;
    }

    /* スライダー時は「店舗・催事情報」を1行で表示 */
    .c-tab__item.swiper-slide br {
        display: none;
    }

    .c-tab__arrow {
        display: flex;
        align-items: center;
        position: absolute;
        top: 0;
        z-index: 2;
        width: 40px;
        height: 100%;
        padding: 0;
        border: none;
        color: #000;
        cursor: pointer;
    }

    .c-tab__arrow::before {
        font-family: "Material Icons";
        font-size: 24px;
    }

    .c-tab__prev {
        left: 0;
        justify-content: flex-start;
        background: linear-gradient(to left, rgba(255, 255, 255, 0) 0%, #fff 50%);
    }

    .c-tab__prev::before {
        content: "\e5cb";
    }

    .c-tab__next {
        right: 0;
        justify-content: flex-end;
        background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 50%);
    }

    .c-tab__next::before {
        content: "\e5cc";
    }

    /* 左端・右端までスライドしたら該当ボタンを非表示 */
    .c-tab__arrow.swiper-button-disabled,
    .c-tab__arrow.swiper-button-lock {
        display: none;
    }
}

/* 261006追記 */
section.c-card-section[data-as-section="index"] img {
    aspect-ratio: 3 / 2;
}

p.c-no-result__guide {
    display: none;
}

@media screen and (min-width: 1024px) {
    section.c-card-section h2.c-card-section__heading {
        font-size: 24px;
    }
}

@media screen and (max-width: 1023px) {
    section.c-card-section h2.c-card-section__heading {
        font-size: 18px;
    }
}

/* 261013追記 */
@media screen and (min-width: 768px) {
    .c-no-result__sidebar {
        width: calc(100% - 60vw - 48px);
    }

    .c-no-result__main {
        width: 60vw;
    }
}

@media screen and (max-width: 767px) {
    .c-no-result.c-tab-content-group {
        margin: 32px 0 48px;
    }

    section.c-suggestion {
        padding: 0 20px;
    }

    h2.c-no-result__heading.u-font--B {
        padding: 0 20px;
    }

    div.c-product-toolbar--search div.c-product-toolbar__actions {
        justify-content: center;
    }

    div.c-product-toolbar__select-wrapper::before {
        left: 0;
    }
}

/* 261015追記 */
.as-sort__menu {
    left: 16px !important;
}

@media screen and (max-width:767px) {
    .product-search-group .as-sort__menu {
        left: unset !important;
        min-width: 172px !important;
    }

    .product-search-group div.c-product-toolbar--search div.c-product-toolbar__select-wrapper {
        margin-left: auto;
        margin-right: 16px;
    }
}
/* 261016 AS導入ページ：コンテンツ内のリンクのホバー透過を、テキストは今まで通り（共通CSSの a:hover 0.6）、画像だけ0.9にする */
/* テキストだけのリンクは共通CSSのまま。画像を含むリンクは、リンク自体を透けさせず、画像とテキスト部分に別々に指定する */
/* （リンク全体に opacity をかけると画像も一緒に透けて 0.6 × 0.9 になるため） */
@media screen and (min-width: 992px) {
    :where(.fs-l-main) a:has(img):hover {
        opacity: 1;
    }

    :where(.fs-l-main a:has(img) *) {
        transition: opacity .4s ease;
    }

    /* 画像 */
    :where(.fs-l-main) a:has(img):hover img {
        opacity: .9;
    }

    /* 画像以外（テキストなど）。画像を含まない一番外側の要素にだけかけ、入れ子で二重に透けないようにする */
    :where(.fs-l-main) a:has(img):hover > :not(img, :has(img)),
    :where(.fs-l-main) a:has(img):hover :has(img) > :not(img, :has(img)) {
        opacity: .6;
    }

    /* ピックアップバナーの画像上のテキスト（見出し・詳細を見る）は透過しない（--index は画像の下にテキストが並ぶため対象外） */
    .c-product-pickup-banner:not(.c-product-pickup-banner--index) .c-product-pickup-banner__link:hover .c-product-pickup-banner__content {
        opacity: 1;
    }
}