@charset "UTF-8";
/*
  温熱計算 CTA (inc/thermal-cta.php が出力する .kc-slim / .kc-lead / .kc-cta のスタイル)。
  デザインの正本: archiroid_bussiness_strategy/bussiness/assets/温熱計算CTAバナー/
  (cta-slim-snippet.html, cta-snippet.html)。藍 #1b4280 × ベージュ #f9eccc、温熱 LP と同じ部品。ボタンだけアンバー #ee9d1c (白だと押されにくい)。
  画像の URL は PHP 側 (inline style / src) で入る。
*/

/* ---------- 共通 ---------- */
.kc-slim, .kc-cta {
  position: relative;
  overflow: hidden;
  display: block;
  background: #1b4280;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-family: "Zen Kaku Gothic New", "Yu Gothic", "游ゴシック体", YuGothic, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  letter-spacing: .025em;
  line-height: 1.5;
}
.kc-slim:hover, .kc-slim:visited, .kc-cta:hover, .kc-cta:visited { color: #fff; text-decoration: none; }
.kc-slim *, .kc-cta * { box-sizing: border-box; }
.kc-slim img, .kc-cta img { margin: 0; border: 0; box-shadow: none; }
.kc-slim__bg, .kc-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kc-slim__btn, .kc-cta__btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1b4280;
  line-height: 1;
  white-space: nowrap;
}
.kc-slim__btn::before, .kc-cta__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #ee9d1c; /* 白は藍の上で押せそうに見えないのでアンバー (文字は藍のまま)。2026-10-31 幕を外して薄く見えるようになったので #f5b335 → #ee9d1c に濃く */
  border-radius: 28px 27px 0 2px / 26px 25px 0 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 19px), calc(100% - .2px) calc(100% - 17.8px), calc(100% - .7px) calc(100% - 16.9px), calc(100% - 1.5px) calc(100% - 15.9px), calc(100% - 17.7px) calc(100% - 1.4px), calc(100% - 18.4px) calc(100% - .6px), calc(100% - 19.2px) calc(100% - .2px), calc(100% - 21px) 100%, 0 100%);
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1);
}
.kc-slim:hover .kc-slim__btn::before, .kc-cta:hover .kc-cta__btn::before { transform: scale(1.05); }
.kc-slim__btn svg, .kc-cta__btn svg { width: 18px; height: 18px; }
/* ロゴの並び = 温熱 LP のヘッダー (logo-link) と同じ比率。ロゴ高 H (--kc-logo-h) に対して
   マークとロゴタイプは同じ高さ、間隔 .37H、縦罫 2px × .66H、サービス名 .71H (字間 .2em)。
   LP: H=38px → 間隔 14px, 縦罫 25px, 文字 27px。ここでは H=20px (SP は 18px)。 */
.kc-slim__lockup, .kc-cta__lockup { --kc-logo-h: 20px; display: inline-flex; align-items: center; gap: calc(var(--kc-logo-h) * .37); }
.kc-slim__lockup img, .kc-cta__lockup img { display: block; height: var(--kc-logo-h); width: auto; }
.kc-slim__svc, .kc-cta__svc {
  display: inline-flex;
  align-items: center;
  height: calc(var(--kc-logo-h) * .66);
  border-left: 2px solid #fff;
  padding-left: calc(var(--kc-logo-h) * .37);
  font-size: calc(var(--kc-logo-h) * .71);
  font-weight: 700;
  letter-spacing: .2em;
  margin-right: -.2em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

/* 藍の幕 (__shade) は一旦オフ (2026-10-14)。背景画像 bg-hero-wave.jpg のベージュが青く染まるため。
   戻すときはこの行を消す。 */
.kc-slim__shade, .kc-cta__shade { display: none; }

/* ---------- 目次下スリム (PC = 3D を文字とボタンの間に) ---------- */
.kc-slim { height: 140px; margin: 24px 0 2.5em; }
.kc-slim__bg { object-position: 50% 50%; }
/* 幕は全幅でなだらかに (記事末と同じ考え方) */
.kc-slim__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 66, 128, .88) 0%, rgba(27, 66, 128, .75) 30%, rgba(27, 66, 128, .55) 65%, rgba(27, 66, 128, .35) 100%); }
.kc-slim__house {
  position: absolute;
  left: max(calc(50% - 40px), 410px); /* 本文幅 768〜900px で文字 (〜450px) と重なりすぎないよう下限を置く */
  top: -3px;
  width: 280px;
  height: 224px;
  background: no-repeat -151px -50px / 538px auto;
  opacity: .95;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%), linear-gradient(90deg, transparent 0, #000 38%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%), linear-gradient(90deg, transparent 0, #000 38%, #000 68%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.kc-slim__txt { position: absolute; left: 36px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px; }
.kc-slim__body { max-width: 372px; }
.kc-slim__hl { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; color: #fff; margin: 0; }
.kc-slim__sub { display: block; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .92); margin: 4px 0 0; }
.kc-slim__btn { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); font-size: 14px; height: 44px; padding: 0 24px; }
@media (max-width: 820px) { /* タブレット幅は文字と 3D が重なるので 3D なし */
  .kc-slim__house { display: none; }
}
@media (max-width: 640px) { /* スマホ = 右に 3D、ボタンは左下 */
  .kc-slim { height: 150px; }
  .kc-slim__bg { object-position: 0 50%; }
  .kc-slim__shade { background: linear-gradient(90deg, rgba(27, 66, 128, .9) 0%, rgba(27, 66, 128, .78) 35%, rgba(27, 66, 128, .55) 70%, rgba(27, 66, 128, .35) 100%); }
  .kc-slim__house {
    display: block;
    left: auto;
    right: -14px;
    top: -2px;
    width: 176px;
    height: 141px;
    background-size: 338px auto;
    background-position: -95px -32px;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%), linear-gradient(90deg, transparent 0, #000 50%, #000 100%);
    mask-image: linear-gradient(180deg, #000 50%, transparent 100%), linear-gradient(90deg, transparent 0, #000 50%, #000 100%);
  }
  .kc-slim__txt { left: 20px; top: 18px; bottom: auto; justify-content: flex-start; gap: 10px; }
  .kc-slim__lockup { --kc-logo-h: 18px; }
  .kc-slim__hl { font-size: 17px; }
  .kc-slim__sub { display: none; }
  .kc-slim__btn { left: 20px; right: auto; top: auto; bottom: 18px; transform: none; font-size: 13px; height: 38px; padding: 0 18px; }
}

/* ---------- 記事末: 見出し + 紹介文 ---------- */
.kc-lead { margin: 3em 0 0; }
.kc-lead__h {
  font-size: 1.15em;
  font-weight: 700;
  color: #1b4280;
  border-left: 4px solid #1b4280;
  padding: .1em 0 .1em .7em;
  margin: 0 0 1em;
}
.kc-lead p { margin: 0 0 1em; }

/* ---------- 記事末バナー (PC = 横長、右に 3D) ---------- */
.kc-cta { margin: 8px 0 40px; }
.kc-cta__bg { object-position: 0 50%; transform: scale(2); transform-origin: 0 0; } /* 左上を基準に 2 倍 (波を大きく見せる) */
/* 幕は全幅でなだらかに (文字側は濃く、右端で消える) */
.kc-cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 66, 128, .82) 0%, rgba(27, 66, 128, .7) 25%, rgba(27, 66, 128, .45) 55%, rgba(27, 66, 128, .18) 80%, rgba(27, 66, 128, 0) 100%); }
/* 3D の家 = 子テーマ img/thermal-cta-house.webp (1096×934)。アプリ画面 (温熱 LP の screens/hero.webp) から
   家の周りを背景のグリッドごと切り出し、家の下のコンパス表示を消したもの (作り方は戦略リポジトリの
   bussiness/assets/温熱計算CTAバナー/build_house_image.py)。
   箱はバナーの上下いっぱい・右端の外まで伸ばし (枠線が出ないように)、左端だけぼかす。下端はぼかさず、
   グリッドをバナーの下端までそのまま見せる (基礎の下に藍の隙間を作らない)。
   家は切り出し画像の x 125–1033, y 57–790 (908×733)。幅 420px で置くと倍率 .3832、家の高さ 281px、
   屋根の上の余白 22px。バナーの高さ 325px なら基礎の下の余白も 22px になる。
   (ボタンや文字量を変えてバナーの高さが変わったら、幅 (倍率) を計算し直す: 幅 = (高さ − 44) / 733 × 1096) */
.kc-cta__house {
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  width: 420px;
  background: no-repeat 0 0 / 420px auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.kc-cta__txt { position: relative; padding: 26px 44px 28px; max-width: 530px; display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.kc-cta__hl { font-size: 28px; font-weight: 700; line-height: 1.3; margin: 0; color: #fff; }
.kc-cta__sub { font-size: 13.5px; line-height: 1.6; margin: 0; color: rgba(255, 255, 255, .92); }
/* ピル = LP ヒーローのバッジ (白 .8 の地に藍文字, 字間 .06em) を、LP の番号タイルと同じロゴマークの形
   (左上・右上を丸く、左下はわずかに、右下は斜めに切る) にしたもの。ロゴの直下に置く。 */
.kc-cta__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -2px; }
.kc-cta__badges span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #1b4280;
  background: rgba(255, 255, 255, .8);
  padding: 6px 11px 6px 12px;
  line-height: 1;
  border-radius: 12px 11px 0 2px / 11px 10px 0 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}
/* LP ヒーローの a.cta.cta-cut と同じ: 16px / 高さ 60px / 左右 30px / 矢印 20px */
.kc-cta__btn { font-size: 16px; height: 60px; padding: 0 30px; gap: 10px; letter-spacing: .4px; margin-top: 10px; } /* ピルを上に移したぶん、ボタンの前は少し空けて目立たせる */
.kc-cta__btn svg { width: 20px; height: 20px; }
.kc-cta__frame { display: none; }
.kc-cta__bar { height: 22px; background: #eef1f5; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid #dfe3e8; }
.kc-cta__bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9ced6; display: block; }
.kc-cta__bar span { margin-left: 6px; flex: 1; height: 11px; border-radius: 3px; background: #fff; border: 1px solid #dfe3e8; font-size: 7px; line-height: 10px; color: #8a93a2; padding-left: 6px; font-family: "Roboto Mono", ui-monospace, monospace; letter-spacing: 0; }
.kc-cta__frame img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { /* スマホ = 縦組み、ブラウザ枠にアプリ画面 */
  .kc-cta__shade { background: linear-gradient(180deg, rgba(27, 66, 128, .82) 0%, rgba(27, 66, 128, .6) 70%, rgba(27, 66, 128, .3) 100%); }
  .kc-cta__txt { padding: 26px 24px 0; max-width: none; gap: 12px; }
  .kc-cta__lockup { --kc-logo-h: 18px; }
  .kc-cta__hl { font-size: 23px; }
  .kc-cta__sub { font-size: 12.5px; }
  .kc-cta__badges { display: none; }
  .kc-cta__br { display: none; } /* スマホは自然に折り返す */
  .kc-cta__btn { font-size: 14px; height: 48px; padding: 0 6px; gap: 8px; width: 100%; justify-content: center; } /* LP の SP ヒーローと同じ全幅 48px */
  .kc-cta__btn svg { width: 15px; height: 15px; }
  .kc-cta__house { display: none; }
  .kc-cta__frame { display: block; position: relative; margin: 28px 24px 16px; height: 182px; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); overflow: hidden; }
  .kc-cta__frame img { height: calc(100% - 22px); object-fit: cover; object-position: 0 0; }
}
