/* ============================================================
   news.css - お知らせ一覧 / 詳細 ページ専用スタイル
   ============================================================ */

/* ===== 一覧 - リスト ===== */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e0e6da;
}
.news-list li {
  border-bottom: 1px solid #e0e6da;
}
.news-list li a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 20px 8px;
  text-decoration: none;
  color: #333;
  transition: background .25s ease;
}
.news-list li a:hover {
  background: #f7fbf2;
}
.news-list .news-date {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #558b2f;
}
.news-list .news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 76px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #558b2f;
  background: #f1f8e9;
  border: 1px solid #cfe3b6;
  border-radius: 999px;
}
.news-list .news-title {
  width: 100%;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  font-weight: 600;
}
.news-list li a:hover .news-title {
  color: #558b2f;
}

@media (min-width: 768px) {
  .news-list li a {
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    padding: 24px 12px;
  }
  .news-list .news-date {
    flex-shrink: 0;
    width: 120px;
    font-size: 14px;
  }
  .news-list .news-title {
    width: auto;
    flex: 1;
    font-size: 17px;
  }
}

/* ===== ページング ===== */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.news-pagination button,
.news-pagination .page-arrow {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d0d8c4;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.news-pagination button:hover:not(:disabled),
.news-pagination .page-arrow:hover:not(:disabled) {
  background: #f1f8e9;
  border-color: #8bc34a;
  color: #558b2f;
}
.news-pagination button.is-active {
  background: #8bc34a;
  border-color: #8bc34a;
  color: #fff;
}
.news-pagination button:disabled,
.news-pagination .page-arrow:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ===== 詳細ページ ===== */
.news-article {
  max-width: 760px;
  margin: 0 auto;
}
.news-article-header {
  border-bottom: 1px solid #e0e6da;
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.news-article-date {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #558b2f;
  margin-bottom: 12px;
}
.news-article-cat {
  display: inline-block;
  margin-left: 10px;
  margin-bottom: 12px;
  padding: 3px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #558b2f;
  background: #f1f8e9;
  border: 1px solid #cfe3b6;
  border-radius: 999px;
  vertical-align: middle;
}
.news-article-title {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
  color: #333;
  margin: 0;
}
.news-article-body {
  font-size: 16px;
  line-height: 2;
  color: #444;
}
.news-article-body p {
  margin-bottom: 1.5em;
}
.news-article-body p:last-child {
  margin-bottom: 0;
}
.news-article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  border-left: 4px solid #8bc34a;
  padding-left: 12px;
  margin: 2em 0 1em;
  line-height: 1.5;
}
.news-article-body ul,
.news-article-body ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
.news-article-body li {
  margin-bottom: .4em;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .news-article-title {
    font-size: 28px;
  }
}

/* ===== 詳細 - 前後ナビ & 戻る ===== */
.news-article-nav {
  margin-top: 56px;
  border-top: 1px solid #e0e6da;
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.news-article-nav a {
  display: block;
  padding: 14px 18px;
  border: 1px solid #d0d8c4;
  border-radius: 8px;
  text-decoration: none;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
  transition: all .2s ease;
  background: #fff;
}
.news-article-nav a:hover {
  background: #f1f8e9;
  border-color: #8bc34a;
  color: #558b2f;
}
.news-article-nav .nav-prev { text-align: left; }
.news-article-nav .nav-next { text-align: right; }
.news-article-nav .nav-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #8bc34a;
  margin-bottom: 4px;
}
.news-article-back {
  text-align: center;
  margin-top: 32px;
}
.news-article-back a {
  display: inline-block;
  padding: 12px 36px;
  background: #8bc34a;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s ease;
}
.news-article-back a:hover {
  background: #558b2f;
}
