/* ============================
  CTA Banner
============================ */

.ly_ctaBanner {
  /* Colors */
  --cta-bg: #F2F9FD;
  --cta-white: #ffffff;
  --cta-orange: #FF5000;
  --cta-highlight: #F48F0B;
  --cta-underline: #FFE043;
  --cta-line-green: #06C755;
  --cta-phone-blue: #00517C;

  /* Sizes */
  --cta-max-width: 1040px;
  --cta-radius: 80px;

  background-color: var(--cta-bg);
}

/* Inner container */
.ly_ctaBanner .bl_ctaBanner_inner {
  max-width: var(--cta-max-width);
  margin-inline: auto;
  padding-block: 20px;
  padding-inline: 20px;
}

/* 注意枠（点線ボーダー） */
.ly_ctaBanner .bl_ctaAttention {
  --dot-size: 8px;
  --dot-gap: 6px;
  --dot-pattern: repeating-linear-gradient(to right,
      var(--cta-orange) 0,
      var(--cta-orange) var(--dot-size),
      transparent var(--dot-size),
      transparent calc(var(--dot-size) + var(--dot-gap)));
  --dot-pattern-v: repeating-linear-gradient(to bottom,
      var(--cta-orange) 0,
      var(--cta-orange) var(--dot-size),
      transparent var(--dot-size),
      transparent calc(var(--dot-size) + var(--dot-gap)));

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--cta-max-width);
  margin-top: 20px;
  padding: 16px 10px;
  background-color: var(--cta-white);
  background-image: var(--dot-pattern), var(--dot-pattern), var(--dot-pattern-v), var(--dot-pattern-v);
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: no-repeat;
}

.ly_ctaBanner .bl_ctaAttention_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin-inline: auto;
}

.ly_ctaBanner .bl_ctaAttention_cont {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ly_ctaBanner .bl_ctaAttention_cont p {
  font-size: 18px;
  font-weight: 600;
}

.ly_ctaBanner .bl_ctaAttention_cont span {
  color: var(--cta-highlight);
}

/* カウントダウン */
.ly_ctaBanner .bl_countDown {
  margin-inline: auto;
  font-size: 36px;
  font-weight: 800;
}

.ly_ctaBanner .el_underline {
  background: linear-gradient(transparent 70%, var(--cta-underline) 70%);
}

.ly_ctaBanner .el_num {
  color: var(--cta-orange);
}

/* ボタンコンテナ */
.ly_ctaBanner .bl_clinicCtaBottom_btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  margin-top: 20px;
}

/* ボタン共通 */
.ly_ctaBanner .bl_clinicCtaBottom_btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 16px;
  border-radius: var(--cta-radius);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: clamp(0.875rem, 0.6rem + 1.2vw, 1.25rem);
  font-weight: bold;
  color: var(--cta-white);
  text-decoration: none;
  position: relative;
  /* デフォルト: 2ボタン横並び */
  flex: 1 1 calc(50% - 6px);
  max-width: calc(50% - 6px);
}

/* 3ボタン（店舗ページ）: LINEは100%、メール・電話は横並び */
.ly_ctaBanner .bl_clinicCtaBottom_btns.has_mailBtn a:first-child {
  flex: 0 0 100%;
  max-width: 100%;
}

.ly_ctaBanner .bl_clinicCtaBottom_btns.has_mailBtn a:not(:first-child) {
  flex: 1 1 calc(50% - 6px);
  max-width: calc(50% - 6px);
}

.ly_ctaBanner .bl_clinicCtaBottom_btns a img {
  width: 16px;
  height: auto;
}

.ly_ctaBanner .bl_clinicCtaBottom_btns a:active {
  top: 2px;
}

.ly_ctaBanner .bl_clinicCtaBottom_btns a::after {
  display: none;
}

/* LINEボタン */
.ly_ctaBanner .un_shiny {
  background: linear-gradient(0deg, #84C365 0%, #2DAD40 20%, #00A63C 86%, #D4F0DE 100%);
  border-color: var(--cta-line-green);
  border: 1px solid #009D38;
}

/* メール予約ボタン */
.ly_ctaBanner .un_shinyorange {
  background: linear-gradient(0deg, #F7B859 0%, #EF7E09 20%, #EC6D02 86%, #F6E0CE 100%);
  border: 1px solid #EC6D02;
}

/* 電話ボタン */
.ly_ctaBanner .un_shinyblue {
  background: linear-gradient(0deg, #2879A4 0%, #00517C 16%, #00517C 86%, #F2F9FD 100%);
  border-color: var(--cta-phone-blue);
  border: 1px solid #00517C;
}

/* ============================
  Tablet (768px~)
============================ */
@media (min-width: 768px) {
  .ly_ctaBanner .bl_ctaAttention_wrap {
    flex-direction: row;
  }

  .ly_ctaBanner .bl_clinicCtaBottom_btns {
    flex-wrap: nowrap;
    gap: 20px;
  }

  /* PC: 全ボタン横並び（詳細度を合わせる） */
  .ly_ctaBanner .bl_clinicCtaBottom_btns a,
  .ly_ctaBanner .bl_clinicCtaBottom_btns.has_mailBtn a:first-child,
  .ly_ctaBanner .bl_clinicCtaBottom_btns.has_mailBtn a:not(:first-child) {
    flex: 1;
    max-width: 280px;
  }

  .ly_ctaBanner .bl_clinicCtaBottom_btns a img {
    width: 32px;
  }

  /* モーダル オーバーライド（画面中央に固定表示） */
  .bl_header_nav_reserveClinicsModal.is-active {
    position: fixed;
    top: 0;
    left: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .ly_ctaBanner .bl_ctaBanner_inner {
    padding-block: 40px;
  }
}