/**
 * Office Mobile Top Fix v2（案A）
 * スマホトップ上部を、写真の上の半透明ではなく均一背景＋太字ゴシックにし、
 * 報酬額を巨大数字で目立たせる。文言は既存のまま。PCの配置は大きく変えない。
 * 案A: 背景 #FFFFFF、金額 #CC1F00
 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700;800;900&display=swap");

/* -------------------------------------------------
 * PC：料金カードだけ不透明化（配置は変えない）
 * ------------------------------------------------- */
html body.home #banner_caption div[style*="linear-gradient"] {
  background-color: #0B2545 !important;
  background-image: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
html body.home #banner_caption div[style*="linear-gradient"],
html body.home #banner_caption div[style*="linear-gradient"] * {
  text-shadow: none !important;
  filter: none !important;
}
html body.home #banner_caption div[style*="linear-gradient"] b {
  color: #FFB347 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}
html body.home #banner_caption::before,
html body.home #banner_caption::after {
  display: none !important;
}

/* PC/SP共通：LINE・電話ボタンを白地＋紺枠ではっきりさせる */
html body.home #banner_caption a[href*="works.do"],
html body.home #banner_caption a[href^="tel:"] {
  background: #ffffff !important;
  color: #0B2545 !important;
  border: 2px solid #0B2545 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

/* -------------------------------------------------
 * スマホ共通：サイト名1行・重なり解消
 * ------------------------------------------------- */
@media (max-width: 767px) {
  html body.mb-theme .header_container.mb,
  html body.mb-theme .header_container.mb.float,
  html body.mb-theme .header_container.mb.fixed,
  html body.mb-theme .header_container.mb.scroll {
    position: relative !important;
    top: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 6px 10px !important;
    overflow: hidden !important;
  }
  html body.mb-theme .header_container .hd_title.txt {
    max-width: 100% !important;
    margin: 0 !important;
  }
  html body.mb-theme .header_container .hd_title.txt a {
    display: block !important;
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* ヒーロー：写真を文字に重ねない。均一背景で高さは中身に合わせる */
  html body.home #header-banner-outer {
    background: #FFFFFF !important;
  }
  html body.home #header-banner-outer #header-banner-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: #FFFFFF !important;
    background-image: none !important;
  }
  html body.home #header-banner-inner img.static_img {
    display: none !important;
  }
  html body.home #header-banner-outer #header-banner-container {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    height: auto !important;
    width: 100% !important;
    padding: 18px 16px 22px !important;
    box-sizing: border-box !important;
  }
  html body.home #header-banner-container,
  html body.home #header-banner-container * {
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-shadow: none !important;
    filter: none !important;
  }

  /* 見出し */
  html body.home #banner_title {
    margin: 0 0 14px !important;
  }
  html body.home #banner_title,
  html body.home #banner_title > div {
    color: #0B2545 !important;
    background: transparent !important;
    background-image: none !important;
    text-shadow: none !important;
    filter: none !important;
  }
  html body.home #banner_title > div {
    font-size: clamp(22px, 6vw, 28px) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.01em !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  html body.home #banner_title > div::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 10px 0 0;
    background: #CC1F00;
    border-radius: 2px;
  }

  html body.home #banner_title > div,
  html body.home #banner_caption > span > div {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* 料金ブロック：均一背景。巨大な報酬数字 */
  html body.home #banner_caption div[style*="linear-gradient"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    padding: 16px 0 8px !important;
    background: #FFFFFF !important;
    background-image: none !important;
    background-color: #FFFFFF !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
  }
  html body.home #banner_caption div[style*="linear-gradient"] > div:first-child {
    color: #0B2545 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }
  html body.home #banner_caption div[style*="linear-gradient"] b {
    display: block !important;
    color: #CC1F00 !important;
    font-size: clamp(48px, 16vw, 72px) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    margin: 4px 0 2px !important;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    word-break: keep-all;
    text-shadow: none !important;
  }
  /* 「（税別）」は金額の直後（b が block なので次行）に、読めるサイズで */
  html body.home #banner_caption div[style*="linear-gradient"] > div:first-child {
    font-size: 15px !important;
  }
  html body.home #banner_caption div[style*="linear-gradient"] > div:nth-child(2),
  html body.home #banner_caption div[style*="linear-gradient"] > div:nth-child(3) {
    color: #0B2545 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.7 !important;
    margin-top: 8px !important;
    word-break: keep-all;
    line-break: strict;
  }
  html body.home #banner_caption div[style*="linear-gradient"] > div:nth-child(3) {
    color: #0B2545 !important;
  }

  /* LINE・電話：半透明グレーをやめ、白地に紺文字＋枠 */
  html body.home #banner_caption a[href*="works.do"],
  html body.home #banner_caption a[href^="tel:"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #0B2545 !important;
    border: 2px solid #0B2545 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    padding: 10px 16px !important;
    margin: 6px 8px 0 0 !important;
  }
  html body.home #banner_caption a[href*="page-44"] {
    font-weight: 800 !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }

  /* 下の写真ヒーロー：文字の下に濃い重ねを足して可読性を上げる（文言は変えない） */
  html body.home .dp-hero-section {
    position: relative !important;
  }
  html body.home .dp-hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 37, 69, 0.42);
    z-index: 0;
    pointer-events: none;
  }
  html body.home .dp-hero-section .dp-hero-content,
  html body.home .dp-hero-section .dp-area-badge,
  html body.home .dp-hero-section .dp-hero-list,
  html body.home .dp-hero-section .dp-diagnosis-cta-wrap,
  html body.home .dp-hero-section .dp-reassurance,
  html body.home .dp-hero-section .dp-cta-badge,
  html body.home .dp-hero-section .dp-cta-note {
    position: relative;
    z-index: 1;
  }
  html body.home .dp-hero-content,
  html body.home .dp-hero-content h1,
  html body.home .dp-hero-list,
  html body.home .dp-hero-list div,
  html body.home .dp-cta-note,
  html body.home .dp-cta-badge {
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif !important;
    text-shadow: none !important;
  }
  html body.home .dp-hero-list i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", FontAwesome, inherit !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    filter: none !important;
  }
  html body.home .dp-hero-content h1 {
    font-weight: 800 !important;
    color: #ffffff !important;
  }
  html body.home .dp-hero-list,
  html body.home .dp-hero-list div {
    font-weight: 700 !important;
    color: #ffffff !important;
  }
}

@media (max-width: 360px) {
  html body.mb-theme .header_container .hd_title.txt a {
    font-size: 11.5px !important;
  }
  html body.home #banner_caption div[style*="linear-gradient"] b {
    font-size: clamp(44px, 15.5vw, 64px) !important;
  }
}
