/* ==========================================================================
   メディアフッター（media.css から分離）
   ========================================================================== */
.md-footer {
  background: var(--md-color-bg-darker, #020617);
  color: #cbd5e1;
  padding: 64px 0 32px;
}

.md-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  max-width: var(--container, 1280px);
  margin: 0 auto;
  padding: 0 24px;
}

.md-footer__brand-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.md-footer__brand-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #9ca3af;
  margin: 0;
}

.md-footer__nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.md-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.md-footer__nav-list li {
  margin-bottom: 10px;
}

.md-footer__nav-list a {
  font-size: 0.82rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.md-footer__nav-list a:hover {
  color: #fff;
}

/* ---- フッタータグクラウド ---- */
.md-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.md-footer__tag {
  font-size: 0.68rem;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.md-footer__tag:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ---- SNS アイコン ---- */
.md-footer__sns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.md-footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.md-footer__sns-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.md-footer__sns-link svg {
  width: 18px;
  height: 18px;
}

/* ---- フォローセクション ---- */
.md-footer__follow-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.md-footer__follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.md-footer__follow-btn svg {
  width: 16px;
  height: 16px;
  opacity: 1;
}

.md-footer__follow-btn--note {
  color: #5fd9c8;
  background: rgba(65, 201, 180, 0.1);
  border-color: rgba(65, 201, 180, 0.35);
}

.md-footer__follow-btn--note:hover {
  background: rgba(65, 201, 180, 0.2);
  border-color: rgba(65, 201, 180, 0.4);
  color: #5fd9c8;
  transform: translateY(-1px);
}

.md-footer__follow-btn--x {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.md-footer__follow-btn--x:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ---- 著作権 ---- */
.md-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* フッター区切りにグラデーションの微かなアクセント */
.md-footer__bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--md-gradient-accent);
  opacity: 0.15;
}

.md-footer__copyright {
  font-size: 0.72rem;
  color: #6b7280;
  margin: 0;
}

.md-footer__legal a {
  font-size: 0.72rem;
  color: #6b7280;
  text-decoration: none;
  margin-left: 16px;
}

.md-footer__legal a:hover {
  color: #9ca3af;
}

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

@media (max-width: 768px) {
  .md-footer {
    padding: 48px 0 24px;
  }

  .md-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .md-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    margin-top: 32px;
  }
}

@media (max-width: 480px) {
  .md-footer__follow-btn {
    padding: 10px 16px;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-footer__sns-link,
  .md-footer__follow-btn {
    transition: none;
  }
}
