/* ==========================================================================
   news.css — ニュースページ専用スタイル
   ========================================================================== */

/* ---------- ページレイアウト ---------- */
#main-content {
  padding-top: 140px;
  padding-bottom: 100px;
}

@media (max-width: 1023px) {
  #main-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* ---------- セクション ---------- */
.news-section {
  width: 100%;
}

/* ---------- 見出し ---------- */
.news-heading {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
  font-family: "Poppins",sans-serif;
}

@media (max-width: 1023px) {
  .news-heading {
    font-size: 2.8rem;
    margin-bottom: 24px;
  }
}

/* ---------- リスト ---------- */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 各アイテム ---------- */
.news-item {
  background: #F8F8F8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 24px 30px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.news-item:hover {
  background: #EDEDED;
}

.news-item a.news-item-link {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

/* ---------- 日付 ---------- */
.news-date {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: #333;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  min-width: 100px;
}

/* ---------- タイトル ---------- */
.news-title {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.7;
  color: #333;
  letter-spacing: 0.03em;
  flex: 1;
}

/* ---------- 矢印アイコン ---------- */
.news-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #999;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: border-color 0.2s ease;
}

.news-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #333;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-item:hover .news-arrow {
  color: #333;
}

.news-item:hover .news-arrow svg {
  stroke: #333;
}

/* ---------- エラー ---------- */
.news-error {
  padding: 18px 0;
  font-size: 1.4rem;
  color: #cc0000;
}

/* ---------- ページネーション ---------- */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.news-pagination .page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  font-family: "Poppins", sans-serif;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.news-pagination .page-btn::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #333;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.news-pagination .page-btn.active {
  font-weight: bold;
  color: #333;
}

.news-pagination .page-btn.active::after {
  width: 40%;
}

.news-pagination .page-btn:hover:not(.active)::after {
  width: 20px;       /* 幅 */
  background: #333; /* 色*/
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 767px) {
  .news-item a.news-item-link {
    gap: 16px;
  }

  .news-item {
    padding: 18px 20px;
    gap: 16px;
  }

  .news-date {
    font-size: 1.2rem;
    min-width: 80px;
  }

  .news-title {
    font-size: 1.3rem;
  }

  .news-arrow {
    width: 30px;
    height: 30px;
  }
}
