/* =====================================================================
   くらべる日和 比較記事スタイル（WordPressプラグイン kurabe-hiyori が読み込む）
   - 記事本文はすべて <div class="kb"> の中に入る。ここ以外のセレクタは書かない
     （どのテーマ（SWELL / Cocoon / Twenty Twenty-Four 等）とぶつからないようにするため）
   - 記事ごとのCSSは作らない。見た目の変更はここ1か所で行い、全記事に反映する
   構成: 0.トークン 1.ベース 2.記事冒頭 3.結論・PR 4.会話(.kb-talk) 5.選び方・用語
         6.選び方チャート 7.おすすめ一覧 8.比較表 9.商品カード 10.締め・編集方針 11.レスポンシブ
   ===================================================================== */

/* ページ内リンクで固定ヘッダーに隠れないように（テーマのヘッダー高に合わせて調整） */
html{scroll-padding-top:80px}

/* ---------- 0. デザイントークン ---------- */
.kb{
  --kb-paper:#fffdf7; --kb-ink:#28313b; --kb-muted:#5f6d66; --kb-line:#e6e3db;
  --kb-mint:#e8f3ed; --kb-mint-strong:#2c776d; --kb-accent-ink:#1d6b62;
  --kb-cream:#fff7dc; --kb-cream-line:#f1e3b0; --kb-sky:#eaf6f8; --kb-sky-line:#d3eaef;
  --kb-leaf:#f1f6f2; --kb-leaf-line:#dde8e1;
  --kb-best:#1f7a5c; --kb-ok:#5f7f3a; --kb-weak:#a3672a; --kb-sale:#c0392b;
  --kb-r-l:22px; --kb-r-m:15px; --kb-r-s:10px;
  /* 会話の顔サイズ（.kb-talk 全体で共通。文脈差は修飾子で） */
  --kb-face:68px; --kb-face-compact:56px;
  /* 文字サイズの下限: 本文15px / 会話15px / 補足12px */
  --kb-fs-body:15px; --kb-fs-talk:15px; --kb-fs-note:12px;
}

/* ---------- 1. ベース ---------- */
.kb{color:var(--kb-ink);font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;font-size:var(--kb-fs-body);line-height:1.85}
.kb *,.kb *::before,.kb *::after{box-sizing:border-box}
.kb img{max-width:100%;display:block;height:auto}
.kb a{color:inherit}
.kb a:focus-visible,.kb [tabindex]:focus-visible{outline:3px solid #1b767c;outline-offset:3px}
.kb p{margin:0}
.kb h2,.kb h3,.kb h4{border:0;background:none;padding:0;margin-left:0;margin-right:0;box-shadow:none;border-radius:0;color:var(--kb-ink)}   /* テーマ（Cocoon等）の見出し装飾を打ち消す */
.kb h2::before,.kb h2::after,.kb h3::before,.kb h3::after{content:none}
.kb-section{margin:64px 0 0}
.kb-section-index{font-size:12px;letter-spacing:.18em;color:#4f8a80;font-weight:900}
.kb h2.kb-h2{font-size:clamp(23px,3.2vw,32px);line-height:1.45;letter-spacing:-.02em;margin:6px 0 8px}
.kb-deck{color:var(--kb-muted);font-size:15px;margin:0 0 20px}
.kb-note{font-size:var(--kb-fs-note);color:var(--kb-muted);line-height:1.8;margin-top:10px}
.kb ul,.kb ol{margin:0}

/* ---------- 2. 記事冒頭（タイトルはWordPressの投稿タイトル h1 を使う） ---------- */
.kb-hero{padding:28px 26px;border-radius:var(--kb-r-l);position:relative;overflow:hidden;background:radial-gradient(circle at 92% 8%,#fff0bd 0 13%,transparent 13.3%),linear-gradient(175deg,#e7f2ee,#f9faf4 70%)}
.kb-eyebrow{color:#207269;font-weight:900;letter-spacing:.12em;font-size:12px}
.kb-catch{font-weight:900;font-size:clamp(26px,4.2vw,44px);line-height:1.35;letter-spacing:-.04em;margin:10px 0 12px}
.kb-catch em{color:#268174;font-style:normal;border-bottom:8px solid #ffdf80}
.kb-lead{font-size:16px;color:#47575c;line-height:1.95}
.kb-hero-faces{display:flex;align-items:center;margin-top:16px}
.kb-hero-faces img{width:60px;height:60px;margin-right:-8px}
.kb-hero-faces span{margin-left:18px;font-size:13px;color:#61716e;font-weight:700}
.kb-meta{font-size:13px;color:#66746c;margin-top:14px}

/* ---------- 3. PR表記・結論ボックス・目次 ---------- */
/* PR表記：記事冒頭に目立ちすぎない1行（詳細は末尾の .kb-policy） */
.kb-pr{margin:6px 0 0;font-size:12px;color:#77837d}
.kb-verdict{background:#fff;border:2px solid #cfe2d8;border-radius:var(--kb-r-l);padding:20px 22px;margin-top:20px;box-shadow:0 8px 25px #203c2b0c}
.kb-verdict__head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.kb-verdict__head img{width:56px;height:56px;flex:none}
.kb-verdict__title{font-size:19px;font-weight:900;line-height:1.4}
.kb-verdict__title small{display:block;font-size:13px;color:var(--kb-muted);font-weight:700}
.kb-verdict__list{list-style:none;padding:0;display:grid;gap:8px}
.kb-verdict__list li{margin:0;padding:0}
.kb-verdict__list li::before{content:none}
.kb-verdict__list a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;text-decoration:none;padding:11px 14px;border-radius:12px;background:var(--kb-leaf);border:1px solid var(--kb-leaf-line)}
.kb-verdict__if{font-size:14px;color:#46564f}
.kb-verdict__pick{font-weight:900;font-size:15px;color:var(--kb-accent-ink)}
.kb-verdict__pick small{font-weight:700;color:var(--kb-muted);font-size:12px;margin-left:4px;white-space:nowrap;display:inline-block}
.kb-verdict__go{grid-row:span 2;font-size:20px;color:#43877d}
.kb-jump{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.kb-jump a{min-height:52px;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:2px solid #c9d6ce;border-radius:13px;background:#f4f8f4;font-size:15px;font-weight:900}
.kb-jump a.is-primary{background:var(--kb-mint-strong);color:#fff;border-color:var(--kb-mint-strong)}

/* ---------- 4. 会話コンポーネント (.kb-talk) ----------
   構造:  .kb-talk                     … 会話ブロック（どこでも再利用）
            .kb-talk__line--{話者}     … 1発言。話者ごとの左右・配色はここだけで制御
              img.kb-talk__face        … 顔の表示領域（400x400で正規化済み。表情はファイル名で指定）
              .kb-talk__bubble         … 吹き出し（.kb-talk__name + p）
   修飾子: .kb-talk--compact（用語・商品カード内） / .kb-talk--stage（冒頭・締めの台紙つき）
   顔画像は大きさ・下端が揃っているので、表情ごとの拡大・回転は絶対にしない。 */
.kb-talk{--kb-talk-face:var(--kb-face);display:flex;flex-direction:column;gap:12px}
.kb-talk--compact{--kb-talk-face:var(--kb-face-compact);gap:9px}
.kb-talk--stage{background:#fff;border:1px solid #e5e6df;border-radius:24px;padding:24px 26px}
.kb-talk__line{display:flex;align-items:center;gap:12px}
.kb-talk__face{width:var(--kb-talk-face);height:var(--kb-talk-face);flex:0 0 var(--kb-talk-face);object-fit:contain;margin:0}
.kb-talk__bubble{min-width:0;max-width:640px;padding:10px 16px;border-radius:18px;border:1px solid var(--kb-leaf-line);background:var(--kb-leaf);box-shadow:0 2px 8px rgba(59,83,68,.035)}
.kb-talk__name{display:block;color:#5d6863;font-size:12px;font-weight:900;line-height:1.5}
.kb-talk__bubble p{margin:2px 0 0;font-size:var(--kb-fs-talk);font-weight:600;line-height:1.75;overflow-wrap:anywhere}
.kb-talk--compact .kb-talk__bubble{padding:8px 13px}
.kb-talk--compact .kb-talk__bubble p{font-size:14px}
/* 話者ごとの見た目: わかば=左・緑 / しらべ=左・青 / えらぶ=右・黄 */
.kb-talk__line--shirabe .kb-talk__bubble{background:var(--kb-sky);border-color:var(--kb-sky-line)}
.kb-talk__line--erabu{flex-direction:row-reverse}
.kb-talk__line--erabu .kb-talk__bubble{background:var(--kb-cream);border-color:var(--kb-cream-line)}
.kb-talk-label{font-size:12px;font-weight:900;color:#448275;letter-spacing:.08em}

/* ---------- 5. 選び方・用語解説 ---------- */
.kb-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;list-style:none;counter-reset:kbpt}
.kb-points li{background:#fff;border:1px solid #e6e7e0;border-radius:var(--kb-r-m);padding:16px 18px;counter-increment:kbpt;margin:0}
.kb-points li::before{content:none}
.kb-points b{display:flex;align-items:center;gap:8px;font-size:17px;margin-bottom:4px}
.kb-points b::before{content:counter(kbpt);display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--kb-mint-strong);color:#fff;font-size:14px;flex:none}
.kb-points p{font-size:14px;color:#56655e;line-height:1.75}
.kb-feature{margin-top:22px;padding:22px 24px;border:1px solid #d9e8df;background:linear-gradient(135deg,#fff9e9 0%,#f0f8f5 100%);border-radius:var(--kb-r-l)}
.kb-feature > * + *{margin-top:14px}
.kb h3.kb-h3{font-size:20px;line-height:1.45;margin:4px 0 0}
.kb-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.kb-col{background:#fff;border:1px solid #dbe6de;border-radius:var(--kb-r-m);padding:15px 17px;min-width:0}
.kb-col strong{font-size:17px}
.kb-flow{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:10px 0;padding:8px 10px;border-radius:9px;background:#f5f9f6;font-weight:900;font-size:13px}
.kb-col p{font-size:14px;line-height:1.75;color:#4d6058}
.kb-explain{font-size:14px;line-height:1.8;color:#47645b}
.kb-explain a{font-weight:800;color:#24796e}
.kb-terms{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.kb-term{background:#fff;border:1px solid #e1e8e3;border-radius:18px;padding:18px;min-width:0}
.kb-term > * + *{margin-top:12px}
.kb-term h3.kb-h3{font-size:17px}

/* ---------- 6. 選び方チャート ---------- */
.kb-finder{background:#fff;border:1px solid #dae4dc;border-radius:var(--kb-r-l);padding:22px 24px}
.kb-finder__q1{font-weight:900;font-size:17px;margin:0 0 12px;text-align:center}
.kb-finder__branches{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.kb-finder__branch{border:1px dashed #c9dbd1;border-radius:var(--kb-r-m);padding:14px}
.kb-finder__answer{display:inline-block;font-weight:900;font-size:14px;background:var(--kb-mint);border-radius:99px;padding:3px 12px;margin-bottom:8px}
.kb-finder__q2{font-weight:800;font-size:15px;margin:0 0 10px}
.kb-finder__results{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.kb-finder__results a{display:block;text-decoration:none;border-radius:12px;padding:10px 11px;background:var(--kb-leaf);border:1px solid var(--kb-leaf-line);font-size:13px;line-height:1.5}
.kb-finder__results a span{display:block;font-weight:700;color:var(--kb-muted);font-size:12px}
.kb-finder__results a b{display:block;font-size:14px;color:var(--kb-accent-ink)}

/* ---------- 7. おすすめ一覧（使い方別・順位なし） ---------- */
.kb-picks{display:grid;gap:10px}
.kb-pick{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 16px;text-decoration:none;background:#fff;border:1px solid #dae4dc;border-radius:var(--kb-r-m)}
.kb-pick img{width:96px;height:80px;object-fit:contain;mix-blend-mode:multiply;background:#f8f9f6;border-radius:10px}
.kb-badge{display:inline-block;font-size:12px;font-weight:900;color:#fff;background:var(--kb-mint-strong);border-radius:6px;padding:2px 9px;line-height:1.6}
.kb-badge--alt{background:#6f8f3d}.kb-badge--desk{background:#3f7894}.kb-badge--mobile{background:#8a6a1f}
.kb-pick__name{display:block;font-weight:900;font-size:15px;margin-top:4px;overflow-wrap:anywhere}
.kb-pick__why{display:block;font-size:14px;color:#56655e;line-height:1.6;margin-top:2px}
.kb-pick__side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.kb-chips{display:flex;flex-wrap:wrap;gap:6px}
.kb-chip{font-size:12px;font-weight:800;color:#536b60;border:1px solid #dae6dd;border-radius:7px;padding:2px 8px;white-space:nowrap;background:#fff}
.kb-pick .kb-chips{justify-content:flex-end;max-width:220px}
.kb-low{font-size:13px;color:#536b60;white-space:nowrap;text-align:right;line-height:1.3}
.kb-low b{font-size:18px;color:var(--kb-ink)}
.kb-low small{display:block;font-size:11.5px;color:var(--kb-muted)}
.kb-method{margin-top:16px;background:#f1f8f5;border-radius:var(--kb-r-m);padding:16px 18px;font-size:14px;color:#46594f}
.kb-method h3.kb-h3{font-size:15px;margin:0 0 6px}
.kb-method ul{padding-left:1.2em;line-height:1.85}

/* ---------- 8. 比較表 ----------
   先頭列(項目名)は横スクロール中も固定。差が出る行だけ残し、共通仕様は表の上に1行で。
   ◎○△は fit_rules（記事JSON）から自動計算される。 */
.kb-compare{background:#f4f8f6;border-radius:var(--kb-r-l);padding:24px 20px}
.kb-common{font-size:14px;background:#fff;border:1px solid #d9e4de;border-radius:12px;padding:10px 14px;margin:0 0 12px}
.kb-scroller{background:#fff;overflow-x:auto;border-radius:18px;border:1px solid #d9e4de}
.kb table.kb-spec{border-collapse:separate;border-spacing:0;width:100%;min-width:700px;font-size:14px;margin:0;border:0}
.kb .kb-spec th,.kb .kb-spec td{padding:12px;border:0;border-bottom:1px solid #e6ece8;text-align:center;vertical-align:middle;line-height:1.55;background:#fff}
.kb .kb-spec thead th{background:#e2f0e9;font-weight:900}
.kb-spec thead th a{text-decoration:none}
.kb-spec thead small{display:block;font-size:12px;color:#56705f;font-weight:700}
.kb .kb-spec th[scope=row]{position:sticky;left:0;z-index:1;background:#fcfdfb;text-align:left;font-weight:800;width:132px;min-width:112px;box-shadow:1px 0 0 #e6ece8}
.kb-spec thead th:first-child{position:sticky;left:0;z-index:2}
.kb-spec tbody tr:last-child>*{border-bottom:0}
.kb-spec img{width:92px;height:70px;object-fit:contain;margin:0 auto}
.kb .kb-spec .is-fit td{background:#fbfdf8}
.kb .kb-spec .is-price td{background:#fffaf2}
.kb-fit{display:block;font-size:20px;font-weight:900;line-height:1.2}
.kb-fit--best{color:var(--kb-best)}.kb-fit--ok{color:var(--kb-ok)}.kb-fit--weak{color:var(--kb-weak)}.kb-fit--unknown{color:#9aa79f}
/* 商品が多い表でも1列が細くなりすぎないよう、列ごとの最小幅を決める（10商品で文字が縦1列に潰れたため） */
.kb .kb-spec td,.kb .kb-spec thead th:not(:first-child){min-width:124px}
.kb-spec td small{display:block;font-size:12px;color:#5f7268}
.kb-spec th small{display:block;font-size:11.5px;font-weight:700;color:#5f7268}
.kb-spec-help{display:block;font-weight:700;font-size:12px;color:#24796e}
.kb-legend{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:#4c5f55;margin:10px 0 0}

/* ---------- 9. 商品カード ----------
   順序: 用途バッジ → 写真/名称 → 向いている人・向かない人 → チップ → 最安値 → 購入ボタン
         → ミニ会話 → いいところ/気をつけたいところ → 出典 */
.kb-card{background:#fff;border:1px solid #e3e7e1;border-radius:25px;overflow:hidden;box-shadow:0 4px 18px #435d4a08;margin:0 0 32px}
.kb-card__banner{display:flex;align-items:center;gap:10px;padding:12px 24px;background:#eef5ee;border-bottom:1px solid #d9e4dc}
.kb-card__top{display:grid;grid-template-columns:38% minmax(0,1fr);padding:24px;gap:22px}
.kb-picture{margin:0;background:#fff;border:1px solid #edf0ed;border-radius:17px;min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 12px;gap:8px}
.kb-picture img{width:100%;max-width:360px;max-height:250px;object-fit:contain}
.kb-picture figcaption{font-size:12px;color:#62776a;text-align:center;line-height:1.5}
.kb-picture a{color:#2b786d}
.kb-maker{color:#357b71;font-weight:900;letter-spacing:.06em;font-size:13px}
.kb-maker span{color:#68756e;letter-spacing:0}
.kb h3.kb-card__name{font-size:22px;line-height:1.5;margin:6px 0 12px;letter-spacing:-.02em}
.kb-fitfor{display:grid;gap:6px;margin:0 0 14px}
.kb-fitfor p{font-size:14px;line-height:1.65;padding:8px 12px;border-radius:10px}
.kb-fitfor .is-yes{background:#e8f3ed}.kb-fitfor .is-no{background:#fbf3e6}
.kb-fitfor b{font-size:12px;margin-right:8px;color:#2f6f5b}.kb-fitfor .is-no b{color:#8a5a1f}
/* 価格: 3ストアの新品最安（税込・送料込み）。最安ストアに「最安」バッジ */
.kb-price{padding:12px 14px;background:#f6f9f7;border:1px solid #dbe9df;border-radius:12px;margin:14px 0 10px}
.kb-price__head{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline;justify-content:space-between;font-size:13px;color:#38786d}
.kb-price__amount{display:block;font-size:26px;line-height:1.35;color:#204f48;font-weight:900}
.kb-price__amount small{font-size:13px;font-weight:700;color:#38786d;margin-left:6px}
.kb-price p{font-size:12px;color:#536d64;margin:2px 0 0;line-height:1.6}
.kb-price--none .kb-price__amount{font-size:16px;color:var(--kb-muted)}
.kb-price p.kb-price__alt{margin-top:6px;padding-top:6px;border-top:1px dashed #cfe0d6;color:#46594f}
/* 購入ボタン: ストアごとの最安値つき。最安のストアは .is-lowest */
.kb-shops{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.kb-shop{position:relative;min-height:58px;border-radius:10px;border:1px solid #dce3dc;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:13px;font-weight:800;line-height:1.3;padding:8px 4px;text-align:center}
.kb-shop small{font-size:12px;font-weight:700;opacity:.9;margin-top:2px}
.kb-shop.is-lowest{box-shadow:0 0 0 2px var(--kb-sale) inset}
.kb-shop.is-lowest::before{content:"最安";position:absolute;top:-9px;left:50%;transform:translateX(-50%);font-size:11px;background:var(--kb-sale);color:#fff;border-radius:99px;padding:0 8px;line-height:1.6}
.kb-shop--amazon{background:#fff6e9;color:#584132;border-color:#f0d9b4}
.kb-shop--rakuten{background:#fff1f0;color:#a31e26;border-color:#e9c5c5}
.kb-shop--yahoo{background:#fff2f1;color:#a52625;border-color:#edcccc}
.kb-card__chat{margin:0 24px;background:#fbfaf5;border-radius:16px;padding:14px 16px}
.kb-proscons{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 24px}
.kb-pros,.kb-cons{border:1px solid #e1e7e1;padding:14px 18px;border-radius:14px;background:#fcfffc}
.kb-cons{background:#fffdfa;border-color:#ece8db}
.kb h4.kb-h4{font-size:15px;margin:0 0 6px}
.kb-proscons ul{padding:0 0 0 18px;font-size:14px;line-height:1.8;color:#4f5e57}
.kb-pros li::marker{color:#358c74}.kb-cons li::marker{color:#e2ab54}
.kb-source{padding:0 24px 20px;color:#6b766f;font-size:12px}
.kb-source a{color:#4b6e62}

/* ---------- 10. 締め・編集方針 ---------- */
.kb-closing .kb-talk--stage{background:#fffaf0}
.kb-summary{margin-top:16px;background:#fff;border:1px solid #e1e8e3;border-radius:var(--kb-r-m);padding:14px 18px}
.kb-summary ul{padding-left:1.2em;font-size:14px;line-height:1.9}
.kb-policy{margin-top:40px;border-top:1px solid #e4e8e2;padding:16px 4px 0;font-size:12.5px;color:#66746c}
.kb-policy > * + *{margin-top:10px}
.kb-policy a{color:#216e62}
.kb-rights{background:#fff3e2;border:1px solid #edd6b9;border-radius:10px;padding:10px 14px}

/* ---------- 11. レスポンシブ ---------- */
@media (max-width:760px){
  .kb{--kb-face:56px;--kb-face-compact:48px;--kb-fs-talk:14.5px}
  .kb-hero{padding:22px 16px}.kb-lead{font-size:15px}
  .kb-hero-faces img{width:50px;height:50px}
  .kb-verdict{padding:16px 14px}.kb-verdict__title{font-size:17px}
  .kb-jump a{font-size:14px}
  .kb-section{margin-top:52px}
  .kb-talk--stage{padding:16px 12px;border-radius:18px}
  .kb-talk__line{gap:8px}.kb-talk__bubble{padding:9px 12px}
  .kb-points,.kb-cols,.kb-terms,.kb-finder__branches{grid-template-columns:1fr}
  .kb-feature{padding:16px 14px}.kb-term{padding:14px}
  .kb-finder{padding:16px 12px}
  .kb-pick{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px}
  .kb-pick img{width:72px;height:66px}
  .kb-pick__side{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center}
  .kb-pick .kb-chips{justify-content:flex-start;max-width:none}
  .kb-low{white-space:normal;text-align:right}
  .kb-compare{padding:18px 10px}
  .kb-card__banner{padding:10px 16px}
  .kb-card__top{display:block;padding:16px}
  .kb-picture{min-height:200px}.kb-picture img{max-height:220px}
  .kb h3.kb-card__name{font-size:19px;margin-top:14px}
  .kb-card__chat{margin:0 16px;padding:12px 10px}
  .kb-proscons{grid-template-columns:1fr;margin:14px 16px;gap:10px}
  .kb-source{padding:0 16px 16px}
  /* スマホでは比較表に約2製品が同時に見える幅 */
  .kb table.kb-spec{font-size:13px;min-width:540px}.kb-spec th,.kb-spec td{padding:10px 8px}
  .kb .kb-spec th[scope=row]{width:92px;min-width:92px;font-size:12.5px}.kb-spec img{width:72px;height:56px}
  .kb .kb-spec td,.kb .kb-spec thead th:not(:first-child){min-width:112px}
}
@media (max-width:380px){
  .kb-shop{font-size:12px}
  .kb-finder__results{grid-template-columns:1fr}
}
