/* 旧商品ページの横長の表を、スマホ幅では 1 行 = 1 枚のカードにする (2026-12-04)。
   HTML の印は scripts/legacy_table_cards.py が付ける: table.rva-tc / 見出し行 tr[data-rc=h] /
   画像のセル [data-rc=i] / 商品名のセル [data-rc=n] / 空のセル [data-rc=e] / 行の見出し [data-rc=t] /
   ほかのセル [data-label="見出し"]。「見出し 値 見出し 値」の横並びは table.rva-tp (1 行に 1 組)。
   PC (601px 以上) の見た目は何も変えない。 */
@media (max-width:600px){
#sb-site table.rva-tc,#sb-site table.rva-tc>tbody,#sb-site table.rva-tc>thead,#sb-site table.rva-tc>tfoot,#sb-site table.rva-tc>caption{display:block;width:auto!important;overflow:visible}
#sb-site table.rva-tc tr{display:grid;grid-template-columns:110px minmax(0,1fr);gap:2px 10px;align-items:start;border:1px solid #ddd;border-radius:8px;padding:8px;margin:0 0 10px;background:#fff}
#sb-site table.rva-tc tr>td,#sb-site table.rva-tc tr>th{display:block;width:auto!important;min-width:0;border:0;padding:2px 0;text-align:left;background:none;font-weight:normal;white-space:normal}
#sb-site table.rva-tc tr[data-rc=h],#sb-site table.rva-tc tr>[data-rc=e]{display:none}
#sb-site table.rva-tc tr>:not([data-rc]),#sb-site table.rva-tc tr>[data-rc=t]{grid-column:1/-1}
#sb-site table.rva-tc tr>[data-rc=t]{font-weight:bold;color:#1b5e20}
#sb-site table.rva-tc tr:not(:has(>[data-rc=i]))>[data-rc=n]{grid-column:1/-1}
#sb-site table.rva-tc [data-rc=n] h3{margin:0 0 6px}
#sb-site table.rva-tc [data-label]:before{content:attr(data-label) "\FF1A";font-weight:bold;color:#2e7d32}
#sb-site table.rva-tc [data-label]>p:first-child{display:inline;margin:0}
#sb-site table.rva-tp,#sb-site table.rva-tp>tbody,#sb-site table.rva-tp>caption{display:block;width:auto!important;overflow:visible}
#sb-site table.rva-tp tr{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
#sb-site table.rva-tp tr>td,#sb-site table.rva-tp tr>th{display:block;width:auto!important;min-width:0;white-space:normal;overflow-wrap:anywhere}
}
/* 表の中の購入ボタンは小さな丸ボタン (ご主人様 2026-12-04「楽天と Yahoo のカゴは小っちゃいやつでいい」、まとめページ rva-hub.css と同じ大きさ)。PC・スマホとも */
#sb-site table.rva-tc .rakuten-buy,#sb-site table.rva-tc .yahoo-buy{display:inline-block;margin:4px 6px 0 0}
#sb-site table.rva-tc .rakuten-buy a,#sb-site table.rva-tc .yahoo-buy a{display:inline-block;width:auto;max-width:none;padding:4px 12px;border-radius:14px;font-size:0!important;line-height:1.4}
#sb-site table.rva-tc .rakuten-buy a:after{content:"\1F6D2 楽天";font-size:13px}
#sb-site table.rva-tc .yahoo-buy a:after{content:"Yahoo!";font-size:13px}
