/*
 * 画面の下に出し続ける相談・応募のボタン（inc/footer-parts.php と対になっている）。
 * トップページ最下部の同じボタン（.cv-section）か、フッターが画面に入っている間は、ふわっと消す。
 * 4 テーマ（グループ・医療・福祉・販売）で同じ内容。ただし上のグラデーションの線は、グループのテーマだけにある。
 */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
/* 上の線は、フッターの上の線（common.css の .footer__wrap）と同じグラデーション。グループのテーマだけ */
.fixed-cta {
  border-top: 4px solid;
  -o-border-image: linear-gradient(to left, #91CEFF, #186AB4) 1;
     border-image: linear-gradient(to left, #91CEFF, #186AB4) 1;
}
.fixed-cta.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body .fixed-cta__btn {
  flex: 1 1 0;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: opacity 0.15s;
}
/* common.css の「body a:hover { color: … }」で文字の色が変わらないようにする */
body .fixed-cta__btn:hover {
  color: #ffffff;
  opacity: 0.85;
}
.fixed-cta__btn--soudan {
  background: #328cd3;
}
.fixed-cta__btn--entry {
  background: #186ab4;
}
.fixed-cta__ttl {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.fixed-cta__sub {
  font-size: 11px;
  opacity: 0.9;
  white-space: nowrap;
}
/* ボタンが出ている間だけ、ページ上部へ戻るボタンを上にずらして重ならないようにする */
body #wpfront-scroll-top-container {
  transition: bottom 0.4s ease;
}
body.fixed-cta-shown #wpfront-scroll-top-container {
  bottom: 84px !important;
}
@media (max-width: 580px) {
  .fixed-cta {
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  body .fixed-cta__btn {
    padding: 8px 6px;
  }
  .fixed-cta__ttl {
    font-size: 14.5px;
  }
  .fixed-cta__sub {
    font-size: 10px;
  }
  body.fixed-cta-shown #wpfront-scroll-top-container {
    bottom: 76px !important;
  }
}
@media print {
  .fixed-cta {
    display: none;
  }
}
