/* ══════════════════════════════════════════
   機種別の買取価格表（iphone.html）
   ══════════════════════════════════════════ */

.mx-lead {
  font-size: .85rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}

/* 機種の選択（横に並べて折り返す） */
.mx-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mx-model {
  padding: 6px 12px;
  font: inherit;
  font-size: .85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.mx-model:hover {
  border-color: var(--primary);
}

.mx-model.active {
  color: var(--on-primary);
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}

.mx-old {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 16px;
  font-size: .8rem;
  color: var(--text-sub);
  cursor: pointer;
}

/* 表（横スクロール・先頭列は固定） */
.mx-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.mx-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mx-table th,
.mx-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.mx-table tbody tr:last-child th,
.mx-table tbody tr:last-child td {
  border-bottom: none;
}

.mx-table thead th {
  position: sticky;
  top: 0;
  background: var(--sub-bg);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-sub);
}

.mx-sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left !important;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.mx-table thead .mx-sticky {
  z-index: 2;
  background: var(--sub-bg);
  color: var(--text);
  font-size: .85rem;
}

.mx-table tbody th a {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.mx-table tbody th a:hover {
  color: var(--primary);
}

.mx-color {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-sub);
}

.mx-best-col {
  font-weight: 700;
  color: var(--text);
  border-right: 1px solid var(--border);
}

.mx-table td a {
  color: inherit;
  text-decoration: none;
}

.mx-table td a:hover {
  text-decoration: underline;
}

.mx-top {
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 700;
}

.mx-none {
  color: var(--border);
}

.mx-note {
  margin-top: 8px;
  font-size: .75rem;
  color: var(--text-sub);
}

/* main は縦並びの flex なので、横に広い表で親ごと広がらないよう縮小を許可する */
#mx-body {
  min-width: 0;
}

/* ══════════════════════════════════════════
   カテゴリから探す（category.html）
   ══════════════════════════════════════════ */

.cat-count {
  margin-left: 6px;
  font-size: .72rem;
  font-weight: 400;
  opacity: .75;
  font-variant-numeric: tabular-nums;
}

.cat-note {
  margin: 8px 0 0;
  font-size: .75rem;
}

#cat-body {
  min-width: 0;
}

.cat-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.cat-total {
  font-size: .85rem;
  font-weight: 700;
}

a.cat-item {
  color: inherit;
  text-decoration: none;
}

.cat-item .search-list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#cat-body .show-more-btn {
  margin-top: 12px;
  width: 100%;
}
