// ===========================================
// footer 文字中心テイスト（黒背景）
// ===========================================

#footer {
  background: map-get($colors, black);
  color: map-get($colors, text-invert);
  padding-top: 100px;
  @include mq-up('s') {
    padding-top: 160px;
  }
  a {
    color: inherit;
  }
}

/* footer-cta フッタ上の大型CTA
--------------------------------- */
#footer-cta {
  text-align: center;
  padding-block: 0 100px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  @include mq-up('s') {
    padding-bottom: 160px;
  }
  .footer-cta-tit {
    font-family: $font-family-sofia;
    font-weight: 300;
    font-size: clamp(48px, 10vw, 140px);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0;
  }
  .footer-cta-text {
    font-size: 14px;
    letter-spacing: 0.18em;
    color: map-get($colors, text-mute);
    margin-top: 24px;
  }
  .footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
  }
}

/* footer-body 会社情報＋ナビ
--------------------------------- */
#footer-body {
  padding-block: 80px;
  @include mq-up('s') {
    padding-block: 120px;
  }
}

.footer-body {
  display: grid;
  gap: 60px;
  @include mq-up('m') {
    grid-template-columns: 1fr 2fr;
    gap: 80px;
  }
}

.footer-info {
  display: grid;
  gap: 24px;
  .footer-logo {
    margin: 0;
    img {
      width: 96px;
      height: auto;
      display: block;
    }
  }
  address {
    font-style: normal;
    font-size: 13px;
    line-height: 2;
    letter-spacing: 0.06em;
    color: map-get($colors, text-mute);
  }
}

.footer-nav-01 {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  @include mq-up('s') {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  > li {
    display: grid;
    gap: 16px;
    .label {
      font-family: $font-family-sofia;
      font-size: 11px;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      color: map-get($colors, text-mute);
    }
    ul {
      display: grid;
      gap: 12px;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    a {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      letter-spacing: 0.06em;
      text-decoration: none;
      &:hover {
        opacity: 0.7;
      }
    }
  }
}

/* footer-foot
--------------------------------- */
#footer-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: map-get($colors, text-mute);
}

.footer-sns {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  a {
    font-family: $font-family-sofia;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
  }
}

#footer-copyright {
  font-family: $font-family-sofia;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: map-get($colors, text-mute);
}

/* pagetop
--------------------------------- */
#pagetop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  transition: opacity 0.25s;
  &.pagetop-hidden {
    opacity: 0;
    pointer-events: none;
  }
  @include mq-up('s') {
    right: 24px;
    bottom: 24px;
  }
}

.pagetop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  background: transparent;
  color: map-get($colors, text);
  font-family: $font-family-sofia;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  &:hover {
    background: map-get($colors, text);
    color: map-get($colors, text-invert);
  }
}
