/* ---------- Download（上の青系ボックス） ---------- */
.card-download {
  background: #dfeaf4;
  /* 淡いブルーグレー */
  border-radius: 16px;
}

.card-download .form-control {
  border: 0;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}

.card-download .form-control:focus {
  box-shadow: 0 0 0 .25rem rgba(87, 128, 255, .15);
}

/* CTAボタンのグラデーション（紫→水色） */
.btn-gradient {
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(90deg, #6b5cff 0%, #69dbe8 100%);
  color: #fff;
}

.btn-gradient:hover,
.btn-gradient:focus {
  filter: brightness(0.95);
  color: #fff;
}

/* 注意書きのトーン */
.card-download .text-muted {
  opacity: .9;
}

/* ---------- 郵送（下のピンク帯＋オレンジボタン） ---------- */
/* ===== 郵送（ピンク帯＋オレンジ丸ボタン） ===== */
.mail-block {
  background: #ffe2df;
  /* もう少し明るいピンク */
  border-radius: 14px;
  padding: 22px 18px;
  /* 帯の厚みを出す */
}

/* 「郵送」ラベルをセンター＆左右に区切り線 */
.mail-label {
  position: relative;
  margin: 0 0 16px;
  color: #333;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: clamp(13px, 12px + .3vw, 14px);
}

.mail-label::before,
.mail-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 2.5em);
  height: 1px;
  background: rgba(0, 0, 0, .12);
}

.mail-label::before {
  left: 0;
  transform: translateY(-50%);
}

.mail-label::after {
  right: 0;
  transform: translateY(-50%);
}

/* CTAボタン：幅広・丸・赤→オレンジのグラデーション */
.btn-mail {
  display: inline-block;
  width: min(520px, 100%);
  /* スクショの“ワイド感” */
  padding: 0.95rem 2.25rem;
  border: 0;
  border-radius: 9999px;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: clamp(16px, 15.5px + .3vw, 18px);
  color: #fff;
  background: linear-gradient(90deg, #ff6a5a 0%, #ff8a3d 100%);
  box-shadow: 0 8px 20px rgba(255, 112, 72, .28);
  position: relative;
}

/* 右側に矢印っぽい視線誘導（装飾） */
.btn-mail::after {
  content: "›";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 1.35em;
  line-height: 1;
  opacity: .9;
}

/* ホバー/フォーカスで少し明るく */
.btn-mail:hover,
.btn-mail:focus {
  filter: brightness(0.97);
  color: #fff;
}

/* キーボード操作の視認性 */
.btn-mail:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(255, 140, 60, .28);
}

/* レイアウト（中央寄せ） */
.mail-cta-wrap {
  display: flex;
  justify-content: center;
}

/* 小さめ端末での最適化 */
@media (max-width: 576px) {
  .mail-block {
    padding: 16px 14px;
  }

  .btn-mail {
    padding: 0.9rem 1.8rem;
  }

  .btn-mail::after {
    right: 16px;
  }
}

/* ---------- 全体の余白調整 ---------- */
h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
}

.container .wpcf7-form .mb-3:last-child {
  margin-bottom: 0;
}

/* 小さめ端末でのパディング最適化 */
@media (max-width: 576px) {
  .card-download .card-body {
    padding: 1.25rem;
  }

  .mail-block {
    padding: 14px 12px;
  }
}

/* CF7の送信ボタンを .btn-mail と同じ“文字サイズ＋パディング＋丸み”に */
input.wpcf7-submit.btn-gradient.btn-lg,
button.wpcf7-submit.btn-gradient.btn-lg,
.btn.btn-gradient.btn-lg {
  font-size: clamp(16px, 15.5px + .3vw, 18px) !important;
  font-weight: 800;
  letter-spacing: .02em;

  /* ← パディングを郵送ボタンと合わせる */
  padding: 0.95rem 2.25rem !important;

  /* 形状も近づける（丸ボタン） */
  border-radius: 9999px !important;
  line-height: 1.25;
  /* 高さの見え方を安定させる */
}

/* （任意）幅感も合わせたい場合は以下もオンに */
.d-grid .btn.btn-gradient.btn-lg {
  /* width: min(520px, 100%); */
  width: 100%;
  margin-inline: auto;
}

/* ===== メルマガ希望（横並びレイアウト） ===== */
/* メルマガ希望（見出しの下にチェック） */
.newsletter-row {
  display: flex;
  flex-direction: column;
  /* 縦並び */
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
  /* .form-check の左インデント打消し */
  margin-bottom: 1.5rem;
}

.newsletter-title {
  margin: 0;
  color: #1f1f1f;
  letter-spacing: .02em;
}

.newsletter-row .wpcf7-list-item {
  margin: 0;
}

.newsletter-row .wpcf7-list-item>label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.newsletter-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #2d7dfa;
  /* ブランド色に合わせて変更可 */
  border-radius: 4px;
}

.newsletter-row .wpcf7-list-item-label {
  font-size: clamp(15px, 14.5px + .25vw, 17px);
  color: #222;
}

/* ラベル（メールアドレス／メルマガ希望）を少し大きく */
.card-download .form-label,
.card-download .newsletter-title {
  font-size: clamp(16px, 15px + 0.6vw, 20px);
  line-height: 1.35;
}

/* （任意）チェック横の説明文も少しだけ拡大したい場合 */
.card-download .newsletter-row .wpcf7-list-item-label {
  font-size: clamp(16px, 15.5px + 0.35vw, 18.5px);
}

.card-download .newsletter-row .wpcf7-list-item-label {
  font-size: clamp(14px, 13.8px + 0.20vw, 16px);
  /* 以前より一回り小さい */
  font-weight: 500;
  /* 太さもやや控えめに */
  line-height: 1.6;
}

/* （お好み）チェックボックスも気持ち小さくする */
.card-download .newsletter-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* 送信ボタンの無効状態（グレーアウト） */
.card-download .btn-gradient:disabled,
.card-download .btn-gradient.disabled {
  background: linear-gradient(90deg, #8a96ad 0%, #b0bbcc 100%) !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 1;
  /* ← 透明度で白く見えないように */
  filter: saturate(0.2) brightness(0.95);
  /* ← 彩度を落として少し暗く */
  border: 1px solid rgba(0, 0, 0, .08);
  /* エッジを軽く締める（任意） */
}

/* デフォルト：PCは自動調整 */
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* スマホ時だけ高さ制限 */
@media (max-width: 768px) {
  .responsive-img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
    /* 画像の縦横比を維持して縮小 */
  }
}