/* ========================================
   FOOTER & CTA BANNER (ピンク基調)
   ======================================== */

.site-footer {
  padding-block: 80px 40px;
  font-family: var(--font-serif, serif);
  background-color: var(--color-bg-pink, #fdf0f2); /* 全体を柔らかなピンク背景に */
  border-top: 1px solid rgba(217, 111, 130, 0.15);
}

.footer__inner {
  max-width: 1080px; /* 1920px変数から1080pxへ固定し、左右に余裕を持たせる */
  margin-inline: auto;
  padding-inline: 40px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(217, 111, 130, 0.2);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo-img {
  height: 50px;
  width: auto;
}

.footer__address {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text, #333333);
  letter-spacing: .06em;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.footer__nav {
  display: flex;
  gap: 80px;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-col a {
  font-size: 15px;
  color: var(--color-text, #333333);
  letter-spacing: .06em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__nav-col a:hover {
  color: var(--color-accent, #d96f82); /* ホバー時ピンク */
}

.footer__sns {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer__sns-link img {
  width: auto;
  height: 30px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.footer__sns-link:hover {
  opacity: .75;
}

.footer__bottom {
  padding-top: 24px;
  text-align: center;
}

.footer__copyright {
  font-family: var(--font-sans, sans-serif);
  font-size: 13px;
  color: var(--color-text-sub, #666666);
  letter-spacing: .08em;
}

/* ── CTA Banner (fixed floating / ピンクアレンジ) ── */
.cta-banner {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 90;
  background: var(--color-accent-dark, #b85466); /* ドロップシャドウ用ベース色 */
  border-radius: var(--radius-md, 16px);
}

/* アニメーション状態制御 */
.cta-banner.is-cta-initial-in {
  animation: ctaSlideUp 0.55s ease forwards;
}

.cta-banner.is-footer-near {
  animation: ctaFadeOut 0.5s ease forwards;
  pointer-events: none;
}

.cta-banner.is-cta-fadein {
  animation: ctaFadeIn 0.5s ease forwards;
}

.cta-banner__link {
  display: block;
  position: relative;
  background: var(--color-accent, #d96f82); /* メインピンク */
  border-radius: var(--radius-md, 16px);
  padding: 24px 40px 14px;
  min-width: 275px;
  transform: translate(-5px, -5px);
  transition: transform 0.3s ease;
  text-decoration: none;
  z-index: 100;
}

.cta-banner__label {
  font-family: var(--font-sans, sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: .12em;
  color: var(--color-accent, #d96f82);
  border: 1px solid var(--color-accent, #d96f82);
  border-radius: var(--radius-sm, 8px);
  background: var(--color-white, #ffffff);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 12px;
  white-space: nowrap;
}

.cta-banner__content {
  color: var(--color-white, #ffffff);
  text-align: center;
}

.cta-banner__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: 10px;
}

.cta-banner__text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1;
}

.cta-banner__icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 35px;
}

.cta-banner__img {
  position: absolute;
  bottom: 0px;
  right: -15px;
  width: 75px;
  transition: transform 0.3s ease;
}

.cta-banner__link:hover {
  transform: translate(0, 0);
}

.cta-banner__link:hover .cta-banner__img {
  transform: rotate(7deg);
}

/* アニメーション定義 */
@keyframes ctaSlideUp {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}

@keyframes ctaFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes ctaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .site-footer {
    padding-block: 40px 32px;
  }

  .footer__inner {
    max-width: 700px;
    padding-inline: 20px;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 36px;
  }

  .footer__logo-img {
    height: 36px;
  }

  .footer__address {
    font-size: 13px;
    line-height: 1.8;
  }

  .footer__right {
    width: 100%;
    gap: 28px;
  }

  .footer__nav {
    width: 100%;
    gap: 28px;
    justify-content: space-between;
  }

  .footer__nav-col {
    gap: 14px;
  }

  .footer__nav-col a {
    font-size: 14px;
  }

  .footer__sns {
    gap: 20px;
    margin: 0 auto;
  }

  .footer__sns-link img {
    height: 26px;
  }

  .cta-banner {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    border-radius: var(--radius-sm, 8px);
  }

  .cta-banner__link {
    min-width: 0;
    width: min(300px, calc(100vw - 24px));
    padding: 24px 56px 20px 18px;
    border-radius: var(--radius-sm, 8px);
    transform: none;
  }

  .cta-banner__label {
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
    line-height: 20px;
    letter-spacing: .06em;
  }

  .cta-banner__content {
    text-align: left;
  }

  .cta-banner__title {
    font-size: 12px;
  }

  .cta-banner__text {
    font-size: 15px;
  }

  .cta-banner__icon {
    width: 24px;
  }

  .cta-banner__img {
    right: -6px;
    width: 56px;
  }

  .cta-banner__link:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  .footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 32px 24px;
    justify-content: space-between;
  }

  .footer__nav-col {
    gap: 12px;
  }

  .footer__nav-col a {
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .cta-banner {
    right: 50%;
    transform: translateX(50%);
  }
}