/* ----- Footer ----- */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px circle at 8% -16%, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0) 56%),
    radial-gradient(640px circle at 92% 118%, rgba(96, 165, 250, 0.03) 0%, rgba(96, 165, 250, 0) 54%),
    linear-gradient(160deg, #ffffff 0%, #fcfdff 52%, #f9fbff 100%);
  border-top: 1px solid rgba(148, 197, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(20px, 2.6vw, 32px);
  padding: clamp(42px, 6vw, 64px) 24px clamp(30px, 4vw, 46px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.26s var(--ease);
}

.footer-brand:hover {
  transform: translateY(-1px);
}

.footer-brand:hover .footer-logo-img {
  opacity: 0.95;
  filter: drop-shadow(0 8px 18px rgba(96, 165, 250, 0.22));
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: #5f7391;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.footer-brand-text--after-logo {
  justify-content: center;
}

.footer-brand-text--after-logo .footer-tagline {
  white-space: normal;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .footer-brand {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .footer-brand-text--after-logo {
    flex-basis: 100%;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-left: auto;
}

.footer-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f3556;
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 5px;
  transition: color 0.22s var(--ease), text-decoration-color 0.22s var(--ease), opacity 0.22s var(--ease);
}

.footer-nav a:hover {
  color: #0f62d0;
  text-decoration: underline;
  text-decoration-color: rgba(15, 98, 208, 0.45);
}

@media (max-width: 640px) {
  .footer-nav {
    margin-left: 0;
    width: 100%;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.8vw, 24px);
  padding: clamp(18px, 2.6vw, 28px) 24px clamp(30px, 4vw, 44px);
  border-top: 1px solid rgba(148, 197, 255, 0.35);
}

.footer-copy {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #7890af;
}

.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}

.footer-legal a {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #7e97b7;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
  color: #1f3556;
}

@media (max-width: 767px) {
  :root {
    --space-section-top: clamp(52px, 12vw, 68px);
    --space-section-bottom: clamp(58px, 13vw, 78px);
    --space-header-bottom: clamp(30px, 7vw, 40px);
    --space-grid-gap: clamp(14px, 4.2vw, 20px);
    --space-card-y: clamp(20px, 5.4vw, 26px);
    --space-card-x: clamp(16px, 4.6vw, 20px);
  }

  .section-main-visual {
    padding-top: clamp(36px, 10vw, 52px);
    padding-bottom: clamp(54px, 12vw, 72px);
  }

  .main-visual-inner {
    gap: clamp(28px, 7vw, 36px);
  }

  .main-visual-copy {
    max-width: 100%;
  }

  .mv-catch {
    left: 0;
  }

  .mv-headline {
    margin-bottom: clamp(16px, 4vw, 22px);
  }

  .mv-body {
    line-height: 1.85;
  }

  .mv-quicknav {
    margin-top: clamp(26px, 7vw, 36px);
  }

  .mv-quicknav a {
    padding: 12px 6px 11px;
    font-size: 0.76rem;
  }

  .stats-grid {
    gap: 16px 12px;
  }

  .section-hero-title {
    margin-bottom: clamp(24px, 6vw, 32px);
  }

  .section-hero-lead {
    margin-bottom: clamp(22px, 5.5vw, 30px);
  }

  .section-hero-body {
    line-height: 1.9;
  }

  .feature-icon,
  .course-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
  }

  .course-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .courses-footnote,
  .schedule-footnote,
  .access-map-link {
    margin-top: clamp(22px, 5.4vw, 30px);
  }

  .access-map {
    margin-top: clamp(24px, 6vw, 32px);
  }

  .footer-top {
    padding-top: clamp(34px, 8.5vw, 44px);
    padding-bottom: clamp(24px, 6.5vw, 32px);
  }

  .footer-bottom {
    padding-top: clamp(16px, 4.5vw, 22px);
    padding-bottom: clamp(24px, 6.5vw, 34px);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
