/* blog.css - ブログ専用スタイル */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ffd6e7 0%, #d6e4ff 50%, #d6f5e9 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-link {
  font-weight: 700;
  font-size: 18px;
  color: #2d3748;
  text-decoration: none;
}
.blog-nav { display: flex; gap: 24px; }
.blog-nav a {
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
}
.blog-nav a.active { color: #e53e8c; font-weight: 700; }

.blog-list, .blog-article {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.blog-hero { text-align: center; margin-bottom: 48px; }
.blog-hero h1 { font-size: 40px; margin: 0 0 12px; color: #2d3748; }
.blog-hero p { color: #6b7280; font-size: 16px; }

.blog-section { margin-bottom: 56px; }
.blog-section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffd6e7;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: #2d3748;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.post-card.manga { background: linear-gradient(135deg, #fff5f8 0%, #f5fbff 100%); }
.ep-badge, .num-badge {
  display: inline-block;
  background: #e53e8c;
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  align-self: flex-start;
}
.num-badge { background: #5b8def; }
.post-card h3 { font-size: 16px; margin: 0 0 12px; line-height: 1.5; }
.post-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-mini { font-size: 11px; color: #6b7280; }

/* 記事ページ */
.blog-article article {
  background: white;
  padding: 48px 56px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.article-title { font-size: 32px; margin: 0 0 12px; color: #2d3748; line-height: 1.4; }
.article-meta { color: #6b7280; font-size: 14px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid #eef0f4; }
.article-body { font-size: 16px; line-height: 1.85; color: #2d3748; }
.article-body h2 { font-size: 24px; margin: 36px 0 16px; padding-left: 12px; border-left: 4px solid #e53e8c; }
.article-body h3 { font-size: 20px; margin: 28px 0 12px; color: #4a5568; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: #e53e8c; font-weight: 700; }
.article-body code {
  background: #f7fafc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 14px;
}
.article-body pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
}
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.article-body th, .article-body td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
}
.article-body th { background: #f7fafc; font-weight: 700; }
.article-body blockquote {
  border-left: 4px solid #5b8def;
  background: #f0f7ff;
  padding: 12px 20px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}
.article-body hr { border: none; border-top: 2px dashed #e2e8f0; margin: 32px 0; }
.article-body img { max-width: 100%; border-radius: 8px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid #eef0f4; }
.article-tags .tag { font-size: 13px; color: #6b7280; background: #f7fafc; padding: 4px 10px; border-radius: 999px; }

.article-bottom-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 12px;
}
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.btn-primary { background: #e53e8c; color: white; }
.btn-secondary { background: white; color: #2d3748; border: 2px solid #2d3748; }

.blog-footer {
  text-align: center;
  padding: 40px 24px;
  color: #6b7280;
  font-size: 13px;
  border-top: 1px solid #eef0f4;
}

@media (max-width: 768px) {
  .blog-article article { padding: 28px 24px; }
  .article-title { font-size: 24px; }
  .article-body { font-size: 15px; }
}

/* 漫画画像 */
.manga-img {
  margin: 28px 0;
  text-align: center;
}
.manga-img img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 一般記事の画像 */
.post-img {
  margin: 24px 0;
  text-align: center;
}
.post-img img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
