/* =========================================================
   ジャンル別「選び方ガイド＋比較表」（/compare/articles/*-guide/）
   daily.css の記事レイアウトの上に重ねて使います。
   ========================================================= */
.daily-article.daily-compare {
  --daily-color: #6d28d9;
  --daily-soft: #f4efff;
  --daily-line: rgba(109, 40, 217, 0.22);
}
.guide-disclosure {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--muted, #6b7280);
  font-size: 0.85rem;
  line-height: 1.7;
}
.guide-muted,
.guide-note-small {
  color: var(--muted, #6b7280);
}
.guide-note-small {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.7;
}
.guide-star {
  color: #d97706;
  margin-right: 1px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 絞り込み・並べ替え ---------- */
.guide-table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 16px 0 10px;
}
.guide-table-tools[hidden] {
  display: none;
}
.guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.guide-chips button {
  padding: 5px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.guide-chips button[aria-pressed="true"] {
  border-color: var(--daily-color);
  background: var(--daily-color);
  color: #fff;
}
.guide-chips button:focus-visible,
.guide-sort select:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.3);
  outline-offset: 1px;
}
.guide-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.guide-sort select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

/* ---------- 比較表 ---------- */
.guide-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 10px 0;
}
.guide-table,
.guide-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.guide-table th,
.guide-mini-table th {
  padding: 8px 8px;
  border-bottom: 2px solid var(--daily-line);
  background: var(--daily-soft);
  font-size: 0.8rem;
  text-align: left;
  white-space: nowrap;
}
.guide-table td,
.guide-mini-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  vertical-align: middle;
}
.guide-table tr[hidden] {
  display: none;
}
.guide-col-product {
  min-width: 200px;
}
.guide-prod {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
}
.guide-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.5;
}
.guide-name a {
  font-weight: 700;
}
.guide-name small,
.guide-col-rating small,
.guide-mini-table small {
  display: block;
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
  font-weight: 400;
}
.guide-col-type {
  min-width: 5.5em;
  font-size: 0.82rem;
}
.guide-col-spec {
  min-width: 110px;
}
.guide-spec {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.78rem;
  white-space: nowrap;
}
.guide-col-price,
.guide-col-rating {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.guide-col-price {
  font-weight: 700;
}
.guide-buy {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  background: #bf0000;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}
.guide-col-price .guide-buy {
  display: block;
  width: max-content;
  margin-top: 6px;
  font-weight: 700;
}
.guide-mini-table small {
  white-space: nowrap;
}
.guide-buy:hover,
.guide-buy:focus-visible {
  background: #9a0000;
}

/* スマホでは1行をカードにする */
@media (max-width: 720px) {
  .guide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .guide-table,
  .guide-table tbody,
  .guide-table tr,
  .guide-table td {
    display: block;
    width: 100%;
  }
  .guide-table tr {
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 12px;
    background: #fff;
  }
  .guide-table td {
    padding: 4px 0;
    border: 0;
  }
  .guide-table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 3.5em;
    margin-right: 8px;
    color: var(--muted, #6b7280);
    font-size: 0.78rem;
  }
  .guide-col-product {
    min-width: 0;
    margin-bottom: 4px;
  }
  .guide-col-spec {
    min-width: 0;
  }
  .guide-col-rating small {
    display: inline;
    margin-left: 6px;
  }
  .guide-col-price .guide-buy {
    width: auto;
    margin-top: 10px;
    padding: 8px 10px;
    text-align: center;
  }
  .guide-table-wrap-main {
    overflow: visible;
  }
  .guide-bar-col {
    display: none;
  }
}

/* ---------- 注目商品 ---------- */
.guide-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0 6px;
}
.guide-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--daily-line);
  border-radius: 12px;
  background: #fff;
}
.guide-pick img {
  align-self: center;
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.guide-pick h3 {
  margin: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1.5;
}
.guide-pick p {
  margin: 0 !important;
  font-size: 0.86rem;
  line-height: 1.7;
}
.guide-pick-label {
  align-self: flex-start;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--daily-soft);
  color: var(--daily-color);
  font-size: 0.78rem !important;
  font-weight: 700;
}
.guide-pick-data {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.guide-pick-caution {
  color: var(--muted, #6b7280);
}
.guide-pick .guide-buy {
  margin-top: auto;
  text-align: center;
}

/* ---------- 価格帯 ---------- */
.guide-price-table td {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.guide-price-table tr.is-total td {
  font-weight: 700;
}
.guide-bar-col {
  width: 34%;
  min-width: 120px;
}
.guide-bar {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #eef2f7;
}
.guide-bar-range {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 5px;
  background: rgba(109, 40, 217, 0.35);
}
.guide-bar-median {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 16px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--daily-color);
}

/* ---------- 関連アイテム ---------- */
.guide-related {
  list-style: none;
  margin: 12px 0 !important;
  padding: 0 !important;
}
.guide-related li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.guide-related .guide-name {
  flex: 1 1 200px;
}
.guide-related-data {
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- データについて・他のガイド ---------- */
.guide-data-note {
  margin-top: 30px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
}
.guide-data-note h2 {
  margin-top: 0 !important;
  font-size: 1.05rem !important;
}
.guide-data-note ul {
  margin: 0;
  font-size: 0.88rem;
}
.guide-others ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
}
.guide-others a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.guide-others a:hover {
  border-color: #6d28d9;
}

/* 小さな集計表はスマホで潰れないよう、横スクロールさせる */
.guide-mini-table {
  min-width: 460px;
}
.guide-mini-table td:first-child,
.guide-mini-table td:nth-child(3) {
  white-space: nowrap;
}
.guide-price-table td:first-child {
  white-space: normal;
  min-width: 6em;
}
