/* =========================
   CTA Block (PC)
========================= */

.lp-cta{
  padding: 54px 0;
  background: #1d2088; /* 紺フル幅 */
}

.lp-cta__inner{
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-cta__card{
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 44px 54px 30px;
  overflow: hidden;
}

/* うっすら背景（任意：現状はグレーの図形っぽいので雰囲気だけ） */
.lp-cta__card::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events: none;
}

.lp-cta__head{
  position: relative;
  text-align: center;
  padding-top: 4px;
}

.lp-cta__mascot{
  position: absolute;
  left: 22%;
  top: -10px;
  width: 86px;
}
.lp-cta__mascot img{ width:100%; height:auto; display:block; }

.lp-cta__deco{
  position: absolute;
  top: -10px;
  right: 15%;
  width: 110px;
  z-index: 3;
}
.lp-cta__deco img{   
	width: 100%;
	height: auto;
	display: block;
}

.lp-cta__title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.25;
  color: #1b2a7a;
  font-size: 34px;
}

.lp-cta__sub{
  margin: 18px auto 26px;
  max-width: 980px;
  background: #f3e48b;
  border-radius: 999px;
  text-align: center;
  padding: 10px 18px;
  font-weight: 800;
  color: #222;
  position: relative;
  z-index: 1;
}

.lp-cta__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 0 auto 40px;
  max-width: 980px;
  position: relative;
  z-index: 1;
}

.lp-cta__btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  height: 108px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 28px;
  text-decoration: none;
  color: #fff !important;
}
.lp-cta__btn img {
  width: 36px;
  height: auto;
}
.lp-cta__btn span {
  font-weight: 900;
  font-size: 26px;
  color: #fff;
}
.lp-cta__btn-ic{
  display:inline-flex;
  width: 42px;
  height: 42px;
  align-items:center;
  justify-content:center;
}
.lp-cta__btn-ic svg{ width: 30px; height:30px; display:block; }

.lp-cta__btn--line{ background:#29c21a; }
.lp-cta__btn--mail{ background:#1d2088; }

.lp-cta__tel{
  max-width: 980px;
  margin: 32px auto 0;
  border: 3px solid #1d2088;
  border-radius: 10px;
  padding: 18px 18px 14px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lp-cta__tel-head{
  position: absolute;
  top: -19px;               /* ← ここで全体を持ち上げる */
  left: 50%;
  transform: translateX(-50%);
  background: #fff;         /* 枠線と重なるため */
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  color: #1d2088;
  z-index: 2;
  font-size: 24px;
}

.lp-cta__tel-slash{
  width: 56px;
  height: 3px;
  background: #1d2088;
  transform: rotate(-22deg);
  margin-top: 2px;
}
.lp-cta__tel-slash:last-child{
  transform: rotate(22deg);
}

.lp-cta__tel-num{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 44px;
  font-weight: 900;
  color: #1d2088;
  text-decoration: none;
}
.lp-cta__tel-num img {
  width: 38px;
  height: auto;
}
.lp-cta__tel-ic{
  font-size: 34px;
  line-height: 1;
}

.lp-cta__note{
  margin: 10px 0 0;
  color:#333;
  font-size: 14px;
  font-weight: 700;
}

.lp-cta__foot{
  margin-top: 18px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap: 34px;
  position: relative;
  z-index: 1;
}

.lp-cta__company img{
  height: 34px;
  width:auto;
  display:block;
}

.lp-cta__truck{
  position:absolute;
  right: 34px;
  bottom: -33px;
}
.lp-cta__truck img{ width:100%; height:auto; display:block; }


/* ===== slash fix ===== */
.slash {
  width: 48px;
  height: 3px;
  background: #1d2088;
}

.slash--left {
  transform: rotate(25deg);
}

.slash--right {
  transform: rotate(-25deg);
}

/* ===== mascot ===== */
.lp-cta__mascot {
	position: absolute;
	left: 15%;
	top: -14px;
	width: 140px;
	z-index: 2;
}

/* ===== footer ===== */
.lp-cta__foot {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-top: 20px;
}

.lp-cta__logo {
  height: 60px;
}

.lp-cta__truck {
  height: 77px;
}



@media (max-width: 767px) {

  /* 外側：余白と背景（画像を敷いてる場合はここで） */
  .lp-cta {
    padding: 18px 12px;
  }

  .lp-cta__inner {
    max-width: 420px;
    margin: 0 auto;
  }

  /* カード：角丸/余白 */
  .lp-cta__card {
    border-radius: 18px;
    padding: 18px 14px 16px;
  }

  /* 見出し：中央寄せ＆行間調整 */
  .lp-cta__head {
    text-align: center;
    padding-top: 18px;
  }

  .lp-cta__title {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 900;
  }

  /* 上の黄帯 */
  .lp-cta__sub {
    margin: 10px auto 14px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
  }

  /* マスコット：左上にちょい被せ */
  .lp-cta__mascot {
    position: absolute;
    left: 14px;
    top: -24px;
    width: 72px;
    z-index: 3;
  }

  /* 右上のあしらい */
  .lp-cta__deco {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 52px;
    z-index: 2;
  }
  .lp-cta__deco img { width: 100%; height: auto; display:block; }

  /* ボタン：縦積み */
  .lp-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
  }

  .lp-cta__btn {
    justify-content: center;
    padding: 16px 14px;
    border-radius: 12px;
  }

  .lp-cta__btn img {
    width: 28px;
  }

  .lp-cta__btn span {
    font-size: 18px;
    font-weight: 900;
  }

  /* TEL枠：幅いっぱい＆中央 */
  .lp-cta__tel {
    margin-top: 16px;
    padding: 16px 12px 12px;
    border-radius: 12px;
    text-align: center;
  }

  .lp-cta__tel-head {
    position: static;      /* SPは重ねず中央に置く */
    transform: none;
    background: transparent;
    padding: 0;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  /* スラッシュ（SPは短めが綺麗） */
  .lp-cta__tel-head .slash {
    width: 34px;
    height: 3px;
  }

  .lp-cta__tel-num {
    justify-content: center;
    font-size: 34px;
    gap: 10px;
  }

  .lp-cta__tel-num img {
    width: 34px;
  }

  .lp-cta__note {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 8px;
  }

  /* フッター：ロゴ＋トラック */
  .lp-cta__foot {
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
  }

  .lp-cta__logo { height: 26px; }
  .lp-cta__truck { height: 28px; }
}



@media (max-width: 767px){

  /* ===== CTA全体（外枠の青＋白カード） ===== */
  .lp-cta{
    padding: 22px 12px; /* 青い外側の余白 */
  }

  .lp-cta__card{
    border-radius: 18px;
    padding: 18px 14px 14px;
  }

  /* ===== 見出し ===== */
  .lp-cta__head{
    position: relative;
    text-align: center;
    padding-top: 50px; /* マスコット分 */
  }

  .lp-cta__title{
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    margin: 0;
  }

  /* 黄帯（現地での見積もりも無料！） */
  .lp-cta__sub{
    margin: 10px auto 16px;
    width: min(320px, 100%);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
  }

  /* ===== 右上のデコ ===== */
  .lp-cta__deco{
    position: absolute;
    top: 10px;
    right: 12px;
    width: 52px;
    z-index: 2;
  }
  .lp-cta__deco img{ width:100%; height:auto; display:block; }

  /* ===== 左上マスコット（被せ） ===== */
  .lp-cta__mascot{
    position: absolute;
    top: -18px;
    left: 12px;
    width: 76px;
    z-index: 3;
  }
    .lp-cta__mascot img {
        width: 100%;
        height: auto;
        display: block;
        position: relative;
        top: 0px;
        left: -20px;
    }

  /* ===== ボタン（縦積み・中央） ===== */
  .lp-cta__actions{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
  }

  .lp-cta__btn{
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 18px 14px;
    gap: 12px;
  }
  .lp-cta__btn img{ width: 28px; height:auto; display:block; }
  .lp-cta__btn span{
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
  }

  /* ===== TEL枠 ===== */
  .lp-cta__tel{
    margin-top: 16px;
    padding: 16px 12px 12px;
    border-radius: 12px;
    text-align: center;
  }

  /* 24時間受付可能！＋スラッシュ（中央） */
  .lp-cta__tel-head{
    position: static; /* SPは重ねない */
    transform: none;
    background: transparent;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 900;
  }
  .lp-cta__tel-head .slash{
    width: 34px;
    height: 3px;
  }

  /* 電話番号＋アイコン */
  .lp-cta__tel-num{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
  }
  .lp-cta__tel-num img{ width: 34px; height:auto; display:block; }

  /* 注釈 */
  .lp-cta__note{
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  /* ===== 下部（ロゴ＋トラック） ===== */
  .lp-cta__foot{
    margin-top: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
  }
  .lp-cta__logo{ height: 40px; width:auto; }
      .lp-cta__truck {
        height: 30px;
        width: auto;
        right: 0;
        bottom: -16px;
    }
}

@media (max-width: 767px){
  .lp-cta{ overflow: visible; }
}


/* =========================
   ABテスト 001-2
   電話番号ブロック 背景色変更
========================= */
.lp-variant-001-2 .lp-cta__tel {
    border: 3px solid #f39800;
}
/* =========================
   ABテスト 001-2
   電話アイコン差し替え
========================= */

/* 既存アイコンを消す */
.lp-variant-001-2 .lp-cta__tel-num img {
  display: none;
}

/* 新アイコンを疑似要素で表示 */
.lp-variant-001-2 .lp-cta__tel-num::before {
  content: "";
  display: inline-block;
  width: 32px;  /* ← サイズ調整はここ */
  height: 32px;
  margin-right: 8px; /* 数字との間隔 */

  background-image: url('/wp-content/themes/lp-base-theme/assets/img/lp/cta/cta_tel_001-2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  vertical-align: middle;
}

.lp-variant-001-2 .lp-cta__tel,
.lp-variant-001-2 .lp-cta__tel a,
.lp-variant-001-2 .lp-cta__tel p {
  color: #f39800; 
}

/* =========================
   ABテスト 001-2
   電話リード文 訴求色変更
========================= */
.lp-variant-001-2 .lp-cta__tel-lead {
  color: #f39800; /* ← 仮。調整はここ */
}
/* スラッシュ（左右） */
.lp-variant-001-2 .lp-cta__tel-head .slash {
  background-color: #f39800; /* ← 仮。線色を変更 */
}
