/* ============================================================
   フッターコンポーネント（全ページ共通）
   ============================================================ */

.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border-subtle);
}

/* フッター上部CTAバナー帯 */
.footer-cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 200%;
  pointer-events: none;
}

.footer-cta__title {
  color:var(--color-text-white);
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  position: relative;
}

.footer-cta__subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  position: relative;
}

.footer-cta__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* フッター本体（3カラム） */
.footer-body {
  padding: var(--space-16) 0 var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
}

/* カラム1: ブランド情報 */
.footer-brand__logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer-brand__logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  max-width: 280px;
}

.footer-brand__credit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* カラム2・3: リンクグループ */
.footer-links__heading {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.footerwidget ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.footerwidget ul a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.footerwidget ul a:hover {
  color: var(--color-text-primary);
}

.footer-links__external-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* フッター下部コピーライト */
.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-legal-links a:hover {
  color: var(--color-text-secondary);
}

/* レスポンシブ */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand__tagline {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}
