/* ==========================================================
   デジタルアスリートブログ 記事内CTA 用CSS（修正版）
   ・追加・変更した箇所には ★ を付けています
   ========================================================== */

/* CTA全体の背景と余白 */
.cta-container {
  background: linear-gradient(135deg, #07386d 0%, #2fa5d6 100%);
  color: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  /* ★削除：font-family: sans-serif;（サイト全体のフォント設定を引き継ぐため） */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin: 40px 0;
}

/* メイン見出し */
.cta-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* 説明文 */
.cta-description {
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ボタンを横並びにする設定 */
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ボタンの共通スタイル */
/* ★変更：セレクタに .article__inner を付け、記事本文のリンク用スタイルより優先されるようにした */
.article__inner .cta-button,
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  word-break: normal; /* ★追加：本文リンクの word-break: break-all を打ち消す */
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: transform 0.2s, opacity 0.2s;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  line-height: 1.4;
  text-align: left;
}
.article__inner .cta-button:hover,
.cta-button:hover {
  transform: translateY(-3px); /* カーソルを乗せると少し浮く */
  opacity: 0.9;
  text-decoration: none; /* ★追加 */
}

/* SVGアイコンのサイズと余白調整 */
.icon-svg {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  flex-shrink: 0; /* アイコンが潰れないようにする */
}

/* 白ボタン（無料相談） */
/* ★変更：文字色が本文リンク色（#003788）に上書きされないようセレクタを強化 */
.article__inner .cta-button.btn-white,
.btn-white {
  background-color: #ffffff;
  color: #07386d;
  border: 2px solid #ffffff;
}

/* 黄色ボタン（資料請求） */
.article__inner .cta-button.btn-yellow,
.btn-yellow {
  background-color: #fce14b;
  color: #333333;
  border: 2px solid #fce14b;
}

/* スマホ表示用の調整（画面幅600px以下の時は縦並びにする） */
@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-button {
    max-width: 100%;
  }
  .cta-title {
    font-size: 20px;
  }
}
