/* =========================
   Footer
========================= */

.footer {
  width: 100%;
  background: var(--color-blue);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: calc(900px + 32px);
  margin: 0 auto;
  padding: 86px 16px 80px;

  @media (max-width: 768px) {
    padding: 80px 20px;
  }
}

.footer-logo {
  display: block;
  line-height: 0;
  width: 200px;

  img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.footer-contact-text {
  margin-top: 22px;
  font-family: var(--font-jp);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--color-white);

  p {
    margin: 0;
  }

  p + p {
    margin-top: 12px;

    @media (max-width: 768px) {
      margin-top: 8px;
    }
  }

  /* 電話番号とメールアドレス（それぞれリンク）。幅が足りないときは折り返す */
  .footer-contact-text-tel-mail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 16px;

    a {
      transition: opacity 0.3s ease;

      &:hover {
        opacity: 0.7;
      }
    }
  }

  @media (max-width: 768px) {
    margin-top: 12px;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;

  @media (max-width: 768px) {
    margin-top: 24px;
  }
}

.footer-social-link {
  display: block;
  width: 36px;
  height: 36px;
  transition: opacity 0.3s ease;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  &:hover {
    opacity: 0.7;
  }
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-top: 36px;

  @media (max-width: 900px) {
    flex-direction: column;
  }

  @media (max-width: 768px) {
    margin-top: 24px;
  }
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;

  @media (max-width: 900px) {
    justify-content: center;
    row-gap: 12px;
  }

  @media (max-width: 768px) {
    gap: 12px 20px;
    max-width: 335px;
    margin-inline: auto;
  }
}

.footer-menu a {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-white);
  transition: opacity 0.3s ease;

  &:hover {
    opacity: 0.65;
  }

  @media (max-width: 768px) {
    padding: 0;
  }
}

.footer-contact-btn {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  width: 124px;
  height: 32px;
  padding: 0 18px;
  border: 1px solid var(--color-white);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-contact);
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
  color: var(--color-white);

  @media (max-width: 900px) {
    margin-left: 0;
    margin-top: 16px;
  }
  overflow: hidden;
  cursor: pointer;
  transition: color 0.35s ease;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 0%;
    background: var(--color-white);
    transition: width 0.5s ease;
  }

  &:hover {
    color: var(--color-blue);
  }

  &:hover::before {
    width: 100%;
  }
}
