.compare-table-v2.osrm-compare-table {
    font-size: 11px;
}

.compare-table-v2.osrm-compare-table th,
.compare-table-v2.osrm-compare-table td {
    text-align: center;
    vertical-align: middle;
}

.compare-table-v2.osrm-compare-table .osrm-col-image img {
    display: block;
    width: auto;
    max-width: 100px;
    max-height: 100px;
    margin: 0 auto;
    object-fit: contain;
}


.compare-table-v2.osrm-compare-table .osrm-col-rank,
.compare-table-v2.osrm-compare-table .osrm-col-product {
    font-weight: 700;
}


/* =========================================================
 * v0.1.10 商品詳細テスト
 * 既存テーマ側の rank / spec-columns / point-* を優先する。
 * ========================================================= */

.osrm-product {
  margin: 0;
}

/* テスト中に旧商品詳細と併存しても、順位表示を実データに固定する */
.article .osrm-product h6.rank::before {
  counter-increment: none !important;
  content: attr(data-rank) "位" !important;
}

/* WordPressでS相当として扱いやすいサイズ。既存CSSを壊さない範囲で限定 */
.osrm-spec-table.has-small-font-size {
  font-size: 13px;
}

/* 商品詳細の2カラムは既存の point-compare に表示を任せる */
.osrm-points {
  margin-top: 32px;
  margin-bottom: 32px;
}



/* =========================================================
 * v0.1.13 比較表の配置確定
 * ヘッダーは全列中央、本文の商品名・詳細だけ左揃え。
 * ========================================================= */

.compare-table-v2.osrm-compare-table thead th,
.compare-table-v2.osrm-compare-table thead th.osrm-col-product,
.compare-table-v2.osrm-compare-table thead th.osrm-col-detail {
  text-align: center !important;
}

.compare-table-v2.osrm-compare-table tbody td.osrm-col-product,
.compare-table-v2.osrm-compare-table tbody td.osrm-col-detail {
  text-align: left !important;
}

/* 詳細内のPochippボタン群も左起点 */
.compare-table-v2.osrm-compare-table tbody td.osrm-col-detail .osrm-pochipp-buttons,
.compare-table-v2.osrm-compare-table tbody td.osrm-col-detail .pochipp-inline__btnwrap {
  text-align: left !important;
}

/* 比較表：ショップボタンはサイズ・色・間隔を変えず角丸のみ統一 */
.compare-table-v2.osrm-compare-table tbody td.osrm-col-detail .pochipp-inline__btn {
  border-radius: 4px !important;
}


/* =========================================================
 * v0.1.14 商品詳細：登録パターン準拠
 * ========================================================= */

/* メーカー名：12px / bold / #666666 */
.osrm-product .osrm-maker {
  margin: 0 0 14px !important;
  color: #666666 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}

/* 仕様表・ポイント欄の文字サイズは登録パターンの small を優先 */
.osrm-product .has-small-font-size {
  font-size: var(--wp--preset--font-size--small, 12px);
}

/* 登録パターン側の見た目を優先するため、OSRM独自の余計な装飾は追加しない */
.osrm-product .osrm-specs,
.osrm-product .osrm-points {
  width: 100%;
}


/* =========================================================
 * v0.1.15 商品詳細上部・外枠調整
 * ========================================================= */

/* 商品詳細全体：既存版に合わせた薄い外枠・角丸・内側余白 */
.osrm-ranking .osrm-product {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 20px 28px 18px !important;
  border: 1px solid #e2e2e2 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

/* メーカー名：既存版の 16px / 太字 / #666666 */


/* スコアボックス */


/* スマホは外枠内の余白を少し詰める */
@media screen and (max-width: 768px) {

  .osrm-ranking .osrm-product {
    padding: 16px 16px 14px !important;
    margin-bottom: 20px !important;
    border-radius: 7px !important;
  }

  

  

}


/* =========================================================
 * v0.1.16 商品詳細の余白・スコア微調整
 * ========================================================= */

/* おすすめポイント／もう一歩の下余白を縮小 */
.osrm-product .osrm-points {
  margin-bottom: 8px !important;
}

/* 総合スコア：既存版に近いサイズへ */


/* 各評価項目のラベルを茶系に */


/* 各評価スコアは赤系を維持 */


/* PC：ポイント2カラムの下余白を抑える */
@media screen and (min-width: 769px) {

  .osrm-product .point-compare {
    margin-bottom: 0 !important;
  }

}

/* モバイル：縦積み時の2ボックス間隔と末尾余白を縮小 */
@media screen and (max-width: 768px) {

  .osrm-product .point-compare {
    display: block !important;
    margin-bottom: 0 !important;
  }

  .osrm-product .point-compare > .wp-block-column {
    margin-bottom: 14px !important;
  }

  .osrm-product .point-compare > .wp-block-column:last-child {
    margin-bottom: 0 !important;
  }

}


/* =========================================================
 * v0.1.18 文字サイズ調整
 * ========================================================= */

/* 商品詳細：各評価点を少し大きく */


/*
 * 比較表：表セルだけ12px。
 * figure / figcaption には指定しないため、キャプションの既存サイズは維持する。
 */
.compare-table-v2.osrm-compare-table th,
.compare-table-v2.osrm-compare-table td {
  font-size: 11px !important;
}

/* 商品詳細仕様表：キャプションには影響させない */
.osrm-ranking .spec-columns table,
.osrm-ranking .spec-columns th,
.osrm-ranking .spec-columns td {
  font-size: 12px !important;
}


/* =========================================================
 * v0.1.24 商品名見出し
 * ========================================================= */

/* 順位ラベルは維持し、商品名見出しだけ少し小さくする */
.osrm-ranking .osrm-product-title {
  font-size: 20px !important;
  line-height: 1.45 !important;
}

/* スマホでは長いモデル名の折り返しを考慮してさらに少し抑える */
@media (max-width: 768px) {

  .osrm-ranking .osrm-product-title {
    font-size: 18px !important;
    line-height: 1.5 !important;
  }

}


/* =========================================================
 * v0.1.25 順位ラベル・商品名見出し
 * ========================================================= */

/* 既存h6.rankの文字サイズに依存せず、両方16pxに統一 */


/* 順位ラベルも16px */


/* v0.1.26 評価スコア間隔 */



/* v0.1.27: 評価スコアの横余白を根本調整 */


/* =========================================================
 * v1.0.0-rc5 商品紹介：総合スコア数値を太字化
 * 表示のみ。スコア値・記事本文・商品データには影響しない。
 * ========================================================= */



/* =========================================================
 * v1.0.0-rc6 商品紹介：総合スコア数値を確実に太字化
 * strong要素と組み合わせ、テーマ側のfont-weight指定より優先する。
 * ========================================================= */



/* =========================================================
 * v1.0.0-rc7 商品紹介：総合スコア数値
 * 既存の総合スコア表示と同じ赤色 + 太字。
 * ========================================================= */



/* =========================================================
 * v1.0.0-rc8 商品紹介：総合スコア数値
 * HTMLは元のspanのまま。ショートコード出力の既存クラスへ
 * CSSだけで太字＋総合スコア見出しと同じ最終赤色を適用。
 * ========================================================= */



/* v1.1.4-rc41: ASP/direct-link media */
.osrm-asp-media{margin:18px 0}
.osrm-asp-image{text-align:center;margin:0 auto 12px}
.osrm-asp-image img{max-width:100%;height:auto}
.osrm-asp-button{width:100%;margin:10px auto 0;text-align:center}
.osrm-asp-button>a{
  display:flex!important;width:100%!important;box-sizing:border-box!important;
  min-height:44px;align-items:center;justify-content:center;
  padding:10px 14px;text-decoration:none!important;font-weight:700;
  border-radius:4px;background:#49a942;color:#fff!important;
}
.osrm-asp-button>a img{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-image{margin:0;text-align:center}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-image img{max-width:120px;height:auto}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-button{margin:0;width:100%;text-align:center}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-button>a{
  min-height:34px;padding:7px 8px;font-size:13px;line-height:1.2;white-space:nowrap
}


/* v1.1.4-rc42: ASP button tone aligned with Cocoon-style primary green,
   and comparison-table sizing tuned independently from product detail. */
.osrm-asp-button>a{
  background:#3cb371!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:4px!important;
}
.osrm-asp-button>a:hover{
  background:#35a566!important;
  color:#fff!important;
  opacity:1!important;
}
/* v1.1.4-rc44: detail image/button spacing */
.osrm-asp-detail-media .osrm-asp-detail-image{
  margin-bottom:24px!important;
}
.osrm-asp-detail-media .osrm-asp-detail-button{
  margin-top:0!important;
}
@media (max-width: 767px) {

  .osrm-asp-detail-media .osrm-asp-detail-image{
    margin-bottom:20px!important;
  }

}


/* v1.1.4-rc52: article 2874 comparison-only tuning.
   One clean rule set; no stacked rc49-rc51 image overrides.
   Other articles' established comparison CSS is untouched. */
.compare-table-v2.osrm-compare-table.osrm-article-2874 th.osrm-col-image,
.compare-table-v2.osrm-compare-table.osrm-article-2874 td.osrm-col-image{
  width:110px!important;
  min-width:110px!important;
  max-width:110px!important;
  box-sizing:border-box!important;
}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-image{
  width:90px!important;
  max-width:90px!important;
  height:auto!important;
  margin:0 auto!important;
  text-align:center!important;
  overflow:visible!important;
}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-image a{
  display:block!important;
  width:auto!important;
  max-width:90px!important;
  height:auto!important;
  margin:0 auto!important;
}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-image img{
  display:block!important;
  width:auto!important;
  max-width:90px!important;
  height:auto!important;
  max-height:none!important;
  margin:0 auto!important;
  object-fit:contain!important;
}
.compare-table-v2.osrm-compare-table.osrm-article-2874 th.osrm-col-detail,
.compare-table-v2.osrm-compare-table.osrm-article-2874 td.osrm-col-detail{
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;
  box-sizing:border-box!important;
  text-align:center!important;
}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-button{
  width:180px!important;
  max-width:180px!important;
  min-width:0!important;
  margin:0 auto!important;
  text-align:center!important;
}
.compare-table-v2.osrm-compare-table .osrm-asp-compare-button>a{
  width:100%!important;
  min-height:46px!important;
  padding:10px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
@media (max-width:767px) {

  .compare-table-v2.osrm-compare-table.osrm-article-2874 th.osrm-col-image,
  .compare-table-v2.osrm-compare-table.osrm-article-2874 td.osrm-col-image{
    width:90px!important;
    min-width:90px!important;
    max-width:90px!important;
  }
  .compare-table-v2.osrm-compare-table .osrm-asp-compare-image{
    width:72px!important;
    max-width:72px!important;
  }
  .compare-table-v2.osrm-compare-table .osrm-asp-compare-image a,
  .compare-table-v2.osrm-compare-table .osrm-asp-compare-image img{
    max-width:72px!important;
    width:auto!important;
    height:auto!important;
    max-height:none!important;
  }
  .compare-table-v2.osrm-compare-table.osrm-article-2874 th.osrm-col-detail,
  .compare-table-v2.osrm-compare-table.osrm-article-2874 td.osrm-col-detail{
    width:180px!important;
    min-width:180px!important;
    max-width:180px!important;
  }
  .compare-table-v2.osrm-compare-table .osrm-asp-compare-button{
    width:150px!important;
    max-width:150px!important;
  }

}

/* v1.1.4-rc48: ASP product-detail button thickness only.
   Comparison-table buttons are not changed. */
.osrm-asp-detail-media .osrm-asp-detail-button>a{
  min-height:52px!important;
  padding:12px 16px!important;
  font-size:16px!important;
  line-height:1.35!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
}
@media (max-width:767px) {

  .osrm-asp-detail-media .osrm-asp-detail-button>a{
    min-height:50px!important;
    padding:11px 14px!important;
  }

}

/* v1.1.6-rc1: common ASP comparison button width.
   Uses the approved 2874 ASP comparison sizing for all ASP comparison buttons; vertical size unchanged. */
@media (min-width:768px) {

  .compare-table-v2.osrm-compare-table .osrm-asp-compare-button{
    width:160px!important;
    max-width:160px!important;
  }

}

/* v1.1.6-rc2: 2874-approved ASP comparison cell sizing, common to every ASP table. */
.compare-table-v2.osrm-compare-table.osrm-has-asp th.osrm-col-image,
.compare-table-v2.osrm-compare-table.osrm-has-asp td.osrm-col-image{
  width:110px!important;
  min-width:110px!important;
  max-width:110px!important;
  box-sizing:border-box!important;
}
.compare-table-v2.osrm-compare-table.osrm-has-asp th.osrm-col-detail,
.compare-table-v2.osrm-compare-table.osrm-has-asp td.osrm-col-detail{
  width:220px!important;
  min-width:220px!important;
  max-width:220px!important;
  box-sizing:border-box!important;
  text-align:center!important;
}
@media (max-width:767px) {

  .compare-table-v2.osrm-compare-table.osrm-has-asp th.osrm-col-image,
  .compare-table-v2.osrm-compare-table.osrm-has-asp td.osrm-col-image{
    width:90px!important;
    min-width:90px!important;
    max-width:90px!important;
  }
  .compare-table-v2.osrm-compare-table.osrm-has-asp th.osrm-col-detail,
  .compare-table-v2.osrm-compare-table.osrm-has-asp td.osrm-col-detail{
    width:180px!important;
    min-width:180px!important;
    max-width:180px!important;
  }

}

/* v1.1.12: maker label visual adjustment only.
   Keep all existing CSS rules and media queries intact. */


/* =========================================================
 * v1.1.40 商品詳細・総合評価 UI 統合版
 * 旧スコア関連の重複指定を整理し、このブロックへ集約。
 * ========================================================= */

/* 商品詳細上部 */
.osrm-ranking .osrm-product .osrm-maker {
  margin: 0 0 8px !important;
  color: #777 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: .01em !important;
}

.osrm-ranking .osrm-product h6.rank,
.osrm-ranking .osrm-product h6[class*="rank"] {
  margin-bottom: 14px !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

/* スコア面：薄い背景のみ。枠線なし */
.osrm-ranking .osrm-product .osrm-score-box {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 12px 14px !important;
  background: #fafaf8 !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.osrm-ranking .osrm-product .osrm-score-total {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 0 8px !important;
  line-height: 1.35 !important;
}

.osrm-ranking .osrm-product .osrm-score-total-label {
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.osrm-ranking .osrm-product .osrm-score-total-number {
  display: inline !important;
  margin-left: 1px !important;
  color: #e85d2a !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* フォント非依存の角が明確な五角星 */
.osrm-sharp-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.osrm-sharp-star {
  position: relative !important;
  display: inline-block !important;
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  background: #dedede !important;
  clip-path: polygon(50% 0%,61.8% 35.1%,100% 35.1%,69.1% 57.3%,80.9% 94.5%,50% 72.4%,19.1% 94.5%,30.9% 57.3%,0% 35.1%,38.2% 35.1%) !important;
  -webkit-clip-path: polygon(50% 0%,61.8% 35.1%,100% 35.1%,69.1% 57.3%,80.9% 94.5%,50% 72.4%,19.1% 94.5%,30.9% 57.3%,0% 35.1%,38.2% 35.1%) !important;
  overflow: hidden !important;
}

.osrm-sharp-star::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: var(--osrm-star-fill, 0%) !important;
  height: 100% !important;
  background: #e85d2a !important;
}

/* 商品詳細：総合だけ5つ星。個別評価は従来の ★4.8 形式 */
.osrm-ranking .osrm-product .osrm-score-total-stars {
  display: inline-flex !important;
  align-items: center !important;
}

.osrm-ranking .osrm-product .osrm-score-items {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px 0 !important;
  line-height: 1.5 !important;
}

.osrm-ranking .osrm-product .osrm-score-item {
  white-space: nowrap !important;
  font-size: 13px !important;
}

.osrm-ranking .osrm-product .osrm-score-label {
  margin-right: 3px !important;
  color: #686b69 !important;
  font-weight: 400 !important;
}

.osrm-ranking .osrm-product .osrm-score-value {
  color: #686b69 !important;
  font-weight: 600 !important;
  font-family: inherit !important;
}

.osrm-ranking .osrm-product .osrm-score-separator {
  display: inline-block !important;
  margin: 0 4px !important;
  color: #d1d3d1 !important;
  font-weight: 400 !important;
}

/* 比較表：総合点を上、赤い五角星を下に表示 */
body .compare-table-v2.osrm-compare-table td.osrm-col-overall {
  text-align: center !important;
}

body .compare-table-v2.osrm-compare-table td.osrm-col-overall .osrm-sharp-rating-number {
  display: block !important;
  margin: 0 0 4px !important;
  color: #e85d2a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

body .compare-table-v2.osrm-compare-table td.osrm-col-overall .osrm-sharp-rating {
  display: inline-flex !important;
  justify-content: center !important;
  margin: 0 !important;
  gap: 1px !important;
  vertical-align: top !important;
}

body .compare-table-v2.osrm-compare-table td.osrm-col-overall .osrm-sharp-star {
  width: 12px !important;
  height: 12px !important;
  flex: 0 0 12px !important;
}

body .compare-table-v2.osrm-compare-table td.osrm-col-overall .osrm-sharp-star::before {
  background: #e85d2a !important;
}

@media screen and (max-width: 768px) {
  .osrm-ranking .osrm-product .osrm-maker {
    margin-bottom: 7px !important;
    font-size: 11px !important;
  }

  .osrm-ranking .osrm-product h6.rank,
  .osrm-ranking .osrm-product h6[class*="rank"] {
    margin-bottom: 12px !important;
    font-size: 16px !important;
  }

  .osrm-ranking .osrm-product .osrm-score-box {
    margin-bottom: 20px !important;
    padding: 11px 12px !important;
  }

  .osrm-ranking .osrm-product .osrm-score-total {
    margin-bottom: 6px !important;
  }

  .osrm-ranking .osrm-product .osrm-score-total-label {
    font-size: 13px !important;
  }

  .osrm-ranking .osrm-product .osrm-score-total-number {
    font-size: 16px !important;
  }

  .osrm-ranking .osrm-product .osrm-score-total-stars .osrm-sharp-star {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }

  body .osrm-ranking .osrm-product .osrm-score-items {
    display: block !important;
    margin-top: 7px !important;
  }

  body .osrm-ranking .osrm-product .osrm-score-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #ecece7 !important;
  }

  body .osrm-ranking .osrm-product .osrm-score-item:last-child {
    border-bottom: none !important;
  }

  body .osrm-ranking .osrm-product .osrm-score-label {
    margin: 0 !important;
    color: #686b69 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
  }

  body .osrm-ranking .osrm-product .osrm-score-value {
    margin: 0 !important;
    color: #686b69 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body .osrm-ranking .osrm-product .osrm-score-separator {
    display: none !important;
  }

  body .compare-table-v2.osrm-compare-table td.osrm-col-overall .osrm-sharp-rating-number {
    margin-bottom: 3px !important;
    color: #e85d2a !important;
    font-size: 11px !important;
  }

  body .compare-table-v2.osrm-compare-table td.osrm-col-overall .osrm-sharp-star {
    width: 11px !important;
    height: 11px !important;
    flex: 0 0 11px !important;
  }
}

