/*
 * 「価格と比較」(kakakutohikaku.com) — Scoped Editorial & Comparison UI (.kh-* only)
 * SANGO 3.12.14 標準の配色・背景・ヘッダー・記事カード・サイドバー・タイポグラフィを一切上書きせず、
 * 目的別入口・記事冒頭要約・用途別商品カード・比較表・出典リスト等の .kh-* コンポーネントのみを定義します。
 */

/* --- 共通バッジ・メタ行 --- */
.kh-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  color: #536270;
  margin-bottom: 0.75rem;
}

.kh-meta-row a {
  color: #0077b8;
  text-decoration: underline;
}

.kh-badge {
  display: inline-block;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
}

.kh-badge-product {
  background: #e3f4fe;
  color: #006da8;
}

.kh-badge-reservation {
  background: #e4f6f1;
  color: #0d6957;
}

.kh-badge-hybrid {
  background: #eaf0ff;
  color: #264f8c;
}

.kh-badge-verified {
  background: #e5f5ec;
  color: #166037;
}

.kh-badge-open {
  background: #edf2f7;
  color: #425262;
}

.kh-badge-pending {
  background: #fff6e5;
  color: #844f00;
  border: 1px solid #efd296;
}

/* --- 共通ボタン・フォーカス --- */
.kh-btn,
.kh-cta-btn,
.kh-jump-btn,
.kh-filter-btn,
.kh-filter-reset,
.kh-portal-btn,
.kh-purpose-card,
.kh-chip,
.kh-details > summary {
  box-sizing: border-box;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.kh-btn:focus-visible,
.kh-cta-btn:focus-visible,
.kh-shop-btn:focus-visible,
.kh-lineup-ec-btn:focus-visible,
.kh-lineup-more:focus-visible,
.kh-detail-buy-btn:focus-visible,
.kh-usb-anchor-link:focus-visible,
.kh-spec-link:focus-visible,
.kh-photo-credit a:focus-visible,
.kh-table-photo-credit a:focus-visible,
.kh-jump-btn:focus-visible,
.kh-filter-btn:focus-visible,
.kh-filter-reset:focus-visible,
.kh-portal-btn:focus-visible,
.kh-purpose-card:focus-visible,
.kh-chip:focus-visible,
.kh-details > summary:focus-visible,
.kh-table-scroll:focus-visible,
.kh-home-search-input:focus-visible {
  outline: 2px solid #004d73;
  outline-offset: 2px;
}

.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.52rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff !important;
  background: #0077ae;
  border: 1px solid #0077ae;
  border-radius: 6px;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1.3;
}

.kh-btn:hover {
  background: #005f8d;
  border-color: #005f8d;
  color: #ffffff !important;
}

.kh-btn-outline {
  background: #ffffff;
  color: #006494 !important;
  border: 1px solid #6eb5dc;
}

.kh-btn-outline:hover {
  background: #eef7fc;
  border-color: #0077ae;
  color: #004d73 !important;
}

/* --- B. ホーム上部 (home_top): コンパクト検索＋用途別4入口 --- */
.kh-home-portal {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
  margin: 0 0 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  max-width: 100%;
}

.kh-home-portal-head {
  margin-bottom: 0.65rem;
}

.kh-home-portal-title {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #1f3347;
  line-height: 1.4;
}

.kh-home-portal-sub {
  margin: 0;
  font-size: 0.81rem;
  color: #5b6b79;
  line-height: 1.5;
}

.kh-home-search {
  margin: 0 0 0.75rem;
}

.kh-home-search-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #365069;
  margin-bottom: 0.28rem;
}

.kh-home-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
}

.kh-home-search-row input[type="search"].kh-home-search-input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
  color: #252525;
  background: #f7fafc;
  border: 1px solid #c6d6e5;
  border-radius: 6px;
}

.kh-home-search-btn {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: #0077ae;
  border: 1px solid #0077ae;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.kh-home-search-btn:hover {
  background: #005f8d;
  border-color: #005f8d;
}

.kh-purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.kh-purpose-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.5rem 0.6rem;
  background: #f8fbfe;
  border: 1px solid #d7e8f7;
  border-radius: 7px;
  text-decoration: none !important;
  color: #223548 !important;
}

.kh-purpose-card:hover {
  background: #eef8ff;
  border-color: #6ec1f6;
}

.kh-purpose-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #e3f4fe;
  color: #0082cc;
}

.kh-purpose-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.kh-purpose-text {
  min-width: 0;
  display: block;
}

.kh-purpose-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.28;
  color: #1c3247;
}

.kh-purpose-desc {
  display: block;
  font-size: 0.72rem;
  line-height: 1.3;
  color: #5a6c7d;
  margin-top: 0.12rem;
}

.kh-list-heading-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.2rem 0 0.75rem;
  padding: 0 0.15rem;
}

.kh-list-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #243748;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.kh-list-heading::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.05em;
  border-radius: 3px;
  background: #009ef3;
}

.kh-list-sublink {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0077b8 !important;
  text-decoration: none !important;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.kh-list-sublink:hover {
  text-decoration: underline !important;
}

/* --- E. 記事上部：「先にわかること」＋ページ内移動＋前提基準details --- */
.kh-top-summary {
  background: #f8fcff;
  border: 1px solid #cde4f7;
  border-top: 4px solid #009ef3;
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
  margin: 0.85rem 0 1rem;
  box-sizing: border-box;
  max-width: 100%;
}

.entry-content .kh-top-summary .kh-summary-title,
.kh-top-summary .kh-summary-title {
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 800;
  color: #18354c;
}

.entry-content .kh-top-summary ul.kh-summary-list,
.kh-summary-list {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.2rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  list-style: disc;
  font-size: 0.89rem;
  line-height: 1.62;
  color: #273847;
}

.kh-summary-list li {
  margin-bottom: 0.28rem;
}

.kh-jump-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.kh-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.3;
}

.kh-jump-btn-primary {
  background: #0077ae;
  color: #ffffff !important;
  border: 1px solid #0077ae;
}

.kh-jump-btn-primary:hover {
  background: #005f8d;
  border-color: #005f8d;
}

.kh-jump-btn-secondary {
  background: #ffffff;
  color: #006494 !important;
  border: 1px solid #6eb5dc;
}

.kh-jump-btn-secondary:hover {
  background: #eef7fc;
  border-color: #0077ae;
}

/* 常時表示する重要条件（価格種別・送料・確認日・注意点）＋展開details */
.kh-premise-compact {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  margin: 0 0 1.35rem;
  font-size: 0.84rem;
  line-height: 1.58;
  color: #344452;
}

.kh-premise-essential {
  display: grid;
  gap: 0.32rem;
  margin-bottom: 0.55rem;
}

.kh-premise-essential p {
  margin: 0 !important;
}

.kh-details {
  border-top: 1px dashed #d5e2ee;
  padding-top: 0.4rem;
}

.kh-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.25rem 0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0072b2;
  cursor: pointer;
  list-style: none;
}

.kh-details > summary::-webkit-details-marker {
  display: none;
}

.kh-details > summary::after {
  content: "＋ 開く";
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef7fe;
  color: #0072b2;
  flex-shrink: 0;
}

.kh-details[open] > summary::after {
  content: "－ 閉じる";
}

.kh-details-body {
  padding: 0.65rem 0 0.2rem;
}

/* --- F. USB記事など：早い位置の用途別比較カード＋軽量フィルタ --- */
.kh-early-compare {
  background: #ffffff;
  border: 1px solid #cfe2f3;
  border-radius: 8px;
  padding: 1.05rem;
  margin: 1.25rem 0 1.75rem;
  box-sizing: border-box;
  max-width: 100%;
  scroll-margin-top: 16px;
}

.entry-content .kh-early-compare .kh-early-title,
.kh-early-compare .kh-early-title {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.08rem;
  font-weight: 800;
  color: #19344b;
}

.kh-early-lead {
  margin: 0 0 0.8rem !important;
  font-size: 0.84rem;
  color: #536473;
  line-height: 1.55;
}

.kh-filter-bar {
  background: #f5fafe;
  border: 1px solid #d7e9f8;
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.95rem;
}

.kh-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kh-filter-btn {
  min-height: 44px;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #78bce0;
  background: #ffffff;
  color: #164261;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.kh-filter-btn:hover {
  background: #eaf5fc;
  border-color: #0077ae;
}

.kh-filter-btn.is-active,
.kh-filter-btn[aria-pressed="true"] {
  background: #0077ae;
  border-color: #0077ae;
  color: #ffffff;
}

.kh-filter-btn.is-active:hover,
.kh-filter-btn[aria-pressed="true"]:hover {
  background: #005f8d;
  border-color: #005f8d;
  color: #ffffff;
}

.kh-filter-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #4b5d6d;
}

.kh-filter-reset {
  min-height: 38px;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #bfd4e6;
  background: #ffffff;
  color: #006da8;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
}

.kh-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.kh-product-card {
  background: #ffffff;
  border: 1px solid #d5e3ef;
  border-radius: 8px;
  padding: 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  box-sizing: border-box;
  min-width: 0;
}

.kh-product-card[hidden],
.kh-usb-card[hidden] {
  display: none !important;
}

/* USB記事：1列フル幅・左写真＋右要点/購入先ボタンの商品カード */
.kh-usb-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.05rem;
}

.kh-usb-card {
  background: #ffffff;
  border: 1px solid #cfddea;
  border-radius: 8px;
  padding: 1rem 1.05rem;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.kh-usb-card-head {
  margin-bottom: 0.72rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #eaf1f7;
}

.entry-content .kh-usb-card h4.kh-product-name,
.kh-usb-card .kh-product-name {
  font-size: 1.04rem;
  margin-top: 0.32rem;
}

.kh-usb-card-body.has-photo {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.kh-usb-card-body.no-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.kh-usb-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.kh-usb-photo-frame {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2ebf3;
  border-radius: 8px;
  padding: 0.55rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-content .kh-usb-photo-frame img.kh-usb-photo,
.kh-usb-photo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.kh-photo-credit {
  margin: 0.38rem 0 0 !important;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
  color: #526475;
}

.kh-photo-credit a {
  color: #006494 !important;
  text-decoration: underline;
}

.kh-usb-main {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.kh-no-photo-link-row {
  margin: -0.15rem 0 0 !important;
  font-size: 0.8rem;
  line-height: 1.45;
}

.kh-caution-short {
  margin: 0 !important;
  font-size: 0.8rem;
  line-height: 1.48;
  color: #7a4902;
  background: #fffaf2;
  border-left: 3px solid #eb9f42;
  padding: 0.36rem 0.58rem;
  border-radius: 0 4px 4px 0;
}

.kh-price-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  background: #fbfcfd;
  border: 1px solid #dfe9f2;
  border-radius: 6px;
  padding: 0.5rem 0.68rem;
}

.kh-price-inline-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #182d40;
}

.kh-price-inline-date {
  font-size: 0.75rem;
  color: #546676;
}

.kh-card-details {
  margin-top: 0.65rem;
}

.kh-card-detail-dl {
  grid-template-columns: 7.5rem minmax(0, 1fr);
}

/* 比較表内の製品サムネイル（非リンク・比率維持） */
.kh-table-thumb-wrap {
  width: 76px;
  height: 76px;
  background: #ffffff;
  border: 1px solid #e2ebf3;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 0.38rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-content .kh-comp-table img.kh-table-thumb,
.kh-table-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.kh-table-photo-credit {
  margin-top: 0.25rem;
  font-size: 0.71rem;
  font-weight: 400;
  line-height: 1.38;
}

.kh-table-photo-credit a {
  color: #006494 !important;
  text-decoration: underline;
}

.kh-product-top {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kh-product-maker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.kh-product-maker {
  font-size: 0.76rem;
  font-weight: 700;
  color: #566878;
}

.kh-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.kh-tag-pill {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: #eaf6ff;
  color: #006ca8;
  font-size: 0.72rem;
  font-weight: 700;
}

.entry-content .kh-product-card h4.kh-product-name,
.kh-product-name {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.97rem;
  font-weight: 800;
  line-height: 1.42;
  color: #1b2f42;
}

.kh-product-use {
  margin: 0 !important;
  font-size: 0.84rem;
  line-height: 1.52;
  color: #264158;
  background: #f6fbff;
  border-left: 3px solid #009ef3;
  padding: 0.42rem 0.58rem;
  border-radius: 0 4px 4px 0;
}

.kh-spec-mini {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.25rem 0.5rem;
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.45;
}

.kh-spec-mini dt {
  font-weight: 700;
  color: #4f6375;
}

.kh-spec-mini dd {
  margin: 0;
  color: #22313f;
  overflow-wrap: anywhere;
}

.kh-price-box {
  background: #fbfcfd;
  border: 1px solid #e1eaf2;
  border-radius: 6px;
  padding: 0.55rem 0.68rem;
  font-size: 0.81rem;
}

.kh-price-box-main {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #192d3f;
  margin-top: 0.2rem;
}

.kh-price-box-sub {
  display: block;
  font-size: 0.76rem;
  color: #546676;
  margin-top: 0.18rem;
  line-height: 1.45;
}

.kh-card-caution {
  margin: 0 !important;
  font-size: 0.78rem;
  line-height: 1.48;
  color: #7c4a03;
  background: #fffaf2;
  border: 1px solid #f2dec0;
  border-radius: 5px;
  padding: 0.42rem 0.58rem;
}

.kh-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  background: #0077ae;
  border: 1px solid #0077ae;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.3;
}

.kh-cta-btn:hover {
  background: #005f8d;
  border-color: #005f8d;
  color: #ffffff !important;
}

/* 購入先ボタン群（Amazon / 楽天市場 / 公式ストア）＋メーカー公式仕様リンク */
.kh-shop-block {
  background: #f6fbfe;
  border: 1px solid #cfe2f2;
  border-radius: 7px;
  padding: 0.72rem 0.78rem;
  box-sizing: border-box;
  max-width: 100%;
}

.kh-shop-heading {
  margin: 0 0 0.45rem !important;
  font-size: 0.83rem;
  font-weight: 800;
  color: #19364f;
  line-height: 1.35;
}

.kh-shop-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
}

.kh-shop-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.42rem 0.55rem;
  border-radius: 6px;
  background: #0077ae;
  border: 1px solid #0077ae;
  color: #ffffff !important;
  text-decoration: none !important;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.25;
}

.kh-shop-btn:hover {
  background: #005f8d;
  border-color: #005f8d;
  color: #ffffff !important;
}

.kh-shop-btn-main {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
}

.kh-shop-btn-store {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
}

.kh-shop-btn-sub {
  margin-top: 0.45rem;
  min-height: 44px;
  background: #ffffff;
  border: 1px solid #6eb5dc;
  color: #006494 !important;
}

.kh-shop-btn-sub:hover {
  background: #eef7fc;
  border-color: #0077ae;
  color: #004d73 !important;
}

.kh-shop-btn-sub .kh-shop-btn-main {
  color: #006494;
}

.kh-shop-btn-sub .kh-shop-btn-store {
  color: #355770;
}

.kh-shop-note {
  margin: 0.46rem 0 0 !important;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #4a5c6c;
}

.kh-spec-link-row {
  margin-top: 0.52rem;
  padding-top: 0.48rem;
  border-top: 1px dashed #c9dced;
  font-size: 0.76rem;
  line-height: 1.48;
  color: #4a5c6c;
}

.kh-spec-role-label {
  display: block;
  font-weight: 700;
  color: #354c60;
  margin-bottom: 0.1rem;
}

.kh-spec-link {
  color: #006494 !important;
  font-weight: 700;
  text-decoration: underline !important;
  overflow-wrap: anywhere;
}

.kh-spec-link:hover {
  color: #004d73 !important;
}

/* 比較表セル内の購入先・仕様出典表示 */
.kh-table-links-cell {
  min-width: 14.5rem;
}

.kh-table-shop-group {
  margin-bottom: 0.55rem;
}

.kh-table-role-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1d3c56;
  margin-bottom: 0.32rem;
}

.kh-table-shop-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.36rem;
}

.kh-table-spec-group {
  padding-top: 0.48rem;
  border-top: 1px dashed #d3e1ee;
}

.kh-early-footer {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e6eef5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

/* --- G. ホテル記事：条件統一チェックリスト＋等価な公式サイト入口 --- */
.kh-check-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.65rem 0 0.95rem;
}

.kh-check-step {
  background: #f7fcfa;
  border: 1px solid #cce8e1;
  border-top: 3px solid #158a7c;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.52;
}

.kh-check-step strong {
  display: block;
  font-size: 0.87rem;
  color: #124d46;
  margin-bottom: 0.25rem;
}

.kh-portal-links-box {
  background: #f8fbfe;
  border: 1px solid #d7e8f7;
  border-radius: 7px;
  padding: 0.8rem 0.9rem;
  margin-top: 0.75rem;
}

.kh-portal-links-title {
  margin: 0 0 0.3rem !important;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1c364e;
}

.kh-portal-links-note {
  margin: 0 0 0.65rem !important;
  font-size: 0.77rem;
  color: #566777;
  line-height: 1.5;
}

.kh-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.kh-portal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #6eb5dc;
  color: #006494 !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.3;
}

.kh-portal-btn:hover {
  background: #eef7fc;
  border-color: #0077ae;
  color: #004d73 !important;
}

/* --- 記事本文ラッパー・詳細図版 --- */
.kh-guide-body {
  scroll-margin-top: 16px;
}

.kh-editorial-box {
  background: #f8fbfe;
  border: 1px solid #d7e8f7;
  border-left: 4px solid #009ef3;
  border-radius: 6px;
  padding: 0.95rem 1.1rem;
  margin: 1.25rem 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.kh-editorial-box-sub {
  background: #fafbfc;
  border-color: #e1e7ee;
  border-left-color: #58a9e6;
}

.kh-editorial-box-warn {
  background: #fffaf0;
  border-color: #f0d7a7;
  border-left-color: #ffb36b;
}

.entry-content .kh-editorial-box .kh-box-title,
.kh-editorial-box .kh-box-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #252525;
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.kh-dl {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.38rem 0.85rem;
  margin: 0;
  font-size: 0.85rem;
}

.kh-dl dt {
  font-weight: 700;
  color: #0072b2;
}

.kh-dl dd {
  margin: 0;
  color: #333333;
  overflow-wrap: anywhere;
}

.kh-suitability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.8rem 0 0.2rem;
}

.kh-suit-card {
  background: #f9fbfd;
  border: 1px solid #dce6ef;
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
}

.kh-suit-card.is-good {
  border-top: 3px solid #009ef3;
}

.kh-suit-card.is-caution {
  border-top: 3px solid #ffb36b;
}

.entry-content .kh-suit-card h3,
.kh-suit-card h3 {
  font-size: 0.89rem;
  margin: 0 0 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #252525;
}

.entry-content .kh-suit-card ul,
.kh-suit-card ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  list-style: disc;
  font-size: 0.83rem;
}

.kh-diagram-figure {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  padding: 0.85rem;
  margin: 1.4rem 0;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.kh-diagram-figure img {
  max-width: 100%;
  height: auto;
}

.kh-diagram-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.79rem;
  color: #5b6b79;
}

/* --- 横スクロール比較表（枠内のみ横スクロール・ページ全体幅維持） --- */
.kh-comp-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  padding: 1.05rem;
  margin: 1.65rem 0;
  max-width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 16px;
}

.entry-content .kh-comp-header h3,
.kh-comp-header h3 {
  font-size: 1.06rem;
  color: #252525;
  margin: 0.25rem 0 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.kh-comp-note {
  margin: 0.25rem 0 0.6rem;
  font-size: 0.84rem;
  color: #596978;
}

.kh-scroll-hint {
  font-size: 0.78rem;
  color: #596978;
  margin: 0.35rem 0;
}

.kh-table-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dce6ef;
  border-radius: 6px;
  background: #ffffff;
}

.entry-content .kh-comp-section table.kh-comp-table,
.kh-comp-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

.kh-comp-table th,
.kh-comp-table td {
  padding: 0.65rem 0.72rem;
  border-bottom: 1px solid #e3ebf2;
  border-right: 1px solid #eef3f7;
  vertical-align: top;
  text-align: left;
}

.kh-comp-table thead th {
  background: #009ef3;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}

.kh-comp-table tbody tr:nth-child(even) {
  background: #f9fcff;
}

.kh-comp-item-name {
  font-weight: 700;
  color: #252525;
  min-width: 10.5rem;
}

.kh-comp-provider {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  color: #5c6c7b;
  margin-top: 0.15rem;
}

.kh-price-main {
  font-weight: 700;
  color: #252525;
  display: block;
  margin-top: 0.2rem;
}

.kh-price-note {
  display: block;
  font-size: 0.76rem;
  color: #5c6c7b;
  margin-top: 0.16rem;
}

.kh-caution-inline {
  margin-top: 0.32rem;
  color: #844f00;
}

/* --- 一次情報・出典リスト & 関連ガイド導線 --- */
.entry-content ul.kh-sources-list,
.kh-sources-list {
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 0.6rem;
}

.kh-sources-list li {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.kh-source-link {
  font-weight: 700;
  word-break: break-all;
}

.kh-source-meta {
  margin-top: 0.25rem;
  color: #5c6c7b;
  font-size: 0.79rem;
}

.kh-related-box {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
  margin: 1.35rem 0 0.5rem;
}

.kh-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.kh-related-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: #f8fbfe;
  border: 1px solid #d7e8f7;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1c3b57 !important;
  text-decoration: none !important;
  line-height: 1.38;
}

.kh-related-link:hover {
  background: #eef8ff;
  border-color: #6ec1f6;
}

/* --- 固定ディレクトリページ (/categories/, /comparisons/, /search/, /sitemap/) --- */
.kh-dir-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.kh-dir-card {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.entry-content .kh-dir-card h3,
.kh-dir-card h3 {
  font-size: 1rem;
  margin: 0.25rem 0 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.kh-search-panel {
  background: #ffffff;
  border: 1px solid #d7e8f7;
  border-radius: 8px;
  padding: 0.95rem 1.05rem;
  margin: 0 0 1.2rem;
}

.kh-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
}

.kh-search-form input[type="search"],
.kh-search-form select {
  min-height: 44px;
  margin-bottom: 0;
  background: #f8fafc;
  border: 1px solid #c6d6e5;
}

.kh-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

.kh-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.28rem 0.75rem;
  background: #ffffff;
  border: 1px solid #bddbf4;
  border-radius: 999px;
  text-decoration: none !important;
  color: #006da8 !important;
  font-size: 0.81rem;
  font-weight: 700;
}

.kh-chip:hover {
  background: #eef8ff;
  border-color: #009ef3;
}

/* --- モバイル・タブレット最適化 (<= 820px / 375px横はみ出しゼロ) --- */
@media (max-width: 820px) {
  .kh-purpose-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kh-product-grid,
  .kh-check-steps,
  .kh-portal-grid,
  .kh-suitability-grid,
  .kh-dir-grid,
  .kh-related-grid,
  .kh-search-form,
  .kh-dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .kh-dl dd {
    margin-bottom: 0.4rem;
  }

  .kh-home-portal {
    padding: 0.8rem 0.85rem;
  }

  .kh-purpose-card {
    padding: 0.45rem 0.5rem;
    gap: 0.42rem;
  }

  .kh-early-compare,
  .kh-comp-section {
    padding: 0.85rem;
  }
}

@media (max-width: 640px) {
  .kh-usb-card-body.has-photo {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .kh-usb-photo-frame {
    max-width: 220px;
  }

  .kh-card-detail-dl {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .kh-shop-btn-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 330px) {
  .kh-jump-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================================
 * USB記事専用：冒頭おすすめ案内＋4製品ラインナップ一覧＋買う前の確認＋下部詳細セクション
 * （白背景・余白・控えめな影と角丸、重層カラーボックスなし、320pxでも横はみ出しゼロ）
 * ========================================================================= */

.kh-usb-anchor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem 0.6rem;
  padding: 0.15rem 0 0.45rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid #e6edf3;
  font-size: 0.78rem;
}

.kh-usb-anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.45rem;
  align-items: center;
}

.kh-usb-anchor-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #f3f7fb;
  color: #006494 !important;
  font-weight: 700;
  text-decoration: none !important;
  font-size: 0.78rem;
  line-height: 1.25;
}

.kh-usb-anchor-link:hover {
  background: #e5f1fa;
  color: #004d73 !important;
}

.kh-usb-anchor-meta {
  font-size: 0.74rem;
  color: #637280;
  line-height: 1.35;
}

.kh-usb-anchor-meta a {
  color: #006494;
  text-decoration: underline;
}

/* 冒頭の小さな推薦エリア (#kh-recommendation) */
.kh-rec-box {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.78rem;
  background: #f8fbfe;
  border: 1px solid #d6e6f2;
  border-left: 4px solid #0077ae;
  border-radius: 8px;
  scroll-margin-top: 16px;
  box-sizing: border-box;
}

.entry-content .kh-rec-box h2.kh-rec-heading,
.kh-rec-heading {
  margin: 0 0 0.3rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: #172b3d;
}

.kh-rec-main {
  margin: 0 0 0.28rem !important;
  font-size: 0.88rem;
  line-height: 1.52;
  color: #223445;
}

.kh-rec-basis {
  font-size: 0.8rem;
  color: #516373;
}

.kh-rec-note {
  margin: 0 0 0.25rem !important;
  font-size: 0.83rem;
  line-height: 1.45;
  color: #334759;
}

.kh-rec-alt-wrap {
  margin: 0 !important;
  line-height: 1.4;
}

.kh-rec-alt-link {
  display: inline-block;
  font-size: 0.83rem;
  font-weight: 700;
  color: #006494 !important;
  text-decoration: underline !important;
}

.kh-rec-alt-link:hover {
  color: #004d73 !important;
}

/* 上部ラインナップセクション (#kh-compare-start) */
.kh-lineup-section {
  margin: 0.25rem 0 1.85rem;
  scroll-margin-top: 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.kh-lineup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.entry-content .kh-lineup-section h2.kh-lineup-heading,
.kh-lineup-heading {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 1.08rem;
  font-weight: 800;
  color: #1d2f40;
  line-height: 1.35;
}

.kh-lineup-count {
  font-size: 0.77rem;
  color: #5a6a78;
}

/* コンパクト用途フィルタ */
.kh-lineup-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.kh-lineup-filters .kh-filter-btn {
  min-height: 38px;
  padding: 0.28rem 0.68rem;
  font-size: 0.78rem;
  border-color: #cbd9e6;
  color: #2b4257;
}

.kh-lineup-filters .kh-filter-btn.is-active,
.kh-lineup-filters .kh-filter-btn[aria-pressed="true"] {
  background: #0077ae;
  border-color: #0077ae;
  color: #ffffff;
}

.kh-lineup-filters .kh-filter-reset {
  min-height: 36px;
  padding: 0.22rem 0.6rem;
  font-size: 0.75rem;
}

.kh-lineup-price-guide {
  margin: 0 0 0.65rem !important;
  padding: 0.42rem 0.62rem;
  background: #f5f9fc;
  border: 1px solid #d9e6f2;
  border-radius: 6px;
  font-size: 0.83rem;
  line-height: 1.48;
  color: #213547;
}

/* 4列（PC） / 2列（タブレット600〜959px） / 1列（スマホ599px以下）カードグリッド */
.kh-lineup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: stretch;
}

.kh-lineup-card {
  background: #ffffff;
  border: 1px solid #e3ebf2;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(15, 35, 55, 0.05);
  padding: 0.62rem 0.55rem 0.52rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.42rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.kh-lineup-card.is-recommended {
  border-color: #7ab8d9;
  box-shadow: 0 2px 8px rgba(0, 119, 174, 0.09);
}

.kh-lineup-card[hidden] {
  display: none !important;
}

.kh-lineup-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-width: 0;
}

/* 揃った高さの写真・モデル表示枠 */
.kh-lineup-visual {
  height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.kh-lineup-img-box {
  width: 100%;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-content .kh-lineup-img-box img.kh-lineup-img,
.kh-lineup-img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin: 0;
  border: 0;
  box-shadow: none;
}

.kh-lineup-img-credit {
  margin: 0 !important;
  font-size: 0.64rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.kh-lineup-img-credit a {
  color: #5b6d7e !important;
  text-decoration: underline;
}

/* Anker用：実物写真と誤認させない淡色テキストパネル（同じ高さ） */
.kh-lineup-text-panel {
  width: 100%;
  height: 100%;
  background: #f5f8fb;
  border: 1px solid #e4ecf3;
  border-radius: 7px;
  padding: 0.45rem 0.4rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.16rem;
}

.kh-ltp-brand {
  font-size: 0.68rem;
  font-weight: 700;
  color: #5b6d7e;
  letter-spacing: 0.03em;
}

.kh-ltp-model {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1f3347;
  line-height: 1.25;
}

.kh-ltp-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4a5e70;
}

.kh-ltp-link {
  margin-top: 0.18rem;
  font-size: 0.69rem;
  font-weight: 700;
  color: #006494 !important;
  text-decoration: underline !important;
  line-height: 1.25;
}

/* メーカー・短い商品名/型番 */
.kh-lineup-title-block {
  min-width: 0;
}

.kh-lineup-maker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem 0.35rem;
}

.kh-lineup-maker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #607080;
  line-height: 1.25;
}

.kh-rec-badge {
  display: inline-block;
  padding: 0.08rem 0.38rem;
  border-radius: 4px;
  background: #0077ae;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.entry-content .kh-lineup-card h3.kh-lineup-name,
.kh-lineup-name {
  margin: 0.08rem 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
  color: #1b2d3e;
  overflow-wrap: anywhere;
}

.kh-lineup-subcode {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #4f6274;
  margin-left: 0.2rem;
}

/* 用途ひとことチップ */
.kh-lineup-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 0.12rem 0.48rem;
  border-radius: 4px;
  background: #eef5fb;
  color: #1f4e73;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.35;
}

/* 価格の目安＋価格種別 */
.kh-lineup-price {
  padding-top: 0.28rem;
  border-top: 1px solid #eef2f6;
  line-height: 1.3;
}

.kh-lineup-price-num {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: #1b2d3e;
  overflow-wrap: anywhere;
}

.kh-lineup-price-type {
  display: block;
  font-size: 0.68rem;
  color: #5c6d7d;
  margin-top: 0.08rem;
}

/* Amazon / 楽天市場 横並び同サイズボタン */
.kh-lineup-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.kh-lineup-ec-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.32rem;
}

.kh-lineup-ec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.25rem 0.2rem;
  border-radius: 6px;
  background: #0077ae;
  border: 1px solid #0077ae;
  color: #ffffff !important;
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.kh-lineup-ec-btn:hover {
  background: #005f8d;
  border-color: #005f8d;
  color: #ffffff !important;
}

.kh-lineup-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.22rem 0.35rem;
  border-radius: 5px;
  color: #006494 !important;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
  box-sizing: border-box;
}

.kh-lineup-more:hover {
  background: #f2f7fc;
  text-decoration: underline !important;
}

.kh-usb-anchor-link:focus-visible,
.kh-rec-alt-link:focus-visible,
.kh-lineup-ec-btn:focus-visible,
.kh-lineup-more:focus-visible,
.kh-detail-buy-btn:focus-visible {
  outline: 2px solid #004d73;
  outline-offset: 2px;
}

.kh-lineup-footnote {
  margin: 0.6rem 0 0 !important;
  font-size: 0.76rem;
  line-height: 1.5;
  color: #556575;
}

/* 中段セクション：「買う前に、ここだけ確認」 (#kh-buy-check) */
.kh-buy-check-section {
  margin: 1.5rem 0 1.75rem;
  padding: 0.95rem 1rem;
  background: #fbfdff;
  border: 1px solid #dbe7f2;
  border-radius: 10px;
  scroll-margin-top: 16px;
  box-sizing: border-box;
}

.entry-content .kh-buy-check-section h2.kh-sec-heading {
  margin: 0 0 0.85rem !important;
  padding: 0 0 0.4rem !important;
  border: 0 !important;
  border-bottom: 2px solid #0077ae !important;
  background: transparent !important;
  font-size: 1.08rem;
  font-weight: 800;
  color: #1c2f42;
}

.kh-buy-check-block {
  margin-bottom: 0.8rem;
}

.kh-buy-check-block:last-of-type {
  margin-bottom: 0.55rem;
}

.entry-content .kh-buy-check-section h3.kh-buy-check-sub,
.kh-buy-check-sub {
  margin: 0 0 0.28rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1a2e40;
  line-height: 1.4;
}

.kh-buy-check-text {
  margin: 0 !important;
  font-size: 0.88rem;
  line-height: 1.58;
  color: #243647;
}

.entry-content .kh-buy-check-section ul.kh-buy-check-list,
.kh-buy-check-list {
  margin: 0 !important;
  padding: 0 0 0 1.15rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: disc !important;
  font-size: 0.88rem;
  line-height: 1.58;
  color: #243647;
}

.kh-buy-check-list li {
  margin-bottom: 0.28rem;
}

.kh-buy-check-list a,
.kh-buy-check-text a {
  color: #006494 !important;
  font-weight: 700;
  text-decoration: underline !important;
}

.kh-buy-check-section .kh-details {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

/* 下部セクション：「違いと注意点を詳しく見る」 (#kh-details-section) */
.kh-details-section {
  margin: 1.75rem 0 1.85rem;
  padding-top: 1.25rem;
  border-top: 2px solid #e3ebf2;
  scroll-margin-top: 16px;
}

.entry-content .kh-details-section h2.kh-sec-heading,
.kh-sec-heading {
  margin: 0 0 1.1rem !important;
  padding: 0 0 0.45rem !important;
  border: 0 !important;
  border-bottom: 2px solid #0077ae !important;
  background: transparent !important;
  font-size: 1.14rem;
  font-weight: 800;
  color: #1c2f42;
}

.kh-model-detail {
  padding: 0.95rem 0 1.35rem;
  border-bottom: 1px solid #e5edf4;
  scroll-margin-top: 20px;
}

.kh-model-detail:last-of-type {
  border-bottom: 0;
}

.entry-content .kh-model-detail h3.kh-model-detail-title,
.kh-model-detail-title {
  margin: 0 0 0.25rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 1.02rem;
  font-weight: 800;
  color: #182c3f;
  line-height: 1.4;
}

.kh-model-detail-sub {
  margin: 0 0 0.6rem !important;
  font-size: 0.79rem;
  color: #5c6d7e;
}

.entry-content .kh-model-detail ul.kh-model-detail-list,
.kh-model-detail-list {
  margin: 0 0 0.8rem !important;
  padding: 0 0 0 1.15rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  list-style: disc !important;
  font-size: 0.87rem;
  line-height: 1.65;
  color: #263645;
}

.kh-model-detail-list li {
  margin-bottom: 0.35rem;
}

.kh-detail-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
}

.kh-detail-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.42rem 0.85rem;
  border-radius: 6px;
  background: #0077ae;
  border: 1px solid #0077ae;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.25;
}

.kh-detail-buy-btn:hover {
  background: #005f8d;
  border-color: #005f8d;
  color: #ffffff !important;
}

.kh-detail-buy-btn.is-sub {
  background: #ffffff;
  border-color: #6eb5dc;
  color: #006494 !important;
}

.kh-detail-buy-btn.is-sub:hover {
  background: #eef7fc;
  border-color: #0077ae;
  color: #004d73 !important;
}

@media (max-width: 959px) {
  .kh-lineup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

@media (max-width: 599px) {
  .kh-lineup-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .kh-lineup-card {
    padding: 0.85rem 0.9rem 0.75rem;
    gap: 0.55rem;
  }

  .kh-lineup-card-top {
    gap: 0.45rem;
  }

  .kh-lineup-visual {
    height: auto;
    width: 100%;
    gap: 0.28rem;
  }

  .kh-lineup-img-box {
    height: 150px;
    background: #f8fafc;
    border: 1px solid #e9f0f6;
    border-radius: 8px;
    padding: 5px 8px;
    box-sizing: border-box;
  }

  .entry-content .kh-lineup-img-box img.kh-lineup-img,
  .kh-lineup-img {
    height: 138px;
    width: 100%;
    object-fit: contain;
  }

  .kh-lineup-img-credit {
    font-size: 0.72rem;
  }

  .kh-lineup-text-panel {
    height: auto;
    min-height: 112px;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    gap: 0.22rem;
  }

  .kh-ltp-brand {
    font-size: 0.76rem;
  }

  .kh-ltp-model {
    font-size: 0.98rem;
  }

  .kh-ltp-code {
    font-size: 0.82rem;
  }

  .kh-ltp-link {
    margin-top: 0.22rem;
    font-size: 0.8rem;
  }

  .kh-lineup-maker {
    font-size: 12px;
  }

  .kh-rec-badge {
    font-size: 11.5px;
    padding: 0.12rem 0.48rem;
  }

  .entry-content .kh-lineup-card h3.kh-lineup-name,
  .kh-lineup-name {
    font-size: 16.5px;
    line-height: 1.35;
  }

  .kh-lineup-subcode {
    font-size: 14px;
  }

  .kh-lineup-chip {
    font-size: 12.5px;
    padding: 0.16rem 0.58rem;
  }

  .kh-lineup-price {
    padding-top: 0.38rem;
  }

  .kh-lineup-price-num {
    font-size: 17.5px;
  }

  .kh-lineup-price-type {
    font-size: 12.5px;
    margin-top: 0.12rem;
  }

  .kh-lineup-card-actions {
    gap: 0.38rem;
  }

  .kh-lineup-ec-row {
    gap: 0.5rem;
  }

  .kh-lineup-ec-btn {
    min-height: 46px;
    font-size: 14px;
    padding: 0.35rem 0.5rem;
  }

  .kh-lineup-more {
    min-height: 44px;
    font-size: 13.5px;
  }
}
