/* ブログページ専用スタイル */
.blog-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.blog-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.blog-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-post {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e1e5e9;
}

.blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-header h2 {
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
  color: #333;
}

.post-header h2 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-header h2 a:hover {
  color: #667eea;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.post-date, .post-author {
  display: flex;
  align-items: center;
}

.post-date::before {
  content: "📅";
  margin-right: 0.5rem;
}

.post-author::before {
  content: "👤";
  margin-right: 0.5rem;
}

.post-excerpt {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #555;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f0f4ff;
  color: #667eea;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid #e1e5e9;
}

.no-posts, .error {
  text-align: center;
  padding: 3rem;
  color: #666;
}

.no-posts p, .error p {
  font-size: 1.2rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2rem;
  }
  
  .blog-hero p {
    font-size: 1rem;
  }
  
  .blog-container {
    padding: 1rem;
  }
  
  .blog-post {
    padding: 1.5rem;
  }
  
  .post-header h2 {
    font-size: 1.5rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* 個別記事ページ用スタイル */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.post-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.post-content .post-meta {
  border-bottom: 1px solid #e1e5e9;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.post-content .post-body {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #333;
}

.post-content .post-body p {
  margin-bottom: 1.5rem;
}

.post-content .post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
} 

/* ブログ画像とリンクのスタイル */
.post-body .blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-body a {
  color: #C00;
  text-decoration: none;
  border-bottom: 1px solid #C00;
}

.post-body a:hover {
  background: #C00;
  color: white;
  padding: 2px 4px;
  border-radius: 3px;
}

.post-body strong {
  font-weight: bold;
  color: #333;
}

.post-body em {
  font-style: italic;
  color: #666;
} 

.blog-post, .blog-post h2, .blog-post h2 a, .blog-post .post-header h2, .blog-post .post-header h2 a {
  color: #000 !important;
} 