/* ==================================================
   Footer
================================================== */

.footer {
  width: 100%;
  box-sizing: border-box;
  background: #f7f2ee;
  color: #675748;
  font-family: "Noto Serif JP", serif;
}

.footer *,
.footer *::before,
.footer *::after {
  box-sizing: border-box;
}

.footer__inner {
  width: min(100% - 40px, 1200px);
  min-height: 318px;
  margin: 0 auto;
  padding: 70px 0 16px;

  display: grid;
  grid-template-columns:
    minmax(160px, 1fr)
    minmax(220px, 1fr)
    minmax(180px, 1fr);

  grid-template-areas:
    "brand center social";

  align-items: center;
  column-gap: clamp(30px, 6vw, 100px);
}


/* ==================================================
   Logo
================================================== */

.footer__brand {
  grid-area: brand;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo {
  display: block;
  width: clamp(110px, 14vw, 150px);
  max-width: 100%;
  height: auto;
}


/* ==================================================
   Center
================================================== */

.footer__center {
  grid-area: center;

  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  align-self: stretch;
}

.footer__navigation {
  width: 100%;
}

.footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 24px;
}

.footer__menu-item {
  margin: 0;
  padding: 0;
  text-align: center;
}

.footer__menu-link,
.footer__menu-text {
  color: #675748;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer__menu-link {
  transition: opacity 0.3s ease;
}

.footer__menu-link:hover {
  opacity: 0.65;
}


/* ==================================================
   Social
================================================== */

.footer__social {
  grid-area: social;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 20px;
}

.footer__social-item {
  min-width: 0;
}

.footer__social-link,
.footer__social-item {
  color: #675748;
}

.footer__social-link {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer__social-link:hover {
  opacity: 0.65;
}

.footer__social-item:not(:has(.footer__social-link)) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__social-icon {
  display: block;
  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  object-fit: contain;
}

.footer__social-text {
  min-width: 0;

  color: #675748;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;

  white-space: nowrap;
}


/* ==================================================
   Copyright
================================================== */

.footer__copyright {
  margin: auto 0 0;
  padding-top: 20px;

  color: #675748;
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;

  text-align: center;
  white-space: nowrap;
}


/* ==================================================
   SP
================================================== */

@media (max-width: 767px) {

  .footer__inner {
    width: min(100% - 32px, 425px);
    min-height: 0;
    padding: 44px 0 16px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 0;
  }


  /* Logo */

  .footer__brand {
    width: 100%;
    justify-content: center;
    margin-bottom: 32px;
  }

  .footer__logo {
    width: clamp(78px, 25vw, 105px);
  }


  /* Menu */

  .footer__center {
    display: contents;
  }

  .footer__navigation {
    width: 100%;
    order: 2;
  }

  .footer__menu {
    width: 100%;
    gap: 24px;
  }

  .footer__menu-link,
  .footer__menu-text {
    font-size: clamp(13px, 4vw, 16px);
    line-height: 1.7;
  }


  /* Social */

  .footer__social {
    order: 3;

    margin-top: 36px;

    align-items: flex-start;
    gap: 14px;
  }

  .footer__social-link {
    gap: 11px;
  }

  .footer__social-icon {
    width: 26px;
    height: 26px;
  }

  .footer__social-text {
    font-size: clamp(12px, 3.6vw, 15px);
  }


  /* Copyright */

  .footer__copyright {
    order: 4;

    width: 100%;

    margin: 10px 0 0;
    padding: 0;

    font-size: clamp(9px, 2.8vw, 12px);

    white-space: normal;
    overflow-wrap: anywhere;
  }
}