/* ==========================================================================
   依頼メリット CTA（汎用）
   ファイル: template-parts/merit-cta.css
   追記日: 2026/02/26

   ※ .ms-cta 単体 → 下層ページ・ガイドページ等で機能
   ※ #content_builder .ms-cta → トップページ（TCDテーマに勝つ）
   ========================================================================== */

.ms-cta,
#content_builder .ms-cta {
  background: #f5f9f6 !important;
  border: 1px solid #d4e8db !important;
  border-radius: 8px !important;
  padding: 44px 40px !important;
}
.ms-cta__inner,
#content_builder .ms-cta__inner {
  max-width: 680px;
  margin: 0 auto;
}
.ms-cta__heading,
#content_builder .ms-cta__heading {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-align: center !important;
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.02em;
  border: none !important;
  background: none !important;
}

/* チェックリスト（PC: 2カラム） */
.ms-cta__checklist,
#content_builder .ms-cta__checklist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 28px 0 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.ms-cta__checklist li,
#content_builder .ms-cta__checklist li {
  position: relative;
  padding: 0 0 0 30px !important;
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.7 !important;
  color: #333 !important;
  list-style: none !important;
  background: none !important;
  border: none !important;
}
.ms-cta__checklist li::before,
#content_builder .ms-cta__checklist li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 3px !important;
  width: 20px !important;
  height: 20px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='0.5' y='0.5' width='19' height='19' rx='3' fill='%23ffffff' stroke='%23444444'/%3E%3Cpath d='M5 10l3.5 3.5 6.5-6.5' stroke='%23A82323' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  border-radius: 0 !important;
}
.ms-cta__checklist li::marker,
#content_builder .ms-cta__checklist li::marker {
  content: none !important;
  display: none !important;
}

/* テキスト */
.ms-cta__text,
#content_builder .ms-cta__text {
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  color: #333 !important;
  text-align: center !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
  font-weight: 500;
}

/* ボタン（既存CTAトンマナ準拠：赤系 pill型） */
.ms-cta__btn-wrap,
#content_builder .ms-cta__btn-wrap {
  text-align: center !important;
}
.ms-cta .ms-cta__btn,
.ms-cta__btn.ms-cta__btn,
#content_builder .ms-cta .ms-cta__btn {
  display: inline-block !important;
  background: #A82323 !important;
  background-image: none !important;
  background-color: #A82323 !important;
  color: #fff !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  padding: 18px 64px !important;
  border-radius: 50px !important;
  border: none !important;
  text-decoration: none !important;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 35, 35, 0.25);
  line-height: 1;
}
.ms-cta .ms-cta__btn:hover,
.ms-cta__btn.ms-cta__btn:hover,
#content_builder .ms-cta .ms-cta__btn:hover {
  background: #CC2929 !important;
  background-image: none !important;
  background-color: #CC2929 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(168, 35, 35, 0.35);
  text-decoration: none !important;
  opacity: 1 !important;
}
.ms-cta__note,
#content_builder .ms-cta__note {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 12px;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
  .ms-cta,
  #content_builder .ms-cta {
    padding: 36px 24px !important;
  }
  .ms-cta__heading,
  #content_builder .ms-cta__heading {
    font-size: 24px !important;
  }
  .ms-cta__checklist,
  #content_builder .ms-cta__checklist {
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }
}
@media screen and (max-width: 480px) {
  .ms-cta,
  #content_builder .ms-cta {
    padding: 28px 20px !important;
  }
  .ms-cta__heading,
  #content_builder .ms-cta__heading {
    font-size: 20px !important;
    text-align: left !important;
  }
  .ms-cta__checklist,
  #content_builder .ms-cta__checklist {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
  .ms-cta__text,
  #content_builder .ms-cta__text {
    text-align: left !important;
    font-size: 14px !important;
  }
  .ms-cta__btn,
  #content_builder .ms-cta__btn {
    display: block !important;
    text-align: center !important;
    padding: 16px 30px !important;
    width: 90%;
    margin: 0 auto;
    font-size: 1rem !important;
  }
}
