/* ==========================================================
   rsn-gnsearch.css  (v2 — STG対応版)
   GNサーチ（ECサーチ + 画像付きサジェスト）専用CSS

   このファイルは検索結果ページ（page-search.php）と
   全ページ共通のポップリンク（サジェスト）スタイルを管理する。
   rsn-components.css の Section 20 を補完・上書きする。

   v1 = モックHTML用（css_old/rsn-gnsearch.css）
   v2 = STG実DOM対応版（at1→中古価格, at2→未使用品価格,
        ポップリンクセレクタをSDK実DOMに合わせて書き換え）
   ========================================================== */


/* ==========================================================
   1. 検索結果ページ固有 — スティッキーバー非表示
   検索結果ページではSP追従バー（LINE/電話）は不要
   ========================================================== */
.rsn-ec-search~.rsn-sticky-bar,
.rsn-ec-search~.rsn-sticky-search {
    display: none !important;
}


/* ==========================================================
   2. 検索結果タイトル
   page-search.php の data-ec="searchstatusfull" が出力
   ========================================================== */
.rsn-ec-search__status {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0 30px;
    width: 100%;
}

@media screen and (max-width: 480px) {
    .rsn-ec-search__status {
        font-size: 18px;
        margin: 8px 0 16px;
    }
}


/* ==========================================================
   3. ツールバー（件数 + 並び順）
   page-search.php では .rsn-ec-search__toolbar 内に
   data-ec="searchstatus" と data-ec="sortselector" を配置
   ========================================================== */
.rsn-ec-search__toolbar {
    background-color: #F0F0F0;
    padding: 15px 20px;
    border-bottom: none;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* GNサーチが searchstatus に出力する「全○件」の数字 */
.rsn-ec-search__toolbar ._searchstatus {
    font-size: 24px;
    font-weight: bold;
}

/* GNサーチが sortselector に出力する並び順 select */
.rsn-ec-search__toolbar select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}


/* ==========================================================
   4. 商品カード
   TSVデータマッピング（v2: STG実データ対応）:
     _additional_text1 = 中古品 買取参考価格（例: 4,150,000円）
     _additional_text2 = 新品/未使用品 買取価格（例: 2,650,000円 or 空）
   モックの at1(ラベル)/at2("中古品")/at3(価格)/at4("未使用品")/at5(価格)
   とは異なるため、セレクタを at1, at2 用に再設計。
   ========================================================== */

/* カード全体 — 枠線・角丸なし、フレックスカラム */
.rsn-ec-search ._ec_component ._searchresults>._items>._item {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* _wrap — 枠線除去（SDKデフォルトの枠線を消す） */
.rsn-ec-search ._ec_component ._item ._wrap {
    border: none !important;
    box-shadow: none !important;
}

/* 画像エリア — _item > _wrap > _image の経路で指定 */
.rsn-ec-search ._ec_component ._item ._image {
    margin-top: 30px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    background-color: #fff !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}

/* ============================================================
   4-1. ダミーラベルバッジ（JSで動的追加: ._additional_text_label）
   TSVにラベルデータ追加後は、at用のフィールドに切り替え可能。
   デフォルト色: 買取強化商品 (#0087C3)
   ============================================================ */
.rsn-ec-search ._ec_component ._item ._additional_text_label {
    position: absolute !important;
    top: 0;
    left: 0;
    width: fit-content;
    background-color: #0087C3;
    color: #fff !important;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    z-index: 10;
    border-radius: 0;
    margin: 0;
    line-height: 1.4;
}

/* 国内最高水準買取価格 の場合のゴールド背景 */
.rsn-ec-search ._ec_component ._item ._additional_text_label.is-gold {
    background-color: #C19500;
}

/* ============================================================
   4-2. 詳細エリア (_wrap) — 価格行 + CTA
   SDK実DOM: ._item > ._wrap > ._additional_text1, ._image, ._title, ._additional_text2
   SDKのデフォルト順序が画像より前にat1を配置するため、
   CSS orderで正しい表示順に並べ替え。
   ============================================================ */
.rsn-ec-search ._ec_component ._item ._wrap {
    padding-top: 0 !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    background: transparent !important;
}

/* _wrap 内の要素を表示順に並べ替え */
.rsn-ec-search ._ec_component ._item ._wrap > ._image {
    order: 1 !important;
}
.rsn-ec-search ._ec_component ._item ._wrap > ._title {
    order: 2 !important;
}
.rsn-ec-search ._ec_component ._item ._wrap > ._additional_text1 {
    order: 3 !important;
}
.rsn-ec-search ._ec_component ._item ._wrap > ._additional_text2 {
    order: 4 !important;
}
.rsn-ec-search ._ec_component ._item ._wrap > .rsn-gnsearch-cta {
    order: 5 !important;
}

/* ============================================================
   4-3. 中古品 買取参考価格（_additional_text1）
   ::before で「中古品」ラベルを静的表示 + 赤太字で価格表示
   ============================================================ */
.rsn-ec-search ._ec_component ._item ._additional_text1 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #D00 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 0 !important;
}

.rsn-ec-search ._ec_component ._item ._additional_text1::before {
    content: '中古品';
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 0;
    width: 50px;
    min-width: 50px;
    text-align: center;
    background: #FFE8E8;
    color: #D00;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================================
   4-4. 未使用品 買取価格（_additional_text2）
   ::before で「未使用品」ラベルを静的表示 + 黒文字で価格表示
   空の場合は行ごと非表示
   ============================================================ */
.rsn-ec-search ._ec_component ._item ._additional_text2 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 0 !important;
}

.rsn-ec-search ._ec_component ._item ._additional_text2::before {
    content: '未使用品';
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 0;
    width: 50px;
    min-width: 50px;
    text-align: center;
    background: #CFEAE7;
    color: #333;
    white-space: nowrap;
    line-height: 1;
    flex-shrink: 0;
}

/* at2が空の場合は行ごと非表示 */
.rsn-ec-search ._ec_component ._item ._additional_text2:empty {
    display: none !important;
}

/* ============================================================
   4-5. CTAボタン（JSで動的追加: .rsn-gnsearch-cta）
   ============================================================ */
.rsn-gnsearch-cta {
    display: block;
    margin-top: auto;
    padding: 8px 0;
    border: 1px solid #79664E;
    border-radius: 9999px;
    text-align: center;
    color: #79664E;
    font-size: 13px;
    font-weight: bold;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.rsn-ec-search ._item:hover .rsn-gnsearch-cta {
    background: #79664E;
    color: #fff;
}


/* ==========================================================
   5. SP 480px以下 — カード内の微調整
   ========================================================== */
@media screen and (max-width: 480px) {
    /* ダミーラベルバッジ */
    .rsn-ec-search ._ec_component ._item ._additional_text_label {
        font-size: 9px;
        padding: 3px 6px;
    }

    .rsn-ec-search ._ec_component ._item>._image {
        margin-top: 24px !important;
        padding: 6px;
    }

    .rsn-ec-search ._ec_component ._item ._detail {
        padding: 8px 6px 10px;
        gap: 3px;
    }

    /* 中古価格 */
    .rsn-ec-search ._ec_component ._item ._additional_text1 {
        font-size: 15px;
        margin-bottom: 2px;
    }

    /* 未使用品価格 */
    .rsn-ec-search ._ec_component ._item ._additional_text2 {
        font-size: 13px;
    }

    .rsn-ec-search ._ec_component ._item ._title {
        padding: 6px 6px 0;
        font-size: 11px;
    }

    .rsn-gnsearch-cta {
        font-size: 11px;
        padding: 6px 0;
    }
}


/* ==========================================================
   6. SP 絞り込みモーダル
   768px以下: サイドバーを非表示 → 追従ボタンで開閉
   ========================================================== */
@media screen and (max-width: 768px) {

    /* サイドバーを非表示 */
    .rsn-ec-search__sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        background: var(--rsn-bg-section, #F5F5F5);
        overflow-y: auto;
        padding: 50px 0 90px;
        box-sizing: border-box;
        flex: none;
        min-width: 100%;
        max-height: 100vh;
    }

    /* モーダル表示時 */
    .rsn-ec-search__sidebar.is-open {
        display: block;
    }
}

/* SP追従 絞り込みボタン（円形 FAB） */
.rsn-gnsearch-filter-fab {
    display: none;
}

@media screen and (max-width: 768px) {
    .rsn-gnsearch-filter-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        position: fixed;
        bottom: 80px;
        right: 16px;
        width: 80px;
        height: 80px;
        border: 3px solid #fff;
        background: #796447;
        color: #fff;
        border-radius: 50%;
        font-size: 10px;
        font-weight: bold;
        cursor: pointer;
        z-index: 500;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        line-height: 1.2;
    }

    .rsn-gnsearch-filter-fab__icon {
        width: 30px;
        height: 30px;
    }

    /* 検索ページではスティッキーバーがないのでbottomを下げる */
    .rsn-ec-search~.rsn-gnsearch-filter-fab,
    .rsn-ec-search .rsn-gnsearch-filter-fab {
        bottom: 20px;
    }
}

/* モーダルヘッダー（閉じるボタン） */
.rsn-gnsearch-filter-header {
    display: none;
}

@media screen and (max-width: 768px) {
    .rsn-gnsearch-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 50px;
        background: var(--rsn-black, #000);
        color: var(--rsn-white, #FFF);
        padding: 0 16px;
        box-sizing: border-box;
        z-index: 10001;
    }

    .rsn-gnsearch-filter-header__title {
        font-size: 16px;
        font-weight: bold;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .rsn-gnsearch-filter-header__clear {
        background: #333;
        color: var(--rsn-white, #FFF);
        border: none;
        font-size: 11px;
        padding: 6px 14px;
        border-radius: 9999px;
        cursor: pointer;
        font-weight: normal;
    }

    .rsn-gnsearch-filter-header__close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 4px 8px;
        color: var(--rsn-white, #FFF);
    }
}

/* モーダルフッター（追従ボタン） */
.rsn-gnsearch-filter-footer {
    display: none;
}

@media screen and (max-width: 768px) {
    .rsn-gnsearch-filter-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--rsn-white, #fff);
        padding: 16px;
        box-sizing: border-box;
        z-index: 10001;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }

    .rsn-gnsearch-filter-footer__btn {
        width: 100%;
        border-radius: 9999px;
    }

    /* SP padding adjustment */
    .rsn-ec-search__inner {
        padding: 0 10px;
    }
}


/* 絞り込みアイテムのレイアウト */
.rsn-ec-search ._ec_component {
    padding: 0 20px;
}

.rsn-ec-search ._ec_component ._attributegroup ._group {
    font-weight: var(--rsn-weight-bold, bold);
    font-size: 15px;
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--rsn-border, #ccc);
}

.rsn-ec-search ._ec_component ._attributegroup label {
    display: flex !important;
    align-items: center;
    padding: 12px 0 !important;
    font-size: 14px !important;
    border-bottom: 1px dotted var(--rsn-border-light, #eee);
    cursor: pointer;
}

/* カスタムチェックボックス */
.rsn-ec-search ._ec_component ._attributegroup input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--rsn-border, #ccc);
    background: var(--rsn-white, #fff);
    border-radius: 2px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.rsn-ec-search ._ec_component ._attributegroup input[type="checkbox"]:checked {
    background: var(--rsn-black, #000);
    border-color: var(--rsn-black, #000);
}

.rsn-ec-search ._ec_component ._attributegroup input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--rsn-white, #fff);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* ==========================================================
   7. ポップリンク（サジェスト）の表示幅調整・デザイン
   セレクタはGNサーチSDKの実DOM出力に合わせて記述
   SDK出力構造:
     div.poplink.sphs          ← メインコンテナ
       div.poplink_suggest      ← キーワードピル群
         a.word                 ← 各ピル
       div.poplink_search       ← 商品カード群
         a.item                 ← 各カード
           div.image_box > img
           div.title
           div.summary          ← 非表示にする
           div.any1             ← 中古価格
           div.any2             ← 未使用品価格(空の場合あり)
           div.any3             ← 非表示にする
       div.close_button
   ========================================================== */

/* ヒーローのoverflow: hiddenがポップリンクを切る問題の修正
   横方向はclipでスライダーはみ出し防止を維持、
   縦方向はvisibleでポップリンクの下方向はみ出しを許可
   z-index: ポップリンクが後続セクション(最近見たモデル等)の下に潜らないよう
   ヘッダー(500)より低い値でスタッキングコンテキストを作成
   ※ rsn-components.css の .rsn-hero { overflow: hidden } を上書き */
.rsn-hero {
    overflow-x: clip !important;
    overflow-y: visible !important;
    z-index: 100 !important;
}

/* 検索フォームをポップリンクの位置基準にする */
.rsn-search-bar,
.rsn-kaitori-search__form {
    position: relative !important;
}

/* ポップリンクのメインコンテナ（ドロップダウン化） */
.poplink.sphs {
    width: 780px !important;
    max-width: 95vw !important;
    background: #F0F0F0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border-radius: 4px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    /* ドロップダウン位置調整: 親(form)がrelativeなので
       top: 100%で検索窓直下に配置 + 4pxの隙間 */
    top: 100% !important;
    left: 0 !important;
    margin-top: 4px !important;
}

/* 閉じるボタン: モック準拠で非表示 */
.poplink.sphs > .close_button {
    display: none !important;
}

/* おすすめ商品セクション: 今回不要 */
.poplink.sphs > .poplink_recommend {
    display: none !important;
}

/* 入力履歴: 今回不要 */
.poplink.sphs > .poplink_input_history {
    display: none !important;
}

/* サジェストキーワード群（ピル） */
.poplink.sphs .poplink_suggest {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    background: #F0F0F0 !important;
    padding-top: 0 !important;
}

.poplink.sphs .word {
    display: inline-block !important;
    padding: 6px 16px !important;
    background: #FFF !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    color: #333 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s !important;
}

.poplink.sphs .word:hover {
    background: #f7f7f7 !important;
    border-color: #ccc !important;
}

/* ハイライト状態のキーワードピル（キーボード選択時） */
.poplink.sphs .word.highlighted {
    background: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

/* ハイライト時の三角矢印を非表示（モックにない） */
.poplink.sphs .word.highlighted::after {
    display: none !important;
}

/* サジェスト商品カード群 */
.poplink.sphs .poplink_search {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
}

.poplink.sphs .item {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: #333 !important;
    border: none !important;
    background: transparent !important;
    min-height: auto !important;
    max-height: none !important;
    width: auto !important;
    overflow: visible !important;
    white-space: normal !important;
    margin: 0 !important;
}

.poplink.sphs .item:hover {
    opacity: 0.7 !important;
}

/* カード内 画像 */
.poplink.sphs .item .image_box {
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 4px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    margin-bottom: 8px !important;
    box-sizing: border-box !important;
}

.poplink.sphs .item .image_box img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* 画像読み込みエラー時のフォールバック */
.poplink.sphs .item .image_box img[src=""],
.poplink.sphs .item .image_box img:not([src]) {
    opacity: 0.3;
}

/* カード内 タイトル */
.poplink.sphs .item .title {
    font-size: 11px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 30px !important;
    font-weight: normal !important;
}

/* summary: 非表示（タイトルと価格で十分） */
.poplink.sphs .item .summary {
    display: none !important;
}

/* any1: 中古品の買取参考価格 */
.poplink.sphs .item .any1 {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #D00 !important;
    line-height: 1 !important;
}

.poplink.sphs .item .any1::before {
    content: '中古品' !important;
    display: inline-block !important;
    font-size: 9px !important;
    font-weight: bold !important;
    padding: 2px 0 !important;
    width: 50px !important;
    min-width: 50px !important;
    text-align: center !important;
    background: #FFE8E8 !important;
    color: #D00 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* any2: 未使用品の買取価格 */
.poplink.sphs .item .any2 {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    font-size: 13px !important;
    color: #333 !important;
    line-height: 1 !important;
}

.poplink.sphs .item .any2::before {
    content: '未使用品' !important;
    display: inline-block !important;
    font-size: 9px !important;
    font-weight: bold !important;
    padding: 2px 0 !important;
    width: 50px !important;
    min-width: 50px !important;
    text-align: center !important;
    background: #CFEAE7 !important;
    color: #333 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

/* any2が空の場合は行ごと非表示 */
.poplink.sphs .item .any2:empty {
    display: none !important;
}

/* any3: 今回表示対象外 */
.poplink.sphs .item .any3 {
    display: none !important;
}


/* ==========================================================
   SP用 PopLink レスポンシブ調整
   ========================================================== */
@media screen and (max-width: 768px) {
    .poplink.sphs {
        /* SPドロワー内で全幅を使用するため、親のpaddingを相殺 */
        position: absolute !important;
        left: -16px !important;
        right: -16px !important;
        width: calc(100% + 32px) !important;
        max-width: none !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* キーワードピル横スクロール */
    .poplink.sphs .poplink_suggest {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 8px !important;
        margin-bottom: 16px !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
    }
    .poplink.sphs .poplink_suggest::-webkit-scrollbar {
        display: none !important;
    }

    /* 商品カード横スクロール (フレックスに変更) */
    .poplink.sphs .poplink_search {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto !important;
        padding-bottom: 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .poplink.sphs .poplink_search::-webkit-scrollbar {
        display: none !important;
    }

    /* 商品カードの幅を固定 (横スクロールに収める) */
    .poplink.sphs .item {
        min-width: 130px !important;
        width: 130px !important;
    }
}


/* ==========================================================
   8. 0件絞り込み項目の非表示
   GNサーチが出力する件数0の項目を完全に隠す
   ========================================================== */

/* GNサーチの0件項目はinputを持たないlabel、またはdisabledクラス */
.rsn-ec-search ._ec_component label:has(span:last-child:empty),
.rsn-ec-search ._ec_component .popfind-sidebar-checkbox-disabled {
    display: none !important;
}

/* 取り消し線のある0件項目（text-decoration: line-throughで識別） */
.rsn-ec-search ._ec_component label {
    text-decoration: none !important;
}

/* 0件項目: inputを持たないlabel（GNサーチの仕様） */
.rsn-ec-search ._ec_component ._attributegroup label:not(:has(input)) {
    display: none !important;
}


/* ==========================================================
   9. ページネーション
   ========================================================== */
.rsn-gnsearch-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.rsn-gnsearch-pagination__current {
    padding: 6px 12px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 4px;
}

.rsn-gnsearch-pagination__link {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.rsn-gnsearch-pagination__link:hover {
    background: #f5f5f5;
}

/* ============================================================
   12. 絞り込みサイドバー — 無効属性の非表示
   件数0のブランド（_disable付き）を非表示にする
   ============================================================ */
.rsn-ec-search ._ec_component ._attributegroup ._attributes ._attribute._disable {
    display: none !important;
}

/* ============================================================
   13. SPレスポンシブ対応（検索結果ページ専用）
   ============================================================ */
@media screen and (max-width: 640px) {
    /* 検索結果ページのトップボタンをFABの上に配置
       common_test.css で bottom: 70px !important が指定されているため、
       検索結果ページ限定で詳細度を上げて上書き */
    body.page-template-page-search .to-top {
        bottom: 110px !important;
    }

    /* 検索結果エリアの左右余白 */
    .rsn-ec-search ._ec_component {
        padding: 0 10px !important;
    }
}
