/* Site footer.
 *
 * Dark slab sitting on --cms-text (ink), inverting the page palette
 * so the page closes on a quiet note. Brand block on the left, link
 * column(s) on the right. Driven entirely by --cms-* / --design-* /
 * Setting helpers.
 */

.site-footer {
  --foot-ink:        var(--cms-text,        #15171c);
  --foot-paper:      var(--cms-background,  #e6eef5);
  --foot-ink-faint:  var(--design-ink-faint, #a8aaa6);
  --f-display: var(--cms-font-display, 'Geist'), -apple-system, system-ui, sans-serif;
  --f-serif:   var(--cms-font-serif,   'Instrument Serif'), 'Newsreader', Georgia, serif;
  --f-jp:      var(--cms-font-jp,      'Noto Sans JP'), -apple-system, system-ui, sans-serif;
  --f-mono:    var(--cms-font-mono,    'Geist Mono'), ui-monospace, monospace;
  --foot-page-max: 1240px;

  background: var(--foot-ink);
  color: var(--foot-paper);
  margin-top: 96px;
}

.site-footer .inner {
  max-width: var(--foot-page-max); margin: 0 auto;
  padding: 70px 36px 36px;
}

.site-footer .top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.site-footer .brand .brand-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.site-footer .brand .brand-row .logo-img {
  height: 48px; width: auto; display: block;
}
.site-footer .brand .wm {
  font-family: var(--f-serif); font-style: italic;
  font-size: 38px;
  letter-spacing: -0.015em;
  color: var(--foot-paper);
  display: block;
  line-height: 1;
}
.site-footer .brand .tag {
  margin-top: 24px;
  font-family: var(--f-serif); font-style: italic;
  font-size: 17px; line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.site-footer .nav-col h5 {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin: 0 0 18px;
}
.site-footer .nav-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer .nav-col a {
  font-family: var(--f-display);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color .15s;
}
.site-footer .nav-col a:hover { color: var(--foot-paper); }

.site-footer .social {
  margin-top: 24px;
  display: flex; gap: 14px;
}
.site-footer .social a {
  color: rgba(255, 255, 255, 0.6);
  transition: color .15s;
}
.site-footer .social a:hover { color: var(--foot-paper); }
.site-footer .social svg { width: 18px; height: 18px; display: block; }

.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding-top: 30px;
  font-family: var(--f-mono); font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer .bottom .left { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer .bottom a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.site-footer .bottom a:hover { color: var(--foot-paper); }

@media (max-width: 880px) {
  .site-footer { margin-top: 64px; }
  .site-footer .inner { padding: 56px 24px 28px; }
  .site-footer .top { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .bottom { flex-direction: column; align-items: flex-start; }
}
