/* ========================================
   ニュースページ専用CSS
   ======================================== */

/* ===== ニュースコンテナ ===== */
.news-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
}

/* ===== メインコンテンツ ===== */
.main-content {
  flex: 1;
  max-width: 900px;
}

/* ===== 記事ヘッダー ===== */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--primary-color, #1a4d2e);
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark, #2c3e50);
  line-height: 1.4;
  margin-bottom: 15px;
  font-family: var(--font-heading, 'Roboto Condensed', sans-serif);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-gray, #6c757d);
  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: 30px;
  box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.15));
}

/* ===== 記事本文 ===== */
.article-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-dark, #2c3e50);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--primary-color, #1a4d2e);
  border-left: 4px solid var(--accent-color, #4a90a4);
  padding-left: 15px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 30px 0 15px;
  color: var(--text-dark, #2c3e50);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 20px 0 20px 25px;
}

.article-content li {
  margin-bottom: 10px;
}

/* ===== ニュース情報源セクション ===== */
.news-source-section {
  margin-top: 50px;
  padding: 25px;
  background: var(--light-bg, #f8f9fa);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color, #4a90a4);
}

.news-source-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  margin: 0;
}

.news-source-list dt {
  font-weight: 600;
  color: var(--text-dark, #2c3e50);
}

.news-source-list dd {
  margin: 0;
  color: var(--text-gray, #6c757d);
}

.news-source-list a {
  color: var(--accent-color, #4a90a4);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition, all 0.3s ease);
}

.news-source-list a:hover {
  color: var(--primary-color, #1a4d2e);
  text-decoration: underline;
}

/* ===== シェアボタン ===== */
.share-buttons {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color, #dee2e6);
  display: flex;
  gap: 15px;
  align-items: center;
}

.share-buttons h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark, #2c3e50);
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition, all 0.3s ease);
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
}

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

.share-button.twitter:hover {
  background: #1a8cd8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.15));
}

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

.share-button.facebook:hover {
  background: #365899;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 8px rgba(0,0,0,0.15));
}

/* ===== サイドバー ===== */
.sidebar {
  width: 300px;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 30px;
  padding: 25px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
}

.sidebar-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color, #1a4d2e);
  border-bottom: 2px solid var(--accent-color, #4a90a4);
  padding-bottom: 10px;
}

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

.sidebar-section li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.sidebar-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-color, #4a90a4);
  font-weight: bold;
}

.sidebar-section a {
  color: var(--text-dark, #2c3e50);
  text-decoration: none;
  transition: var(--transition, all 0.3s ease);
  font-size: 0.95rem;
}

.sidebar-section a:hover {
  color: var(--accent-color, #4a90a4);
  padding-left: 5px;
}

/* 広告スペース */
.ad-space {
  background: var(--light-bg, #f8f9fa);
  border: 2px dashed var(--border-color, #dee2e6);
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-gray, #6c757d);
  font-size: 0.9rem;
}

/* ===== ニュース一覧ページ ===== */
.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.news-card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.1));
  overflow: hidden;
  transition: var(--transition, all 0.3s ease);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg, 0 8px 16px rgba(0,0,0,0.2));
}

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

.news-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-date {
  font-size: 0.85rem;
  color: var(--text-gray, #6c757d);
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark, #2c3e50);
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
}

.news-card-link {
  color: var(--accent-color, #4a90a4);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition, all 0.3s ease);
}

.news-card-link:hover {
  color: var(--primary-color, #1a4d2e);
  gap: 8px;
}

/* ===== ページネーション ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 50px 0;
}

.pagination a,
.pagination span {
  padding: 10px 18px;
  border: 1px solid var(--border-color, #dee2e6);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dark, #2c3e50);
  font-weight: 500;
  transition: var(--transition, all 0.3s ease);
}

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

.pagination .current {
  background: var(--accent-color, #4a90a4);
  color: white;
  border-color: var(--accent-color, #4a90a4);
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 1024px) {
  .news-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-width: 900px;
  }

  .news-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.6rem;
  }

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

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

  .share-buttons {
    flex-wrap: wrap;
  }

  .news-source-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
