/* P6c。PCはサイドバーをページと一緒にスクロールし、狭い画面は上部の主要条件を使う。 */
body.p6d .ds-countline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; flex: 1 1 220px; }
body.p6d .radar-auto {
  display: inline-flex;
  min-height: 44px;
  margin: 0;
  padding: 7px 13px 8px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #8c9caf;
  border-radius: 8px;
  background: linear-gradient(#fff, #edf2f7);
  box-shadow: 0 2px 0 #aab5c1, 0 3px 7px rgba(36, 52, 70, .16);
  color: #34465a;
  font: 700 14px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body.p6d .radar-auto-icon { width: 22px; height: 22px; flex: none; overflow: visible; }
body.p6d .radar-auto-frame,
body.p6d .radar-auto-spokes { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
body.p6d .radar-auto-spokes { opacity: .34; }
body.p6d .radar-auto-value { fill: currentColor; fill-opacity: .2; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
body.p6d .radar-auto:hover { border-color: #476f9d; background: linear-gradient(#fff, #e2edf8); color: #164a80; }
body.p6d .radar-auto:focus-visible { outline: 3px solid rgba(22, 74, 128, .3); outline-offset: 2px; }
body.p6d .radar-auto:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #8c9caf, inset 0 2px 4px rgba(35, 57, 78, .18);
}
body.p6d .radar-auto[aria-pressed="true"] {
  transform: translateY(2px);
  border-color: #164a80;
  background: #d8e9f8;
  box-shadow: inset 0 3px 6px rgba(22, 74, 128, .28), inset 0 0 0 1px rgba(22, 74, 128, .16);
  color: #0e3a68;
}
body.p6d .radar-auto[aria-pressed="true"] .radar-auto-value { fill-opacity: .58; }
body.p6d .radar-auto[aria-pressed="true"]:hover { background: #cfe3f5; }
@media (min-width: 900px) {
  body.p6d .radar-auto { display: flex; }
  body.p6d .ds-filters { position: static; top: auto; max-height: none; overflow: visible; }
  body.p6d .phonebar, body.p6d .phone-float { display: none !important; }
}
@media (max-width: 899px) {
  :root { --cols: 2; }
  body.p6d #filterToggle { display: none; }
  body.p6d .phonebar { display: block; margin: 0 0 8px; }
  body.p6d .phonechips { display: flex; flex-wrap: wrap; gap: 6px; }
  body.p6d .phonechip {
    flex: 1 1 calc(25% - 6px);
    max-width: calc(25% - 6px);
    min-height: 40px;
    padding: 6px 4px;
    border: 1px solid var(--ds-accent);
    border-radius: 6px;
    background: #fff;
    color: var(--ds-accent);
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  body.p6d .phonechip.is-on { background: var(--ds-accent); color: #fff; }
  body.p6d .phonechip .n:empty { display: none; }
  body.p6d .phonechip .n { font-size: 12px; }
  body.p6d #phoneMore { width: 100%; margin-top: 6px; }
  body.p6d #phoneMore .n:empty { display: none; }
  body.p6d #phoneMore.is-on { background: var(--ds-accent); color: #fff; }
  body.p6d .ds-filters.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 65;
    max-height: none;
    overflow: hidden;
    border-radius: 0;
    padding: 12px;
  }
  body.p6d .ds-filters.is-open #facets { flex: 1 1 auto; overflow: auto; min-height: 0; }
  body.p6d .ds-filters.is-open .ds-ffoot { position: static; }
  body.p6d .ds-hint { margin: 0 0 4px; font-size: 12px; }
  body.p6d .ds-toolbar { margin-bottom: 4px; }
  body.p6d .ds-tag, body.p6d .ds-tagmore { min-height: 36px; padding: 4px 8px; }
  body.p6d .ds-tagbar { margin-bottom: 6px; }
}
body.p6d.phone-lock { overflow: hidden; }
.phone-float {
  position: fixed;
  z-index: 72;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 24, 40, .22);
  padding: 8px;
}
.phone-float-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.phone-float-title { margin: 0; flex: 1 1 8em; font-weight: bold; }
.phone-float .ds-btn { flex: 0 0 auto; min-height: 36px; padding: 4px 10px; }
.phone-float-body { max-height: min(50vh, 360px); overflow: auto; margin-top: 8px; }
.phone-float.show-extra .opt.is-extra { display: flex; }
.phonebar { display: none; }

/* 選択中の条件。展開しただけでは色を付けない。 */
body.p6d .facet > summary,
body.p6d .facet-year > .year-open { border-radius: 4px; }
body.p6d .facet > summary:hover,
body.p6d .facet-year > .year-open:hover,
body.p6d .facet.is-chosen > summary,
body.p6d .facet-year.is-chosen > .year-open { background: var(--ds-accent-bg); }
body.p6d .facet.is-chosen,
body.p6d .facet-year.is-chosen { box-shadow: inset 3px 0 0 var(--ds-accent); }
body.p6d .opt.is-selected { background: var(--ds-accent-bg); border-radius: 4px; }
body.p6d .opt.is-selected .lbl { font-weight: 700; }
body.p6d .opt input { accent-color: var(--ds-accent); }
body.p6d .phonechip:active { background: #d3e4f8; }
body.p6d .phonechip.is-on:active { background: #0f3a66; }
