/**
 * FOS GEO - ニュース（お知らせ）ページ用スタイル
 * news.php と news_detail.php で共有
 */

/* ニュースページ共通スタイル */
.news-container {
  width: 100%;
  /* max-width: 1000px; */
  margin: 0 auto;
  padding: 0 14vw;
}


/* 左右レイアウト */
.news-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.news-main-column {
  flex: 1;
  min-width: 60%;
}

.news-sidebar {
  width: 300px;
}

/* カテゴリーセクション */
.news-categories {
  margin: 40px 0;
}

.category-heading {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.category-button {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #333;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-button.active {
  background-color: #004EA2;
  color: #fff;
  border-color: #004EA2;
}

.category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ニュース一覧 - 新しいレイアウト */
.news-list {
  margin-bottom: 40px;
}

.news-item {
  margin-bottom: 10px;
  border-bottom: 1px solid #004EA2;
  /* border-radius: 5px; */
  transition: all 0.3s ease;
}

.news-item:hover {
  background-color: #e3ecf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 78, 162, 0.1);
}

.news-item-link {
  display: flex;
  align-items: center;
  padding: 30px;
  text-decoration: none;
  color: inherit;
}

.news-date {
  width: 100px;
  font-size: 1.4em;
  flex-shrink: 0;
  font-family: 'Righteous', sans-serif;
}

.news-category-list {
  width: 11vw;
  flex-shrink: 0;
  padding: 1vw;
  margin: 0 40px;
  text-align: center;
  color: #ffffff;
  background-color: #004EA2;
  border-radius: 5px;
}

.news-category-label {
  display: inline-block;
  font-size: 1.2em;
  border-radius: 4px;
}

.news-title {
  font-size: 1.4em;
  font-weight: 500;
  margin: 0;
  color: #004EA2;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* サイドバーウィジェット */
.sidebar-widget {
  margin-bottom: 40px;
  padding: 30px 20px;
  background-color: #E8F1FC;
  border-radius: 5px;
}

.sidebar-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  padding-bottom: 10px;
  /* border-bottom: 1px solid #ddd; */
  font-family: 'Righteous', sans-serif;
  color:#004EA2
}

.archive-list {
  display: none; /* 既存のリストスタイルを非表示にする場合 */
}

/* アーカイブボタン */
.archive-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  text-align: center;
}

.archive-button {
  display: inline-block;
  padding: 30px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.4em;
  font-family: 'Righteous', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #fff;
  color: #004EA2;
  border: 1px solid #ddd;
  width: 100%;
  border-radius: 5px;
}

.archive-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #196FDD;
  color: #ffffff;
}

.archive-list li, .recent-posts li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #eee;
}

.archive-list a, .recent-posts a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.archive-list a:hover, .recent-posts a:hover {
  color: #004EA2;
}

/* ニュース詳細ページ */
.news-detail {
  margin: 40px 0;
}

.news-detail-header {
  margin-bottom: 30px;
}

/* 記事詳細ページのスタイル追加 */
.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.news-detail-title {
  font-size: 2.4em;
  margin-bottom: 4rem;
  font-weight: bold;
  color: #004EA2;
  padding-bottom: 2rem;
  border-bottom: 1px solid #99c2f4;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.news-detail-date {
  font-size: 14px;
  color: #666;
  margin-right: 15px;
}

.news-detail-category {
  font-size: 0.8em;
  color: #ffffff;
  padding: 0.6vw;
  width: 8vw;
}

.news-detail-content {
  line-height: 1.8;
  margin-bottom: 30px;
}

.news-detail-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 5px;
}

.news-detail-content h2 {
  font-size: 22px;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E8F1FC;
  color: #004EA2;
}

.news-detail-content h3 {
  font-size: 18px;
  margin: 25px 0 15px;
  color: #196FDD;
}

.news-detail-content p {
  margin-bottom: 15px;
}

.news-detail-content ul, 
.news-detail-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.news-detail-content blockquote {
  padding: 15px 20px;
  margin: 20px 0;
  background-color: #E8F1FC;
  border-left: 4px solid #004EA2;
  font-style: italic;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid #99c2f4;
}

.post-navigation a {
  display: inline-block;
  padding: 1vw 4vw;
  background-color: #fff;
  color: #004EA2;
  text-decoration: none;
  border: 1px solid #004EA2;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.post-navigation a:hover {
  background-color: #004EA2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 78, 162, 0.1);
}

/* アーカイブページ */
.archive-button.active {
  background-color: #004EA2;
  color: #fff;
  border-color: #004EA2;
}



/* レスポンシブ対応 */

/*  大型ディスプレイ (1280px以下)  */
@media screen and (max-width: 1280px) {
  .news-container {
    padding: 0 10vw;
}
}


/* ===== タブレット (992px以下) ===== */
@media screen and (max-width: 992px) {
  .news-container {
    padding: 0 4vw;
  }

  .news-sidebar {
    width: 100%;
  }
}


@media (max-width: 768px) {
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .news-meta .news-date {
    margin-bottom: 10px;
  }
  
  .news-detail-title {
    font-size: 20px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .news-detail-title {
    font-size: 18px;
  }
  
  .news-detail-content h2 {
    font-size: 18px;
  }
  
  .news-detail-content h3 {
    font-size: 16px;
  }
}
/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  margin: 50px 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid #ddd;
}

.page-numbers.current {
  background-color: #004EA2;
  color: #fff;
  border-color: #004EA2;
}

.page-numbers:hover:not(.current) {
  background-color: #f5f5f5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .news-layout {
    flex-direction: column;
  }
  
  .news-sidebar {
    width: 100%;
  }

  .news-item-link {
    flex-wrap: wrap;
  }
  
  .news-date {
    width: auto;
    margin-right: 15px;
  }
  
  .news-category-list {
    width: auto;
    margin: 0 0 0 auto;
  }
  
  .news-title {
    width: 100%;
    margin-top: 10px;
    white-space: normal;
  }

  .news-title {
    font-size: 18px;
  }
  
  .news-detail-title {
    font-size: 24px;
  }
  
  .category-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .news-item-link {
    padding: 12px 15px;
  }
  
  .news-date, .news-category-label {
    font-size: 12px;
  }
  
  .news-category-label {
    padding: 3px 8px;
  }
  
  .category-buttons {
    gap: 10px;
  }
  
  .category-button {
    padding: 6px 15px;
    font-size: 13px;
  }
  
  .news-title {
    font-size: 14px;
  }
  
  .news-detail-title {
    font-size: 20px;
  }
}
