/* =========================================================
  COMON 製品情報：製品詳細ページ用CSS
  読み込み：template-parts/template-product-detail.php を使うページだけ（functions.php で制御）
  クラスは .cfp 配下に限定（テーマの .cf- / .comon- とは衝突しない）
========================================================= */
.cfp{--cfp-ink:#111;--cfp-sub:#555;--cfp-line:rgba(0,0,0,.12);--cfp-bg:#f5f6f7;--cfp-ac:var(--accent,#189ed0);
  max-width:960px;margin:0 auto;color:var(--cfp-ink);font-size:16px;line-height:1.9}
.post_content .cfp *{box-sizing:border-box}
.post_content .cfp p{margin:0 0 1em}
.post_content .cfp :is(h2,h3,h4){background:none;border:0;padding:0;box-shadow:none;color:var(--cfp-ink);letter-spacing:.02em}
.post_content .cfp :is(h2,h3,h4)::before,.post_content .cfp :is(h2,h3,h4)::after{content:none;display:none}
.post_content .cfp ul,.post_content .cfp ol{margin:0 0 1em;padding-left:1.3em}
.post_content .cfp li{margin:0 0 .3em}

/* 画像 */
.post_content .cfp-hero{margin:0 0 clamp(8px,2vw,16px)}
.post_content .cfp-hero img{display:block;width:100%;height:auto}

/* セクション */
.post_content .cfp .cfp-sec{padding:0 !important;margin:0 0 clamp(64px,9vw,112px) !important}
.post_content .cfp .cfp-sec:first-of-type{margin-top:clamp(32px,5vw,56px) !important}
.post_content .cfp .cfp-table:last-child,.post_content .cfp .cfp-sec>*:last-child{margin-bottom:0}
.cfp-head{margin:0 0 clamp(24px,3.5vw,36px)}
.post_content .cfp-en{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-family:"Bebas Neue",sans-serif;font-size:15px;line-height:1;letter-spacing:.14em;color:var(--cfp-ac)}
.cfp-en::before{content:"";width:24px;height:2px;background:var(--cfp-ac)}
.post_content .cfp-ttl{margin:0;font-size:clamp(24px,3.2vw,34px);line-height:1.45;font-weight:900}
.post_content .cfp-ttl small{display:block;margin-top:.35em;font-size:.5em;font-weight:700;color:var(--cfp-sub);letter-spacing:.04em}
.post_content .cfp-h3{margin:2.4em 0 .8em;font-size:clamp(19px,2.2vw,23px);line-height:1.6;font-weight:800}

/* 01 導入 */
.post_content .cfp-solve{display:inline-block;margin:0 0 1.4em;padding:.45em 1em;background:var(--cfp-ink);color:#fff;font-size:.9em;font-weight:700;line-height:1.6}
.post_content .cfp-lead{margin:0 0 1.8em;font-size:1.05em}
.cfp-lead strong{display:block;margin-bottom:.5em;font-size:clamp(19px,2.3vw,24px);line-height:1.6;font-weight:900}
.cfp-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 1em}
.cfp-stats>div{background:var(--cfp-bg);padding:1.4em 1em 1.2em;text-align:center;border-top:3px solid var(--cfp-ac)}
.cfp-stats b{display:block;font-size:clamp(20px,2.6vw,28px);line-height:1.2;font-weight:900;letter-spacing:.01em;white-space:nowrap}
.cfp-stats span{display:block;margin-top:.5em;font-size:.8em;line-height:1.5;color:var(--cfp-sub)}
.post_content .cfp .cfp-state{list-style:none;margin:1.8em 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.post_content .cfp .cfp-state li{margin:0;padding:1.3em 1.2em;border:1px solid var(--cfp-line);font-size:.93em;line-height:1.8}
.cfp-state li strong{display:block;margin-bottom:.4em;font-size:1.08em;line-height:1.5}

/* 02 判断基準 */
.cfp-lens{margin:0 0 20px;padding:clamp(20px,3vw,32px);border:1px solid var(--cfp-line);background:#fff}
.cfp-lens__head{display:flex;align-items:baseline;gap:14px;margin:0 0 .4em}
.cfp-lens__no{font-family:"Bebas Neue",sans-serif;font-size:30px;line-height:1;color:var(--cfp-ac);flex:none}
.post_content .cfp-lens h3{margin:0;font-size:clamp(19px,2.2vw,22px);line-height:1.5;font-weight:800}
.post_content .cfp-q{margin:0 0 1.1em;padding-bottom:1em;border-bottom:1px solid var(--cfp-line);font-size:.92em;color:var(--cfp-sub)}
.post_content .cfp-lens ul{font-size:.95em}
.post_content .cfp-honest{margin:1em 0 0;padding:1em 1.2em;background:var(--cfp-bg);border-left:3px solid var(--cfp-ink);font-size:.93em}
.cfp-note{margin:1em 0;padding:1.1em 1.3em;background:var(--cfp-bg);font-size:.9em;line-height:1.8}
.cfp-note b{display:block;margin-bottom:.3em}
.post_content .cfp-note ul{margin:0}

/* 表 */
.post_content .cfp-table{margin:0 0 1.6em;overflow-x:auto}
.post_content .cfp-table table{width:100%;margin:0;border-collapse:collapse;font-size:.92em;line-height:1.7}
.post_content .cfp-table :is(th,td){border:0;border-bottom:1px solid var(--cfp-line);padding:.85em 1em;text-align:left;vertical-align:top;background:none}
.post_content .cfp-table tr:first-child :is(th,td){border-top:2px solid var(--cfp-ink)}
.post_content .cfp-table tbody th{width:34%;font-weight:700;background:var(--cfp-bg)}
.post_content .cfp-table caption{caption-side:top;text-align:left;font-weight:800;padding:0 0 .6em;font-size:1.05em}
.post_content .cfp-compare table{text-align:center}
.post_content .cfp-compare :is(th,td){text-align:center;vertical-align:middle}
.post_content .cfp .cfp-compare thead th{font-weight:700;background:var(--cfp-bg);color:var(--cfp-ink);border-top:2px solid var(--cfp-ink)}
.post_content .cfp .cfp-compare thead th:first-child{text-align:left;font-size:.85em;color:var(--cfp-sub)}
.post_content .cfp .cfp-compare thead th.is-comon{background:var(--cfp-ac);color:#fff}
.post_content .cfp-compare tbody tr:first-child :is(th,td){border-top:0}
.post_content .cfp-compare tbody th{text-align:left;width:auto}
.post_content .cfp-compare .is-comon{background:rgba(24,158,208,.08);color:var(--cfp-ac);font-weight:900;font-size:1.12em}
.post_content .cfp-compare thead .is-comon{font-size:1em}

/* 構造と機構 */
.cfp-mech{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cfp-mech>div{padding:1.3em 1.4em;background:var(--cfp-bg)}
.post_content .cfp-mech h4{margin:0 0 .5em;font-size:1.02em;line-height:1.5;font-weight:800}
.post_content .cfp-mech p{margin:0;font-size:.92em;line-height:1.8}

/* 制約の開示 */
.post_content .cfp .cfp-caution{list-style:none;margin:1.2em 0 0;padding:0;counter-reset:c}
.post_content .cfp .cfp-caution li{list-style:none !important;position:relative;margin:0;padding:1.1em 0 1.1em 3em;border-top:1px solid var(--cfp-line);line-height:1.8;counter-increment:c}
.post_content .cfp .cfp-caution li::marker{content:none}
.post_content .cfp .cfp-caution li:last-child{border-bottom:1px solid var(--cfp-line)}
.cfp-caution li::before{content:counter(c,decimal-leading-zero);position:absolute;left:0;top:1.05em;font-family:"Bebas Neue",sans-serif;font-size:22px;line-height:1.2;color:var(--cfp-ac)}
.cfp-caution li strong{display:block;margin-bottom:.2em}

/* 相談 */
.cfp-consult{padding:clamp(28px,5vw,52px);border:1px solid var(--cfp-line);background:#fff}
.post_content .cfp-consult h3{margin:0 0 1em;font-size:clamp(19px,2.3vw,24px);line-height:1.6;font-weight:900}
.post_content .cfp-consult h4{margin:0 0 .8em;font-size:1.05em;font-weight:800}
.post_content .cfp-consult ul{font-size:.95em}
/* STEP：白抜き丸番号＋枠カード＋矢印 */
.post_content .cfp .cfp-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin:2em 0 0;padding:0;list-style:none;counter-reset:s}
.post_content .cfp .cfp-steps li{list-style:none !important;position:relative;margin:0;padding:1.6em 1em 1.3em;border:1.5px solid var(--cfp-ink);background:#fff;text-align:center;font-weight:800;font-size:1.05em;line-height:1.5;counter-increment:s}
.post_content .cfp .cfp-steps li::marker{content:none}
.cfp-steps li::before{content:counter(s);display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 auto .7em;border:2px solid var(--cfp-ac);border-radius:50%;background:#fff;color:var(--cfp-ac);font-family:"Bebas Neue",sans-serif;font-weight:400;font-size:24px;line-height:1}
.cfp-steps li:not(:last-child)::after{content:"";position:absolute;top:50%;right:-19px;width:10px;height:10px;border-top:2px solid var(--cfp-ac);border-right:2px solid var(--cfp-ac);transform:translateY(-50%) rotate(45deg)}
.cfp-steps li span{display:block;margin-top:.5em;font-weight:400;font-size:.8em;line-height:1.7;color:var(--cfp-sub)}
/* お聞かせください */
.cfp-ask{margin:2.4em 0 0;padding:clamp(20px,3vw,32px);background:rgba(24,158,208,.07)}
.post_content .cfp .cfp-ask ul{margin:0}
.post_content .cfp .cfp-ask p{margin:1.2em 0 0}
.cfp-cta{margin-top:2em;text-align:center}
.post_content .cfp-btn{display:inline-block;padding:1.1em 3em;background:var(--cfp-ink);color:#fff !important;text-decoration:none !important;font-weight:800;letter-spacing:.06em;transition:opacity .2s}
.cfp-btn:hover{opacity:.8}
.post_content .cfp-small{font-size:.85em;line-height:1.8;color:var(--cfp-sub)}
.post_content .cfp-legal{font-size:.85em;line-height:1.8;color:var(--cfp-sub)}


@media (max-width:767px){
  .cfp{font-size:15px}
  .cfp-stats{gap:6px}
  .cfp-stats>div{padding:1em .4em .9em}
  .cfp-stats b{font-size:15px;white-space:normal}
  .cfp-stats span{font-size:.7em}
  .post_content .cfp .cfp-state,.cfp-mech,.post_content .cfp .cfp-steps{grid-template-columns:1fr}
  .post_content .cfp .cfp-steps{gap:24px}
  .post_content .cfp .cfp-steps li{text-align:left;padding:1em 1em 1em 72px;min-height:76px}
  .cfp-steps li::before{position:absolute;left:16px;top:50%;transform:translateY(-50%);margin:0}
  .cfp-steps li:not(:last-child)::after{top:auto;right:auto;bottom:-17px;left:50%;transform:translateX(-50%) rotate(135deg)}
  .post_content .cfp-table tbody th{width:38%}
  .post_content .cfp-table :is(th,td){padding:.75em .7em}
  .post_content .cfp-btn{display:block;padding:1.1em 1em}
}

/* 製品情報トップ：カテゴリーカード */
.post_content .cfp .cfp-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.post_content .cfp .cfp-cat{display:flex;flex-direction:column;border:1px solid var(--cfp-line);background:#fff;color:var(--cfp-ink) !important;text-decoration:none !important;transition:border-color .2s}
.post_content .cfp .cfp-cat figure{margin:0;aspect-ratio:4/3;overflow:hidden;background:var(--cfp-bg)}
.post_content .cfp .cfp-cat img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.post_content .cfp .cfp-cat__body{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:1em 1.2em}
.post_content .cfp .cfp-cat__en{display:block;margin:0 0 .15em;font-family:"Bebas Neue",sans-serif;font-size:13px;line-height:1;letter-spacing:.12em;color:var(--cfp-ac)}
.post_content .cfp .cfp-cat__ttl{display:block;font-size:1.08em;font-weight:800;line-height:1.5}
.post_content .cfp .cfp-cat__arrow{flex:none;width:9px;height:9px;border-top:2px solid var(--cfp-ac);border-right:2px solid var(--cfp-ac);transform:rotate(45deg);margin-right:4px}
.post_content .cfp .cfp-cat:hover{border-color:var(--cfp-ac)}
.post_content .cfp .cfp-cat:hover img{transform:scale(1.04)}
@media (max-width:767px){
  .post_content .cfp .cfp-cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .post_content .cfp .cfp-cat__body{padding:.8em .8em}
  .post_content .cfp .cfp-cat__ttl{font-size:.95em}
}

/* =========================================================
   製品情報トップ（template-product-top.php）用の追加部品
========================================================= */
.post_content .cfp [id]{scroll-margin-top:100px}

/* 数値の補助文字（超・＞・→） */
.cfp-stats b small{font-size:.55em;font-weight:700;margin:0 .15em;color:var(--cfp-sub)}

/* 3つの入口 */
.post_content .cfp .cfp-top-entries{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.post_content .cfp .cfp-top-entry{display:flex;flex-direction:column;padding:1.5em 1.4em;border:1px solid var(--cfp-line);border-top:3px solid var(--cfp-ac);background:#fff}
.post_content .cfp .cfp-top-entry h3{margin:0 0 .7em;font-size:1.1em;line-height:1.5;font-weight:900}
.post_content .cfp .cfp-top-entry p{margin:0 0 1em;font-size:.93em;line-height:1.8}
.post_content .cfp .cfp-top-entry .cfp-top-links{margin-top:auto;padding-top:.9em;border-top:1px solid var(--cfp-line)}

/* テキストリンク（→付き） */
.post_content .cfp .cfp-top-links{margin:0;display:flex;flex-wrap:wrap;gap:.4em 1.4em}
.post_content .cfp .cfp-top-links a{display:inline-flex;align-items:center;gap:.5em;font-size:.93em;font-weight:800;color:var(--cfp-ink);text-decoration:none;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.post_content .cfp .cfp-top-links a::after{content:"";width:7px;height:7px;border-top:2px solid var(--cfp-ac);border-right:2px solid var(--cfp-ac);transform:rotate(45deg)}
.post_content .cfp .cfp-top-links a:hover{color:var(--cfp-ac);border-bottom-color:var(--cfp-ac)}

/* 5ステップ */
.post_content .cfp .cfp-steps.cfp-steps--5{grid-template-columns:repeat(5,minmax(0,1fr));gap:22px;margin-bottom:1.6em}
.post_content .cfp .cfp-steps--5 li{padding:1.4em .8em 1.2em;font-size:1em}
.cfp-steps--5 li:not(:last-child)::after{right:-16px}

/* 事例 */
.cfp-top-case{margin-top:1.8em;padding:clamp(20px,3vw,32px);background:var(--cfp-bg);border-left:3px solid var(--cfp-ac)}
.post_content .cfp .cfp-top-case .cfp-h3{margin:0 0 .6em}
.post_content .cfp .cfp-top-case p:last-child{margin-bottom:0}

/* 製品一覧の表 */
.post_content .cfp .cfp-top-products thead th{background:var(--cfp-ink);color:#fff;font-weight:700;border-top:2px solid var(--cfp-ink)}
.post_content .cfp .cfp-top-products tbody th{width:30%;vertical-align:middle}
.post_content .cfp .cfp-top-products a{color:var(--cfp-ink);text-decoration:underline;text-decoration-color:var(--cfp-ac);text-underline-offset:3px}
.post_content .cfp .cfp-top-products a:hover{color:var(--cfp-ac)}
.post_content .cfp .cfp-top-products td:empty::before{content:"—";color:var(--cfp-line)}
.post_content .cfp .cfp-cats{margin-top:2em}

@media (max-width:1024px){
  .post_content .cfp .cfp-steps.cfp-steps--5{grid-template-columns:1fr;gap:24px}
  .post_content .cfp .cfp-steps--5 li{text-align:left;padding:1em 1em 1em 72px;min-height:76px}
  .cfp-steps--5 li::before{position:absolute;left:16px;top:50%;transform:translateY(-50%);margin:0}
  .cfp-steps--5 li:not(:last-child)::after{top:auto;right:auto;bottom:-17px;left:50%;transform:translateX(-50%) rotate(135deg)}
}
@media (max-width:767px){
  .post_content .cfp .cfp-top-entries{grid-template-columns:1fr}
  .post_content .cfp .cfp-top-products tbody th{width:38%}
}
