.site-footer {
  background: var(--clr-bg);
  padding-block: 80px 40px;
  font-family: var(--font-serif);
}

.footer__inner {
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: 40px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 56px;
}

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

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

.footer__address {
  font-size: 16px;
  line-height: 1.9;
  color: var(--clr-text);
  letter-spacing: .06em;
}

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

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

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

.footer__nav-col a {
  font-size: 16px;
  color: var(--clr-text);
  letter-spacing: .06em;
  transition: var(--transition);
}

.footer__nav-col a:hover {
  color: var(--clr-key-1);
}

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

.footer__sns-link img {
  width: auto;
  height: 30px;
  object-fit: contain;
  transition: var(--transition);
}

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

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

.footer__copyright {
  font-family: var(--font-jakarta);
  font-size: 13px;
  color: var(--clr-gray);
  letter-spacing: .08em;
}

/* CTA Banner */
.cta-banner {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 90;
  background: var(--clr-red);
  border-radius: var(--radius-md);
}

/* Initial CTA animation */
.cta-banner.is-cta-initial-in {
  animation: ctaSlideUp 0.55s ease forwards;
}

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

/* Fade in after leaving footer */
.cta-banner.is-cta-fadein {
  animation: ctaFadeIn 0.5s ease forwards;
}

.cta-banner__link {
  display: block;
  position: relative;
  background: var(--clr-accent);
  border-radius: var(--radius-md);
  padding: 38px 40px;
  min-width: 275px;
  transform: translate(-5px, -5px);
  transition: transform var(--transition);
  z-index: 100;
}

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

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

.cta-banner__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.4;
  margin-bottom: 5px;
}

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

.cta-banner__icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
}

.cta-banner__img {
  position: absolute;
  bottom: 0px;
  right: -15px;
  width: 75px;
  transition: transform var(--transition);
}

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

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

/* CTA 入場 */
@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;
  }
}

@media (max-width: 1024px) {
  .site-footer {
    padding-block: 30px 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-around;
  }

  .footer__nav-col {
    gap: 14px;
  }

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

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

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

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

  .cta-banner__link {
    min-width: 0;
    width: min(300px, calc(100vw - 24px));
    padding: 24px 56px 20px 18px;
    border-radius: var(--radius-sm);
    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;
    justify-content: space-around;
  }

  .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%);
  }
}