.container_beige {
    background-color: #F6F4EF;
    width: 100%;
    max-width: 954px;
    margin: 0 auto 60px;
    padding: 0.5% 5%;
}


/*
  itemsearch.css : itemsearch ページ専用の差分CSS。style.css の後に読み込む。
  対象ページの body 最上位に id="karte-itemsearch-slider" を付与すること。
 */

/* クーポン受け取りボタン（左:COUPONバッジ / 中央:テキスト / 右:丸い矢印） */
.line-button--coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* バッジ・矢印（絶対配置）と重ならないよう左右対称の余白を確保し、テキストを中央維持 */
    background-color: #4EA856;
    padding: 22px 96px;
    width: 558px;
    max-width: 90%;
    box-sizing: border-box;
}

/* 中央のテキスト */
.line-button--coupon .line-button__text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

/* 左側のCOUPONバッジ（白背景画像） */
.line-button--coupon .coupon-badge {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: auto;
    border-radius: 3px;
}

/* 右側の丸い矢印（白丸 + グリーンのシェブロン） */
.line-button--coupon .line-button__circle-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #fff;
}

.line-button--coupon .line-button__circle-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 46%;
    width: 7px;
    height: 7px;
    border-top: 2px solid #4EA856;
    border-right: 2px solid #4EA856;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 検索方法セクションの見出し（左右に破線の装飾） */
.section-title--deco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #9b895a;
    font-weight: bold;
}

.section-title--deco::before,
.section-title--deco::after {
    content: "";
    width: 64px;
    border-top: 2px dashed #9b895a;
}

/* 検索方法セクションのタブ（角丸のピル型） */
.tab-section--pill {
    gap: 8px;
}

.tab-section--pill .tab {
    flex: 1;
    padding: 12px 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    background-color: #ededed;
    color: #333;
}

.tab-section--pill .tab.active {
    background-color: #8c7c4d;
    color: #fff;
}

/* ブランド一覧：画像全面＋ブランド名を白文字でオーバーレイ（2カラム） */
.brand-grid--overlay {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.brand-grid--overlay .brand-item a {
    position: relative;
    display: block;
}

.brand-grid--overlay .brand-image {
    padding: 0;
}

.brand-grid--overlay .brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.brand-grid--overlay .brand-name {
    position: absolute;
    inset: 0;
    height: auto;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* グレーアウトを重ねるタイプ（白文字の視認性を確保） */
.brand-grid--overlay-dark .brand-name {
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.brand-grid--overlay-dark .brand-item a:hover .brand-name {
    background-color: rgba(0, 0, 0, 0.15);
}

/* 店舗一覧：画像全面＋店名を白文字でオーバーレイ＋グレーアウト（2カラム） */
.shop-grid--overlay {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.shop-grid--overlay .shop-item a {
    position: relative;
    display: block;
}

.shop-grid--overlay .shop-image {
    padding: 0;
    aspect-ratio: 7 / 5;
    overflow: hidden;
}

.shop-grid--overlay .shop-logo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.shop-grid--overlay .shop-name {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.shop-grid--overlay-dark .shop-name {
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.shop-grid--overlay-dark .shop-item a:hover .shop-name {
    background-color: rgba(0, 0, 0, 0.15);
}

/* おすすめブランド：ゴールド枠の2列テーブル風グリッド */
.brand-grid--table {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: #c9bd93;
    border: 1px solid #c9bd93;
    margin: 20px auto 24px;
}

/* 各セクションの余白を統一（ベージュ背景の上下を均等に） */
.container_beige {
    padding: 24px 5%;
}

.brand-grid.recommend.brand-grid--table .brand-item {
    border: none;
    background-color: #fff;
}

/* ブランド一覧を見るリンクを中央寄せ */
.brand-grid--table+.link-txt {
    text-align: center;
}

.brand-grid--table .brand-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 5px;
    color: #9b895a;
}

.brand-grid--table .brand-name {
    height: auto;
    font-size: 16px;
}

/* PC（>= 768px）は4列表示 */
@media (min-width: 768px) {
    .brand-grid--overlay {
        grid-template-columns: repeat(4, 1fr);
    }

    .brand-grid--overlay .brand-name {
        font-size: 16px;
    }

    /* 店舗は3列（6店舗が2行で収まる） */
    .shop-grid--overlay {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 価格帯・商品ランクタブのリンクボタン（白背景・ゴールド枠・左寄せ・丸い矢印） */
#tab-content-01 .link-btn,
#tab-content-02 .link-btn {
    border: 1px solid #c9bd93;
    border-radius: 4px;
    margin-bottom: 16px;
}

#tab-content-01 .link-btn a,
#tab-content-02 .link-btn a {
    padding: 18px 60px 18px 24px;
    font-size: 17px;
    color: #8a7a4f;
    text-align: left;
    line-height: 1.4;
}

#tab-content-01 .link-btn .sub-text,
#tab-content-02 .link-btn .sub-text {
    font-size: 14px;
}

/* 右端の丸いゴールド矢印（白いシェブロン） */
#tab-content-01 .link-btn .arrow-wrap,
#tab-content-02 .link-btn .arrow-wrap {
    right: 20px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #8a7a4f;
    justify-content: center;
}

#tab-content-01 .link-btn .arrow,
#tab-content-02 .link-btn .arrow {
    width: 7px;
    height: 7px;
    background-color: transparent;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    border-radius: 0;
    transform: rotate(45deg);
    margin-left: -2px;
}

#tab-content-01 .link-btn .arrow::before,
#tab-content-02 .link-btn .arrow::before {
    content: none;
}

/* スマホ表示（<= 767px） */
@media (max-width: 767px) {
    .line-button--coupon {
        padding: 16px 80px;
        width: 100%;
        max-width: 450px;
    }

    .line-button--coupon .line-button__text {
        font-size: 16px;
    }

    .line-button--coupon .coupon-badge {
        left: 12px;
        width: 52px;
    }

    .line-button--coupon .line-button__circle-arrow {
        right: 12px;
        width: 24px;
        height: 24px;
    }

    /* 詳細度を上げて m-text の20px指定を上書きし、1行に収める */
    .section-title.m-text.section-title--deco {
        gap: 8px;
        font-size: 15px;
        max-width: 100%;
        white-space: nowrap;
    }

    .section-title--deco::before,
    .section-title--deco::after {
        width: 28px;
    }

    .tab-section--pill .tab {
        font-size: 14px;
        padding: 10px 4px;
    }

    .brand-grid--overlay .brand-name {
        font-size: 15px;
    }
}
