/* ===========================
   ニュース共通
=========================== */
.news-category {
  display: inline-block;
  padding: 2px 14px;
  font-size: 14px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
}

/* ===========================
   ニュース一覧ページ
=========================== */
.news-page-wrap {
  padding: 70px 0 100px;
}

/* カテゴリタブ */
.news-category-wrapper {
  margin-bottom: 40px;
}
.news-category-list {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.news-category-list li a {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid #ccc;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}
.news-category-list li a:hover,
.news-category-list li a.current {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
}

/* ニュース一覧 */
.news-list-wrap {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e0e0e0;
}
.news-list-item {
  border-bottom: 1px solid #e0e0e0;
}
.news-list-item__inner {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 30px 10px;
  text-decoration: none;
  color: var(--font-color);
  transition: opacity 0.3s ease;
}


/* サムネイル */
.news-list-item__thumb {
  width: 460px;
  flex-shrink: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
}
.news-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキスト */
.news-list-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  box-sizing: border-box;
}
.news-list-item__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.news-list-item__date {
  font-size: 16px;
  color: #666;
  margin: 0;
  white-space: nowrap;
}
.news-list-item__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: break-word;  
  word-break: normal;    
}

.news-list-item__message {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-bottom: 10px;
  overflow: hidden;
}
.news-list-item__message a{
  display: inline-block;
}
.news-list-item__more {
  display: inline;
  font-size: 15px;
  color: var(--main-color);
  font-weight: 600;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ページネーション */
.post-pagination {
  display: flex;
  justify-content: center;
  margin: 40px auto;
}
.post-pagination .page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
}
.post-pagination .page-numbers li a,
.post-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.post-pagination .page-numbers li span.current {
  background-color: var(--main-color);
  color: #fff;
}
.post-pagination .page-numbers li a:hover {
  background-color: var(--main-color);
  color: #fff;
}
.post-pagination .page-numbers li a.prev,
.post-pagination .page-numbers li a.next {
  font-size: 13px;
  width: auto;
  padding: 0 16px;
  border-radius: 50px;
}

/* ===========================
   詳細ページ
=========================== */
.news-single-page .news-wrapper {
  max-width: 860px;
  width: 90%;
  margin: 150px auto 100px;
  padding: 0;
  box-sizing: border-box;
}
.news-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.news-category-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-date {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  margin: 0;
}
.news-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  word-break: break-word;
  padding-bottom: 16px;
  border-bottom: 2px solid #ccc;
  margin-bottom: 32px;
}
.news-thumbnail {
  text-align: center;
}
.news-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.news-content {
  margin-top: 40px;
  line-height: 2;
  font-size: 16px;
  color: var(--font-color);
}
.news-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--main-color);
  line-height: 1.5;
}
.news-content p {
  word-break: break-word;
}
.news-content a {
  color: #b50005;
  text-decoration: underline;
  word-break: break-all;
}
.news-content a:hover {
  color: #6d0004;
}
.news-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 32px auto 0;
  border-radius: 4px;
}
.image-caption {
  font-size: 13px;
  color: #777;
  text-align: left;
  margin: 0 0 32px;
}
.news-back-btn-wrap {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
}
.news-back-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--main-color);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.news-back-btn:hover {
  background: #fff;
  color: var(--main-color);
  border-color: var(--main-color);
}

/* ===========================
   レスポンシブ
=========================== */
@media screen and (max-width: 768px) {
  /* 一覧 */
  .news-page-wrap { 
    padding: 40px 0 70px; 
  }
  .news-category-list li a { 
    font-size: 14px; 
    padding: 6px 18px; 
  }
  .news-list-item__inner { 
    gap: 16px; 
    padding: 20px 5px; 
    display: flex;
    flex-direction: column;
  }
  .news-list-item__thumb {
    width: 100%; 
    flex-shrink: 0;
  }
  .news-list-item__title { 
    font-size: 15px; 
  }
  /* 詳細 */
  .news-single-page .news-wrapper { 
    width: 92%; 
    margin: 100px auto 80px; 
  }
  .news-title { 
    font-size: 22px; 
    margin-bottom: 24px; 
  }
  .news-content { 
    font-size: 15px; 
    margin-top: 30px; 
  }
  .news-content h3 { 
    font-size: 16px; 
    margin: 32px 0 12px; 
  }
  .news-meta { 
    margin: 18px 0 12px; 
    gap: 8px; 
  }
  .news-category { 
    font-size: 13px; 
    padding: 2px 8px 0; 
  }
  .news-date { 
    font-size: 14px; 
  }
}

@media screen and (max-width: 475px) {
  /* 一覧 */
.news-list-item__inner {
    gap: 10px;
    padding: 16px 5px;
  }
  .news-list-item__thumb {
    width: 100% !important; 
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }
  .news-list-item__body {
    padding: 0;
  }
  .news-list-item__date { font-size: 14px; }
  .news-list-item__title { font-size: 16px; }
  .news-list-item__message {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
  }
  .news-list-item__more{
    font-size: 14px;
  }
  /* 詳細 */
  .news-single-page .news-wrapper { width: 94%; margin: 100px auto 60px; }
  .news-title { font-size: 20px; padding-bottom: 12px; margin-bottom: 20px; }
  .news-content { font-size: 14px; margin-top: 24px; line-height: 1.9; }
  .news-content h3 { font-size: 15px; margin: 28px 0 10px; }
  .news-meta { flex-direction: row; align-items: center; margin: 14px 0 10px; }
  .news-category { font-size: 13px; padding: 2px 8px 0 ;  }
  .news-date { font-size: 12px; }
  .news-thumbnail img { border-radius: 4px; }
  .image-caption { font-size: 12px; }
  .news-back-btn { font-size: 13px; padding: 12px 32px; }
}