/* kosu_cta.css  工数計算ツールの誘導枠(コラム末尾)。pushule_cta.css と同じ作り */
.kosu-cta2 { margin: 1.6rem 0; }
.kosu-cta2__frame {
  border: 3px solid #1d4ed8;
  background: linear-gradient(180deg, #f5f8ff 0%, #f0fdf4 100%);
  border-radius: 16px;
  overflow: hidden;
}
.kosu-cta2__inner { padding: 1rem 1.1rem; }

/* タイトル(グラデーションが動く SVG 文字) */
.kosu-cta2__title { display: block; width: 100%; max-width: 520px; margin: 0 auto 0.4rem; }

/* 説明文。強調語に蛍光ペン風の下線 */
.kosu-cta2__text { margin: 0; font-size: 1.15rem; line-height: 1.75; text-align: center; text-wrap: balance; }
.kosu-cta2__text b {
  font-weight: 700;
  color: #1d4ed8;
  background: linear-gradient(to bottom, transparent 65%, #fde68a 50%);
  padding: 0 0.15em;
}

/* アイコンが流れる帯 */
.kosu-cta2__scroll {
  overflow: hidden;
  padding: 8px 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 0;
}
.kosu-cta2__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: kosu-cta2-scroll 14s linear infinite;
  will-change: transform;
}
.kosu-cta2__icon { width: 2.4rem; height: 2.4rem; flex: 0 0 auto; opacity: 0.85; }

/* イラスト3枚(浮遊 + 光が横切る) */
.kosu-cta2__scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(0.8rem, 3vw, 1.4rem);
  padding: 1rem 1.1rem 0.4rem;
}
.kosu-cta2__card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.06);
  animation: kosu-cta2-float 5s ease-in-out infinite;
  isolation: isolate;
}
.kosu-cta2__card:nth-child(2) { animation-delay: -1.7s; }
.kosu-cta2__card:nth-child(3) { animation-delay: -3.4s; }
.kosu-cta2__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.4) 48%, transparent 60%);
  transform: translateX(-120%);
  animation: kosu-cta2-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
.kosu-cta2__card:nth-child(2)::after { animation-delay: 2s; }
.kosu-cta2__card:nth-child(3)::after { animation-delay: 4s; }
.kosu-cta2__scene { display: block; width: 100%; height: auto; }
.kosu-cta2__caption { margin: 0; padding: 0.5rem 0.4rem 0.6rem; text-align: center; font-weight: 700; font-size: 0.9rem; line-height: 1.4; color: #1e293b; }

/* 1. 電卓: 表示が 160時間 ⇔ 1人月 で切り替わり、キーが光る */
.kosu-cta2__lcd { animation: kosu-cta2-lcd 4s steps(1) infinite; }
.kosu-cta2__lcd--b { animation-delay: -2s; }
.kosu-cta2__key { animation: kosu-cta2-key 2.4s ease-in-out infinite; }
.kosu-cta2__key--2 { animation-delay: 0.4s; }
.kosu-cta2__key--3 { animation-delay: 0.8s; }

/* 2. 棒グラフ: 改善後の棒が縮み、矢印が動き、硬貨が積み上がる */
.kosu-cta2__down { animation: kosu-cta2-down 1.6s ease-in-out infinite; }
.kosu-cta2__coin { opacity: 0; animation: kosu-cta2-coin 4s ease-out infinite; }
.kosu-cta2__coin--2 { animation-delay: 0.3s; }
.kosu-cta2__coin--3 { animation-delay: 0.6s; }

/* 3. 表: 行が順に埋まり、Excel のバッジが跳ねる */
.kosu-cta2__row { transform-box: fill-box; transform-origin: left; animation: kosu-cta2-row 4s ease-out infinite; }
.kosu-cta2__row--2 { animation-delay: 0.35s; }
.kosu-cta2__row--3 { animation-delay: 0.7s; }
.kosu-cta2__row--4 { animation-delay: 1.05s; }
.kosu-cta2__badge { transform-box: fill-box; transform-origin: center; animation: kosu-cta2-badge 4s ease-in-out infinite; }

/* 計算例とボタン */
.kosu-cta2__example { margin: 0.2rem 0 0; line-height: 1.75; }
.kosu-cta2__num strong { font-size: 1.35rem; color: #16a34a; font-variant-numeric: tabular-nums; }
.kosu-cta2__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.kosu-cta2__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-size: 1rem;
  border: 2px solid #1d4ed8;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.kosu-cta2__btn:hover { transform: translateY(-2px); filter: brightness(0.97); }
.kosu-cta2__btn--primary { background: linear-gradient(90deg, #1d4ed8, #16a34a); border-color: transparent; color: #fff; }
.kosu-cta2__btn--sub { background: #fff; color: #1d4ed8; }
.kosu-cta2__note { margin: 0.6rem 0 0; font-size: 0.8125rem; color: #64748b; text-align: center; }

@keyframes kosu-cta2-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kosu-cta2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kosu-cta2-sweep { 0%, 40% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
@keyframes kosu-cta2-lcd { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes kosu-cta2-key { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes kosu-cta2-down { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(5px); opacity: 1; } }
@keyframes kosu-cta2-coin { 0%, 40% { opacity: 0; transform: translateY(-10px); } 55%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes kosu-cta2-row { 0% { transform: scaleX(0); } 30%, 100% { transform: scaleX(1); } }
@keyframes kosu-cta2-badge { 0%, 60% { transform: scale(1); } 70% { transform: scale(1.15); } 80%, 100% { transform: scale(1); } }

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce) {
  .kosu-cta2 *, .kosu-cta2 *::after { animation: none !important; }
  .kosu-cta2__lcd--b { opacity: 0; }
  .kosu-cta2__coin { opacity: 1; }
}

@media (max-width: 768px) {
  .kosu-cta2__inner { padding: 0.9rem; }
  .kosu-cta2__text { font-size: 1rem; text-align: left; }
  .kosu-cta2__btn { width: 100%; font-size: 0.95rem; }
}
