/* ============================================================
   査定フォーム関連CSS
   - MV直下フォーム（assessment-wp-*）
   - コンテンツ内CTAフォーム（cta-form-*）
   Breakpoint: md = 768px, lg = 1024px
   ============================================================ */

/* ************************************************************
   MV直下フォーム（lp-mv.php）
   ************************************************************ */

/* ===== Section ===== */
.assessment-wp-section {
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 24px;
}

@media (min-width: 768px) {
  .assessment-wp-section {
    padding-bottom: 0;
    background-color: transparent;
    margin-top: -60px;
  }

  .assessment-wp-section--scroll-target {
    scroll-margin-top: 77px;
  }
}

/* ===== Container ===== */
.assessment-wp-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .assessment-wp-container {
    width: 96%;
    border: 2px solid #26AFB9;
    border-radius: 4px 4px 0 0;
  }
}

@media (min-width: 1024px) {
  .assessment-wp-container {
    width: 100%;
  }
}

/* ===== Header Bar ===== */
.assessment-wp-header {
  position: relative;
  background-color: #26AFB9;
  padding: clamp(8px, 2.13vw, 12px) clamp(16px, 4.27vw, 24px);
}

@media (min-width: 768px) {
  .assessment-wp-header {
    padding: 8px clamp(16px, 4.27vw, 24px);
  }
}

/* ===== Bubble (SP/PC共通: バーの上、下向き矢印) ===== */
.assessment-wp-bubble {
  position: absolute;
  left: clamp(8px, 2.13vw, 12px);
  top: 0;
  transform: translateY(-70%);
  z-index: 1;
}

@media (min-width: 768px) {
  .assessment-wp-bubble {
    left: calc(50% - 336px);
    top: -48px;
    transform: translateY(0);
  }
}

.assessment-wp-bubble-box {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  border: 2px solid #26AFB9;
  border-radius: clamp(16px, 5.33vw, 36px);
  background-color: #FFFFFF;
  padding: clamp(1px, 0.8vw, 6px) clamp(7px, 2.67vw, 18px) clamp(2px, 1.33vw, 6px);
  white-space: nowrap;
  line-height: 1;
}

@media (min-width: 768px) {
  .assessment-wp-bubble-box {
    border-width: 3px;
    border-radius: 36px;
    padding: 6px 18px;
  }
}

.assessment-wp-bubble-label {
  font-size: clamp(10px, 3.2vw, 18px);
  font-weight: 700;
  color: #333333;
  line-height: 1;
}

@media (min-width: 768px) {
  .assessment-wp-bubble-label {
    font-size: 18px;
  }
}

.assessment-wp-bubble-number-wrap {
  display: flex;
  align-items: baseline;
  letter-spacing: -0.05em;
}

.assessment-wp-bubble-number {
  font-size: clamp(20px, 6.93vw, 40px);
  font-weight: 700;
  color: #E85400;
  line-height: 1;
}

@media (min-width: 768px) {
  .assessment-wp-bubble-number {
    font-size: 40px;
  }
}

.assessment-wp-bubble-unit {
  font-size: clamp(10px, 3.2vw, 18px);
  font-weight: 700;
  color: #333333;
  line-height: 1;
  margin-left: -2px;
}

@media (min-width: 768px) {
  .assessment-wp-bubble-unit {
    font-size: 18px;
  }
}

/* tail: 下向き矢印 */
.assessment-wp-bubble-tail {
  position: absolute;
  bottom: -5px;
  left: 26%;
  transform: translateX(-50%) rotate(-10deg);
  width: 14px;
  height: 15px;
}

@media (min-width: 768px) {
  .assessment-wp-bubble-tail {
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
  }
}

/* ===== Heading Text (Mobile) ===== */
.assessment-wp-heading-mobile {
  display: block;
  text-align: center;
  font-size: clamp(18px, 5.87vw, 32px);
  font-weight: 700;
  color: #FFFFFF;
}

.assessment-wp-heading-mobile-small {
  font-size: clamp(14px, 4.8vw, 26px);
}

@media (min-width: 768px) {
  .assessment-wp-heading-mobile {
    display: none;
  }
}

/* ===== Heading Text (PC) ===== */
.assessment-wp-heading-pc {
  display: none;
}

@media (min-width: 768px) {
  .assessment-wp-heading-pc {
    display: block;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.04em;
  }
}

.assessment-wp-heading-pc-small {
  font-size: clamp(18px, 4.8vw, 24px);
}

/* ===== Form Wrapper ===== */
.assessment-wp-form-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ************************************************************
   コンテンツ内CTAフォーム（cta-form.php）
   - デフォルト: cta-form-section
   - 2つ目CTA: cta-form-section--alt
   ************************************************************ */

/* ===== CTA Form Section (コンテンツ内フォーム型CTA) ===== */
.cta-form-section {
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
  position: relative;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 43.2vw;
}

.cta-form-section::before {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 47.47vw;
  background-color: #F5F7FB;
}

/* 吹き出しテキスト */
.cta-form-fukidashi {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(15px, 5vw, 20px);
  font-weight: 700;
  color: #005BAC;
  margin-bottom: 32px;
}

.cta-form-fukidashi strong {
  background: linear-gradient(transparent 72%, rgba(0, 91, 172, 0.2) 20%);
}

/* Box (ボーダー付きコンテナ) */
.cta-form-box {
  position: relative;
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  border: 4px solid #26AFB9;
  border-radius: 4px;
}

/* === SP Header === */
.cta-form-header-sp {
  display: block;
}

.cta-form-badge-sp {
  position: absolute;
  left: -8px;
  top: -24px;
  z-index: 1;
  display: block;
  text-align: left;
}

/* 吹き出し尻尾（白 + ボーダー色の二重三角） */
.cta-form-badge-sp::before {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 60px;
  width: 0;
  height: 0;
  border-top: 8px solid #26AFB9;
  border-left: 8px solid transparent;
  z-index: 0;
}

.cta-form-badge-sp::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 48px;
  width: 0;
  height: 0;
  border-top: 8px solid #FFFFFF;
  border-left: 8px solid transparent;
  z-index: 1;
}

.cta-form-badge-sp-text {
  display: inline-block;
  background-color: #FFFFFF;
  color: #db0000;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 16px;
  border: 2px solid #26AFB9;
  border-radius: 40px;
  white-space: nowrap;
  line-height: 1;
}

.cta-form-heading-bar {
  background-color: #26AFB9;
  text-align: center;
  padding: 8px 0 4px;
}

.cta-form-heading-sp {
  font-size: clamp(18px, 6.13vw, 23px);
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.cta-form-heading-sp small {
  font-size: clamp(13px, 4.27vw, 16px);
}

/* === PC Header === */
.cta-form-header-pc {
  display: none;
}

/* === 下部バー + 吹き出し尻尾 === */
.cta-form-bottom-bar {
  position: relative;
  width: 90%;
  max-width: 960px;
  margin: -4px auto 0;
  height: 12px;
  background-color: #26AFB9;
  border-radius: 0 0 4px 4px;
  z-index: 1;
}

.cta-form-bottom-tail {
  display: inline-block;
  overflow: visible;
  position: absolute;
  top: 0;
  right: 28%;
  width: 28px;
  height: 32px;
}

/* === Tora (虎画像) === */
.cta-form-tora {
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  z-index: 1;
}

.cta-form-tora img {
  width: 100%;
  height: auto;
}

/* ===== PC (768px〜) ===== */
@media (min-width: 768px) {
  .cta-form-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .cta-form-fukidashi {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 16px;
  }

  .cta-form-section::before {
    height: 160px;
    background-color: #26AFB9;
  }

  .cta-form-header-sp {
    display: none;
  }

  .cta-form-header-pc {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #26AFB9;
    padding: 8px 24px;
    gap: 16px;
  }

  .cta-form-badge-pc {
    display: inline-block;
    background-color: #FFFFFF;
    color: #db0000;
    font-size: 18px;
    font-weight: 700;
    padding: 1px 8px;
    border: 2px solid #26AFB9;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cta-form-badge-dot {
    letter-spacing: -0.1em;
  }

  .cta-form-heading-pc {
    font-size: 28px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    letter-spacing: 0.06em;
  }

  .cta-form-tora {
    bottom: -10px;
    padding-left: 20px;
  }

  .cta-form-tora img {
    width: 160px;
  }
}

/* ===== Desktop (1024px〜) ===== */
@media (min-width: 1024px) {
  .cta-form-fukidashi {
    font-size: 28px;
  }

  .cta-form-tora {
    bottom: -12px;
    padding-left: 56px;
  }

  .cta-form-tora img {
    width: 186px;
  }
}

/* ===== Alt variant (2つ目CTA: cta_tora_kira) ===== */
.cta-form-section--alt {
  padding-bottom: 120px;
}

.cta-form-section--alt::before {
  height: 136px;
}

.cta-form-section--alt .cta-form-tora {
  width: 188px;
  left: 50%;
  transform: translateX(-50%);
  bottom: -16px;
}

.cta-form-section--alt .cta-form-bottom-tail {
  right: 20px;
}

.cta-form-section--alt .cta-form-tora img {
  width: 100%;
}

@media (min-width: 768px) {
  .cta-form-section--alt {
    padding-bottom: 56px;
  }

  .cta-form-section--alt .cta-form-tora {
    width: 100%;
    max-width: 960px;
    left: 50%;
    transform: translateX(-50%);
    bottom: -13px;
    padding-left: 12px;
  }

  .cta-form-section--alt .cta-form-tora img {
    width: 180px;
  }

  .cta-form-section--alt::before {
    height: 160px;
    background-color: #26AFB9;
  }
}

@media (min-width: 1024px) {
  .cta-form-section--alt .cta-form-tora {
    bottom: -14px;
    padding-left: 56px;
  }

  .cta-form-section--alt .cta-form-tora img {
    width: 200px;
  }
}

/* ************************************************************
   記事ページ用フォーム（cta-form-box--article）
   ヘッダー + ウィジェットのみ（ティールバー・尻尾・虎なし）
   ************************************************************ */
.cta-form-box--article {
  width: 100%;
  max-width: 720px;
  margin: 80px auto 0;
}

.cta-form-box--article .cta-form-heading-pc {
  font-size: clamp(16px, 2.8vw, 24px);
}

.cta-form-box--article .cta-form-badge-pc {
  font-size: clamp(13px, 2.2vw, 16px);
}
