:root {
  --bg: #15171a;
  --fg: #eaeaea;
  --muted: #b4b4b4;
  --card: #4a4443;
  --border: #4a4443;
  --accent: #e23f15;
  --accent-dark: #c2310f;
  --radius: 16px;
  --max: 1600px;
  --header-h: 64px; /* 実際のヘッダー高に合わせて調整(60〜72pxくらい) */
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Oswald", "Zen Kaku Gothic New", sans-serif;
  font-weight: 300; /* Light でスッキリ */
  line-height: 1.6;
  min-height: 100svh;
}

body {
  display: flex;
  flex-direction: column;
}

/* 見出しはちょっと太めに */
h1,
h2,
h3 {
  font-weight: 400; /* Mediumで視認性アップ */
  letter-spacing: 0.02em;
}

/* キャプションやmeta情報をイタリック */
.meta {
  font-style: italic;
  font-weight: 300;
  color: #666; /* 少しグレーで抑えるとおしゃれ */
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-dark);
}
.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

/* スクロール後に適用するクラス */
header.scrolled {
  background: rgba(26, 22, 21, 0.85); /* var(--bg)でも可 */
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.hero {
  padding: 56px 0 8px;
  margin-bottom: 40px;
  text-align: center;
}
.hero-title {
  margin: 30px 8px;
  font-size: clamp(36px, 8vw, 88px);
  letter-spacing: 0.06em;
}
.hero-lead {
  margin: 30px 0;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted, #555);
}

section {
  padding: 42px 0;
}

/* トップページのフッター制御 */
body.is-home .site-footer {
  display: none; /* PC では非表示 */
}

/* モバイル幅だけ表示 */
@media (max-width: 900px) {
  body.is-home .site-footer {
    display: grid; /* footer.astro の既存スタイルを復活 */
    position: static; /* ページ末尾に自然に配置 */
  }
}

