/* Scoped by the PHP enqueue gate to the root landing page. */
#loader-bg { display: none !important; }
#lp_mv .trigger, #lp_mv .trigger_child { opacity: 1; visibility: visible; transform: none; animation: none; }
#wrap a.consultation-cta .bubble { width: max-content; max-width: calc(100vw - 32px); white-space: nowrap; }
@media (min-width: 1024px) {
  #wrap a.consultation-cta { display: flex; align-items: center; justify-content: center; width: min(320px, 100%); box-sizing: border-box; height: 66px; min-height: 66px; padding: 0 28px; font-size: 22px; line-height: 1.4; }
  #wrap a.consultation-cta .bubble { display: flex; align-items: center; justify-content: center; width: 65%; max-width: calc(100% - 24px); min-height: 28px; box-sizing: border-box; top: -18px; padding: 4px 14px; font-size: 14px; line-height: 20px; }
}
/* Header action keeps the existing header/logo geometry and readable 14px type. */
@media (min-width: 769px) {
  #hd_tentative a.consultation-header {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 124px; height: 40px; min-height: 40px; box-sizing: border-box;
    padding: 0 18px !important; font-size: 14px !important; line-height: 20px; border-radius: 20px;
  }
}
@media (min-width: 769px) and (pointer: coarse) {
  #hd_tentative a.consultation-header { height: 44px; min-height: 44px; border-radius: 22px; }
}
/* Inline consultation blocks share a deliberate landscape shape, independently of FV. */
@media (max-width: 1023px) {
  #wrap .dl_sec a.consultation-cta {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: min(320px, calc(100vw - 48px)); max-width: 100%;
    height: 66px; min-height: 66px; box-sizing: border-box;
    margin-left: auto; margin-right: auto; padding: 0 28px;
    font-size: 22px; line-height: 1.4; border-radius: 33px; white-space: nowrap;
  }
  #wrap .dl_sec a.consultation-cta .bubble {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: max-content; max-width: calc(100% - 24px); min-height: 28px;
    top: -18px; padding: 4px 14px; font-size: 14px; line-height: 20px;
  }
}
@media (max-width: 767px) {
  #wrap .dl_sec a.consultation-cta {
    width: min(240px, calc(100vw - 48px)); height: 60px; min-height: 60px;
    padding: 0 24px; font-size: 18px; border-radius: 30px;
  }
  #wrap .dl_sec a.consultation-cta .bubble { min-height: 26px; padding: 3px 12px; font-size: 13px; }
}
#hd_tentative a.consultation-header:focus-visible,
#wrap .dl_sec a.consultation-cta:focus-visible { outline: 3px solid #222; outline-offset: 4px; }
/* Approved compact consultation dock: independent from header at every width. */
.saiyo-floating-cta {
  position: fixed; z-index: 90; right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  width: 240px; height: 60px; box-sizing: border-box; padding: 10px 24px;
  border: 2px solid #fff; border-radius: 30px; background: #2856a6; color: #fff; text-decoration: none;
  font-size: 18px; font-weight: 700; line-height: 24px; gap: 10px;
  box-shadow: 0 3px 12px #0003;
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s;
}
.saiyo-floating-arrow { flex: 0 0 auto; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.saiyo-floating-cta span { white-space: nowrap; }
.saiyo-floating-cta[hidden] {
  display: flex; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s 200ms;
}
.saiyo-floating-cta:not([hidden]):hover { color: #fff; background: #21498d; opacity: 1; }
.saiyo-floating-cta:focus-visible { outline: 3px solid #222; outline-offset: 4px; }
body.hmb_open .saiyo-floating-cta, body.modal_open .saiyo-floating-cta,
.saiyo-floating-cta[data-saiyo-immediate="true"] {
  opacity: 0; visibility: hidden; pointer-events: none; transition: none;
}
@media (max-width: 767px) {
  .saiyo-floating-cta { width: min(240px, calc(100vw - 48px)); height: 60px; border-radius: 30px; font-size: 18px; left: 50%; right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); }
  .saiyo-floating-cta[hidden] { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .saiyo-floating-cta, .saiyo-floating-cta[hidden] { transition: none; }
}
/* Tablet FV uses the same landscape proportions as the approved desktop CTA.
   Preserve the theme's two-DOM visibility switch at 960/961px. */
@media (min-width: 768px) and (max-width: 1023px) {
  #lp_mv a.consultation-cta {
    width: min(320px, 100%); height: 66px; min-height: 66px; box-sizing: border-box;
    padding: 0 28px; border-radius: 33px; font-size: 22px; line-height: 1.4;
    white-space: nowrap; flex-shrink: 0;
  }
  #lp_mv a.consultation-cta .bubble {
    display: flex; align-items: center; justify-content: center;
    width: 65%; max-width: calc(100% - 24px); min-height: 28px; box-sizing: border-box;
    top: -18px; padding: 4px 14px; font-size: 14px; line-height: 20px;
  }
}
@media (min-width: 768px) and (max-width: 960px) {
  #lp_mv a.consultation-cta.btn02 { display: flex; align-items: center; justify-content: center; }
}
@media (min-width: 961px) and (max-width: 1023px) {
  #lp_mv a.consultation-cta.btn01 { display: flex; align-items: center; justify-content: center; }
}
/* SP-priority FV main action; desktop and other inline CTAs stay unchanged. */
@media (max-width: 767px) {
  #lp_mv a.consultation-cta.btn02 {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: min(240px, calc(100vw - 48px)); max-width: 100%;
    height: 60px; min-height: 60px; box-sizing: border-box;
    margin-left: auto; margin-right: auto; padding: 0 24px;
    border-radius: 30px; font-size: 18px; line-height: 1.4; white-space: nowrap;
  }
}
