@charset "UTF-8";
/* =========================================================
 * 共通CTA（footer-new.php）2026-11 リニューアル
 * 置き場所：/wp-content/themes/miraie/frontend/assets/css/cta-common.css
 * すべて .cta-common の中だけに効く。旧 .cta のCSSは変更しない（旧マークアップは使わなくなる）。
 * デザイン案：claude.ai「みらいえ 共通CTA」（PC・SP）／文言は仕様書3章15を正とする
 * ========================================================= */

.cta-common,
.cta-common *,
.cta-common *::before,
.cta-common *::after { box-sizing: border-box; }
.cta-common {
  background: #D7000F;
  color: #fff;
  padding: 64px 20px;
  word-break: auto-phrase;
  font-feature-settings: "palt";
  text-wrap: pretty;
  scroll-margin-top: 108px;
}
.cta-common__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.cta-common__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  text-wrap: balance;
}
.cta-common__lead {
  margin: -22px 0 0;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}
.cta-common__cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cta-common__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.25s, transform 0.25s;
}
.cta-common__card:hover {
  color: #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.cta-common__sub { font-size: 12px; font-weight: 500; color: #666; }
.cta-common__name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.4;
}
.cta-common__icon { flex: 0 0 28px; color: #D7000F; }
.cta-common__title,
.cta-common__lead,
.cta-common__name { text-wrap: balance; }
.cta-common__desc { flex: 1; font-size: 13px; line-height: 1.7; color: #333; }
.cta-common__btn {
  display: block;
  margin-top: 4px;
  border: 2px solid #D7000F;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #D7000F;
  background: #fff;
}
/* 唯一の赤塗りボタン */
.cta-common__card--dl .cta-common__btn { background: #D7000F; color: #fff; }
.cta-common__arrow { display: none; }

.cta-common__tel {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.cta-common__tel-icon { color: #fff; }
.cta-common__tel-label { font-size: 14px; font-weight: 500; }
.cta-common__tel-num { font-size: 26px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3; }
.cta-common__tel-num a { color: #fff; text-decoration: none; }
.cta-common__tel-time { font-size: 13px; }
.cta-common__note { margin: -12px 0 0; font-size: 12px; line-height: 1.6; text-align: center; }

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .cta-common__card { padding: 20px; }
  .cta-common__name { font-size: 17px; }
}

/* SP：資料ダウンロードだけボタン付き。ほかの2つは「アイコン＋名前＋矢印」の横長の行 */
@media screen and (max-width: 767.98px) {
  .cta-common { padding: 44px 16px; scroll-margin-top: 56px; }
  .cta-common__inner { align-items: stretch; gap: 24px; }
  .cta-common__title { font-size: 23px; }
  .cta-common__lead { margin-top: -16px; font-size: 13px; }
  .cta-common__cards { grid-template-columns: 1fr; gap: 10px; }

  .cta-common__card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon sub  arrow"
      "icon name arrow";
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 16px 18px;
  }
  .cta-common__name { display: contents; }
  .cta-common__icon { grid-area: icon; }
  .cta-common__name > span { grid-area: name; font-size: 16px; font-weight: 700; color: #1A1A1A; }
  .cta-common__sub { grid-area: sub; font-size: 11px; }
  .cta-common__desc,
  .cta-common__btn { display: none; }
  .cta-common__arrow { display: block; grid-area: arrow; font-size: 18px; font-weight: 700; color: #D7000F; }

  .cta-common__card--dl {
    grid-template-areas:
      "icon sub"
      "icon name"
      "btn  btn";
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 18px 18px 16px;
  }
  .cta-common__card--dl .cta-common__name > span { font-size: 17px; }
  .cta-common__card--dl .cta-common__btn { display: block; grid-area: btn; margin-top: 10px; padding: 12px 16px; }
  .cta-common__card--dl .cta-common__arrow { display: none; }

  .cta-common__tel { flex-direction: column; gap: 6px; padding: 18px; text-align: center; }
  .cta-common__tel-icon { display: none; }
  .cta-common__tel-label { font-size: 13px; }
  .cta-common__tel-time { font-size: 12px; }
  .cta-common__note { margin-top: -8px; text-align: left; }
}

/* ---------------------------------------------------------
 * 第5弾 8：新しい共通CTAの直後のフッターだけ、上の余白を PC 56px に
 * （テーマの style.css の footer { padding-top: 119px } は古い共通CTAに合わせたもの。style.css は変えずにここで上書き）
 * 共通CTAとフッターの間には SP の固定バー（.ff-bar）があるため、隣接（+）ではなく後ろの兄弟（~）で指定。
 * SP は style.css のまま（50px）。
 * --------------------------------------------------------- */
@media screen and (min-width: 768px) {
  .cta-common ~ footer { padding-top: 56px; }
}
