/* =========================================================
   Affiliate Card Blocks — card.css
   確定デザイン（ダーク/ライト × アクセント可変）
   ========================================================= */
.afc-card{
  --afc-accent:#f5a623;
  --afc-radius:20px;
  position:relative;
  box-sizing:border-box;
  border-radius:var(--afc-radius);
  padding:26px 32px 30px;
  max-width:720px;
  margin:1.6em auto;
  /* 日本語を先に指定する（欧文フォントを先頭に置くと、Windowsで英数字だけSegoe UI・かなはメイリオ…と混ざる）
     Mac:ヒラギノ角ゴ / Windows:BIZ UDPゴシック→游ゴシック Medium→メイリオ / Android等:Noto Sans JP */
  --afc-font:"Hiragino Sans","Hiragino Kaku Gothic ProN","BIZ UDPGothic","Yu Gothic Medium","YuGothic","Meiryo","Noto Sans JP","Noto Sans CJK JP",sans-serif;
  font-family:var(--afc-font);
  font-size:15px;
  line-height:1.7;
  letter-spacing:.02em;
  line-break:strict;          /* 行頭に「ー」「っ」などが来ないように */
  overflow-wrap:break-word;   /* 長い型番・URLではみ出さない（幅計算には影響させない） */
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
/* サイトのフォントに合わせる（設定画面で選択） */
.afc-card.afc-font-inherit{ font-family:inherit; }
.afc-card *{ box-sizing:border-box; }

.afc-card__title{
  /* テーマ依存を排除：見出しスタイルを一旦リセットしてから独自指定 */
  all:unset;
  display:block;
  box-sizing:border-box;
  font-family:inherit;
  font-size:23px !important;
  font-weight:700 !important;
  letter-spacing:.01em;
  line-height:1.3 !important;
  margin:0 0 16px !important;
  padding:0 !important;
  border:0 !important;
  background:none !important;
  text-align:left !important;
  font-style:normal !important;
  text-transform:none !important;
  text-shadow:none !important;
  white-space:normal !important;
}
.afc-card__title::before,
.afc-card__title::after{ content:none !important; display:none !important; }
/* 見出しは字詰め（palt）で締まった印象に。対応ブラウザでは文節で改行 */
.afc-card__title{ font-feature-settings:"palt" 1; letter-spacing:.03em; word-break:normal; }
@supports (word-break:auto-phrase){ .afc-card__title{ word-break:auto-phrase; } }
.afc-btn__label, .afc-badge, .afc-micro{ font-feature-settings:"palt" 1; }
.afc-price__amount, .afc-rating__num{ font-variant-numeric:lining-nums tabular-nums; letter-spacing:0; }
.afc-card__divider{ height:1px; border:0; margin:0 0 24px; }

.afc-card__body{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:30px;
  align-items:start;
}

/* 左:画像＋★ */
.afc-card__imgbox{
  border-radius:14px; overflow:hidden; aspect-ratio:1/1;
  display:flex; align-items:center; justify-content:center;
}
.afc-card__imgbox img{ width:100%; height:100%; object-fit:cover; display:block; }
.afc-card__rating{ display:flex; align-items:center; gap:10px; margin-top:16px; }
.afc-stars{ position:relative; display:inline-block; font-size:26px; letter-spacing:3px; line-height:1; }
.afc-stars__bg{ color:rgba(150,150,150,.35); }
.afc-stars__fill{
  position:absolute; top:0; left:0; overflow:hidden; white-space:nowrap;
  color:var(--afc-accent);
}
.afc-rating__num{ font-size:18px; font-weight:700; }
.afc-rating__max{ font-size:13px; opacity:.55; font-weight:600; }

/* 右:スペック表 */
.afc-specs{ width:100%; }
.afc-spec-row{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:13px 2px;
}
.afc-spec-row + .afc-spec-row{ border-top:1px solid; }
.afc-spec__key{ font-size:14px; font-weight:700; flex-shrink:0; }
.afc-spec__val{ font-size:14px; text-align:right; font-weight:600; }
.afc-spec__val--accent{ color:var(--afc-accent); font-weight:700; }
.afc-spec__val--muted{ opacity:.6; font-weight:500; }
/* スペック表の「すべて見る」（v2.18.0） */
.afc-specs__more{ margin:0; border-top:1px solid rgba(127,127,127,.22); }
.afc-specs__toggle{ display:flex; align-items:center; justify-content:center; gap:4px; min-height:44px; cursor:pointer; list-style:none; font-size:13px; font-weight:700; color:var(--afc-accent); }
.afc-specs__toggle::-webkit-details-marker{ display:none; }
.afc-specs__toggle::after{ content:"▾"; font-size:12px; }
.afc-specs__more[open] > .afc-specs__toggle::after{ content:"▴"; }
.afc-specs__toggle:focus-visible{ outline:3px solid #ffbf47; outline-offset:2px; border-radius:6px; }
.afc-specs__close{ display:none; }
.afc-specs__more[open] > .afc-specs__toggle .afc-specs__open{ display:none; }
.afc-specs__more[open] > .afc-specs__toggle .afc-specs__close{ display:inline; }
.afc-specs__more > .afc-spec-row:first-of-type{ border-top:1px solid rgba(127,127,127,.22); }
.afc-theme-light .afc-specs__toggle{ color:#3a4049; }   /* 白地ではアクセント色（オレンジなど）だと文字が薄いので濃いグレーに */
.afc-theme-light .afc-specs__toggle .afc-specs__open,.afc-theme-light .afc-specs__toggle .afc-specs__close{ text-decoration:underline; text-underline-offset:3px; }

/* モール別ボタン */
.afc-buttons{ margin-top:26px; display:grid; gap:12px; }
.afc-btn{
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding:14px 12px; border-radius:11px;
  font-size:14px; font-weight:700;
  text-decoration:none; color:#fff !important;
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
  box-shadow:0 2px 6px rgba(0,0,0,.12);
}
.afc-btn:hover{ transform:translateY(-2px); filter:brightness(1.06); box-shadow:0 6px 16px rgba(0,0,0,.18); }
.afc-btn__arrow{ font-size:13px; opacity:.85; }
/* v2.7.2 価格・最安・矢印はひとまとまりで折り返す（「›」だけが次の行に落ちないように） */
.afc-btn__tail{ display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.afc-btn--amazon{ background:#f0a02a; }
.afc-btn--rakuten{ background:#c9252c; }
.afc-btn--yahoo{ background:#2e7df6; }
.afc-btn--custom{ background:#14b8a6; }

/* キラッと光沢が横切るエフェクト */
.afc-btn--shine{ position:relative; overflow:hidden; }
.afc-btn--shine::after{
  content:""; position:absolute; top:0; left:-75%;
  width:50%; height:100%;
  background:linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 100%);
  transform:skewX(-20deg);
  animation:afc-shine 3.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes afc-shine{
  0%   { left:-75%; }
  18%  { left:125%; }
  100% { left:125%; }
}
@media(prefers-reduced-motion:reduce){
  .afc-btn--shine::after{ animation:none; opacity:0; }
}

/* ボタンセル（マイクロコピー＋ボタン＋クーポン） */
.afc-buttons{ align-items:stretch; }
.afc-btncell{ display:flex; flex-direction:column; gap:7px; }
/* マイクロコピーの有無でボタン位置がずれないよう、ボタンを下寄せ・マイクロ部を上に押し出す */
.afc-btncell .afc-btn{ margin-top:auto; }

/* マイクロコピー（ボタン上の煽り文）＼おすすめ／ */
.afc-micro{
  display:block; text-align:center;
  font-size:12px; font-weight:700; line-height:1.2;
  margin-bottom:-1px;
}
.afc-micro--amazon{ color:#e08a12; }
.afc-micro--rakuten{ color:#c9252c; }
.afc-micro--yahoo{ color:#2e7df6; }
.afc-micro--custom{ color:#14b8a6; }
.afc-theme-dark .afc-micro--amazon{ color:#f0a02a; }
@keyframes afc-blink{ 0%,100%{opacity:1;} 50%{opacity:.25;} }
.afc-micro--blink{ animation:afc-blink 1.2s ease-in-out infinite; }
@media(prefers-reduced-motion:reduce){ .afc-micro--blink{ animation:none; } }

/* クーポンチップ */
.afc-coupon{
  display:flex; align-items:center; gap:7px;
  width:100%; padding:8px 10px;
  border:1px dashed currentColor; border-radius:9px;
  background:transparent; cursor:pointer;
  font-family:inherit; font-size:12px; font-weight:700;
  transition:background .12s ease, transform .12s ease;
}
.afc-coupon:hover{ transform:translateY(-1px); }
.afc-coupon:active{ transform:translateY(0); }
.afc-coupon__tag{
  font-size:11px; font-weight:700; letter-spacing:.04em;
  padding:2px 6px; border-radius:4px; color:#fff; flex-shrink:0;
}
.afc-coupon__code{
  flex:1; text-align:left; font-family:ui-monospace,"SFMono-Regular",Consolas,Menlo,"BIZ UDGothic",monospace;
  font-size:13px; letter-spacing:.02em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.afc-coupon__action{ font-size:11px; opacity:.7; flex-shrink:0; }
.afc-coupon__left{
  font-size:11px; font-weight:700; flex-shrink:0;
  padding:2px 7px; border-radius:999px;
  background:var(--afc-accent); color:#fff;
}
.afc-coupon.is-copied .afc-coupon__action{ opacity:1; }

/* チップのモール別アクセント（タグ背景） */
.afc-coupon--amazon{ color:#c77b16; } .afc-coupon--amazon .afc-coupon__tag{ background:#f0a02a; }
.afc-coupon--rakuten{ color:#c9252c; } .afc-coupon--rakuten .afc-coupon__tag{ background:#c9252c; }
.afc-coupon--yahoo{ color:#2e7df6; } .afc-coupon--yahoo .afc-coupon__tag{ background:#2e7df6; }
.afc-coupon--custom{ color:#14b8a6; } .afc-coupon--custom .afc-coupon__tag{ background:#14b8a6; }

/* ダーク/ライトでのチップ可読性 */
.afc-theme-dark .afc-coupon{ background:rgba(255,255,255,.04); }
.afc-theme-dark .afc-coupon__code{ color:#f2f2f3; }
.afc-theme-light .afc-coupon{ background:rgba(20,30,50,.02); }
.afc-theme-light .afc-coupon__code{ color:#1f2329; }

/* クーポンが他ボタンにあるとき、無いボタンの下に同じ高さの空きを確保して揃える */
.afc-coupon-spacer{ display:block; height:37px; }

/* コピー完了トースト */
.afc-toast{
  position:fixed; left:50%; bottom:32px; transform:translateX(-50%) translateY(20px);
  background:#1c1c1e; color:#fff; padding:11px 20px; border-radius:10px;
  font-size:14px; font-weight:600; z-index:99999; opacity:0; pointer-events:none;
  box-shadow:0 8px 30px rgba(0,0,0,.3); transition:opacity .2s ease, transform .2s ease;
}
.afc-toast.is-show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* テーマ:ダーク */
.afc-theme-dark{
  background:#1c1c1e; color:#f2f2f3;
  box-shadow:0 14px 40px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.06);
}
.afc-theme-dark .afc-card__title{ color:#f2f2f3 !important; }
.afc-theme-dark .afc-card__divider{ background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.04)); }
.afc-theme-dark .afc-card__imgbox{ background:#cfcfcf; }
.afc-theme-dark .afc-spec-row + .afc-spec-row{ border-color:rgba(255,255,255,.10); }
.afc-theme-dark .afc-spec__key{ color:#f2f2f3; }
.afc-theme-dark .afc-spec__val{ color:#e7e7e9; }
.afc-theme-dark .afc-spec__val--accent{ color:var(--afc-accent); }
.afc-theme-dark .afc-spec__val--muted{ color:#e7e7e9; opacity:.55; }

/* テーマ:ライト */
.afc-theme-light{
  background:#ffffff; color:#1f2329;
  box-shadow:0 10px 32px rgba(20,30,50,.10), inset 0 0 0 1px rgba(20,30,50,.06);
}
.afc-theme-light .afc-card__title{ color:#1f2329 !important; }
.afc-theme-light .afc-card__divider{ background:linear-gradient(90deg,rgba(20,30,50,.16),rgba(20,30,50,.03)); }
.afc-theme-light .afc-card__imgbox{ background:#f1f2f4; }
.afc-theme-light .afc-spec-row + .afc-spec-row{ border-color:rgba(20,30,50,.08); }
.afc-theme-light .afc-spec__key{ color:#1f2329; }
.afc-theme-light .afc-spec__val{ color:#3a4049; }
.afc-theme-light .afc-spec__val--accent{ color:var(--afc-accent); }
.afc-theme-light .afc-spec__val--muted{ color:#3a4049; opacity:.55; }

/* レスポンシブ */
@media(max-width:560px){
  .afc-card{ padding:24px 20px; }
  .afc-card__body{ grid-template-columns:1fr; gap:22px; }
  .afc-card__media{ max-width:280px; margin:0 auto; }
  .afc-buttons{ grid-template-columns:1fr !important; }
  /* 1列のときは高さ揃え用の空きが「ただの隙間」になるので消す */
  .afc-coupon-spacer{ display:none; }
}

@media(prefers-reduced-motion:reduce){
  .afc-btn{ transition:none; }
  .afc-btn:hover{ transform:none; }
}

/* =========================================================
   バッジ（左上）
   ========================================================= */
.afc-badge{
  position:absolute; top:-10px; left:20px; z-index:2;
  background:var(--afc-accent); color:#fff;
  font-size:12px; font-weight:700; letter-spacing:.02em;
  padding:5px 14px; border-radius:999px;
  box-shadow:0 3px 10px rgba(0,0,0,.25);
}

/* =========================================================
   PR表記
   ========================================================= */
.afc-pr{
  margin:14px 0 0; text-align:right;
  font-size:11px; line-height:1.4;
}
.afc-theme-dark .afc-pr{ color:rgba(255,255,255,.45); }
.afc-theme-light .afc-pr{ color:rgba(20,30,50,.4); }

/* =========================================================
   コンパクトレイアウト（画像＋タイトル＋ボタンのみ）
   ========================================================= */
.afc-layout-compact .afc-card__body{ display:grid; grid-template-columns:140px 1fr; gap:18px; align-items:center; }
.afc-layout-compact .afc-card__media{ max-width:140px; }
.afc-layout-compact .afc-card__imgbox{ aspect-ratio:16/10; }
.afc-layout-compact .afc-compact-side{ display:flex; flex-direction:column; justify-content:center; gap:8px; min-width:0; }
.afc-layout-compact .afc-buttons{ margin-top:18px; }
.afc-card__title--compact{ font-size:18px !important; margin:0 !important; }
/* コンパクト：価格の注記を金額の右横にインライン表示 */
.afc-layout-compact .afc-price{ margin-top:0; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.afc-layout-compact .afc-price__amount{ font-size:22px; }
.afc-layout-compact .afc-price__note{ display:inline; margin-top:0; }
@media(max-width:560px){
  .afc-layout-compact .afc-card__body{ grid-template-columns:96px 1fr; gap:14px; }
  .afc-card__title--compact{ font-size:16px !important; }
}

/* 価格表示 */
.afc-price{ margin-top:14px; }
.afc-price__amount{ font-size:24px; font-weight:700; letter-spacing:.01em; }
.afc-price__note{ display:block; font-size:11px; opacity:.55; margin-top:2px; font-weight:500; }
.afc-theme-dark .afc-price__amount{ color:#fff; }
.afc-theme-light .afc-price__amount{ color:#1f2329; }
.afc-layout-compact .afc-price{ margin-top:0; }

/* =========================================================
   画像の比率・表示方法（ASPバナー等の非正方形画像に対応）
   ========================================================= */
.afc-card__imgbox.afc-ar-1-1{ aspect-ratio:1/1; }
.afc-card__imgbox.afc-ar-4-3{ aspect-ratio:4/3; }
.afc-card__imgbox.afc-ar-16-9{ aspect-ratio:16/9; }

/* 切り抜き（デフォルト）: 枠いっぱいに広げ、はみ出しはトリミング */
.afc-card__imgbox.afc-fit-cover img{ object-fit:cover; }
/* 全体表示: 画像全体が枠内に収まる（ASPバナーの文字が切れない） */
.afc-card__imgbox.afc-fit-contain img{ object-fit:contain; }
/* 全体表示のときは余白が目立たないよう背景を淡く */
.afc-theme-dark .afc-card__imgbox.afc-fit-contain{ background:#f4f4f5; }
.afc-theme-light .afc-card__imgbox.afc-fit-contain{ background:#fff; box-shadow:inset 0 0 0 1px rgba(20,30,50,.06); }

/* コンパクト版は指定比率を優先（従来の16/10固定を上書き） */
.afc-layout-compact .afc-card__imgbox.afc-ar-1-1{ aspect-ratio:1/1; }
.afc-layout-compact .afc-card__imgbox.afc-ar-4-3{ aspect-ratio:4/3; }
.afc-layout-compact .afc-card__imgbox.afc-ar-16-9{ aspect-ratio:16/9; }

/* =========================================================
   画像／タイトルのリンク化
   ========================================================= */
.afc-imglink{ display:block; width:100%; height:100%; text-decoration:none; color:inherit; }
.afc-card__imgbox .afc-imglink img{ transition:transform .25s ease; }
.afc-card__imgbox:hover .afc-imglink img{ transform:scale(1.04); }
/* 画像がリンクのときだけカーソルとわずかな反応を出す */
.afc-card__imgbox:has(.afc-imglink){ cursor:pointer; }
/* タイトルリンクは見た目そのまま、下線はホバー時のみ */
.afc-card__title .afc-imglink{ display:inline; color:inherit !important; text-decoration:none; }
.afc-card__title .afc-imglink:hover{ text-decoration:underline; text-underline-offset:3px; }

/* =========================================================
   期間限定テーマ：ブラックフライデー（黒 × ゴールド）
   .afc-cmp-bf が付いている間だけ有効。ダーク/ライトどちらのカードも上書きする。
   ========================================================= */
.afc-card.afc-cmp-bf{
  --afc-accent:#e3b84a;
  --afc-gold:linear-gradient(135deg,#8a6a1f 0%,#e9c766 30%,#fff1b8 46%,#d4a63a 62%,#7d5a14 100%);
  --afc-gold-text:#f0d27a;
  --afc-gold-line:rgba(227,184,74,.28);
  color:#f3efe6;
  border:1.5px solid transparent;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(233,199,102,.14) 0%, rgba(233,199,102,0) 55%) padding-box,
    radial-gradient(90% 70% at 0% 100%, rgba(233,199,102,.07) 0%, rgba(233,199,102,0) 60%) padding-box,
    linear-gradient(#0b0b0c,#0b0b0c) padding-box,
    var(--afc-gold) border-box;
  box-shadow:0 18px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.6), 0 0 32px rgba(227,184,74,.12);
}

/* タイトルは金のグラデーション文字 */
.afc-card.afc-cmp-bf .afc-card__title{
  background:var(--afc-gold) !important;
  -webkit-background-clip:text !important; background-clip:text !important;
  color:transparent !important; -webkit-text-fill-color:transparent;
}
.afc-card.afc-cmp-bf .afc-card__title .afc-imglink{ -webkit-text-fill-color:transparent; }
.afc-card.afc-cmp-bf .afc-card__divider{ background:linear-gradient(90deg,rgba(227,184,74,.75),rgba(227,184,74,.08)); }

/* 画像まわり（商品写真が沈まないよう、背景はあたたかい明色） */
.afc-card.afc-cmp-bf .afc-card__imgbox{ background:#f3efe6; box-shadow:0 0 0 1px rgba(227,184,74,.45); }
.afc-card.afc-cmp-bf .afc-card__imgbox.afc-fit-contain{ background:#faf8f3; }

/* ★・価格・スペック */
.afc-card.afc-cmp-bf .afc-stars__bg{ color:rgba(227,184,74,.22); }
.afc-card.afc-cmp-bf .afc-rating__num,
.afc-card.afc-cmp-bf .afc-price__amount{ color:var(--afc-gold-text) !important; }
.afc-card.afc-cmp-bf .afc-price__note,
.afc-card.afc-cmp-bf .afc-rating__max{ color:#bdb4a0; opacity:1; }
.afc-card.afc-cmp-bf .afc-spec-row + .afc-spec-row{ border-color:var(--afc-gold-line); }
.afc-card.afc-cmp-bf .afc-spec__key{ color:#f3efe6; }
.afc-card.afc-cmp-bf .afc-spec__val{ color:#e4ddcc; }
.afc-card.afc-cmp-bf .afc-spec__val--accent{ color:var(--afc-gold-text); }
.afc-card.afc-cmp-bf .afc-spec__val--muted{ color:#e4ddcc; opacity:.5; }

/* バッジ：金地に黒文字 */
.afc-card.afc-cmp-bf .afc-badge{ background:var(--afc-gold); color:#1a1406; box-shadow:0 3px 12px rgba(227,184,74,.35); }

/* 右上のリボン（ふだんは非表示） */
.afc-cmp-ribbon{ display:none; }
.afc-card.afc-cmp-bf .afc-cmp-ribbon--bf{
  display:block; position:absolute; top:-11px; right:20px; z-index:2;
  padding:5px 14px; border-radius:999px;
  font-size:11px; font-weight:700; letter-spacing:.16em; line-height:1.4;
  color:#1a1406; background:var(--afc-gold); background-size:220% 100%;
  box-shadow:0 4px 14px rgba(0,0,0,.4), 0 0 0 1px rgba(255,241,184,.35) inset;
  animation:afc-gold-sheen 4s ease-in-out infinite;
  white-space:nowrap; max-width:calc(100% - 40px); overflow:hidden; text-overflow:ellipsis;
}
@keyframes afc-gold-sheen{ 0%,100%{ background-position:0% 50%; } 50%{ background-position:100% 50%; } }

/* 購入ボタン：モール色はそのまま（どこのボタンか分かるように）、金の縁取りで統一感 */
.afc-card.afc-cmp-bf .afc-btn{
  box-shadow:inset 0 0 0 1px rgba(255,241,184,.55), 0 4px 14px rgba(0,0,0,.5);
}
.afc-card.afc-cmp-bf .afc-btn:hover{ box-shadow:inset 0 0 0 1px rgba(255,241,184,.85), 0 8px 22px rgba(227,184,74,.25); }
/* 先頭のボタンには金色の光沢を自動で流す */
.afc-card.afc-cmp-bf .afc-btncell:first-child .afc-btn{ position:relative; overflow:hidden; }
.afc-card.afc-cmp-bf .afc-btncell:first-child .afc-btn::after{
  content:""; position:absolute; top:0; left:-75%; width:50%; height:100%;
  background:linear-gradient(120deg,rgba(255,241,184,0) 0%,rgba(255,241,184,.6) 50%,rgba(255,241,184,0) 100%);
  transform:skewX(-20deg); animation:afc-shine 3.2s ease-in-out infinite; pointer-events:none;
}
.afc-card.afc-cmp-bf .afc-micro{ color:var(--afc-gold-text) !important; }

/* クーポン：金の点線 */
.afc-card.afc-cmp-bf .afc-coupon{ color:#e3b84a; background:rgba(227,184,74,.06); }
.afc-card.afc-cmp-bf .afc-coupon__tag{ background:var(--afc-gold); color:#1a1406; }
.afc-card.afc-cmp-bf .afc-coupon__code{ color:#f3efe6; }
.afc-card.afc-cmp-bf .afc-coupon__left{ background:#e3b84a; color:#1a1406; }

.afc-card.afc-cmp-bf .afc-pr{ color:rgba(243,239,230,.45); }

@media(prefers-reduced-motion:reduce){
  .afc-card.afc-cmp-bf .afc-cmp-ribbon--bf{ animation:none; }
  .afc-card.afc-cmp-bf .afc-btncell:first-child .afc-btn::after{ animation:none; opacity:0; }
}

/* =========================================================
   クーポンチップ：ボタン3列などで幅が狭いときの詰め表示
   （以前は「クーポン」「あと○日」「コピー」で幅を使い切り、コードが見えなくなっていた）
   ========================================================= */
.afc-btncell{ container-type:inline-size; min-width:0; }
.afc-coupon__code{ min-width:3.5em; }
@container (max-width:260px){
  .afc-coupon{ gap:5px; padding:8px 8px; }
  .afc-coupon__action{ display:none; }            /* チップ全体がコピーボタンなので省略しても伝わる */
  .afc-coupon__tag{ font-size:10px; padding:2px 5px; }
  .afc-coupon__left{ font-size:10px; padding:2px 6px; }
}

/* =========================================================
   カード自身の幅で1列に切り替える（コンテナクエリ）
   画面幅だけで判定すると、サイドバー付きの狭い本文や編集画面のプレビューで
   スペック表が1文字ずつ折り返してしまうため。
   ========================================================= */
.afc-card{ container-type:inline-size; container-name:afc; }
@container afc (max-width:480px){  /* カード内側の幅。通常の本文幅(約580px〜)では2列のまま */
  .afc-card__body{ grid-template-columns:1fr; gap:22px; }
  .afc-card__media{ max-width:280px; margin:0 auto; width:100%; }
  .afc-buttons{ grid-template-columns:1fr !important; }
  .afc-coupon-spacer{ display:none; }
  .afc-layout-compact .afc-card__body{ grid-template-columns:110px 1fr; gap:14px; }
  .afc-layout-compact .afc-card__media{ max-width:110px; margin:0; }
}

/* =========================================================
   セール情報ラベル（設定画面「セール情報」）
   期間中のものだけ表示。同じボタンに複数あれば最初の1つだけ。マイクロコピーより優先。
   ========================================================= */
.afc-sale{ display:none; }
.afc-sale.is-active{
  display:block; align-self:center; max-width:100%;
  font-size:12px; font-weight:700; line-height:1.3; letter-spacing:.02em;
  font-feature-settings:"palt" 1;
  padding:3px 10px; border-radius:999px; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  margin-bottom:-1px;
}
.afc-sale.is-active ~ .afc-sale.is-active{ display:none; }
.afc-btncell:has(.afc-sale.is-active) .afc-micro{ display:none; }
.afc-sale--amazon{ background:#232f3e; }
.afc-sale--rakuten{ background:#bf0000; }
.afc-sale--yahoo{ background:#ff0033; }
.afc-theme-dark .afc-sale--amazon{ background:#f0a02a; color:#1a1406; }
.afc-card.afc-cmp-bf .afc-sale.is-active{ background:var(--afc-gold); color:#1a1406; }

/* =========================================================
   v1.6.1 コンパクト見直し（Pochipp風に「低く・読みやすく」）
   - タイトルは控えめなサイズで最大3行（長いAmazon名でも高さが暴れない）
   - タイトル下に補足（ブランド・ショップ名）
   - ボタンは横一列（最大4列）、狭いときは2列
   ========================================================= */
.afc-card__sub{ font-size:12px; line-height:1.5; opacity:.62; margin:-10px 0 14px; font-weight:500; }
.afc-layout-compact .afc-card__sub{ margin:0; }
.afc-theme-dark .afc-card__sub{ color:#d6d6d9; }
.afc-theme-light .afc-card__sub{ color:#50575e; opacity:1; }

.afc-card.afc-layout-compact{ padding:20px 24px 22px; border-radius:16px; }
.afc-layout-compact .afc-card__body{ grid-template-columns:120px 1fr; gap:18px; align-items:start; }
.afc-layout-compact .afc-card__media{ max-width:120px; }
.afc-layout-compact .afc-compact-side{ gap:6px; justify-content:flex-start; }
.afc-card__title.afc-card__title--compact{
  font-size:16px !important; line-height:1.55 !important; letter-spacing:.02em;
  display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}
.afc-layout-compact .afc-price{ margin-top:2px; }
.afc-layout-compact .afc-price__amount{ font-size:18px; }
.afc-layout-compact .afc-buttons{ margin-top:16px; gap:8px; }
.afc-layout-compact .afc-btn{ padding:11px 8px; font-size:13.5px; border-radius:9px; }
.afc-layout-compact .afc-btn__label{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* 狭いとき：コンパクトはボタン2列（1列だと縦に長くなるため） */
@container afc (max-width:480px){
  .afc-layout-compact .afc-buttons{ grid-template-columns:repeat(2,1fr) !important; }
  .afc-layout-compact .afc-card__body{ grid-template-columns:96px 1fr; gap:14px; }
  .afc-layout-compact .afc-card__media{ max-width:96px; }
  .afc-card__title.afc-card__title--compact{ font-size:15px !important; }
}
@media(max-width:560px){
  .afc-card.afc-layout-compact{ padding:18px 16px; }
  .afc-layout-compact .afc-buttons{ grid-template-columns:repeat(2,1fr) !important; }
}
@container afc (max-width:260px){
  .afc-layout-compact .afc-buttons{ grid-template-columns:1fr !important; }
}
/* 4列はカード内側が620pxを超えるとき（PC・広い本文）だけ。それ以下は2列 */
@container afc (max-width:620px){
  .afc-layout-compact .afc-buttons{ grid-template-columns:repeat(2,1fr) !important; }
}
.afc-card__title.afc-card__title--compact{ font-size:15.5px !important; }

/* =========================================================
   v2.0 配色のコントラスト改善（WCAG AA：文字4.5:1以上）
   旧：Amazon 2.2 / Yahoo! 3.9 / 公式 2.5 → 新：8.1 / 5.3 / 5.5（楽天は5.5で据え置き）
   ========================================================= */
.afc-btn--amazon{ background:#f0a02a; color:#1a1a1a !important; }
.afc-btn--yahoo{ background:#1f66d6; }
.afc-btn--custom{ background:#0f766e; }
.afc-coupon--amazon .afc-coupon__tag{ background:#f0a02a; color:#1a1a1a; }
.afc-coupon--yahoo .afc-coupon__tag{ background:#1f66d6; }
.afc-coupon--custom .afc-coupon__tag{ background:#0f766e; }
/* 白い背景の上の文字色 */
.afc-micro--amazon, .afc-coupon--amazon{ color:#b45309; }
.afc-micro--yahoo, .afc-coupon--yahoo{ color:#1f66d6; }
.afc-micro--custom, .afc-coupon--custom{ color:#0f766e; }
/* 暗い背景の上の文字色 */
.afc-theme-dark .afc-micro--amazon, .afc-theme-dark .afc-coupon--amazon{ color:#f0a02a; }
.afc-theme-dark .afc-micro--rakuten, .afc-theme-dark .afc-coupon--rakuten{ color:#ff6b6b; }
.afc-theme-dark .afc-micro--yahoo, .afc-theme-dark .afc-coupon--yahoo{ color:#6aa7ff; }
.afc-theme-dark .afc-micro--custom, .afc-theme-dark .afc-coupon--custom{ color:#2dd4bf; }
.afc-sale--yahoo{ background:#c8102e; }
/* キーボード操作時のフォーカス表示 */
.afc-card a:focus-visible, .afc-card button:focus-visible{ outline:3px solid #2271b1; outline-offset:2px; border-radius:10px; }
.afc-theme-dark a:focus-visible, .afc-theme-dark button:focus-visible{ outline-color:#9ec5ff; }

/* ブロックエディタ内のプレビュー（編集ボタン） */
.afc-block-preview{ position:relative; }
.afc-block-preview__bar{ position:absolute; top:8px; right:8px; z-index:5; opacity:0; transition:opacity .15s ease; }
.afc-block-preview:hover .afc-block-preview__bar, .is-selected .afc-block-preview__bar{ opacity:1; }
.afc-block-preview__bar .components-button{ background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.15); }

/* =========================================================
   v2.0 おすすめボタン（1つだけ強調）とモール別価格
   ========================================================= */
.afc-btncell--primary{ grid-column:1 / -1; }
.afc-btncell--primary .afc-btn{ padding:15px 14px; font-size:15.5px; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,.16); }
.afc-btncell--primary .afc-btn:hover{ box-shadow:0 10px 24px rgba(0,0,0,.2); }

/* 控えめなボタン：白地＋モール色の枠と文字（文字のコントラストは4.5:1以上） */
.afc-btncell--secondary .afc-btn{ background:#fff; border:1.5px solid currentColor; box-shadow:none; padding:10px 8px; font-size:13px; }
.afc-btncell--secondary .afc-btn--amazon{ color:#b45309 !important; border-color:#f0a02a; }
.afc-btncell--secondary .afc-btn--rakuten{ color:#c9252c !important; }
.afc-btncell--secondary .afc-btn--yahoo{ color:#1f66d6 !important; }
.afc-btncell--secondary .afc-btn--custom{ color:#0f766e !important; }
.afc-btncell--secondary .afc-btn:hover{ background:#fafafa; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.afc-btncell--secondary .afc-btn--shine::after{ display:none; }
/* 暗いカード（ダーク・ブラックフライデー）では枠線ボタンを透明地に */
.afc-theme-dark .afc-btncell--secondary .afc-btn,
.afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn{ background:transparent; }
.afc-theme-dark .afc-btncell--secondary .afc-btn--amazon, .afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn--amazon{ color:#f0a02a !important; border-color:#f0a02a; }
.afc-theme-dark .afc-btncell--secondary .afc-btn--rakuten, .afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn--rakuten{ color:#ff6b6b !important; border-color:#ff6b6b; }
.afc-theme-dark .afc-btncell--secondary .afc-btn--yahoo, .afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn--yahoo{ color:#6aa7ff !important; border-color:#6aa7ff; }
.afc-theme-dark .afc-btncell--secondary .afc-btn--custom, .afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn--custom{ color:#2dd4bf !important; border-color:#2dd4bf; }
.afc-theme-dark .afc-btncell--secondary .afc-btn:hover, .afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn:hover{ background:rgba(255,255,255,.06); }

/* ボタン内の価格と「この中で最安」 */
.afc-btn{ flex-wrap:wrap; row-gap:2px; }
.afc-btn__price{ font-variant-numeric:tabular-nums; font-weight:700; opacity:.95; }
.afc-btn__price::before{ content:"｜"; opacity:.45; margin-right:2px; }
.afc-btn__best{ font-size:10.5px; font-weight:700; line-height:1.4; padding:1px 7px; border-radius:999px; background:#fff; color:#b91c1c; letter-spacing:.02em; }
.afc-btncell--secondary .afc-btn__best{ background:#fdecec; }
.afc-theme-dark .afc-btncell--secondary .afc-btn__best{ background:#ff6b6b; color:#1a1a1a; }
.afc-prices-note{ margin:8px 0 0; font-size:11px; line-height:1.5; text-align:left; opacity:.6; }

/* 楽天：ショップのポイント倍率（ボタン内の2行目） */
.afc-btn__pt{ flex-basis:100%; text-align:center; font-size:11px; font-weight:700; line-height:1.35; letter-spacing:.01em; opacity:.95; }
.afc-btn__pt small{ font-size:10px; font-weight:600; opacity:.85; margin-left:2px; }
.afc-btncell--secondary .afc-btn__pt{ color:#a3161c; }
.afc-theme-dark .afc-btncell--secondary .afc-btn__pt,
.afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn__pt{ color:#ff8a8a; }
.afc-pt-note{ margin-top:2px; }
/* Amazon：ポイントとタイムセール */
.afc-btn__pt--amazon{ display:flex; flex-wrap:wrap; justify-content:center; gap:2px 8px; }
.afc-pt__deal{ display:inline-flex; align-items:baseline; gap:3px; flex-wrap:wrap; justify-content:center; }
.afc-pt__deal small{ margin-left:0; }
.afc-btncell--secondary .afc-btn__pt--amazon{ color:#9a3412; }
.afc-theme-dark .afc-btncell--secondary .afc-btn__pt--amazon,
.afc-card.afc-cmp-bf .afc-btncell--secondary .afc-btn__pt--amazon{ color:#fbbf24; }

/* =========================================================
   v2.4 スマホでの見やすさ：コンパクトは縦並び（画像を大きく・タイトルを全文）
   カードの内側が480px以下のとき（スマホ・狭いサイドバー）
   ========================================================= */
@container afc (max-width:480px){
  .afc-layout-compact .afc-card__body{ grid-template-columns:1fr !important; gap:14px; }
  .afc-layout-compact .afc-card__media{ width:55%; max-width:190px !important; margin:0 auto !important; }
  .afc-card__title.afc-card__title--compact{
    font-size:16.5px !important; line-height:1.6 !important;
    -webkit-line-clamp:5;
  }
  .afc-layout-compact .afc-price__amount{ font-size:21px; }
  .afc-layout-compact .afc-compact-side{ gap:8px; }
}

/* v2.4.1 価格の注記：スマホでも読める大きさ・濃さに（取得日時はAmazonの規約で必要な表示） */
/* v2.7.1 2行以上になると右寄せは行頭がそろわず読みにくいので、PC・スマホとも左寄せ */
.afc-card .afc-prices-note{ font-size:12px; line-height:1.6; opacity:1; color:#646970; text-align:left; margin-top:10px; }
.afc-card .afc-prices-note > span{ display:inline; }
.afc-theme-dark .afc-prices-note{ color:#a9a9ae; }
.afc-card.afc-cmp-bf .afc-prices-note{ color:#b9b3a3; }

/* v2.4.1 2列のときにボタンが1つ余ったら、最後のボタンを横幅いっぱいに */
@container afc (max-width:620px){
  .afc-layout-compact .afc-buttons--odd > .afc-btncell:last-child{ grid-column:1 / -1; }
}
@media(max-width:560px){
  .afc-layout-compact .afc-buttons--odd > .afc-btncell:last-child{ grid-column:1 / -1; }
}
@container afc (max-width:260px){
  .afc-layout-compact .afc-buttons--odd > .afc-btncell:last-child{ grid-column:auto; }
}

/* v2.4.1 幅の狭いボタン（スマホの2列など）：価格は文言の下の行に。区切りの「｜」は出さない */
@container (max-width:230px){
  .afc-btn__label{ flex-basis:100%; text-align:center; }
  .afc-btn__price::before{ content:none; }
  .afc-btn__arrow{ display:none; }
}

/* v2.4.2 ブラックフライデー：タイトルは白（金は枠・リボン・ラベルで演出）。小さい画面でも読みやすく */
.afc-card.afc-cmp-bf .afc-card__title{
  background:none !important; -webkit-background-clip:border-box !important; background-clip:border-box !important;
  color:#fff !important; -webkit-text-fill-color:#fff !important;
}

/* =========================================================
   v2.5 期間限定テーマ：年末年始（紅白×金・和モダン）
   .afc-cmp-ny が付いている間だけ有効。明るい配色なので、ダークのカードも明るい配色に切り替える（PHP/JSで afc-theme-light を付与）
   ========================================================= */
.afc-card.afc-cmp-ny{
  --ny-red:#c8102e;
  --ny-gold:linear-gradient(135deg,#9a7420 0%,#e8c766 35%,#fff3c4 50%,#d6a93c 65%,#8a661a 100%);
  --afc-accent:#c8102e;
  color:#2b2420;
  border:1.5px solid transparent;
  background:
    radial-gradient(circle at 18px 18px, rgba(200,16,46,.05) 2px, transparent 2.5px) 0 0/36px 36px padding-box,
    linear-gradient(#fffaf1,#fffaf1) padding-box,
    var(--ny-gold) border-box;
  box-shadow:0 14px 36px rgba(140,30,30,.14);
}
/* 上の縁：紅白の帯 */
.afc-card.afc-cmp-ny::before{
  content:""; position:absolute; left:0; right:0; top:0; height:6px; z-index:1; pointer-events:none;
  border-radius:inherit; border-bottom-left-radius:0; border-bottom-right-radius:0;
  background:linear-gradient(90deg,var(--ny-red) 0 50%, #fff 50% 100%) 0 0/28px 6px;
  opacity:.9;
}
.afc-card.afc-cmp-ny .afc-card__title{ color:#1f1a17 !important; }
.afc-card.afc-cmp-ny .afc-card__sub{ color:#5f554c !important; }
.afc-card.afc-cmp-ny .afc-card__divider{ background:linear-gradient(90deg,rgba(200,16,46,.55),rgba(214,169,60,.15)); }
.afc-card.afc-cmp-ny .afc-card__imgbox{ background:#fff; box-shadow:0 0 0 1px rgba(214,169,60,.55); }
.afc-card.afc-cmp-ny .afc-price__amount,
.afc-card.afc-cmp-ny .afc-rating__num{ color:var(--ny-red) !important; }
.afc-card.afc-cmp-ny .afc-price__note{ color:#6b5f55; opacity:1; }
.afc-card.afc-cmp-ny .afc-spec-row + .afc-spec-row{ border-color:rgba(214,169,60,.35); }
.afc-card.afc-cmp-ny .afc-spec__key{ color:#3a302a; }
.afc-card.afc-cmp-ny .afc-spec__val{ color:#2b2420; }
.afc-card.afc-cmp-ny .afc-spec__val--accent{ color:var(--ny-red); }
.afc-card.afc-cmp-ny .afc-badge{ background:var(--ny-red); color:#fff; box-shadow:0 3px 10px rgba(200,16,46,.3); }
.afc-card.afc-cmp-ny .afc-micro{ color:#a8780f !important; }
.afc-card.afc-cmp-ny .afc-prices-note{ color:#6b5f55; }
.afc-card.afc-cmp-ny .afc-pr{ color:rgba(43,36,32,.5); }
.afc-card.afc-cmp-ny .afc-cmp-ribbon--ny{
  display:block; position:absolute; top:-12px; right:20px; z-index:2;
  padding:5px 14px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.14em; line-height:1.4;
  color:#fff; background:var(--ny-red);
  box-shadow:0 0 0 2px #fff, 0 0 0 3.5px #d6a93c, 0 4px 12px rgba(200,16,46,.3);
  white-space:nowrap; max-width:calc(100% - 40px); overflow:hidden; text-overflow:ellipsis;
}

/* =========================================================
   v2.6 期間限定テーマ：プライムデー（白×プライムブルー）
   明るい配色。ダークのカードも期間中は明るい配色に切り替える。Amazonのロゴ・Primeのマークは使わない
   ========================================================= */
.afc-card.afc-cmp-pd{
  --afc-accent:#0a7ad1;
  color:#14202b;
  border:1.5px solid #8fd0ff;
  background:linear-gradient(180deg,#eef8ff 0%,#ffffff 38%);
  box-shadow:0 14px 34px rgba(10,122,209,.16);
}
.afc-card.afc-cmp-pd::before{
  content:""; position:absolute; left:0; right:0; top:0; height:5px; z-index:1; pointer-events:none;
  border-radius:inherit; border-bottom-left-radius:0; border-bottom-right-radius:0;
  background:linear-gradient(90deg,#0a7ad1,#3cc3ff,#0a7ad1);
}
.afc-card.afc-cmp-pd .afc-card__title{ color:#0f1c2a !important; }
.afc-card.afc-cmp-pd .afc-card__sub{ color:#4b5b6b !important; }
.afc-card.afc-cmp-pd .afc-card__divider{ background:linear-gradient(90deg,rgba(10,122,209,.5),rgba(60,195,255,.12)); }
.afc-card.afc-cmp-pd .afc-card__imgbox{ background:#fff; box-shadow:0 0 0 1px #bfe3ff; }
.afc-card.afc-cmp-pd .afc-price__amount,
.afc-card.afc-cmp-pd .afc-rating__num{ color:#0a6dc2 !important; }
.afc-card.afc-cmp-pd .afc-price__note{ color:#56677a; opacity:1; }
.afc-card.afc-cmp-pd .afc-spec-row + .afc-spec-row{ border-color:#d6ecfb; }
.afc-card.afc-cmp-pd .afc-spec__val--accent{ color:#0a6dc2; }
.afc-card.afc-cmp-pd .afc-badge{ background:#0a7ad1; color:#fff; }
.afc-card.afc-cmp-pd .afc-micro{ color:#0a6dc2 !important; }
.afc-card.afc-cmp-pd .afc-prices-note{ color:#56677a; }
/* Amazonが大きいボタンのとき、青い光の輪で強調 */
.afc-card.afc-cmp-pd .afc-btncell--primary .afc-btn--amazon{ box-shadow:0 0 0 3px rgba(60,195,255,.45), 0 8px 20px rgba(10,122,209,.25); }
.afc-card.afc-cmp-pd .afc-cmp-ribbon--pd{
  display:block; position:absolute; top:-12px; right:20px; z-index:2;
  padding:5px 14px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.14em; line-height:1.4;
  color:#fff; background:linear-gradient(90deg,#0a7ad1,#22a7f0);
  box-shadow:0 0 0 2px #fff, 0 4px 12px rgba(10,122,209,.35);
  white-space:nowrap; max-width:calc(100% - 40px); overflow:hidden; text-overflow:ellipsis;
}

/* =========================================================
   v2.7 期間限定テーマ：楽天スーパーSALE（赤い見出し帯）
   カード上部に赤い帯を敷き、リボンの文字を帯の中に大きく出す。明るい配色（ダークのカードも明るく）
   ========================================================= */
.afc-card.afc-cmp-ss{
  --afc-accent:#bf0000;
  color:#1d1212;
  border:2px solid #bf0000;
  background:#fff;
  box-shadow:0 14px 34px rgba(191,0,0,.15);
  padding-top:60px !important;
}
.afc-card.afc-cmp-ss::before{
  content:""; position:absolute; left:0; right:0; top:0; height:42px; z-index:0; pointer-events:none;
  border-radius:inherit; border-bottom-left-radius:0; border-bottom-right-radius:0;
  background:linear-gradient(90deg,#bf0000,#e3262b);
}
.afc-card.afc-cmp-ss .afc-card__title{ color:#1d1212 !important; }
.afc-card.afc-cmp-ss .afc-card__sub{ color:#5b4a4a !important; }
.afc-card.afc-cmp-ss .afc-card__divider{ background:linear-gradient(90deg,rgba(191,0,0,.5),rgba(191,0,0,.08)); }
.afc-card.afc-cmp-ss .afc-card__imgbox{ background:#fff; box-shadow:0 0 0 1px #f6c4c8; }
.afc-card.afc-cmp-ss .afc-price__amount,
.afc-card.afc-cmp-ss .afc-rating__num{ color:#bf0000 !important; }
.afc-card.afc-cmp-ss .afc-price__note{ color:#6b5656; opacity:1; }
.afc-card.afc-cmp-ss .afc-spec-row + .afc-spec-row{ border-color:#f8d7da; }
.afc-card.afc-cmp-ss .afc-spec__val--accent{ color:#bf0000; }
.afc-card.afc-cmp-ss .afc-micro{ color:#bf0000 !important; }
.afc-card.afc-cmp-ss .afc-prices-note{ color:#6b5656; }
/* バッジは帯の右端に白抜きで（タイトルと重ならないように） */
.afc-card.afc-cmp-ss .afc-badge{ top:8px; left:auto; right:14px; z-index:3; background:#fff; color:#bf0000; box-shadow:none; padding:4px 12px; }
.afc-card.afc-cmp-ss:has(.afc-badge) .afc-cmp-ribbon--ss{ padding-right:120px; }
.afc-card.afc-cmp-ss .afc-cmp-ribbon--ss{
  display:block; position:absolute; top:0; left:0; right:0; height:42px; z-index:1;
  padding:0 20px; line-height:42px;
  font-size:14px; font-weight:700; letter-spacing:.12em; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
@container afc (max-width:480px){
  .afc-card.afc-cmp-ss .afc-cmp-ribbon--ss{ font-size:13px; padding:0 16px; letter-spacing:.08em; }
}

/* =========================================================
   画像付きボタン（ブロック affiliate-card-blocks/button）v2.8.0
   右下に商品画像をちょこんと乗せる大きなボタン＋チケット型クーポン
   幅はコンテナクエリ afc-bb で切り替え（サイドバーでも崩れない）
   ========================================================= */
.afc-bb{
  --afc-bb-bg:#c62828; --afc-bb-dark:#8e1b1b;
  --afc-font:"Hiragino Sans","Hiragino Kaku Gothic ProN","BIZ UDPGothic","Yu Gothic Medium","YuGothic","Meiryo","Noto Sans JP","Noto Sans CJK JP",sans-serif;
  container-type:inline-size; container-name:afc-bb;
  box-sizing:border-box; max-width:520px; margin:1.6em auto; padding-top:4px;
  font-family:var(--afc-font); font-size:15px; line-height:1.7; color:#1f2328;
  line-break:strict; text-align:left;
}
/* テーマの「コンテンツ幅いっぱい」より優先して、ボタンは読みやすい幅に収める */
body .afc-bb{ max-width:520px; margin-left:auto; margin-right:auto; }
.afc-bb.afc-font-inherit{ font-family:inherit; }
.afc-bb *{ box-sizing:border-box; }
.afc-bb p{ margin:0; }
.afc-bb [hidden]{ display:none !important; }
.afc-bb--orange{ --afc-bb-bg:#c2410c; --afc-bb-dark:#8a2e08; }
.afc-bb--green { --afc-bb-bg:#15803d; --afc-bb-dark:#0e5a2b; }
.afc-bb--blue  { --afc-bb-bg:#1d4ed8; --afc-bb-dark:#163a9f; }
.afc-bb--black { --afc-bb-bg:#24292f; --afc-bb-dark:#000; }

.afc-bb__sale{ display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; color:#8a1f1f; background:#fdecec; border-radius:999px; padding:2px 10px; margin-bottom:8px; }

/* チケット型クーポン */
.afc-bb__ticket{ display:flex; align-items:center; gap:12px; border:2px dashed #e0a33f; background:#fff8eb; border-radius:12px; padding:8px 8px 8px 14px; margin-bottom:12px; }
.afc-bb__ticket-ico{ font-size:22px; line-height:1; }
.afc-bb__ticket-body{ flex:1; min-width:0; }
.afc-bb__ticket-ttl{ font-size:12px; font-weight:700; color:#8a4b06; }
.afc-bb__code{ font:800 18px/1.25 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; color:#1f2328; overflow-wrap:anywhere; }
.afc-bb__ticket-meta{ font-size:12px; color:#7a4a0a; }
.afc-bb .afc-bb__copy{ flex:none; min-height:44px; min-width:76px; margin:0; border:0; border-radius:8px; background:#b45309; color:#fff; font:700 14px/1 var(--afc-font); cursor:pointer; padding:0 12px; }
.afc-bb.afc-font-inherit .afc-bb__copy{ font-family:inherit; }
.afc-bb .afc-bb__copy:hover{ filter:brightness(1.08); }
.afc-bb .afc-bb__copy:focus-visible{ outline:3px solid #ffbf47; outline-offset:2px; }
.afc-bb .afc-bb__copy.is-copied{ background:#15803d; }

/* メインボタン */
.afc-bb__btnwrap{ padding-top:10px; }
.afc-bb .afc-bb__btn{
  position:relative; display:flex; align-items:center; min-height:60px; width:100%;
  padding:6px 28px; border-radius:999px; background:var(--afc-bb-bg); color:#fff !important;
  text-decoration:none !important; font-weight:800; font-size:18px; letter-spacing:.02em; line-height:1.35;
  box-shadow:0 3px 0 var(--afc-bb-dark); transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.afc-bb--img .afc-bb__btn{ padding-right:96px; }
.afc-bb .afc-bb__btn:hover{ transform:translateY(1px); box-shadow:0 2px 0 var(--afc-bb-dark); filter:brightness(1.05); }
.afc-bb .afc-bb__btn:focus-visible{ outline:3px solid #ffbf47; outline-offset:3px; }
.afc-bb__lbl{ flex:1; text-align:center; min-width:0; }
.afc-bb__main{ display:block; }
.afc-bb__micro{ display:block; font-size:12px; font-weight:600; letter-spacing:0; line-height:1.4; opacity:.95; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.afc-bb .afc-bb__img{
  position:absolute; right:10px; bottom:-12px; width:84px; max-width:none; height:auto; max-height:110px; object-fit:contain;
  margin:0; border:0; border-radius:0; box-shadow:none; background:none;
  transform:rotate(-9deg); filter:drop-shadow(0 6px 8px rgba(0,0,0,.25)); pointer-events:none;
}

/* ほかのショップ（文字リンク。押す場所は高さ44px以上・間隔8px以上） */
.afc-bb__shops{ display:flex; justify-content:center; align-items:stretch; flex-wrap:wrap; gap:8px; margin-top:18px; }
.afc-bb .afc-bb__shop{ display:inline-flex; align-items:center; min-height:44px; padding:0 12px; color:#1f5fbf; font-size:14px; font-weight:700; text-decoration:none; }
.afc-bb .afc-bb__shop u{ text-decoration:underline; text-underline-offset:3px; }
.afc-bb__pt{ font-style:normal; font-size:12px; font-weight:600; color:#7a4a0a; margin-left:6px; }
.afc-bb__sep{ align-self:center; color:#c9cdd2; }

.afc-bb__say{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:14px !important; font-size:13px; color:#3b4148; }
.afc-bb .afc-bb__me{ width:32px; height:32px; flex:none; margin:0; border-radius:50%; object-fit:cover; box-shadow:0 0 0 1px #d6dde6; }
.afc-bb__say q{ quotes:"「" "」"; }
.afc-bb__who{ color:#5f6670; font-size:12px; white-space:nowrap; }

.afc-bb__cd{ text-align:center; font-size:13px; color:#5f6670; margin-top:14px !important; }
.afc-bb__left{ color:#b91c1c; font-size:15px; font-variant-numeric:tabular-nums; }
.afc-bb__note{ text-align:center; font-size:12px; color:#5f6670; margin-top:4px !important; }
.afc-bb__note span + span::before{ content:"｜"; }
.afc-bb__pt-note{ margin-top:2px !important; }

@container afc-bb (max-width:420px){
  .afc-bb .afc-bb__btn{ padding:6px 18px; font-size:17px; }
  .afc-bb--img .afc-bb__btn{ padding-right:80px; }
  .afc-bb .afc-bb__img{ width:70px; right:6px; }
  .afc-bb .afc-bb__shop{ flex-direction:column; justify-content:center; line-height:1.35; padding:0 10px; }
  .afc-bb__pt{ margin-left:0; }
}
@media (prefers-reduced-motion:reduce){ .afc-bb .afc-bb__btn{ transition:none; } }

/* =========================================================
   商品セクション（ブロック affiliate-card-blocks/section）v2.10.0
   ランキング記事の1商品ぶん。PCは画像とボタンが左右、狭い幅では縦に並ぶ（コンテナクエリ afc-sec）
   ========================================================= */
.afc-sec{
  --afc-font:"Hiragino Sans","Hiragino Kaku Gothic ProN","BIZ UDPGothic","Yu Gothic Medium","YuGothic","Meiryo","Noto Sans JP","Noto Sans CJK JP",sans-serif;
  container-type:inline-size; container-name:afc-sec;
  box-sizing:border-box; margin:2em auto; padding:20px;
  border:1px solid #e3e6ea; border-radius:14px; background:#fff; color:#1f2328;
  font-family:var(--afc-font); font-size:15px; line-height:1.75; line-break:strict; text-align:left;
}
body .afc-sec{ max-width:760px; }
.afc-sec.afc-font-inherit{ font-family:inherit; }
.afc-sec *{ box-sizing:border-box; }
.afc-sec p{ margin:0; }
.afc-sec ul{ margin:4px 0 0; padding-left:1.3em; }
.afc-sec li{ margin:2px 0; }
.afc-sec a{ text-decoration:none; }
.afc-sec--part-top{ border-bottom-left-radius:0; border-bottom-right-radius:0; margin-bottom:0; }
.afc-sec--part-bottom{ border-top-left-radius:0; border-top-right-radius:0; margin-top:0; border-top:0; padding-top:4px; }

.afc-sec__head{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.afc-sec__rank{ display:inline-grid; place-items:center; min-width:36px; height:32px; padding:0 10px; border-radius:8px; background:#e9ecef; color:#1f2328; font-weight:800; font-size:17px; }
.afc-sec__rank--1{ background:#f2c94c; }
.afc-sec__rank--2{ background:#cfd4da; }
.afc-sec__rank--3{ background:#e0a37a; }
.afc-sec__tag{ display:inline-block; font-size:12px; font-weight:700; color:#0f5f58; background:#e6f7f4; border-radius:6px; padding:2px 8px; }
.afc-sec__brand{ font-size:12px; color:#5f6670; }
.afc-sec .afc-sec__name{ font-size:20px; font-weight:800; line-height:1.45; margin:0 0 12px; padding:0; border:0; background:none; color:#1f2328; }
.afc-sec .afc-sec__name::before,.afc-sec .afc-sec__name::after{ content:none; }

.afc-sec__score{ display:flex; align-items:center; gap:6px 16px; flex-wrap:wrap; background:#fff8f1; border:1px solid #fde3cc; border-radius:10px; padding:8px 14px; margin-bottom:16px; }
.afc-sec__score-main{ font-size:13px; color:#7a3e0a; font-weight:700; }
.afc-sec__score-main .afc-sec__stars{ font-size:22px; }
.afc-sec__score-sub{ display:flex; gap:4px 14px; flex-wrap:wrap; font-size:12px; color:#5f4b3b; }
.afc-sec__stars{ color:#c2410c; font-weight:800; white-space:nowrap; }

.afc-sec__body{ display:grid; grid-template-columns:5fr 6fr; gap:20px; align-items:start; }
@container afc-sec (max-width:600px){ .afc-sec__body{ grid-template-columns:1fr; } }

/* 画像めくり（横スワイプ。CSSのスクロールスナップだけで動く） */
.afc-gal{ min-width:0; }
.afc-gal__view{ position:relative; }
.afc-gal__track{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; border-radius:12px; background:#f6f7f8; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.afc-gal__track::-webkit-scrollbar{ display:none; }
.afc-gal__track:focus-visible{ outline:3px solid #ffbf47; outline-offset:2px; }
.afc-gal__slide{ position:relative; flex:0 0 100%; scroll-snap-align:start; aspect-ratio:1; display:grid; place-items:center; padding:12px; }
.afc-sec .afc-gal__slide img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; margin:0; border:0; border-radius:0; box-shadow:none; }
.afc-gal__src{ position:absolute; right:8px; bottom:8px; font-size:12px; line-height:1.4; color:#3b4148; background:rgba(255,255,255,.92); border-radius:6px; padding:2px 8px; }
.afc-sec .afc-gal__nav{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; margin:0; padding:0; border:0; border-radius:50%; background:rgba(31,35,40,.62); color:#fff; font-size:24px; line-height:1; cursor:pointer; display:grid; place-items:center; }
.afc-sec .afc-gal__nav:disabled{ opacity:0; pointer-events:none; }
.afc-sec .afc-gal__nav:focus-visible{ outline:3px solid #ffbf47; }
.afc-gal__nav--prev{ left:8px; }
.afc-gal__nav--next{ right:8px; }
.afc-gal__dots{ display:flex; justify-content:center; gap:6px; margin-top:8px; }
.afc-gal__dots span{ width:8px; height:8px; border-radius:50%; background:#cfd4da; }
.afc-gal__dots span.is-on{ background:#0f766e; }
.afc-gal__thumbs{ display:none; gap:6px; margin-top:8px; flex-wrap:wrap; }
.afc-sec .afc-gal__thumb{ width:52px; height:52px; margin:0; padding:2px; border:1px solid #e3e6ea; border-radius:8px; background:#f6f7f8; cursor:pointer; }
.afc-sec .afc-gal__thumb.is-on{ border:2px solid #0f766e; }
.afc-sec .afc-gal__thumb img{ width:100%; height:100%; object-fit:contain; margin:0; }
@container afc-sec (min-width:601px){ .afc-gal__thumbs{ display:flex; } .afc-gal__dots{ display:none; } }
@container afc-sec (max-width:600px){ .afc-gal{ max-width:420px; width:100%; margin:0 auto; } .afc-sec .afc-gal__nav{ display:none; } }

/* 購入ボタン */
.afc-sec__buy{ min-width:0; }
.afc-sec__low{ font-size:12px; color:#5f6670; margin-bottom:4px; }
.afc-sec__low b{ display:block; font-size:24px; line-height:1.25; color:#b45309; font-variant-numeric:tabular-nums; }
.afc-sec__cell{ position:relative; margin-top:12px; }
.afc-sec .afc-sec__sale{ position:absolute; top:-10px; left:50%; transform:translateX(-50%); z-index:1; font-size:12px; line-height:1.5; font-weight:700; padding:0 10px; border-radius:999px; white-space:nowrap; background:#fff; color:#8a1f1f; border:1px solid #f0b8b8; box-shadow:none; }
.afc-sec .afc-sec__btn{ display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:54px; padding:8px 12px; border-radius:10px; font-weight:800; font-size:15px; line-height:1.35; text-align:center; color:#fff; transition:filter .12s ease, transform .12s ease; }
.afc-sec .afc-sec__btn:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.afc-sec .afc-sec__btn:focus-visible{ outline:3px solid #ffbf47; outline-offset:2px; }
.afc-sec__btn small{ display:block; font-size:12px; font-weight:600; }
.afc-sec .afc-sec__btn--amazon{ background:#f5a524; color:#1f2328; }
.afc-sec .afc-sec__btn--rakuten{ background:#bf0000; }
.afc-sec .afc-sec__btn--yahoo{ background:#1d4ed8; }
.afc-sec .afc-sec__btn--custom{ background:#0f766e; }
.afc-sec__pnote{ font-size:12px; color:#5f6670; margin-top:10px !important; line-height:1.6; }

/* スペック（2列。狭い幅では1列） */
.afc-sec .afc-sec__specs{ display:grid; grid-template-columns:1fr 1fr; gap:0; margin:18px 0 0; border-top:1px solid #f0e2d3; font-size:13px; }
.afc-sec__specs > div{ display:grid; grid-template-columns:7.5em 1fr; border-bottom:1px solid #f0e2d3; }
.afc-sec .afc-sec__specs dt{ background:#fff8f1; color:#5f4b3b; font-weight:700; padding:8px 10px; margin:0; }
.afc-sec .afc-sec__specs dd{ padding:8px 10px; margin:0; }
@container afc-sec (max-width:600px){ .afc-sec .afc-sec__specs{ grid-template-columns:1fr; } }

.afc-sec__overview{ background:#f6f8fa; border-radius:10px; padding:10px 16px; margin-top:16px; font-size:14px; }
.afc-sec__overview-title{ font-weight:800; }
.afc-sec__text{ margin-top:16px; }
.afc-sec__text > :first-child{ margin-top:0; }

.afc-sec__pc{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
@container afc-sec (max-width:600px){ .afc-sec__pc{ grid-template-columns:1fr; } }
.afc-sec__pros,.afc-sec__cons{ border-radius:10px; padding:10px 16px; font-size:14px; }
.afc-sec__pros{ border:2px solid #f3a6b8; }
.afc-sec__cons{ border:2px solid #aab2bd; }
.afc-sec__pc-title{ font-weight:800; }
.afc-sec__note{ font-size:12px; color:#5f6670; margin-top:12px !important; }
/* 全スペック：表のすぐ下のボタンで、残りの行を同じ表の続きとして開く（v2.19.0） */
.afc-sec .afc-sec__specs > .afc-sec__spec-more{ display:none; }
.afc-sec .afc-sec__specs.is-open > .afc-sec__spec-more{ display:grid; }
.afc-sec .afc-sec__specs-toggle{ display:flex; align-items:center; justify-content:center; gap:4px; width:100%; min-height:44px; margin:0; padding:0; border:0; border-bottom:1px solid #f0e2d3; background:#fffdf9; color:#3b4148; font:700 13px/1.3 var(--afc-font); cursor:pointer; }
.afc-sec.afc-font-inherit .afc-sec__specs-toggle{ font-family:inherit; }
.afc-sec .afc-sec__specs-toggle::after{ content:"▾"; font-size:12px; }
.afc-sec .afc-sec__specs-toggle[aria-expanded="true"]::after{ content:"▴"; }
.afc-sec .afc-sec__specs-toggle:focus-visible{ outline:3px solid #ffbf47; outline-offset:2px; }
.afc-sec__specs-close{ display:none; }
.afc-sec__specs-toggle[aria-expanded="true"] .afc-sec__specs-open{ display:none; }
.afc-sec__specs-toggle[aria-expanded="true"] .afc-sec__specs-close{ display:inline; }
.afc-sec__more{ margin-top:12px; border-top:1px solid #e3e6ea; }
.afc-sec__more summary{ display:block; text-align:center; min-height:44px; line-height:44px; color:#3b4148; font-size:13px; cursor:pointer; list-style:none; }
.afc-sec__more summary::-webkit-details-marker{ display:none; }
.afc-sec__more summary::after{ content:" ▾"; }
.afc-sec__more[open] summary::after{ content:" ▴"; }
.afc-sec__more .afc-sec__specs{ margin-top:0; }

/* 編集画面だけ：本文の入力欄 */
.afc-sec-editor__text{ max-width:760px; margin:0 auto; padding:8px 20px; border-left:1px solid #e3e6ea; border-right:1px solid #e3e6ea; background:#fff; }
.afc-sec-editor__label{ font-size:12px; color:#757575; margin:0 0 4px; }

/* =========================================================
   比較表（ブロック affiliate-card-blocks/compare）v2.11.0
   PCは表、狭い幅（560px以下）は1商品＝1枚のカード（コンテナクエリ afc-cmp）
   ========================================================= */
.afc-cmp{
  --afc-font:"Hiragino Sans","Hiragino Kaku Gothic ProN","BIZ UDPGothic","Yu Gothic Medium","YuGothic","Meiryo","Noto Sans JP","Noto Sans CJK JP",sans-serif;
  container-type:inline-size; container-name:afc-cmp;
  box-sizing:border-box; margin:1.6em auto; color:#1f2328;
  font-family:var(--afc-font); font-size:14px; line-height:1.6; line-break:strict; text-align:left;
}
.afc-cmp.afc-font-inherit{ font-family:inherit; }
.afc-cmp *{ box-sizing:border-box; }
.afc-cmp a{ text-decoration:none; }
.afc-cmp .afc-cmp__table{ width:100%; border-collapse:collapse; margin:0; font-size:13px; border:0; table-layout:auto; }
.afc-cmp .afc-cmp__table th,.afc-cmp .afc-cmp__table td{ border:0; border-bottom:1px solid #e3e6ea; padding:10px 8px; text-align:left; vertical-align:middle; background:none; }
.afc-cmp .afc-cmp__table thead th{ background:#f6f8fa; font-size:12px; color:#3b4148; font-weight:700; white-space:nowrap; }
.afc-cmp .afc-cmp__table tbody th{ font-weight:400; min-width:170px; }
/* 表が入りきらない幅では横にスクロール（価格の列が切れないように） */
.afc-cmp__scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; padding-top:10px; }
/* 横スクロール（v2.13.1）：商品名の列は左に固定。入りきらないときだけ案内を出す（click.js が is-scroll を付ける） */
.afc-cmp .afc-cmp__table tbody th,.afc-cmp .afc-cmp__table thead th:first-child{ position:sticky; left:0; z-index:1; background:#fff; }
.afc-cmp .afc-cmp__table thead th:first-child{ background:#f6f8fa; }
.afc-cmp.is-scroll .afc-cmp__table tbody th,.afc-cmp.is-scroll .afc-cmp__table thead th:first-child{ box-shadow:2px 0 0 #e3e6ea; }
.afc-cmp .afc-cmp__table td{ min-width:5.5em; }
.afc-cmp__hint{ display:none; margin:0 0 -4px; font-size:12px; color:#5f6670; text-align:right; }
/* 並べ替え・絞り込み（v2.14.0） */
.afc-cmp [hidden]{ display:none !important; }
.afc-cmp__bar{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 10px; }
.afc-cmp__bar-label{ font-size:12px; font-weight:700; color:#5f6670; }
.afc-cmp__seg{ display:inline-flex; background:#f1f3f5; border-radius:999px; padding:3px; max-width:100%; overflow-x:auto; scrollbar-width:none; }
.afc-cmp .afc-cmp__seg button{ flex:none; min-height:38px; margin:0; padding:0 16px; border:0; border-radius:999px; background:none; color:#3b4148; font:700 13px/1 var(--afc-font); cursor:pointer; }
.afc-cmp.afc-font-inherit .afc-cmp__seg button,.afc-cmp.afc-font-inherit .afc-cmp__chips button{ font-family:inherit; }
.afc-cmp .afc-cmp__seg button.is-on{ background:#fff; color:#0f766e; box-shadow:0 1px 3px rgba(0,0,0,.15); }
.afc-cmp .afc-cmp__seg button:focus-visible,.afc-cmp .afc-cmp__chips button:focus-visible,.afc-cmp .afc-cmp__sel:focus-visible{ outline:3px solid #ffbf47; outline-offset:2px; }
.afc-cmp .afc-cmp__sel{ min-height:40px; max-width:100%; margin:0; padding:0 12px; border:1px solid #c9ced4; border-radius:999px; background:#fff; color:#3b4148; font:13px var(--afc-font); }
.afc-cmp__chips{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; padding:2px 0; margin:0 0 6px; }
.afc-cmp .afc-cmp__chips button{ flex:none; min-height:40px; margin:0; padding:0 14px; border:1px solid #c9ced4; border-radius:999px; background:#fff; color:#3b4148; font:600 13px/1 var(--afc-font); cursor:pointer; }
.afc-cmp .afc-cmp__chips button.is-on{ background:#0f766e; border-color:#0f766e; color:#fff; }
.afc-cmp .afc-cmp__count{ font-size:12px; color:#5f6670; margin:0 0 6px; min-height:1px; }
.afc-cmp.is-scroll .afc-cmp__hint{ display:block; }
.afc-cmp .afc-cmp__table .afc-cmp__btns{ flex-direction:column; gap:12px; }
.afc-cmp .afc-cmp__table .afc-cmp__btn{ min-width:84px; }
@container afc-cmp (max-width:720px){ .afc-cmp .afc-cmp__table .afc-cmp__img{ display:none; } }
.afc-cmp__prod{ display:flex; gap:10px; align-items:center; }
.afc-cmp .afc-cmp__img{ display:block; flex:none; object-fit:contain; background:#f3f5f7; border-radius:8px; margin:0; max-width:none; }
.afc-cmp__name{ display:block; font-size:13px; line-height:1.45; font-weight:700; }
.afc-cmp__brand{ display:block; color:#5f6670; font-size:12px; }
.afc-cmp__rank{ display:inline-grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; background:#e9ecef; color:#1f2328; font-weight:800; font-size:13px; }
.afc-cmp__rank--1{ background:#f2c94c; }
.afc-cmp__rank--2{ background:#cfd4da; }
.afc-cmp__rank--3{ background:#e0a37a; }
.afc-cmp__stars{ color:#c2410c; font-weight:800; white-space:nowrap; }
.afc-cmp__none{ color:#8a9099; }

.afc-cmp__btns{ display:flex; gap:6px; }
.afc-cmp .afc-cmp__btn{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:66px; min-height:44px; padding:4px 6px; border-radius:8px; font-size:12px; font-weight:700; line-height:1.25; white-space:nowrap; color:#fff; }
.afc-cmp .afc-cmp__btn b{ font-size:13px; }
.afc-cmp .afc-cmp__btn small{ font-size:11px; font-weight:600; }
.afc-cmp .afc-cmp__btn--amazon{ background:#f5a524; color:#1f2328; }
.afc-cmp .afc-cmp__btn--rakuten{ background:#bf0000; }
.afc-cmp .afc-cmp__btn--yahoo{ background:#1d4ed8; }
.afc-cmp .afc-cmp__btn--custom{ background:#0f766e; }
.afc-cmp .afc-cmp__btn.is-best{ box-shadow:0 0 0 2px #fff, 0 0 0 4px #0f766e; padding-top:12px; }
.afc-cmp .afc-cmp__btn:focus-visible{ outline:3px solid #ffbf47; outline-offset:3px; }
.afc-cmp__best{ position:absolute; top:-9px; left:50%; transform:translateX(-50%); background:#0f766e; color:#fff; font-size:11px; line-height:1; padding:3px 7px; border-radius:999px; }

/* スマホも表（横スクロール・商品名は左に固定）。10件を超えたら「比較表の続きを見る」（v2.19.0） */
.afc-cmp.is-fold .is-folded{ display:none; }
.afc-cmp .afc-cmp__more-btn{ display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:48px; margin:12px 0 0; padding:0 16px; border:2px solid #0f766e; border-radius:10px; background:#fff; color:#0f766e; font:700 14px/1.3 var(--afc-font); cursor:pointer; }
.afc-cmp .afc-cmp__more-btn::after{ content:"▾"; }
.afc-cmp .afc-cmp__more-btn:hover{ background:#e6f4f2; }
.afc-cmp .afc-cmp__more-btn:focus-visible{ outline:3px solid #ffbf47; outline-offset:2px; }
.afc-cmp .afc-cmp__more-btn[hidden]{ display:none; }
.afc-cmp.afc-font-inherit .afc-cmp__more-btn{ font-family:inherit; }
@container afc-cmp (max-width:560px){
  .afc-cmp .afc-cmp__table tbody th{ min-width:132px; max-width:150px; }
  .afc-cmp__name{ font-size:12px; }
  .afc-cmp__brand{ font-size:11px; }
  .afc-cmp .afc-cmp__table th,.afc-cmp .afc-cmp__table td{ padding:8px 6px; }
  .afc-cmp .afc-cmp__table .afc-cmp__btn{ min-width:78px; }
}
.afc-cmp .afc-cmp__note{ font-size:12px; color:#5f6670; margin:10px 0 0; line-height:1.6; }
