/* =============================================================
   相談CTR (電話 / LINE) 共通コンポーネント
   Figma: 事故治療ナビ 9249:11726 (SP) / 9601:21594 (PC) / 9601:21655 (gift)
   個ページ・地域記事 店舗カード・/gift/ で共通利用 (tmp/cta-soudan.php)
   ============================================================= */
.c-cta,
.c-cta * {
  box-sizing: border-box;
}
.c-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

/* --- お見舞金バナー --- */
.c-cta__banner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  width: 100%;
  text-decoration: none;
  color: #333;
}
.c-cta__banner-deco {
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: #333;
}
.c-cta__banner-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.c-cta__banner-lead {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  color: #dc2a2a;
}
.c-cta__banner-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.c-cta__banner-amount .is-pre {
  font-size: 20px;
  color: #333;
}
.c-cta__banner-amount .is-yen {
  font-size: 27px;
  color: #dc2a2a;
}
.c-cta__banner-amount .is-suf {
  font-size: 19px;
  color: #333;
}
.c-cta__banner-link {
  font-size: 12px;
  line-height: 1.2;
  color: #333;
  text-decoration: underline;
}

/* --- 電話 / LINE ボタン群 --- */
.c-cta__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.c-cta__btn {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  border-radius: 10px;
  text-decoration: none;
  line-height: 0;
}
/* キラーン (光沢スウィープ) — 既存 .p-rich-clinic__phone a::before と同挙動 (3秒ごとに一閃) */
.c-cta__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-25deg);
  animation: shine 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes shine {
  0% {
    left: -75%;
  }
  25% {
    left: 125%;
  }
  26% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}
/* 電話 / LINE は画像ボタン (PC/SP で切替) */
.c-cta__btn-img {
  display: block;
  width: 100%;
  height: auto;
}
.c-cta__btn-img.is-sp {
  display: none;
}

/* --- このクリニックを詳しくみる (地域記事のみ) --- */
.c-cta__detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: #36c7af;
  filter: drop-shadow(0 2px 0 #bbb);
  text-decoration: none;
}
.c-cta__detail-ico {
  flex: 0 0 auto;
  width: 19.636px;
  height: 18px;
  display: block;
}
.c-cta__detail-text {
  flex: 1 1 0;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}
.c-cta__detail-arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: block;
}

/* --- SP: ボタン群に左右余白 / 画像をSP用に切替 --- */
@media (max-width: 768px) {
  .c-cta__btns {
    padding: 0 10px;
  }
  .c-cta__btn-img.is-pc {
    display: none;
  }
  .c-cta__btn-img.is-sp {
    display: block;
  }
}

/* --- PC: 既定は 電話 / LINE 横並び（個ページ・gift など全幅CTA向け） --- */
@media (min-width: 769px) {
  .c-cta {
    max-width: 728px;
  }
  .c-cta__btns {
    flex-direction: row;
  }
  .c-cta__btn {
    flex: 1 1 0;
    min-width: 0;
  }
  /* 地域記事（通常記事=.p-city-clinic-list__card / 都道府県ページ=.call-reserve-wrapper）だけ縦並び。
     横並びだと各ボタンが小さくなるため全幅で縦積み（iput-management#60）。clinics詳細・gift は対象外。 */
  .p-city-clinic-list__card .c-cta__btns,
  .call-reserve-wrapper .c-cta__btns {
    flex-direction: column;
  }
  .p-city-clinic-list__card .c-cta__btn,
  .call-reserve-wrapper .c-cta__btn {
    flex: none;
  }
  /* 地域記事（通常記事）だけ CTA の最大幅を狭くする（iput-management#60） */
  .p-city-clinic-list__card .c-cta {
    max-width: 468px;
  }
}
