.site-footer {
  --footer-wave-image: url("../img/footer-wave.svg");
  --footer-wave-height: clamp(64px, 5.2vw, 300px);
  --footer-wave-width: max(160vw, 1800px);
  --footer-deco-image: url("../img/footer-deco.svg");
  --footer-deco-width: max(100vw, 1366px);

  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: #fff;
  color: #1a1311;
  margin-top: var(--footer-wave-height);
  padding-top: 56px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: calc(var(--footer-wave-height) * -1 + 2px);
  left: 50%;
  width: var(--footer-wave-width);
  height: var(--footer-wave-height);
  background: var(--footer-wave-image) bottom center / 100% 100% no-repeat;
  transform: translateX(-50%);
  z-index: 0;
}

.site-footer--after-contact-mini {
  margin-top: 0;
}

.site-footer--after-contact-mini::before {
  display: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: var(--footer-deco-width);
  aspect-ratio: 1366 / 268;
  background: var(--footer-deco-image) bottom center / 100% 100% no-repeat;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 0;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 82px;
  max-width: 1060px;
  min-height: 330px;
  margin: 0 auto;
  padding: 38px 24px 176px;
}

.site-footer__profile {
  flex: 0 0 360px;
}

.site-footer__logo {
  margin-bottom: 28px;
}

.site-footer__logo img {
  width: 302px;
  max-width: 100%;
}

.site-footer__info {
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
}

.site-footer__tel {
  margin-top: 20px;
}

.site-footer__links {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 12px;
}

.site-footer__menu-list {
  display: flex;
  justify-content: flex-start;
  gap: 34px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer__menu-list > li {
  min-width: max-content;
}

.site-footer__menu-list a {
  color: #1a1311;
}

.site-footer__menu-list .sub-menu {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
}

.site-footer__menu-list .sub-menu li + li {
  margin-top: 8px;
}

.site-footer__menu-list .sub-menu a {
  display: inline-block;
  max-width: 64px;
  padding-left: 0.75em;
  color: #1a1311;
  text-indent: -0.75em;
}

.site-footer__menu-list .sub-menu a::before {
  content: "-";
  margin-right: 2px;
}

.site-footer__sns {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
}

.site-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1311;
}

.site-footer__sns img {
  width: auto;
  height: 30px;
  transition: opacity 0.3s;
}

.site-footer__sns img:hover,
.site-footer__sns a:hover {
  opacity: 0.7;
}

.site-footer__sns .site-footer__facebook {
  height: 29px;
}

.site-footer__sns .site-footer__youtube {
  height: 27px;
}

.site-footer__sns .site-footer__note {
  height: 15px;
}

.site-footer__copy {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: var(--color-red);
  color: #fff;
  padding: 7px 16px;
  font-size: 12px;
}

.site-footer__copy a {
  color: #fff;
}

@media (max-width: 1120px) {
  .site-footer__inner {
    gap: 48px;
    max-width: 980px;
  }

  .site-footer__profile {
    flex-basis: 320px;
  }

  .site-footer__menu-list {
    gap: 24px;
    font-size: 15px;
  }
}

@media (max-width: 980px) {
  .site-footer__inner {
    gap: 32px;
  }

  .site-footer__profile {
    flex-basis: 290px;
  }

  .site-footer__logo img {
    width: 260px;
  }

  .site-footer__menu-list {
    gap: 18px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .site-footer {
    /* --footer-wave-height: 72px; */
    /* --footer-wave-width: max(145vw, 760px); */
    --footer-deco-width: max(112vw, 760px);

    padding-top: 48px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 56px;
    min-height: 0;
    padding: 52px 48px 190px;
  }

  .site-footer__profile,
  .site-footer__links {
    flex: none;
    width: 100%;
  }

  .site-footer__logo img {
    width: min(360px, 100%);
  }

  .site-footer__menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 72px;
    white-space: normal;
  }

  .site-footer__menu-list > li {
    min-width: 0;
  }

  .site-footer__menu-list .sub-menu {
    margin-top: 10px;
  }

  .site-footer__menu-list .sub-menu a {
    max-width: none;
    padding-left: 0;
    text-indent: 0;
    white-space: nowrap;
  }

  .site-footer__sns {
    gap: 28px;
    flex-wrap: wrap;
  }
}

@media (max-width: 576px) {
  .site-footer {
    --footer-wave-height: 28px;
    --footer-wave-width: 160vw;
    --footer-deco-width: max(118vw, 680px);
  }

  .site-footer__inner {
    gap: 48px;
    padding: 42px 24px 128px;
  }

  .site-footer--after-contact-mini {
    padding-top: 24px;
  }

  .site-footer--after-contact-mini .site-footer__inner {
    padding-top: 24px;
  }

  .site-footer__logo img {
    width: min(300px, 100%);
  }

  .site-footer__menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__copy {
    flex-wrap: wrap;
    gap: 4px 8px;
  }
}
