/* ==============================================
   THE JOB HOPPERS CTA Enhancement CSS
   サイトカラー: #e74c3c（赤系） / アクセント: #2ecc71（緑）
   ============================================== */

/* --- 記事内CTA ボックス --- */
.jh-cta-box {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  border-radius: 12px;
  padding: 32px 28px;
  margin: 40px 0;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.3);
  position: relative;
  overflow: hidden;
}
.jh-cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.jh-cta-box .cta-label {
  display: inline-block;
  background: rgba(231, 76, 60, 0.8);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.jh-cta-box .cta-heading {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.4;
}
.jh-cta-box .cta-subtext {
  font-size: 15px;
  opacity: 0.9;
  margin: 0 0 20px;
  line-height: 1.6;
}
.jh-cta-box .cta-btn {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: ctaPulse 2.5s infinite;
}
.jh-cta-box .cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(231, 76, 60, 0.5);
  color: #fff;
}
.jh-cta-box .cta-btn-sub {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: none;
  animation: none;
  margin-top: 12px;
  font-size: 15px;
  padding: 12px 28px;
}
.jh-cta-box .cta-btn-sub:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  box-shadow: none;
}
.jh-cta-box .cta-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.jh-cta-box .cta-note {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 12px;
}

/* --- インラインCTA（記事途中用） --- */
.jh-cta-inline {
  background: #fdf2f2;
  border-left: 4px solid #e74c3c;
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s, transform 0.5s;
}
.jh-cta-inline.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.jh-cta-inline .cta-inline-text {
  flex: 1;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}
.jh-cta-inline .cta-inline-text strong {
  color: #e74c3c;
}
.jh-cta-inline .cta-inline-btn {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.jh-cta-inline .cta-inline-btn:hover {
  background: #c0392b;
  color: #fff;
}

/* --- フローティングCTA（右下固定） --- */
.jh-cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.jh-cta-floating.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.jh-cta-floating a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.jh-cta-floating a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(231, 76, 60, 0.5);
  color: #fff;
}

/* --- モバイル下部固定CTA --- */
.jh-cta-sticky-bottom {
  display: none;
}
@media (max-width: 781px) {
  .jh-cta-sticky-bottom {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 12px 16px;
    text-align: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s;
  }
  .jh-cta-sticky-bottom.is-visible {
    transform: translateY(0);
  }
  .jh-cta-sticky-bottom a {
    display: block;
    background: #e74c3c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
  }
  .jh-cta-sticky-bottom .sticky-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
  }
  .jh-cta-floating {
    display: none;
  }
  .jh-cta-inline {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- アニメーション --- */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(231,76,60,0.4); }
  50% { box-shadow: 0 4px 24px rgba(231,76,60,0.7); }
}
