/**
 * Office Top CTA 1119
 * トップの診断ボタンを主CTAにし、料金下・ページ下部にも同じボタンを置く。
 * 料金文言（79,800円／正規15万円／毎月5件まで／申請手数料・実費別途）は変えない。
 */

/* 案内文 */
html body.home.octa1119-on .octa-lead {
  display: block;
  margin: 0 0 8px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #0B2545;
  text-shadow: none;
}

html body.home.octa1119-on .octa-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

html body.home.octa1119-on .octa-sub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

/* 主ボタン：無料診断 */
html body.home.octa1119-on a.octa-btn-diag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px 28px;
  margin: 0;
  background: linear-gradient(135deg, #FF9A1F, #E86A00);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(232, 106, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.35);
  text-shadow: none;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}
html body.home.octa1119-on a.octa-btn-diag:hover,
html body.home.octa1119-on a.octa-btn-diag:focus {
  filter: brightness(1.05);
  color: #fff !important;
  outline: 2px solid #0B2545;
  outline-offset: 2px;
}

/* 副ボタン：LINE・電話（小さく下へ） */
html body.home.octa1119-on a.octa-btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 8px 14px;
  margin: 0;
  background: #ffffff !important;
  color: #0B2545 !important;
  text-decoration: none !important;
  border: 2px solid #0B2545 !important;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}
html body.home.octa1119-on a.octa-btn-sub:hover,
html body.home.octa1119-on a.octa-btn-sub:focus {
  background: #F3F6FA !important;
  outline: 2px solid #0B2545;
  outline-offset: 2px;
}

/* -------- 上部バナー -------- */
@media (min-width: 768px) {
  html body.home.octa1119-on #banner_caption .octa-lead {
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.7);
    font-size: 15px;
    margin: 2px 0 8px;
  }
  html body.home.octa1119-on #banner_caption .octa-actions {
    margin-top: 2px;
  }
}

@media (max-width: 767px) {
  html body.home.octa1119-on #banner_caption .octa-lead {
    color: #0B2545;
    text-shadow: none;
  }
  html body.home.octa1119-on #banner_caption a.octa-btn-diag {
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    font-size: 18px;
  }
  html body.home.octa1119-on #banner_caption .octa-sub-row {
    width: 100%;
  }

  /*
   * 案内文を足したあとも、390 / 427 の最初の画面に診断ボタンが収まるよう
   * 余白と金額だけ少し詰める。正規15万円などの文言は消さない。
   * 写真は既存の Office Mobile Top Fix が非表示にしている。
   */
  html body.home.octa1119-on #header-banner-outer #header-banner-container {
    padding: 14px 16px 16px !important;
  }
  html body.home.octa1119-on #banner_title {
    margin: 0 0 10px !important;
  }
  html body.home.octa1119-on #banner_caption div[style*="linear-gradient"] {
    margin: 0 0 10px !important;
    padding-bottom: 4px !important;
  }
  html body.home.octa1119-on #banner_caption div[style*="linear-gradient"] b {
    font-size: clamp(40px, 13.5vw, 64px) !important;
  }
}

/* -------- 料金の直下 -------- */
html body.home.octa1119-on .octa-mid-cta {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 20px 28px;
  text-align: center;
  box-sizing: border-box;
}
html body.home.octa1119-on .octa-mid-cta .octa-actions,
html body.home.octa1119-on .octa-mid-cta .octa-lead {
  align-items: center;
  text-align: center;
}
html body.home.octa1119-on .octa-mid-cta .octa-actions {
  width: 100%;
  align-items: center;
}
html body.home.octa1119-on .octa-mid-cta a.octa-btn-diag {
  min-width: 240px;
}

/* -------- ページ下部の既存CTAを同じ主ボタンに揃える（ブロックは増やさない） -------- */
html body.home.octa1119-on .lp3-cta-section .octa-lead {
  color: #fff;
  text-shadow: none;
  margin: 0 0 12px;
  font-size: 16px;
}
html body.home.octa1119-on .lp3-cta-section .octa-actions {
  align-items: center;
  width: 100%;
}
html body.home.octa1119-on .lp3-cta-section a.octa-btn-diag {
  min-width: 240px;
}
html body.home.octa1119-on .lp3-cta-section a.octa-btn-sub {
  /* 下部は色付き背景のため、枠を明るくして読めるようにする */
  background: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
}
html body.home.octa1119-on .lp3-cta-section a.octa-btn-sub:hover,
html body.home.octa1119-on .lp3-cta-section a.octa-btn-sub:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}
/* 新しい案内文と重なる既存の短い説明は、DOMは残して表示だけ下げる */
html body.home.octa1119-on .lp3-cta-section .octa-dup-hide {
  display: none;
}
