/* ===== Footer layout: center logo top / center copyright bottom ===== */
.site-footer {
  background: #8a8a8a;
  color: #fff;
  padding: 56px 0 32px;
  position: relative;
}
.site-footer .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}
.site-footer .pagetop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8a8a8a;
  color: #fff;
  border-top: 0;
  border: 0;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-footer .pagetop__chev {
  width: 18px;
  height: 18px;
  border-left: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg) translateY(2px);
}
.site-footer .pagetop:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* 上段を縦積み＆中央寄せ */
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
}
.site-footer .footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}
/* メニュー・SNS を中央に並べる */
.footer-menu {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.footer-menu li {
  list-style: none;
}
.footer-menu a {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-sns {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.footer-sns li {
  list-style: none;
}
.footer-sns a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  inline-size: auto;
  block-size: auto;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.sns-img {
  height: 30px;
  width: auto;
  display: block;
}
.sns-label {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}
.footer-sns a:hover {
  opacity: 0.9;
}
.footer-sns a:active {
  opacity: 0.85;
}

/* 下段を縦積み＆中央寄せ（法務リンク→コピーライト） */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  position: relative;
}
.footer-bottom::before {
  content: "";
  display: block;
  inline-size: min(100%, 1200px);
  block-size: 1px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.15);
}
.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.footer-legal a {
  letter-spacing: 0.02em;
  padding: 0.25rem 0.125rem;
}
.footer-legal li {
  list-style: none;
}
.footer-copy {
  opacity: 0.9;
  text-align: center;
  margin-top: 1.2rem;
}
.footer-menu a:focus-visible,
.footer-legal a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.site-footer .footer-menu a,
.site-footer .footer-legal a {
  color: #fff;
  text-decoration: none;
}
.site-footer .footer-menu a:visited,
.site-footer .footer-legal a:visited {
  color: #fff;
}
.site-footer .footer-menu a:hover,
.site-footer .footer-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer .footer-menu a:focus-visible,
.site-footer .footer-legal a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* SP微調整 */
@media (max-width: 768px) {
  .site-footer {
    padding: 48px 0 28px;
    padding-top: 60px;
  }
  .footer-menu {
    gap: 14px;
  }
  .site-footer .footer-menu {
    display: block;
    width: min(520px, 92%);
    margin-inline: auto;
    text-align: left;
  }
  .site-footer .footer-menu li {
    list-style: none;
    margin: 0;
  }
  .site-footer .footer-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    text-decoration: none;
  }
  .site-footer .footer-menu a::before {
    content: "—";
    font-weight: 700;
    opacity: 0.7;
    transform: translateY(-1px);
  }
  .footer-bottom::before {
    inline-size: min(520px, 92%);
  }
  .footer-legal {
    gap: 16px;
  }
  .footer-legal li {
    font-size: 0.85rem;
  }
}
/* ===== 帯（スマホのみ固定） ===== */
.floating-cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 -8px 28px rgba(0, 0, 0, 0.08);
  z-index: 10000;

  /* 初期は必ず非表示（チラ見え防止） */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.floating-cta-wrap.is-mounted {
  visibility: visible;
}
.floating-cta-wrap.is-mounted.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.floating-cta {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9999px;
  background: var(--cta-bg, #1e3a8a);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  -webkit-tap-highlight-color: transparent;
}
.floating-cta .ico {
  display: inline-block;
  line-height: 1;
}
@media (min-width: 769px) {
  .floating-cta-wrap {
    display: none;
  }
}
@media (max-width: 768px) {
  .site-footer {
    padding-bottom: calc(28px + 88px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta-wrap {
    transition: none;
  }
}
