/* 展示ページの「製品・サービス」の検索・分類・もっと見る（2026-11-16・12件を超える会社だけ）。色はテーマに合わせる。 */
#cmp-products .cpp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
#cmp-products .cpp-search {
  position: relative;
  flex: 0 1 320px;
  min-width: 0;
  margin: 0;
}
#cmp-products .cpp-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-p2, #3a6ea5);
  pointer-events: none;
  z-index: 1; /* 入力欄の背景の下に隠れないように */
}
#cmp-products .cpp-search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px 8px 38px;
  border: 1px solid color-mix(in srgb, var(--theme-p2, #3a6ea5) 35%, #fff);
  border-radius: 999px;
  background: var(--cp-surface, #fff);
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#cmp-products .cpp-search input:focus {
  outline: none;
  border-color: var(--theme-p2, #3a6ea5);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-p2, #3a6ea5) 22%, transparent);
}
#cmp-products .cpp-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
#cmp-products .cpp-cat {
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid color-mix(in srgb, var(--theme-p2, #3a6ea5) 35%, #fff);
  border-radius: 999px;
  background: var(--cp-surface, #fff);
  color: var(--theme-p1, #1f3b5c);
  font-size: 14px;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
#cmp-products .cpp-cat:hover,
#cmp-products .cpp-cat:focus-visible {
  background: color-mix(in srgb, var(--theme-p2, #3a6ea5) 8%, #fff);
}
#cmp-products .cpp-cat:active { transform: scale(.97); }
#cmp-products .cpp-cat.is-on {
  background: var(--theme-p2, #3a6ea5);
  border-color: var(--theme-p2, #3a6ea5);
  color: #fff !important;
}
#cmp-products .cpp-empty {
  margin: 16px 0 0;
  color: #5a6572;
  text-align: center;
}
#cmp-products .cpp-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
#cmp-products .cpp-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 28px;
  border: 1px solid var(--theme-p2, #3a6ea5);
  border-radius: 999px;
  background: var(--cp-surface, #fff);
  color: var(--theme-p2, #3a6ea5) !important;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
#cmp-products .cpp-more:hover,
#cmp-products .cpp-more:focus-visible {
  background: var(--theme-p2, #3a6ea5);
  color: #fff !important;
}
#cmp-products .cpp-more:active { transform: scale(.97); }
#cmp-products .cpp-more:disabled { opacity: .7; cursor: progress; }
@media (max-width: 575.98px) {
  #cmp-products .cpp-search { flex: 1 1 100%; }
  /* 携帯では分類のボタンを1行に並べ、はみ出す分はこの行の中だけ横に送る（2行に折り返さない） */
  #cmp-products .cpp-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  #cmp-products .cpp-cats::-webkit-scrollbar { display: none; }
  #cmp-products .cpp-cat { flex: 0 0 auto; white-space: nowrap; }
}
