/* ── Sticky footer layout ──
   コンテンツが少ない時にフッターが画面下に張り付くようにする。
   body を flex column にし、フッターの margin-top:auto で押し下げる。 */
body:has(> .site-footer) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Site Footer (multi-link) ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid #e4e4e7;
  background: #fafafa;
  color: #71717a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px 24px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 40px;
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer-logo {
  font-size: 15px;
  font-weight: 700;
  color: #09090b;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-footer-tagline {
  font-size: 12px;
  color: #a1a1aa;
  line-height: 1.6;
}
.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer-heading {
  font-size: 11px;
  font-weight: 700;
  color: #09090b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.site-footer-col a {
  font-size: 13px;
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer-col a:hover { color: #09090b; }

.site-footer-bottom {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 32px 28px;
  border-top: 1px solid #ececef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #a1a1aa;
}
.site-footer-bottom a { color: inherit; text-decoration: none; }
.site-footer-bottom a:hover { color: #09090b; }

.site-footer[data-auth-state="user"] [data-auth="guest"] { display: none !important; }
.site-footer[data-auth-state="guest"] [data-auth="user"] { display: none !important; }
.site-footer[data-auth-state=""] [data-auth="user"],
.site-footer[data-auth-state=""] [data-auth="guest"] { visibility: hidden; }

@media (max-width: 720px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 20px;
  }
  .site-footer-cols { gap: 24px; }
  .site-footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 14px 20px 24px;
  }
}
