/* ========================================
   開発ブログ - 共通スタイル
   2110 Lab のダークテーマに統一
======================================== */

/* === 変数（TOPページ準拠） === */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-muted: #555570;
  --accent-1: #00d4ff;
  --accent-2: #a855f7;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #a855f7);
  --border: rgba(255, 255, 255, 0.08);
}

/* === リセット・基本 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-1); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; }

/* === ナビゲーション === */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 32px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-home {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.nav-home:hover { color: var(--accent-1); }
.nav-logo {
  font-family: 'Space Grotesk', 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 4px;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-card); }

/* === 記事一覧ページ（blog/index.html） === */
.blog-hero {
  padding: 120px 32px 60px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.blog-hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* カードグリッド */
.blog-grid {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-card {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.blog-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-2px);
}
.blog-card-image {
  width: 280px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  background: var(--bg-card);
}
.blog-card-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-1);
}
.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}

/* === 記事ページ === */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 32px 80px;
}
.article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 4px;
}
.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* 本文 */
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--accent-1);
}
.article-body p {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.article-body strong { color: var(--text-primary); }
.article-body em { color: var(--accent-1); font-style: normal; }

/* ハイライトボックス */
.highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p {
  margin-bottom: 8px;
  font-size: 14px;
}
.highlight-box p:last-child { margin-bottom: 0; }

/* CTA */
.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.article-cta:hover { opacity: 0.85; color: #fff; }

/* 記事フッター */
.article-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.article-footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.article-footer-nav a:hover { border-color: var(--accent-1); color: var(--accent-1); }

/* === フッター === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent-1); }
.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* === 記事内画像 === */
.article-image {
  margin: 28px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-image-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 16px;
  background: var(--bg-secondary);
}

/* 画像グリッド（キャラ・敵など） */
.article-image-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.article-image-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.article-image-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.article-image-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.article-image-grid .grid-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.3s;
}
.article-image-grid .grid-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
}
.article-image-grid .grid-item img {
  width: 100%;
  height: auto;
  display: block;
}
.article-image-grid .grid-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 4px;
  letter-spacing: 0.5px;
}

/* キャラ横並び（3人の巫女など） */
.article-character-row {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  justify-content: center;
}
.article-character-row .chara-card {
  flex: 1;
  max-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.article-character-row .chara-card img {
  width: 100%;
  height: auto;
  display: block;
}
.article-character-row .chara-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 10px 8px 4px;
}
.article-character-row .chara-desc {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 8px 10px;
}

/* === レスポンシブ === */
@media (max-width: 768px) {
  .site-nav { padding: 0 16px; height: 50px; }
  .nav-links { display: none; }
  .blog-hero { padding: 90px 20px 40px; }
  .blog-hero h1 { font-size: 1.6rem; }
  .blog-grid { padding: 0 16px 60px; }
  .blog-card { flex-direction: column; }
  .blog-card-image { width: 100%; min-height: 120px; }
  .article { padding: 80px 20px 60px; }
  .article-title { font-size: 1.5rem; }
  .article-body h2 { font-size: 1.2rem; }
  .article-image-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .article-image-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .article-image-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .article-character-row { flex-wrap: wrap; }
  .article-character-row .chara-card { max-width: 45%; }
}
