/* 共通CTA（section.cv-cmn）
   構成：淡い水色ストライプ → 白カード（左：キャラ＋即日バッジ／右：見出し・無料マーク・電話・特長・メールボタン）
   HTMLは342ページ共通のため変更せず、CSSと疑似要素だけで組み替えている */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@500;700;900&display=swap");

:root {
  --cv-blue: #2870cb;
  --cv-sky: #bedbff;
  --cv-sky-stripe: #bcdaff;
  --cv-red: #e62e2d;
  --cv-red-deep: #cf1126;
  --cv-yellow: #ffd800;
  --cv-orange: #f98b0a;
  --cv-orange-dark: #c95f00;
  --cv-text: #333;
  --cv-font: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

/* ---------- 元テーマの装飾をリセット ---------- */
body section.cv-cmn.is--sp,
body .cv-cmn noscript,
body .cv-cmn .buttons img,
body .cv-cmn .buttons a.lineAddFriend20241210 {
  display: none !important;
}

body .cv-cmn *,
body .cv-cmn *::before,
body .cv-cmn *::after {
  box-sizing: border-box;
}

/* ---------- セクション ---------- */
/* 元テーマの「padding-top:160px / margin-top:-160px」（固定ヘッダー分のアンカー余白）は維持する */
body .cv-cmn {
  display: block !important;
  padding: 160px 0 0 !important;
  margin-top: -160px !important;
  background: none !important;
  font-family: var(--cv-font) !important;
  color: var(--cv-text);
  font-weight: 700;
}

body .cv-cmn-parts {
  max-width: none !important;
  margin: 0 !important;
  padding: 40px 16px !important;
  background: #f0f9f1 !important;
  font-weight: 700 !important;
}

/* ---------- 白カード ---------- */
body .cv-cmn-inner {
  position: relative;
  display: grid !important;
  grid-template-columns: 1fr 633px;
  grid-template-areas:
    "leo tel"
    "leo btn";
  column-gap: 40px;
  row-gap: 18px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 40px 34px !important;
  border-radius: 20px;
  overflow: hidden;
  white-space: normal !important;
  /* 左半分に街並み＋空、右に向かって白へ抜ける */
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 28%, #fff 44%),
    url(/assets/hero/town.webp) left -170px bottom -6px / 700px auto no-repeat,
    linear-gradient(180deg, #cfe6ff 0%, #eaf4ff 60%, #fff 100%) !important;
  box-shadow: 0 6px 18px rgba(40, 112, 203, 0.12);
}

/* キャラクター（参考デザインの人物写真の位置） */
body .cv-cmn .leopard {
  grid-area: leo;
  align-self: end;
  justify-self: center;
  width: 240px !important;
  max-width: 100%;
  height: auto !important;
  margin: 0 0 -26px 110px;
}

/* ---------- 右カラム：見出し・無料マーク・電話・特長 ---------- */
body .cv-cmn .tel {
  grid-area: tel;
  display: grid !important;
  grid-template-columns: 100px 1fr;
  grid-template-areas:
    "head head"
    "badge num"
    "badge under";
  column-gap: 16px;
  margin: 0 !important;
  text-align: left !important;
}

body .cv-cmn .tel .upper {
  grid-area: head;
  display: block !important;
  margin: 0 0 8px !important;
  text-align: center;
}

body .cv-cmn .tel .upper p {
  margin: 0 !important;
  font-size: 25px !important;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

body .cv-cmn .tel .upper p::before { content: "＼ "; }
body .cv-cmn .tel .upper p::after { content: " ／"; }

body .cv-cmn .tel .upper p span {
  font-size: inherit !important;
  color: var(--cv-red-deep);
  background: none !important;
}

/* 黄色いバッジ（「お電話1本で即日対応！」の位置）は画像を使わずテキストで左上の黄色いバッジにする（.cv-cmn-inner 基準で配置） */
body .cv-cmn .tel .upper img {
  display: none !important;
}

body .cv-cmn .tel .upper::after {
  content: "雨の日も\A対応可能！";
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 136px;
  background: var(--cv-yellow);
  clip-path: polygon(50% 0%, 57.5% 6.2%, 66.3% 2.4%, 71.4% 10.7%, 80.6% 9.5%, 82.9% 18.9%, 91.8% 21.6%, 90.9% 31.3%, 98.5% 36.8%, 94.5% 45.6%, 100% 53.4%, 93.8% 60.8%, 97.6% 69.6%, 89.3% 74.7%, 90.5% 83.9%, 81.1% 86.2%, 78.4% 95.1%, 68.7% 94.2%, 63.2% 100%, 54.4% 97.8%, 46.6% 100%, 39.2% 97.1%, 30.4% 100%, 25.3% 92.6%, 16.1% 93.8%, 13.8% 84.4%, 4.9% 81.7%, 5.8% 72%, 0% 66.5%, 2.2% 57.7%, 0% 49.9%, 2.9% 42.5%, 0% 33.7%, 7.4% 28.6%, 6.2% 19.4%, 15.6% 17.1%, 18.3% 8.2%, 28% 9.1%, 33.5% 1.5%, 42.3% 5.5%);
  color: var(--cv-red-deep);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: pre;
}

/* 無料マーク：オリジナルのロゼット画像（p.free の文言は読み上げ用に残し、文字は非表示） */
body .cv-cmn .tel .free {
  grid-area: badge;
  align-self: center;
  display: block !important;
  width: 104px;
  height: 104px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 0 !important;
  color: transparent;
  background: url(/assets/cv/free-badge.png) center / contain no-repeat !important;
}

body .cv-cmn .tel .number {
  grid-area: num;
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 0 6px !important;
  border-bottom: 1px solid #c9c9c9;
  color: var(--cv-text) !important;
  font-size: 56px !important;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none !important;
}

body .cv-cmn .tel .number::before {
  content: "" !important;
  width: 58px !important;
  height: 39px !important;
  margin: 4px 0 0;
  flex: none;
  background: url(/assets/img/icon-phone.png) center / contain no-repeat !important;
}

body .cv-cmn .tel .number:hover {
  opacity: 0.8;
}

body .cv-cmn .tel .under {
  grid-area: under;
  display: grid !important;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 2px 22px;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none;
  font-size: 17px !important;
}

body .cv-cmn .tel .under li {
  display: flex;
  align-items: center;
  padding: 0 !important;
  border: 0 !important;
  line-height: 1.6;
  white-space: nowrap;
}

/* 灰色の丸に赤いチェック */
body .cv-cmn .tel .under li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 6px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.4 3.4L16.5 4.5' fill='none' stroke='%23e62e2d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    #dcdcdc;
}

body .cv-cmn .tel .under li .strong {
  font-size: inherit !important;
  color: var(--cv-red) !important;
}

/* ---------- メールボタン ---------- */
body .cv-cmn .buttons {
  grid-area: btn;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

body .cv-cmn .buttons a[href="/contact/"] {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 8px 20px 8px 96px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='26' fill='%23fff'/%3E%3Crect x='13' y='17' width='26' height='18' rx='2' fill='none' stroke='%23f98b0a' stroke-width='2.6'/%3E%3Cpath d='M14 18.5l12 9 12-9' fill='none' stroke='%23f98b0a' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") left 26px center / 52px no-repeat,
    linear-gradient(180deg, #ffa126 0%, var(--cv-orange) 100%);
  box-shadow: 0 5px 0 var(--cv-orange-dark);
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

body .cv-cmn .buttons a[href="/contact/"]::before {
  content: "— お見積もり無料受付 —";
  color: #fff65a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body .cv-cmn .buttons a[href="/contact/"]::after {
  content: "メールでお問い合わせ";
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body .cv-cmn .buttons a[href="/contact/"]:hover {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--cv-orange-dark);
}

/* ---------- タブレット ---------- */
@media screen and (max-width: 1100px) {
  body .cv-cmn-inner {
    grid-template-columns: 1fr minmax(0, 560px);
    column-gap: 24px;
    padding: 30px 28px 34px !important;
  }
  body .cv-cmn .leopard { width: 190px !important; margin-left: 70px; }
  body .cv-cmn .tel .upper::after { left: 12px; top: 16px; width: 112px; height: 112px; font-size: 15px; }
  body .cv-cmn .tel .upper p { font-size: 22px !important; }
  body .cv-cmn .tel .number { font-size: 46px !important; }
  body .cv-cmn .tel .under { font-size: 15px !important; gap: 2px 14px; }
}

/* ---------- SP ---------- */
@media screen and (max-width: 768px) {
  body .cv-cmn {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  body .cv-cmn-parts {
    padding: 24px 16px !important;
  }

  body .cv-cmn-inner {
    display: block !important;
    padding: 20px 16px 22px !important;
    border-radius: 16px;
    background: #fff !important;
  }
  body .cv-cmn .leopard { display: none !important; }

  body .cv-cmn .tel {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }
  body .cv-cmn .tel .upper { margin-bottom: 10px !important; }
  body .cv-cmn .tel .upper p {
    font-size: 4.8vw !important;
    white-space: nowrap;
  }
  body .cv-cmn .tel .upper::after {
    content: "雨の日も対応可能！";
    position: static;
    display: table;
    width: auto;
    height: auto;
    margin: 6px auto 0;
    padding: 3px 14px 4px;
    border-radius: 999px;
    clip-path: none;
    font-size: 14px;
  }
  body .cv-cmn .tel .free { display: none !important; }

  /* 電話番号は赤い大きなボタンに */
  body .cv-cmn .tel .number {
    order: 1;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 12px !important;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #ee3b3a 0%, var(--cv-red-deep) 100%);
    box-shadow: 0 4px 0 #9b0d1c;
    color: #fff !important;
    font-size: 8.4vw !important;
  }
  body .cv-cmn .tel .number::before {
    content: "電話でお問い合わせ【通話無料】" !important;
    width: 100% !important;
    height: auto !important;
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    background: none !important;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
  }
  body .cv-cmn .tel .under {
    order: 2;
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    margin: 14px 0 0 !important;
    font-size: 3.5vw !important;
  }
  body .cv-cmn .tel .under li::before {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    background-size: 14px, auto;
  }

  body .cv-cmn .buttons { margin-top: 14px !important; }
  body .cv-cmn .buttons a[href="/contact/"] {
    min-height: 68px;
    padding: 6px 12px 6px 70px;
    background-position: left 14px center, 0 0;
    background-size: 42px, auto;
  }
  body .cv-cmn .buttons a[href="/contact/"]::before { font-size: 13px; }
  body .cv-cmn .buttons a[href="/contact/"]::after { font-size: 20px; }
}

/* CTA直後の「選ぶ前にチェック！」（section.reasons）との間に白い余白を出さない */
body section.cv-cmn + section.cv-cmn.is--sp + section.reasons,
body section.cv-cmn:not(.is--sp) + section.reasons {
  margin-top: 0 !important;
}
