/* COCORO Sync. 無料ツール（プラグイン cocoro-sync-tools）
   色・書体はテーマ（shared.css / cinematic.css）の変数に合わせる */
.cst-wrap{width:min(90vw,1080px);margin:0 auto}
.cst-kicker{font:600 11px/1 "Outfit",sans-serif;letter-spacing:.28em;color:#7c4fa5;margin-bottom:18px}
.cst-pill{display:inline-block;vertical-align:middle;margin-left:14px;padding:6px 14px;border-radius:999px;background:#e8f8f5;color:#1f8f80;font:700 13px/1 "Noto Sans JP",sans-serif;letter-spacing:.04em}

/* ---- トップ：無料ツール欄 ---- */
.cst-front{background:#f7f5fa;color:#2b2740;padding:40px 0 140px}
.cst-front-head{margin-bottom:34px}
.cst-front-head h2{font-size:clamp(34px,4.6vw,56px);line-height:1.3;letter-spacing:.01em;color:#2b2740}
.cst-lead{margin-top:16px;font-size:16px;line-height:2;color:#5a5570}
.cst-more{margin-top:34px;text-align:center}
.cst-more a{display:inline-flex;align-items:center;gap:10px;padding:14px 26px;border-radius:999px;border:1px solid #d9d4e6;background:#fff;color:#7c4fa5;font-weight:700;font-size:15px;line-height:1;transition:border-color .2s,background-color .2s}
.cst-more a:hover{border-color:#7c4fa5;background:#faf7fd}
.cst-more a span{transition:transform .2s}
.cst-more a:hover span{transform:translateX(4px)}

/* ---- 絞り込み ---- */
.cst-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 22px}
.cst-chips-label{font-size:13px;color:#5a5570;margin-right:4px}
.cst-chip{appearance:none;border:1px solid #d9d4e6;background:#fff;color:#5a5570;border-radius:999px;padding:8px 16px;font:500 13px/1 "Noto Sans JP",sans-serif;cursor:pointer;transition:all .2s;text-decoration:none}
.cst-chip:hover{border-color:#7c4fa5;color:#7c4fa5}
.cst-chip.is-active{background:#7c4fa5;border-color:#7c4fa5;color:#fff}

/* ---- カード ---- */
.cst-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.cst-card.is-over,.cst-card.is-hidden{display:none}
.cst-card-link{position:relative;display:flex;gap:14px;align-items:flex-start;height:100%;padding:20px 44px 20px 20px;border-radius:14px;background:#fff;border:1px solid #e9e6f0;color:#2b2740;text-decoration:none;transition:transform .25s,box-shadow .25s,border-color .25s}
.cst-card-link:hover{transform:translateY(-3px);border-color:#d7c6e6;box-shadow:0 14px 34px rgba(83,43,118,.12)}
.cst-card-icon{flex:none;width:44px;height:44px;border-radius:12px;background:#f3ecf7;color:#7c4fa5;display:flex;align-items:center;justify-content:center;transition:background-color .25s,color .25s}
.cst-card-link:hover .cst-card-icon{background:#7c4fa5;color:#fff}
.cst-card-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.cst-card-name{font-size:15.5px;font-weight:700;line-height:1.5;color:#2b2740}
.cst-card-sum{font-size:13px;line-height:1.75;color:#5a5570}
.cst-card-cat{font-size:11.5px;line-height:1;color:#9a95ac;margin-top:4px}
.cst-card-arrow{position:absolute;right:18px;top:50%;transform:translateY(-50%);color:#b7a6c9;transition:transform .25s,color .25s}
.cst-card-link:hover .cst-card-arrow{color:#7c4fa5;transform:translate(4px,-50%)}
.cst-badge{display:inline-block;vertical-align:2px;margin-left:6px;padding:3px 8px;border-radius:999px;font:700 10.5px/1 "Noto Sans JP",sans-serif;font-style:normal}
.cst-badge.is-new{background:#fff3e0;color:#b45309}
.cst-badge.is-soon{background:#f1f0f4;color:#6b6780}
.cst-badge.is-draft{background:#fdecec;color:#b42318}
.cst-card.is-soon .cst-card-link{background:#fbfafd}
.cst-empty{margin-top:10px;color:#5a5570;font-size:14px}

/* ---- 一覧ページ ---- */
.page-tools .page-head h1,.page-tool .page-head h1{font-size:clamp(30px,4vw,44px)}
.cst-archive{padding:56px 0 130px}
.cst-toolbar{display:flex;gap:14px;align-items:center;margin-bottom:22px}
.cst-search{flex:1;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #d9d4e6;border-radius:12px;padding:0 16px;color:#9a95ac;transition:border-color .2s}
.cst-search:focus-within{border-color:#7c4fa5}
.cst-search input{flex:1;border:0;outline:0;background:transparent;padding:14px 0;font:15px/1.4 "Noto Sans JP",sans-serif;color:#2b2740}
.cst-sort{display:flex;align-items:center;gap:8px;font-size:13px;color:#5a5570;white-space:nowrap}
.cst-sort select{border:1px solid #d9d4e6;border-radius:10px;padding:11px 12px;font:14px "Noto Sans JP",sans-serif;background:#fff;color:#2b2740}
.cst-count{font-size:13px;color:#9a95ac;margin:6px 0 14px}
.cst-empty-page{text-align:center;padding:60px 0;color:#5a5570}
.cst-catlinks{margin-top:70px;padding-top:30px;border-top:1px solid #e9e6f0;display:flex;flex-wrap:wrap;gap:10px 22px;font-size:14px}
.cst-catlinks p{width:100%;font-weight:700;color:#2b2740;margin-bottom:4px}
.cst-catlinks a{color:#7c4fa5}
.cst-catlinks a:hover{text-decoration:underline}

/* 下層ページのヘッダーはテーマ側でスクロール時の背景が付かないため、ツールのページでは常に背景を付ける */
body.post-type-archive-cocoro_tool #hd,body.single-cocoro_tool #hd,body.tax-cocoro_tool_cat #hd{background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom-color:#e9e6f0}

/* ---- 個別ページ ---- */
.cst-crumbs{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;font-size:12.5px;color:#9a95ac;margin-bottom:22px}
.cst-crumbs a:hover{color:#7c4fa5}
.cst-tool-icon{width:64px;height:64px;margin:0 auto 18px;border-radius:18px;background:#f3ecf7;color:#7c4fa5;display:flex;align-items:center;justify-content:center}
.cst-tool-cta{margin-top:28px;display:flex;flex-direction:column;align-items:center;gap:12px}
.cst-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:17px 34px;border-radius:12px;background:#7c4fa5;color:#fff;font-weight:700;font-size:16px;line-height:1;box-shadow:0 12px 30px rgba(124,79,165,.28);transition:transform .2s,box-shadow .2s,background-color .2s;text-decoration:none}
.cst-btn:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(124,79,165,.34)}
.cst-btn.is-disabled{background:#e9e6f0;color:#6b6780;box-shadow:none;cursor:default}
.cst-btn.is-ghost{background:#fff;color:#7c4fa5;border:1px solid #7c4fa5;box-shadow:none;padding:14px 24px;font-size:14px;white-space:nowrap}
.cst-free{font-size:12.5px;color:#1f8f80;font-weight:700}
.cst-product{max-width:860px;margin:40px auto 0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 32px;border-radius:18px;background:linear-gradient(115deg,#f6f0fb,#eaf8f5);border:1px solid #e9e6f0}
.cst-product .cst-kicker{margin-bottom:10px}
.cst-product-title{font-size:18px;color:#2b2740;line-height:1.6}
.cst-product-sum{font-size:13.5px;line-height:1.8;color:#5a5570;margin-top:6px}
.cst-related{max-width:1080px;margin:80px auto 0}
.cst-related h2{font-size:22px;color:#2b2740;margin-bottom:20px}

/* ---- レスポンシブ ---- */
@media(max-width:980px){.cst-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .cst-front{padding:20px 0 90px}
  .cst-pill{margin:8px 0 0;display:table}
  .cst-grid{grid-template-columns:1fr;gap:10px}
  .cst-card-link{padding:16px 40px 16px 16px}
  .cst-toolbar{flex-direction:column;align-items:stretch}
  .cst-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin-right:-5vw;scrollbar-width:none}
  .cst-chips::-webkit-scrollbar{display:none}
  .cst-chip{flex:none}
  .cst-product{flex-direction:column;align-items:flex-start;padding:24px 22px}
}

/* ==================================================================
   トップのプロダクト欄：1プロダクト1段（重なる演出をやめ、画像を左右交互に）
   テーマ template-parts/front/products.php のマークアップに対する上書き
   ================================================================== */
.home .products{padding-bottom:40px}
.home .product-stack .product-card{position:relative!important;top:auto!important;min-height:0!important;margin-bottom:44px;box-shadow:0 26px 70px rgba(42,23,58,.11)}
.home .product-stack .product-card:last-child{margin-bottom:0}
.home .product-card.is-soon{cursor:default}
.home .product-card.is-soon .card-link{color:#9a95ac}
.home .product-card.is-soon:hover .card-screen{transform:perspective(1100px) rotateY(calc(-4deg + var(--tilt-y,0deg))) rotateX(var(--tilt-x,0deg)) translateZ(18px)}
.home .products-more{margin-top:60px}
@media(min-width:981px){
  .home .product-stack .product-card:nth-child(even){grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr)}
  .home .product-stack .product-card:nth-child(even) .card-screen{order:-1;transform:perspective(1100px) rotateY(calc(4deg + var(--tilt-y,0deg))) rotateX(var(--tilt-x,0deg)) translateZ(18px)}
  .home .product-stack .product-card:nth-child(even) .card-num{right:auto;left:4vw}
}
@media(prefers-reduced-motion:reduce){.cst-card-link,.cst-btn,.cst-card-icon{transition:none}}
