/* ニュース記事専用CSS */

:root {
  --primary-color: #2563eb;
  --secondary-color: #7c3aed;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
}

/* ニュースコンテナ */
.news-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

/* メインコンテンツ */
.main-content {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 記事ヘッダー */
.article-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  border-radius: 8px;
}

.article-title {
  font-size: 2rem;
  line-height: 1.4;
  color: #FFFFFF;
  margin-bottom: 1rem;
  font-weight: bold;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db; /* Lighter gray */
  font-size: 0.95rem;
}

/* アイキャッチ画像 */
.featured-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* 記事コンテンツ */
.article-content {
  line-height: 1.8;
  color: var(--text-dark);
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

/* ニュースソースセクション */
.news-source-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.news-source-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
}

.news-source-list dt {
  font-weight: bold;
  color: var(--text-dark);
}

.news-source-list dd {
  color: var(--text-light);
}

.news-source-list a {
  color: var(--primary-color);
  text-decoration: none;
}

.news-source-list a:hover {
  text-decoration: underline;
}

/* サイドバー */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

/* 広告スペース */
.ad-space {
  background: var(--bg-light);
  border: 2px dashed var(--border-color);
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
  border-radius: 8px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* シェアボタン */
.share-buttons {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.share-button:hover {
  opacity: 0.8;
}

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

.share-button.facebook {
  background-color: #1877F2;
}

/* ニュース一覧ページ */
.news-list-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.news-list-header {
  text-align: center;
  margin-bottom: 3rem;
}

.news-list-header h1 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.news-card-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination .current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .news-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
  }

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