/* ===== Reset & Variables ===== */
:root {
  --bg: #0a0a0f;
  --bg-secondary: #12121a;
  --text: #e0d8d0;
  --text-secondary: #887a70;
  --accent: #cc3333;
  --accent-hover: #ee4444;
  --border: #2a1a1a;
  --shadow: 0 2px 8px rgba(200,0,0,0.1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Noto Sans JP", "Hiragino Mincho ProN", serif;
  font-size: 18px; line-height: 2;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  background: var(--bg-secondary);
}
.site-header .inner {
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.site-title { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.1em; }
.site-title a { color: var(--text); }
.site-title a:hover { text-decoration: none; color: var(--accent); }
.site-nav a { margin-left: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.container { max-width: 740px; margin: 0 auto; padding: 2rem 1.5rem; }
.hero { text-align: center; padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.hero h1 { font-size: 1.6rem; margin-bottom: 0.8rem; letter-spacing: 0.15em; }
.hero p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.hero .subtitle { color: var(--accent); font-size: 0.85rem; margin-top: 0.5rem; }
.genre-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.genre-btn {
  padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.85rem; color: var(--text-secondary); background: transparent;
  cursor: pointer; transition: all 0.2s;
}
.genre-btn:hover, .genre-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(200,50,50,0.05); }
.story-list { list-style: none; }
.story-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.story-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.story-card .date { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.story-card h2 { font-size: 1.1rem; }
.story-card h2 a { color: var(--text); }
.story-card h2 a:hover { color: var(--accent); text-decoration: none; }
.story-card .excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.4rem; line-height: 1.6; }
.story-card .genre { display: inline-block; font-size: 0.75rem; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0 6px; margin-top: 0.5rem; }
.story-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.story-header h1 { font-size: 1.5rem; line-height: 1.5; margin-bottom: 0.5rem; }
.story-header .meta { font-size: 0.85rem; color: var(--text-secondary); }
.story-header .meta .genre-tag { color: var(--accent); }
.story-body p { margin-bottom: 1.5rem; text-indent: 1em; }
.story-body p:first-of-type { text-indent: 0; }
.story-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
.affiliate-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.5rem; margin: 2rem 0; text-align: center; font-size: 0.85rem; }
.affiliate-label { font-size: 0.7rem; color: #666; border: 1px solid #444; border-radius: 2px; display: inline-block; padding: 0 4px; margin-bottom: 8px; }
.site-footer { border-top: 1px solid var(--border); text-align: center; padding: 2rem 1rem; font-size: 0.8rem; color: var(--text-secondary); }
@media (max-width: 600px) { body { font-size: 16px; } .hero h1 { font-size: 1.3rem; } .story-header h1 { font-size: 1.2rem; } }
