/* NEWSページ専用のヒーローセクション調整 */



@media screen and (max-width: 768px) {

  .page-hero .hero-content {
    bottom: 10%;
    left: 20%;
    align-items: flex-end;
  }
  
}

@media screen and (min-width: 769px) and (max-width: 1400px) {
}


/* NEWSアーカイブページ */
#news-archive {
  padding: 60px 0;
}

#news-archive .news-content {
  max-width: 960px;
  margin: 0 auto;
}

#news-archive .news-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

#news-archive .tab-button {
  padding: 12px 25px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  position: relative;
  transition: all 0.3s;
}

#news-archive .tab-button:hover {
  color: #8B0000;
}

#news-archive .tab-button.active {
  color: #8B0000;
  font-weight: bold;
}

#news-archive .tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #8B0000;
}

#news-archive .tab-content {
  display: none;
}

#news-archive .tab-content.active {
  display: block;
}

#news-archive .news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

#news-archive .news-item-left {
  display: flex;
  align-items: center;
  min-width: 220px;
  margin-right: 20px;
}

#news-archive .category {
  display: inline-block;
  min-width: 100px;
  text-align: center;
  padding: 5px 10px;
  margin-right: 15px;
  background-color: #8B0000;
  color: white;
  font-size: 14px;
  border-radius: 4px;
}

#news-archive .date {
  color: #666;
  font-size: 14px;
}

#news-archive .title {
  color: #333;
  font-size: 16px;
  text-decoration: none;
  flex-grow: 1;
  transition: color 0.3s;
}

#news-archive .title:hover {
  color: #8B0000;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

.pagination .current {
  background-color: #8B0000;
  color: white;
  border-color: #8B0000;
}

/* ==========================
   投稿詳細ページ用スタイル
============================== */
#post-detail {
  padding: 60px 0;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 30px;
}

.post-meta {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.post-meta .category {
  display: inline-block;
  min-width: 100px;
  text-align: center;
  padding: 5px 10px;
  margin-right: 15px;
  background-color: #8B0000;
  color: white;
  font-size: 14px;
  border-radius: 4px;
}

.post-meta .date {
  color: #666;
  font-size: 14px;
}

.post-title {
  font-size: 28px;
  color: #333;
  margin-bottom: 20px;
}

.post-thumbnail {
  margin-bottom: 30px;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.post-body {
  line-height: 1.8;
  color: #333;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body h2 {
  font-size: 24px;
  margin: 30px 0 15px;
  padding-bottom: 5px;
  border-bottom: 2px solid #eee;
}

.post-body h3 {
  font-size: 20px;
  margin: 25px 0 15px;
}

.post-body ul, 
.post-body ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.post-navigation a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.post-navigation a:hover {
  color: #8B0000;
}

.back-to-list a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.back-to-list a:hover {
  background-color: #e0e0e0;
}

/* =======================================
   レスポンシブデザイン
========================================== */
@media screen and (max-width: 768px) {
  /* NEWSアーカイブページ - タブレット */
  #news-archive .news-tabs {
    flex-wrap: wrap;
  }
  
  #news-archive .tab-button {
    font-size: 14px;
    padding: 10px 15px;
  }
  
  #news-archive .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  #news-archive .news-item-left {
    min-width: 100%;
  }
  
  #news-archive .title {
    width: 100%;
  }
  
  /* 投稿詳細ページ - タブレット */
  .post-title {
    font-size: 24px;
  }
  
  .post-meta .category {
    min-width: 80px;
    font-size: 12px;
  }
  
  .post-meta .date {
    font-size: 12px;
  }
  
  .post-body h2 {
    font-size: 22px;
  }
  
  .post-body h3 {
    font-size: 18px;
  }
}

/* 小さいタブレット・大きいスマホ向け */
@media screen and (max-width: 576px) {
  /* NEWSアーカイブページ - 小さいタブレット */
  
  #news-archive .tab-button {
    font-size: 12px;
    padding: 8px 10px;
  }
  
  #news-archive .category {
    min-width: 80px;
    font-size: 12px;
  }
  
  #news-archive .date {
    font-size: 12px;
  }
  
  #news-archive .title {
    font-size: 14px;
  }
  
  /* 投稿詳細ページ - 小さいタブレット */
  .post-title {
    font-size: 22px;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .post-meta .category {
    margin-bottom: 5px;
  }
  
  .post-body h2 {
    font-size: 20px;
  }
  
  .post-body h3 {
    font-size: 16px;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .back-to-list {
    order: -1;
    margin-bottom: 10px;
  }
}

/* スマホ向け */
@media screen and (max-width: 480px) {
  /* NEWSアーカイブページ - スマホ */
  #news-archive .news-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  #news-archive .tab-button {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  #news-archive .category,
  #news-archive .date {
    font-size: 0.8rem;
  }
  
  #news-archive .title {
    font-size: 0.9rem;
    text-align: left;
  }
  
  /* 投稿詳細ページ - スマホ */
  .post-title {
    font-size: 20px;
  }
  
  .post-meta .category {
    min-width: 70px;
    font-size: 11px;
  }
  
  .post-meta .date {
    font-size: 11px;
  }
  
  .post-body h2 {
    font-size: 18px;
  }
  
  .post-body h3 {
    font-size: 15px;
  }
  
  .pagination a,
  .pagination span {
    padding: 6px 10px;
    margin: 0 3px;
  }
}
