/* ===== メインレイアウト ===== */
.news-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px clamp(24px, 5vw, 80px) 100px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* ===== サイドバー ===== */
.news-sidebar {
  width: 251px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-filter__header { background: #005eb8; padding: 10px 16px; text-align: center; }
.news-filter__label {
  font-family: "montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.2em;
}
.news-filter__list { list-style: none; padding: 12px 0; }
.news-filter__btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 8px 16px;
  font-size: 16px;
  color: #999;
  font-family: "noto-sans-cjk-jp", sans-serif;
  font-weight: 400;
  transition: color 0.2s;
  display: block;
}
.news-filter__btn:hover { color: #31caff; }
.news-filter__btn.is-active { color: #31caff; font-weight: 400; }

/* アーカイブ */
.news-archive { position: relative; }
.news-archive__header { background: #005eb8; padding: 10px 16px; text-align: center; }
.news-archive__label {
  font-family: "montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.2em;
}
.news-archive__chevron { display: none; }
.news-archive__select-wrap { position: relative; }
.news-archive__select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #005eb8;
  pointer-events: none;
}
.news-archive__select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  font-family: "noto-sans-cjk-jp", sans-serif;
  color: #333;
  border: 1px solid #c7c7c7;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 0;
}
.news-archive__select:focus { outline: 2px solid #005eb8; outline-offset: -2px; }

/* ===== ニュースリスト ===== */
.news-content { flex: 1; min-width: 0; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.15s;
}
.news__item:first-child { border-top: 1px solid #e0e0e0; }
.news__date {
  font-size: 14px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: "montserrat", sans-serif;
}
.news__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
  min-width: 72px;
}
.news__tag--info  { background: #005eb8; }
.news__tag--event { background: #31caff; }
.news__tag--other { background: #005eb8; }
.news__text {
  flex: 1;
  font-size: 18px;
  color: #231816;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.2s;
}
.news__item:hover .news__text { color: #005eb8; }
.news__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: #005eb8;
}
.news__arrow .material-symbols-rounded { font-size: 22px; }
.news__item.is-hidden { display: none; }
.news-empty {
  display: none;
  padding: 48px 0;
  text-align: center;
  font-size: 16px;
  color: #999;
  border-bottom: 1px solid #e0e0e0;
}
.news-empty.is-visible { display: block; }

/* ===== ページネーション ===== */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.news-pagination__list { display: flex; align-items: center; gap: 8px; list-style: none; }
.news-pagination__btn,
.news-pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  color: #231816;
  background: #f2f2f2;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
  font-family: "montserrat", sans-serif;
}
.news-pagination__btn:hover,
.news-pagination__page:hover { background: #005eb8; color: #fff; }
.news-pagination__btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.news-pagination__page.is-active { background: #005eb8; color: #fff; font-weight: 700; }
.news-pagination__btn--prev,
.news-pagination__btn--next {
  min-width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  padding: 0 4px;
  font-size: 16px;
  color: #231816;
}
.news-pagination__btn--prev:hover,
.news-pagination__btn--next:hover { background: none; color: #005eb8; text-decoration: underline; }
.news-pagination__btn--prev:disabled,
.news-pagination__btn--next:disabled { color: #bbb; text-decoration: none; }
.news-pagination__ellipsis { font-size: 18px; color: #999; padding: 0 4px; line-height: 50px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .news-layout { gap: 40px; padding: 56px clamp(24px, 4vw, 60px) 80px; }
}
@media (max-width: 900px) {
  .news-layout { flex-direction: column; gap: 32px; }
  .news-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .news-filter, .news-archive { flex: 1; min-width: 200px; }
}
@media (max-width: 767px) {
  .news-layout { padding: 40px 24px 64px; }
  .news-sidebar { flex-direction: column; }
  .news-filter, .news-archive { width: 100%; }
  .news-content { width: 100%; }
  .news__item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 8px;
    padding: 14px 0;
  }
  .news__date { grid-column: 1; grid-row: 1; width: auto; }
  .news__tag { grid-column: 2; grid-row: 1; }
  .news__text { grid-column: 1 / 4; grid-row: 2; font-size: 17px; font-weight: 700; flex: none; width: auto; }
  .news__arrow { grid-column: 4; grid-row: 2; align-self: center; }
  .news-pagination { gap: 6px; flex-wrap: wrap; }
  .news-pagination__btn, .news-pagination__page { min-width: 40px; height: 40px; font-size: 15px; }
  .news-pagination__btn--prev, .news-pagination__btn--next { padding: 0 14px; font-size: 14px; }
}
