/* タイトル、検索欄、上部一覧、商品領域を同じ1200pxの中央に揃える。 */
body.p6d .ds-head,
body.p6d .ds-search,
body.p6d #pcShelf,
body.p6d .ds-layout {
  width: min(1200px, 100%);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
body.p6d .ds-head { padding: 8px 12px 0; }
body.p6d .ds-search { max-width: min(1200px, 100%); background: transparent; border-bottom: 0; }
body.p6d .ds-search input[type="search"] { flex: 1 1 0; width: 0; min-width: 0; max-width: 100%; }
body.p6d .p7-focus { width: min(1200px, 100%); max-width: 1200px; margin: 0 auto; padding: 8px 12px 0; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.p6d .p7-focus p { margin: 0; font-weight: bold; }
body.p6d .p7-focus label { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--ds-accent); border-radius: 6px; background: #fff; }
body.p6d .p7-focus .n:empty { display: none; }
.p7-badges { position: absolute; z-index: 2; left: 4px; top: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: calc(100% - 8px); pointer-events: none; }
.p7-badge { display: inline-block; padding: 1px 4px; border-radius: 3px; color: #fff; font-size: 10px; line-height: 1.3; font-weight: bold; }
.p7-badge.is-new { background: #b42318; }
.p7-badge.is-topic { background: #b45309; }
.p7-badge.is-mvp { position: relative; overflow: hidden; color: #3d2a08; background: linear-gradient(180deg, #f6e7b0 0%, #d7b45c 48%, #b8923c 100%); border: 1px solid #8d6824; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 1px rgba(80, 50, 10, .22); }
.p7-badge.is-mvp::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 35%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); transform: translateX(0); opacity: 0; animation: p7-mvp-shine 10s linear infinite; pointer-events: none; }
@keyframes p7-mvp-shine { 0%, 80% { transform: translateX(0); opacity: 0; } 84% { opacity: 1; } 92% { transform: translateX(420%); opacity: 0; } 100% { transform: translateX(420%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .p7-badge.is-mvp::after { animation: none; opacity: 0; } }
body.p6d .ds-search #filterToggle { flex: 0 0 auto; }
body.p6d .ds-head h1 { max-width: none; margin: 0; }
.phone-more-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: min(50vh, 360px); overflow: auto; margin-top: 8px; }
.phone-more-item { min-height: 44px; padding: 6px 8px; border: 1px solid var(--ds-accent); border-radius: 6px; background: #fff; color: var(--ds-accent); text-align: left; white-space: normal; overflow-wrap: anywhere; }
.phone-more-item.is-on { background: var(--ds-accent); color: #fff; }
.phone-more-item .n:empty { display: none; }
body.p6d .top-shelf { padding: 8px 12px 0; }
body.p6d .top-shelf-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
body.p6d .top-shelf-btn.is-on { box-shadow: inset 0 -3px 0 var(--ds-accent); }
body.p6d .top-shelf-btn[aria-expanded="true"] { background: var(--ds-accent); color: #fff; }
body.p6d .top-shelf-panel { background: #fff; border: 1px solid var(--ds-line); border-radius: 8px; padding: 8px; margin: 0 0 8px; }
body.p6d .top-shelf-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
body.p6d .top-shelf-head p { margin: 0; font-weight: bold; flex: 1 1 8em; }
body.p6d .top-shelf-body { max-height: 40vh; overflow: auto; }
body.p6d .top-shelf-panel .facet { border: 0; margin: 0; box-shadow: none; }
body.p6d .top-shelf-panel .facet > summary { display: none; }
body.p6d .top-shelf-panel .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; }
body.p6d .top-shelf-panel .shelf-head { grid-column: 1 / -1; margin: 8px 0 0; padding: 6px 8px; font-weight: bold; list-style: none; background: #eef3f8; border-radius: 4px; }
body.p6d .top-shelf-panel li.is-parked { display: none; }
body.p6d .facet[data-id="type"] .shelf-head { grid-column: 1 / -1; margin: 8px 0 0; padding: 6px 8px; font-weight: bold; list-style: none; background: #eef3f8; border-radius: 4px; }
body.p6d .facet[data-id="type"] li.is-parked,
body.p6d .phone-float .facet[data-id="type"] li.is-parked { display: none; }
body.p6d .maker-all-wrap { grid-column: 1 / -1; list-style: none; }
body.p6d .maker-all-btn { width: 100%; min-height: 44px; margin-top: 8px; }
body.p6d .maker-all { display: none; margin: 8px 0 0; padding: 0; list-style: none; }
body.p6d .maker-all-wrap.is-open .maker-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
body.p6d .maker-all .opt { align-items: flex-start; height: auto; white-space: normal; }
body.p6d .maker-all .lbl { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
body.p6d .maker-all li.is-parked { display: none; }
body.p6d .top-shelf-panel .opt { align-items: flex-start; height: auto; white-space: normal; }
body.p6d .top-shelf-panel .lbl { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
body.p6d .top-shelf-panel .logo-card .opt,
body.p6d .top-shelf-panel .text-card .opt { flex-direction: column; align-items: stretch; }
body.p6d .logo-img { display: block; width: 100%; height: 72px; object-fit: contain; background: #f7f7f8; }
body.p6d .top-shelf-panel .opt.is-selected { outline: 2px solid var(--ds-accent); background: var(--ds-accent-bg); }
body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card .opt.is-selected {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ds-accent);
}
body.p6d #facets .logo-img { width: 88px; height: 40px; }
@media (max-width: 899px) {
  body.p6d #pcShelf { display: none; }
  body.p6d .top-shelf-panel .opts { grid-template-columns: 1fr 1fr; }
  body.p6d .maker-all-wrap.is-open .maker-all { grid-template-columns: 1fr 1fr; }
  body.p6d #phoneShelfSlot { margin-top: 6px; }
}

/* メーカーロゴ21件だけを、ロゴ＋既存チェックボックス＋メーカー名の小型カードにする。 */
body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts { gap: 6px; }
body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card .opt {
  min-height: 86px;
  padding: 6px;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  column-gap: 5px;
  row-gap: 3px;
  text-align: center;
}
body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card .logo-img {
  order: 1;
  flex: 0 0 100%;
  width: 100%;
  height: 44px;
  object-fit: contain;
  background: #f7f7f8;
}
body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card input[type="checkbox"] {
  order: 2;
  flex: 0 0 auto;
  margin: 0;
}
body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card .lbl {
  order: 3;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 30px);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}
body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card .cnt {
  order: 4;
  flex: 0 0 auto;
  font-size: 11px;
}

@media (min-width: 1100px) {
  body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 899px) {
  body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 360px) and (max-width: 599px) {
  body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card .logo-img { max-width: 96px; }
}
@media (max-width: 359px) {
  body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.p6d .top-shelf-panel .facet[data-id="maker"] > .opts > .logo-card .logo-img { max-width: 96px; }
}

/* P7i-series-layout:begin 2026-11-21 PC版のシリーズ選択欄: 列数は幅に合わせて自動(4列/3列)、メーカー名は見出しがあるので項目内では出さない、折り返しは語の区切り、高さを低く、検索欄は固定。899px以下(スマホ・タブレット)は変えない。 */
@media (min-width: 900px) {
  body.p6d .top-shelf-panel .facet[data-id="series"] > .opts { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  body.p6d .top-shelf-panel .facet[data-id="series"] .grp { display: none; }
  body.p6d .top-shelf-panel .facet[data-id="series"] .lbl { word-break: keep-all; overflow-wrap: break-word; }
  body.p6d .top-shelf-body:has(.facet[data-id="series"]) { max-height: clamp(200px, 28vh, 250px); }
  body.p6d .top-shelf-panel .facet[data-id="series"] > .fsearch { position: sticky; top: 0; z-index: 2; background: #fff; }
}
/* P7i-series-layout:end */
