/* =====================================================
   footer.css
   フッター（2段 / ページ番号 / ビロード背景）
   ===================================================== */

/* ビロード色（フッター内だけで完結させる） */
:root {
  --velvet-bg: #2f5d50;      /* ビロード */
  --velvet-border: #3f1d20;  /* 影になる縁 */
  --velvet-text: #f3efe7;    /* 生成り */
  --velvet-muted: rgba(243, 239, 231, 0.78);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: var(--velvet-bg);
  color: var(--velvet-text);
  border-top: 1px solid var(--velvet-border);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 -6px 18px rgba(0, 0, 0, 0.18);
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px clamp(14px, 2vw, 22px);
}

/* 上段：左（文言）＋右（ページ番号） */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;

  font-size: 12px;
  letter-spacing: 0.02em;
  padding-bottom: 8px;

  border-bottom: 1px solid rgba(243, 239, 231, 0.22);
}

.footer-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.footer-brand {
  font-weight: 700;
}

/* ページ番号（include.js がここを書き換える） */
.page-indicator {
  opacity: 0.95;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* 下段：注意書き＋著作権（細い帯） */
.footer-bottom {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;

  padding-top: 8px;
  font-size: 11px;
  color: var(--velvet-muted);
}

.footer-note {
  line-height: 1.5;
}

.footer-copyright {
  white-space: nowrap;
  color: var(--velvet-text);
  opacity: 0.9;
}

/* モバイル：下段を縦積み（上段は右にページ番号のまま） */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
