:root {
  --accent: #436aa8;
  --bg: #ffffff;
  --text-main: #111111;
  --text-sub: #666666;
}

html[data-theme="dark"] {
  --bg: #0f0f0f;
  --text-main: #f2f2f2;
  --text-sub: #9a9a9a;
}

body {
  margin: 0;
  padding-top: 64px;
  background: var(--bg);
  color: var(--text-main);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* =========================
   Main layout
========================= */
.container {
  max-width: 800px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-text {
  font-size: 28px;
  letter-spacing: 0.08em;
}

/* =========================
   Theme toggle
========================= */
.theme-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-sub);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.theme-icon {
  transition: transform 0.4s ease;
}

.rotated {
  transform: rotate(180deg);
}

/* =========================
   Footer（★追加・修正部分）
========================= */

/* footer.html を読み込む外側の箱 */
#footer {
  display: flex;
  justify-content: center;
}

/* footer 本体（横幅はそのまま） */
.site-footer {
  width: 100%;
}

/* 見た目上の中央を担当する中身 */
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-sub);
  opacity: 0.8;
}
