/* ===============================================
   お知らせ個別記事ページ 共通スタイル
   (single-news.php / single-member_news.php)
   =============================================== */

/* ページ全体のコンテナ */
.news-detail-container {
  max-width: 800px; /* 記事が読みやすい幅に設定 */
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 記事本体 */
.news-article {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 記事ヘッダー */
.news-article .article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.news-article .entry-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px 0;
  color: #333;
}

.news-article .entry-meta {
  font-size: 0.9rem;
  color: #777;
}

/* 記事本文のスタイル */
.news-article .entry-content {
  line-height: 1.8;
  color: #444;
}

.news-article .entry-content p {
  margin-bottom: 1.5em;
}

.news-article .entry-content h2,
.news-article .entry-content h3,
.news-article .entry-content h4 {
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.5;
  color: #333;
}

.news-article .entry-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5em;
}

.news-article .entry-content h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.4em;
}

.news-article .entry-content a {
  color: #337ab7;
  text-decoration: underline;
}
.news-article .entry-content a:hover {
  color: #23527c;
}

.news-article .entry-content ul,
.news-article .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.news-article .entry-content blockquote {
  margin: 0 0 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid #eee;
  background-color: #f9f9f9;
  color: #666;
}

.news-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 前後記事へのナビゲーション */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-navigation a {
  text-decoration: none;
  font-weight: 500;
  color: #337ab7;
  transition: color 0.3s;
}
.post-navigation a:hover {
  color: #23527c;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation .nav-archive a.button {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 50px;
  transition: all 0.3s;
}

.post-navigation .nav-archive a.button:hover {
  background-color: #f5f5f5;
  border-color: #aaa;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  .news-detail-container {
    margin: 20px auto;
  }

  .news-article {
    padding: 20px;
  }

  .news-article .entry-title {
    font-size: 1.8rem;
  }

  .news-article .entry-content h2 {
    font-size: 1.5rem;
  }

  .news-article .entry-content h3 {
    font-size: 1.3rem;
  }

  .post-navigation {
    font-size: 0.9em;
  }
}
