/* ======================================================================
   09. Footer Section
   ====================================================================== */
.page-block.page-block--footer {
  padding: 0;
}

.footer-shell {
  width: var(--shell-width);
  margin: 0 auto;
  padding: 1.75rem 0 2rem;
}

.footer-rule {
  margin-bottom: 1.3rem;
}

footer.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--page-gap);
  align-items: start;
  min-width: 0;
}

footer.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-0.5px);
  pointer-events: none;
}

.footer-left,
.footer-right {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.footer-left {
  grid-column: 1 / 7;
}

.footer-right {
  grid-column: 7 / 13;
}

.footer-left__inner,
.footer-right__inner {
  grid-column: 1 / -1;
  min-width: 0;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-logo-wrap {
  display: inline-grid;
  gap: 0.4rem;
  justify-items: start;
  align-content: start;
}

.footer-logo {
  display: block;
  width: min(480px, 100%);
  height: auto;
}

.footer-since {
  margin: 0;
  font-size: var(--sp-type-label-sm);
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  line-height: 0;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  border-color: var(--line-strong);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.36);
  outline: none;
}

.footer-socials__icon {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
}

#works .sns-link--x .sns-icon,
.footer-socials__icon--x,
.nav-socials__icon--x {
  filter: brightness(0) saturate(100%) invert(20%) sepia(10%) saturate(536%) hue-rotate(176deg) brightness(96%) contrast(88%);
}

html[data-theme="dark"] #works .sns-link--x .sns-icon,
html[data-theme="dark"] .footer-socials__icon--x,
html[data-theme="dark"] .nav-socials__icon--x {
  filter: brightness(0) saturate(100%) invert(100%);
}

.footer-copy {
  margin: 0.15rem 0 0;
  font-size: var(--sp-type-label-strong);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.footer-note-label {
  margin: 0;
  font-size: var(--sp-type-label);
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

#footer-copy-note {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.95rem;
  color: var(--muted);
  font-size: var(--sp-type-body-reading);
  line-height: 1.72;
}

#footer-copy-note p {
  font-size: var(--sp-type-caption-2xs);
  margin: 0;
  max-width: 42rem;
}

#footer-copy-note a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

#footer-copy-note a:hover,
#footer-copy-note a:focus-visible {
  text-decoration-color: currentColor;
  outline: none;
}

@media (max-width: 64rem) {
  .footer-shell {
    width: min(1400px, calc(100vw - 3rem));
  }
}

@media (max-width: 48rem) {
  .footer-shell {
    width: min(1400px, calc(100vw - 2rem));
    padding: 1.2rem 0 1.5rem;
  }

  footer.site-footer {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  footer.site-footer::after {
    display: none;
  }

  .footer-left,
  .footer-right {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  #footer-copy-note p {
    max-width: none;
  }
}
