/**
 * 記事ページ固有のスタイル
 * Version: 1.0.2
 */

/* メイン記事スタイル */
.single-article {
  background: #fff;
}

/* 記事ヘッダー */
.article-header {
  padding: 2rem 2rem 0;
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* メイン画像 */
.article-image {
  height: 400px;
  position: relative;
  background: #f5f5f5;
  margin-bottom: 2rem;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 記事メタ情報 */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

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

/* 目次 */
.table-of-contents {
  background: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  position: relative;
}

.table-of-contents__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.table-of-contents__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.table-of-contents__item {
  margin: 0.5rem 0;
  line-height: 1.4;
}

.table-of-contents__link {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 0.2rem 0;
}

.table-of-contents__link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* 記事本文 */
.article-content {
  padding: 0 2rem 2rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-color);
}

.article-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
  color: var(--text-color);
}

.article-body p {
  margin: 1.5rem 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--primary-color);
  background: #f8f9fa;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  color: var(--text-light);
  font-style: italic;
}

/* 関連記事 */
.related-posts {
  margin-top: 4rem;
}

.related-posts__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-color);
}

.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.75rem;
  }

  .article-image {
    height: 300px;
  }

  .article-meta {
    gap: 1rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

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

  .author-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .share-buttons {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .article-header,
  .article-content,
  .article-footer {
    padding: 1.5rem;
  }

  .article-image {
    height: 200px;
    margin: 0 -1.5rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .table-of-contents,
  .product-info {
    padding: 1.5rem;
  }
}
