/* ============================================
   ② CTAカード リデザイン
   ============================================ */
:root {
  --cta-navy-1: #0a2348;
  --cta-navy-2: #061a36;
  --cta-orange-1: #ffa23a;
  --cta-orange-2: #ff7a00;
  --cta-orange-3: #e85a00;
  --cta-yellow: #ffe600;
}

.cta-block {
  background: none;
  padding: 24px 16px;
  text-align: center;
}

.cta-card {
  position: relative;
  border-radius: 14px;
  padding: 20px 24px 24px;
  background: radial-gradient(120% 180% at 50% 0%, var(--cta-navy-1) 0%, var(--cta-navy-2) 60%, #04122a 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 18px 40px -12px rgba(0,0,0,0.45),
    0 6px 14px -6px rgba(0,0,0,0.35);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 35%);
  border-radius: inherit;
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* ヘッドライン */
.cta-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  margin: 4px 0 16px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.cta-headline > span { white-space: nowrap; }
.cta-sep { opacity: 0.5; font-weight: 500; margin: 0 2px; }
.cta-acc-orange {
  color: #ff8a1f;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255,138,31,0.55), 0 1px 0 rgba(0,0,0,0.4);
  display: inline-block;
  transform-origin: center;
  animation: ctaTextPulse 1.8s ease-in-out infinite;
}
.cta-acc-yellow {
  color: var(--cta-yellow);
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255,230,0,0.45), 0 1px 0 rgba(0,0,0,0.4);
  display: inline-block;
  animation: ctaTextShimmer 3.2s ease-in-out 1.6s infinite;
}
.cta-acc-free {
  color: var(--cta-yellow);
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 0 10px rgba(255,230,0,0.45), 0 1px 0 rgba(0,0,0,0.4);
  display: inline-block;
  animation: ctaTextShimmer 3.2s ease-in-out infinite;
}
@keyframes ctaTextShimmer {
  0%, 88%, 100% { filter: brightness(1); }
  93% { filter: brightness(1.7) drop-shadow(0 0 8px rgba(255,230,0,0.7)); }
}
@keyframes ctaTextPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* ボタン共通 */
.cta-btns {
  display: grid;
  grid-template-columns: 2fr 1.35fr;
  gap: 12px;
}
.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 64px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 80ms ease, filter 120ms ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.cta-btn::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0));
  pointer-events: none;
}
.cta-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset, 0 -2px 0 rgba(0,0,0,0.18) inset;
  pointer-events: none;
}
.cta-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.cta-btn:active { transform: translateY(1px); filter: brightness(0.96); animation: none !important; }

.cta-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.25));
}

/* 電話ボタン */
.cta-btn--tel {
  background: linear-gradient(180deg, var(--cta-orange-1) 0%, var(--cta-orange-2) 55%, var(--cta-orange-3) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 6px 0 #b34400,
    0 10px 18px -6px rgba(255,100,0,0.55),
    0 4px 10px -2px rgba(0,0,0,0.35);
  gap: 14px;
  padding: 0 20px;
  isolation: isolate;
  animation: ctaBtnBreathe 2.4s ease-in-out infinite;
}
.cta-btn--tel:active {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 2px 0 #b34400,
    0 6px 12px -4px rgba(255,100,0,0.5);
}
.cta-tel-num {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  flex: 0 1 auto;
  min-width: 0;
  animation: ctaNumFlash 3.2s ease-in-out infinite;
}
.cta-tel-lbl {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset;
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-tel-lbl--sp { display: none; }

.cta-tel-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.cta-tel-hours {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.82;
  white-space: nowrap;
}

.cta-form-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cta-form-hours {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
  white-space: nowrap;
}

.cta-icon-tel {
  width: 28px;
  height: 28px;
  transform-origin: 50% 60%;
  animation: ctaRinging 2.6s ease-in-out infinite;
}

/* フォームボタン（グリーン：安心・無料・Goの印象でCVR向上） */
.cta-btn--form {
  background: linear-gradient(180deg, #2fd14a 0%, #15a82a 55%, #0f8a22 100%);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 6px 0 #0a6618,
    0 10px 18px -6px rgba(0,170,40,0.55),
    0 4px 10px -2px rgba(0,0,0,0.35);
  animation: ctaBtnBreathe 2.4s ease-in-out 1.2s infinite;
}
.cta-btn--form:active {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 2px 0 #0a6618,
    0 6px 12px -4px rgba(0,170,40,0.5);
  animation: none;
}
.cta-form-lbl--pc { white-space: nowrap; }
.cta-form-lbl--sp { display: none; }

/* パルスリング */
.cta-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.cta-pulse-ring::before,
.cta-pulse-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: ctaPulseRing 2.4s ease-out infinite;
}
.cta-pulse-ring::after { animation-delay: 1.2s; }
@keyframes ctaPulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(255,138,31,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(255,138,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,31,0); }
}

/* シャインスイープ */
.cta-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.cta-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -60%;
  width: 50%;
  height: 140%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: ctaShineSweep 3.6s ease-in-out infinite;
}
.cta-btn--form .cta-shine::after { animation-delay: 1.8s; opacity: 0.5; }

@keyframes ctaShineSweep {
  0%   { left: -60%; }
  35%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes ctaBtnBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.005); }
}
@keyframes ctaRinging {
  0%, 88%, 100% { transform: rotate(0deg); }
  90% { transform: rotate(-12deg); }
  92% { transform: rotate(10deg); }
  94% { transform: rotate(-8deg); }
  96% { transform: rotate(6deg); }
  98% { transform: rotate(-3deg); }
}
@keyframes ctaNumFlash {
  0%, 90%, 100% { text-shadow: 0 1px 0 rgba(0,0,0,0.25); }
  95% { text-shadow: 0 0 14px rgba(255,255,255,0.85), 0 1px 0 rgba(0,0,0,0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn--tel, .cta-acc-orange, .cta-acc-free, .cta-acc-yellow,
  .cta-icon-tel, .cta-tel-num,
  .cta-pulse-ring::before, .cta-pulse-ring::after,
  .cta-shine::after { animation: none !important; }
}

/* タブレット */
@media (min-width: 641px) and (max-width: 820px) {
  .cta-btns { gap: 10px; }
  .cta-btn--tel { gap: 10px; padding: 0 12px; }
  .cta-tel-num { font-size: 20px; }
  .cta-btn--form { font-size: 13px; }
}

/* モバイル */
@media (max-width: 640px) {
  .cta-block { padding: 16px 12px; }
  .cta-card { padding: 16px 12px 18px; border-radius: 12px; }
  .cta-headline { font-size: 13px; gap: 4px 6px; margin-bottom: 12px; }
  .cta-acc-orange { font-size: 17px; }
  .cta-acc-free { font-size: 17px; }
  .cta-btns { grid-template-columns: 1fr; gap: 16px; }
  .cta-btn { height: 58px; font-size: 18px; border-radius: 8px; }
  .cta-btn--tel { gap: 8px; padding: 0 12px; }
  .cta-tel-num { display: none; }
  /* SP でも「今すぐ無料相談」を表示する */
  .cta-tel-lbl--pc { display: flex; }
  .cta-tel-lbl--sp { display: none; }
  .cta-tel-lbl { font-size: 15px; }
  .cta-tel-hours { font-size: 10px; }
  .cta-form-lbl--pc { display: flex; }
  .cta-form-lbl--sp { display: none; }
}