@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;600&display=swap");

.site-footer {
  background: #050608;
  color: #f5f5f5;
  font-family: "IBM Plex Sans JP", "Inter", sans-serif;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-divider {
  width: 100%;
  height: 2px;
  margin-bottom: 1.75rem;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 127, 102, 0.45) 0 8px,
    rgba(255, 127, 102, 0.08) 8px 16px
  );
  animation: dash-move 6s linear infinite;
  opacity: 0.65;
}

.footer-content {
  max-width: 52rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 1.75rem 0 2.5rem;
}

.footer-heading {
  font-family: "Hiragino Mincho Pro", "Hiragino Mincho ProN", "Times New Roman",
    serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin: 0;
  color: #f5f5f5;
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-link {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(192, 193, 193, 0.08);
  color: #c0c1c1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 220ms ease, border-color 220ms ease, box-shadow 280ms ease,
    transform 220ms ease;
  overflow: hidden;
}

.footer-link:hover,
.footer-link:focus-visible {
  border-color: #ff7f66;
  color: #ffb7a9;
  box-shadow: 0 0 0 1px rgba(255, 127, 102, 0.55),
    0 12px 24px rgba(255, 127, 102, 0.28);
}

.footer-link:focus-visible {
  outline: 2px solid #ff7f66;
  outline-offset: 2px;
}

.footer-link:active {
  transform: translateY(1px);
}

.footer-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    105% 140% at 50% 0%,
    rgba(255, 127, 102, 0.28) 0%,
    rgba(255, 127, 102, 0.08) 55%,
    transparent 80%
  );
  opacity: 0;
  transform: translateY(18%);
  transition: opacity 260ms ease, transform 260ms ease;
  z-index: -1;
}

.footer-link:hover::after,
.footer-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.footer-copyright {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    width: 100%;
  }

  .footer-link {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
}

@keyframes dash-move {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}
