/*------------------------------
  footer
------------------------------*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 10px 14px;
  min-height: 63.2vw;
  background-image: url("../img/common/footer_back_sp.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 100px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.footer-logo {
  width: 336px;
  height: auto;
}

.footer-sns{
  margin: 0 auto;
  display: flex;
  gap: 26px;
  margin-bottom: 30px;
}

.footer-sns a img{
  width: 26px;
  height: auto;
  transition: opacity 0.25s ease;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer-contact {
  font-size: 0.87rem;
  line-height: 1.7;
}

.footer-bnr{
  display: block;
  width: 200px;
  height: auto;
  margin: 10px auto;
  transition: opacity 0.25s ease;
}

.footer-copy {
  font-size: 0.68rem;
  text-align: center;
  color: var(--white-color);
}

.page-top-button {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  display: block;
  width: 60px;
  line-height: 0;
  transition: opacity 0.25s ease;
}


.page-top-button img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 769px) {
  footer {
    padding: 36px 20px 18px;
    min-height: 25.4861vw;
    background-image: url("../img/common/footer_back.svg");
  }

  .footer-inner {
    width: 100%;
    max-width: 1200px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0;
  }

  .footer-sub {
    margin-left: auto;
    text-align: right;
  }

  .footer-main {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 24px;
    row-gap: 12px;
    margin-bottom: 150px;
  }

  .footer-sns {
    margin: 0;
  }

  .footer-heading,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-logo {
    width: 460px;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .footer-bnr {
    margin: 0 0 10px auto;
  }

  .footer-copy {
    white-space: nowrap;
    margin-top: 30px;
  }

  .page-top-button {
    right: 20px;
    bottom: 20px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .footer-sns a:hover img,
  .footer-sub a:hover .footer-bnr,
  .page-top-button:hover {
    opacity: 0.7;
  }
}
