/* 縦長一体型。カードの寸法は変えず、パネルだけ重ねる。 */
body.p6 .rc-card { overflow: visible; }
body.p6 .rc-imgbox { overflow: hidden; border-radius: 6px 6px 0 0; }
body.p6 .rc-item,
body.p6 .rp-slot { position: relative; overflow: visible; }
body.p6 .rc-item:hover,
body.p6 .rc-item:focus-within { z-index: 2; }
body.p6 .rc-item:has(.rp-slot.is-open),
body.p6 .rc-item:has(.rp-slot.is-open):hover,
body.p6 .rc-item:has(.rp-slot.is-open):focus-within { z-index: 3; }
body.p6 .rp-slot.is-open { z-index: 1; }

body.p6 .rc-wrap[data-variant="d"] .rc-radar.is-panel {
  background: transparent;
  outline: none;
  border-radius: 0;
  pointer-events: auto;
  cursor: pointer;
}
body.p6 .rc-radar.is-panel .rc-radar-svg {
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff);
}
body.p6 .rc-r-hldot { fill: #e10600; stroke: #fff; stroke-width: 1.5px; }

.rp-pop {
  display: none;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  padding: 8px 10px 12px;
  background: #fff;
  border: 1px solid #c5cad8;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 24, 40, .22);
  pointer-events: auto;
}
.rp-slot.is-open .rp-pop { display: flex; }
body.p6 .rc-imgbox .rc-radar,
body.p6 .rc-wrap[data-variant="d"] .rc-imgbox .rc-radar.rc-postpanel { display: none; }
body.p6.rp-radar-hold .radar-auto,
body.p6d.rp-radar-hold .radar-auto { display: none; }
body.p6 .rc-maker { margin: 2px 0 0; font-size: 11px; line-height: 1.35; font-weight: normal; color: #667085; overflow-wrap: anywhere; }
body.p6 .radar-hint { margin: 2px 0 0; font-size: 12px; line-height: 1.35; font-weight: normal; color: #5c6570; overflow-wrap: anywhere; }
body.p6 .rp-slot .rc-body { position: relative; }
body.p6.rp-show-all .rp-slot .rc-body { padding-right: 68px; }
body.p6.rp-info-on .rp-slot .rc-body { padding-right: 76px; }
body.p6:not(.rp-show-all) .rp-soft { display: none; }
body.p6.rp-sorted .rp-soft { display: none; }
body.p6 .rp-info { display: none; position: absolute; right: 2px; bottom: 2px; width: 68px; min-height: 44px; margin: 0; padding: 0 2px 2px; border: 0; border-radius: 6px; background: transparent; color: #1d2433; text-align: right; }
body.p6.rp-info-on .rp-info { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; }
body.p6 .rp-info .v { display: block; max-width: 100%; line-height: 1.05; }
body.p6 .rp-info .n { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
body.p6 .rp-info .u { margin-left: 1px; font-size: 11px; font-weight: 700; }
body.p6 .rp-info .k { display: block; max-width: 100%; margin-top: 1px; overflow: hidden; font-size: 10px; line-height: 1.2; font-weight: 600; color: #5c6570; text-overflow: ellipsis; white-space: nowrap; }
body.p6 .rp-info[data-len="4"] .n { font-size: 18px; }
body.p6 .rp-info[data-len="5"] .n,
body.p6 .rp-info[data-len="6"] .n,
body.p6 .rp-info[data-len="7"] .n { font-size: 15px; }
body.p6 .rp-info.is-missing .n { font-size: 13px; font-weight: 700; color: #667085; }
body.p6 button.rp-info { cursor: pointer; }
body.p6 .rp-info.is-inert { cursor: default; }
body.p6 button.rp-info:focus-visible { outline: 2px solid #5B67E8; outline-offset: 2px; }
body.p6 .rp-soft { position: absolute; right: 4px; bottom: 4px; width: 56px; height: 56px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: #fff; cursor: pointer; }
body.p6 .rp-slot.is-open .rp-soft { box-shadow: 0 0 0 2px #5B67E8; }
body.p6 .rp-mini { display: block; width: 46px; height: 46px; margin: 6px auto 0; }
body.p6 .rp-mini svg { display: block; width: 100%; height: 100%; }
body.p6 .rp-zoom { position: absolute; top: 1px; right: 1px; width: 13px; height: 13px; pointer-events: none; }
body.p6 .rp-soft:hover { box-shadow: 0 0 0 1px #5B67E8; }
body.p6 .rp-soft:focus-visible { outline: 2px solid #5B67E8; outline-offset: 2px; }

.rp-radar { width: 100%; height: auto; aspect-ratio: 1; }
.rp-scores { list-style: none; margin: 6px 0 0; padding: 0; }
.rp-scores li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 6px; border-radius: 4px; }
.rp-scores .k { font-size: 15px; line-height: 1.3; color: #222; }
.rp-scores .n { font-size: 20px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: #222; }
.rp-scores li.is-hi { background: #fff4dc; }
.rp-scores li.is-hi .k { font-weight: 800; }
.rp-scores li.is-hi .n { font-size: 24px; color: #e10600; }
.rp-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 0; }
.rp-open { font-size: 14px; font-weight: 800; color: #164A80; }
.rp-close { font: inherit; font-size: 14px; min-height: 36px; padding: 4px 10px; border: 1px solid #c5cad8; border-radius: 6px; background: #fff; color: #222; }

/* タブレットだけ、拡大パネルをカード幅以内かつレーダー図は最大280pxに抑える。 */
@media (min-width: 600px) and (max-width: 899px) {
  body.p6d .rp-pop { width: min(280px, 100%); max-width: 100%; }
  body.p6d .rp-radar { width: 100%; max-width: 280px; }
  body.p6d .rp-radar svg { width: 100%; height: auto; display: block; }
}

/* ===== 商品カード: 商品名の下の「同じ枠」で、価格 / ミニレーダー / 並べ替えの値 を切り替える(2026-11-18 G案。PC(900px以上)にも適用=全画面) =====
 * 全画面(スマホ・タブレット・PC)に適用。列数(PC 4列/3列・タブレット 3列・スマホ 2列)は、従来の指定(search_ui.css / phone_ui.css)のまま。
 * ・価格の行(.rc-price)を、常に高さ --g-h の「値の枠」にする(価格の文字は、枠の中で縦中央)。ミニレーダー(.rp-soft)・並べ替えの値(.rp-info)は、同じ枠の上に重ね、価格は透明にする(読み上げ用の文字は残る)。
 *   だから、レーダー表示のON/OFF・並べ替えの切替で、カードの高さは変わらない。文字領域の右の予約余白(68/76px)は、廃止(右余白=8px)。
 * ・メーカー名は、カードの表示から外す(データ・検索・メーカー絞り込みは、そのまま)。画像の上には、何も重ねない(バッジだけ)。
 * ・レーダー表示ON: レーダーのある商品=ミニレーダー、無い商品=価格のまま。並べ替え中: その項目の値(価格順は、価格のまま)。
 * ・空の価格の行(.rc-gempty。JSが、価格のない商品に足す)は、全画面で、価格の行と同じ高さの枠になる。 */
.rc-gempty { display: none; }
@media screen {
  body.p6 { --g-h: 40px; --g-mini: 38px; }
  body.p6 .rc-maker { display: none; }
  body.p6.rp-show-all .rp-slot .rc-body, body.p6.rp-info-on .rp-slot .rc-body { padding-right: 8px; }
  body.p6 .rc-price { box-sizing: border-box; height: var(--g-h); padding-top: 0; display: flex; align-items: center; line-height: 20px; white-space: nowrap; }
  body.p6 .rc-price.rc-gempty { display: block; }
  body.p6.rp-info-on .rp-has-info .rc-price, body.p6.rp-show-all:not(.rp-sorted) .rp-has-soft .rc-price { opacity: 0; }
  body.p6.rp-show-all:not(.rp-sorted) .rp-soft { display: inline-flex; position: absolute; z-index: 1; left: 5px; right: auto; bottom: 10px; width: auto; max-width: calc(100% - 14px); height: var(--g-h); align-items: center; margin: 0; padding: 0 4px; background: transparent; box-shadow: none; }
  body.p6 .rp-mini { width: var(--g-mini); height: var(--g-mini); margin: 0; flex: none; }
  body.p6 .rp-zoom { display: none; }
  body.p6.rp-info-on .rp-info { position: absolute; z-index: 1; left: 5px; right: auto; bottom: 10px; width: auto; max-width: calc(100% - 14px); min-width: 0; min-height: 0; height: var(--g-h); flex-direction: row; align-items: center; justify-content: flex-start; gap: 5px; margin: 0; padding: 0 4px; text-align: left; background: transparent; }
  body.p6 .rp-info .k { max-width: none; margin-top: 0; font-size: 11px; }
  body.p6 .rp-slot.is-open .rp-soft, body.p6 .rp-slot.is-open .rp-info { box-shadow: 0 0 0 2px #5B67E8; }
}
@media (max-width: 359px) {
  body.p6 .rp-info .k { font-size: 10px; }
}
/* 幅299px以下(280px前後の狭い画面): 価格と並べ替え値が、枠(約93px)からはみ出さないよう、文字を少し小さくする */
@media (max-width: 299px) {
  body.p6 .rc-price { font-size: 11px; }
  body.p6 .rp-info .k { font-size: 9px; }
  body.p6.rp-info-on .rp-info { gap: 3px; }
}
/* ミニレーダー(と並べ替えの値)の操作領域だけの、ホバー・フォーカスの表示(商品カード全体には付けない。虫眼鏡・三角・文字は足さない)
 * ・指マーク(cursor: pointer)。背景色・アウトラインだけを変える。寸法・余白・位置は変えない(カードの高さ・幅・配置は不変)。
 * ・ホバーは、マウスのある環境(hover: hover かつ pointer: fine)だけ。スマホのタップでは、ホバーの表示が残らない(1タップで拡大が開く)。
 * ・キーボードのフォーカス(:focus-visible)は、青い2pxの内側の枠+薄い青の背景。 */
@media screen {
  body.p6.rp-show-all:not(.rp-sorted) button.rp-soft, body.p6.rp-info-on button.rp-info { cursor: pointer; }
  body.p6.rp-show-all:not(.rp-sorted) button.rp-soft:focus-visible, body.p6.rp-info-on button.rp-info:focus-visible { outline: 2px solid #5B67E8; outline-offset: -2px; background: rgba(91, 103, 232, .08); }
}
@media screen and (hover: hover) and (pointer: fine) {
  body.p6.rp-show-all:not(.rp-sorted) button.rp-soft:hover, body.p6.rp-info-on button.rp-info:hover { background: rgba(91, 103, 232, .08); outline: 1px solid rgba(91, 103, 232, .7); outline-offset: -1px; }
}
