/* サステナブル・エシカルファッション ブログ専用スタイルシート */
/* 基本スタイルは親ディレクトリのstyles.cssを継承 */

/* ブログ記事ヘッダー */
.blog-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.blog-header h1 {
  color: var(--primary-color);
  font-size: 2.2rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  align-items: center;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-meta span::before {
  font-size: 1.1rem;
}

.blog-meta .date::before {
  content: '📅';
}

.blog-meta .reading-time::before {
  content: '⏱';
}

.blog-meta .category::before {
  content: '🏷';
}

/* ブログ記事画像 */
.blog-featured-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 4px 15px var(--shadow);
}

/* 記事内画像 */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

/* 目次 */
.table-of-contents {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  margin: 2rem 0;
}

.table-of-contents h2 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: none;
}

.table-of-contents ul {
  list-style: none;
  margin-left: 0;
}

.table-of-contents li {
  margin-bottom: 0.7rem;
}

.table-of-contents a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-of-contents a::before {
  content: '▸';
  color: var(--primary-light);
  font-weight: bold;
}

.table-of-contents a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* ブログ記事本文 */
.blog-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.blog-content h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
}

.blog-content h3 {
  color: var(--primary-light);
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content h4 {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.blog-content ul,
.blog-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.7rem;
}

.blog-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.blog-content blockquote {
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* ハイライトボックス */
.highlight-box {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e9 100%);
  border: 2px solid var(--primary-light);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.highlight-box h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* シェアボタン */
.share-buttons {
  display: flex;
  gap: 1rem;
  margin: 3rem 0;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.share-buttons h3 {
  width: 100%;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
}

.share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.share-button.twitter {
  background-color: #1DA1F2;
}

.share-button.facebook {
  background-color: #4267B2;
}

.share-button.linkedin {
  background-color: #0077B5;
}

.share-button.line {
  background-color: #00B900;
}

.share-button.copy {
  background-color: var(--primary-light);
}

/* 関連記事 */
.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border-color);
}

.related-posts h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.related-post-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--shadow);
}

.related-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--shadow);
}

.related-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-post-card .card-content {
  padding: 1.5rem;
}

.related-post-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
}

.related-post-card .post-meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.related-post-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.related-post-card a.read-more {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.related-post-card a.read-more:hover {
  color: var(--primary-color);
}

/* ブログ一覧ページ */
.blog-list {
  display: grid;
  gap: 3rem;
}

.blog-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 15px var(--shadow);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px var(--shadow);
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.blog-card-content {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-content h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin: 0 0 1rem 0;
  border-bottom: none;
}

.blog-card-content h2 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.blog-card-content h2 a:hover {
  color: var(--primary-light);
}

.blog-card-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-card-excerpt {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-card-footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card-footer a:hover {
  color: var(--primary-color);
}

/* サイドバー - ブログ専用 */
.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.blog-sidebar .sidebar-section {
  margin-bottom: 2rem;
}

.blog-sidebar .recent-posts {
  list-style: none;
  margin-left: 0;
}

.blog-sidebar .recent-posts li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-sidebar .recent-posts li:last-child {
  border-bottom: none;
}

.blog-sidebar .recent-posts a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
  transition: var(--transition);
}

.blog-sidebar .recent-posts a:hover {
  color: var(--primary-color);
}

.blog-sidebar .recent-posts .post-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

/* カテゴリータグ */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.category-tag:hover {
  background-color: var(--primary-light);
  color: white;
}

/* レスポンシブデザイン - ブログ専用 */
@media (max-width: 1024px) {
  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 1.8rem;
  }

  .blog-meta {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .blog-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }

  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .share-button {
    justify-content: center;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-content {
    padding: 1.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 1.5rem;
  }

  .table-of-contents {
    padding: 1rem;
  }

  .blog-content h2 {
    font-size: 1.3rem;
  }

  .blog-content h3 {
    font-size: 1.2rem;
  }
}
