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

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

/* メインコンテンツ */
.main-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 記事ヘッダー */
.article-header {
  border-bottom: 3px solid #003366;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

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

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

.article-meta time {
  font-weight: 500;
}

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

/* 記事本文 */
.article-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

.article-content h2 {
  font-size: 1.5rem;
  color: #003366;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

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

/* ニュースソースセクション */
.news-source-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  border-left: 4px solid #003366;
}

.news-source-list {
  display: grid;
  gap: 1rem;
}

.news-source-list dt {
  font-weight: bold;
  color: #003366;
  font-size: 0.9rem;
}

.news-source-list dd {
  margin-left: 1rem;
  color: #555;
}

.news-source-list a {
  color: #0066cc;
  text-decoration: none;
}

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

/* シェアボタン */
.share-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.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: 500;
  transition: opacity 0.3s ease;
}

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

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

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

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

.sidebar-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-section h3 {
  font-size: 1.2rem;
  color: #003366;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #003366;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  margin-bottom: 0.75rem;
}

.sidebar-section a {
  color: #0066cc;
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar-section a:hover {
  text-decoration: underline;
}

/* 広告スペース */
.ad-space {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  color: #999;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.news-list-header {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-list-header h1 {
  font-size: 2.5rem;
  color: #003366;
  margin-bottom: 0.5rem;
}

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

.news-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px 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: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.25rem;
  color: #003366;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-card-excerpt {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-card-link {
  display: inline-block;
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.news-card-link:hover {
  text-decoration: underline;
}

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

.pagination a,
.pagination span {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  text-decoration: none;
  color: #003366;
  font-weight: 500;
  transition: background 0.3s ease;
}

.pagination a:hover {
  background: #003366;
  color: white;
}

.pagination .current {
  background: #003366;
  color: white;
}

/* レスポンシブ対応 */
@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;
  }
}
