/* お知らせ（/news/）一覧・個別記事のスタイル。header/footer は custom-css-js/1159.css・1417.css に従う */
.news-page {
  margin: 0;
  color: #131e3e;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

.news-main {
  /* header-global は 887px 以上で position:absolute / 高さ 96px */
  padding: 64px 16px 96px;
}

@media screen and (width >= 887px) {
  .news-main {
    padding-top: 160px;
  }
}

.news-main__inner {
  max-width: 800px;
  margin: 0 auto;
}

.news-heading,
.news-article__title {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.news-empty {
  color: #6b7280;
}

/* カテゴリのタブ（スマホ幅では横スクロール） */
.news-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding-bottom: 4px;
  overflow-x: auto;
}

.news-tabs__tab {
  flex: none;
  padding: 6px 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #131e3e;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.news-tabs__tab[aria-pressed="true"] {
  border-color: #131e3e;
  background: #131e3e;
  color: #fff;
}

.news-list__item[hidden] {
  display: none;
}

/* 一覧 */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e5e7eb;
}

.news-list__item {
  border-bottom: 1px solid #e5e7eb;
}

.news-list__link {
  display: block;
  padding: 24px 8px;
  color: inherit;
  text-decoration: none;
}

/* 重要は行を強調（上下の罫線の内側に収める） */
.news-list__item[data-category="important"] .news-list__link {
  margin: 10px 0;
  padding: 16px;
  background: #fff6ef;
  border: 1px solid #f3cfb3;
  border-radius: 8px;
}

.news-list__meta,
.news-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}

.news-list__title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.news-list__link:hover .news-list__title {
  text-decoration: underline;
}

.news-list__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b7280;
}

/* カテゴリラベル */
.news-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  background: #6b7280;
}

.news-category[data-category="important"] { background: #b84a12; }
.news-category[data-category="update"] { background: #0a64a8; }
.news-category[data-category="maintenance"] { background: #b3261e; }
.news-category[data-category="other"] { background: #5b6578; }

/* 個別記事 */
.news-article__meta {
  margin-bottom: 12px;
}

.news-article__body {
  font-size: 16px;
}

.news-article__body h2 {
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #131e3e;
  font-size: 22px;
}

.news-article__body h3 {
  margin: 32px 0 12px;
  font-size: 18px;
}

.news-article__body p,
.news-article__body ul,
.news-article__body ol {
  margin: 0 0 16px;
}

.news-article__body li {
  margin-bottom: 6px;
}

.news-article__body img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.news-article__body a {
  color: #0693e3;
}

.news-article__back {
  margin-top: 56px;
  font-size: 14px;
}

.news-article__back a {
  color: #131e3e;
}

/* 既存ページはヘッダーが Elementor の boxed コンテナ（最大 1248px・中央寄せ）内にあるため、お知らせページでも同じ幅と位置に揃える */
@media screen and (width >= 887px) {
  .news-page .header-global {
    right: 0;
    max-width: 1248px;
    margin: 0 auto;
  }
}

/* 既存ページのフッターリンクは下線なし（テーマ CSS 由来）。お知らせページはテーマ CSS を読まないため明示する */
.news-page .footer-navilist__link {
  text-decoration: none;
}

/* ページ送り（11 件以上のときだけ JS が出す） */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 0;
}

.news-pager__button {
  min-width: 40px;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  color: #14213d;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 999px;
}

.news-pager__button[aria-current="page"] {
  color: #fff;
  background: #14213d;
  border-color: #14213d;
}

.news-pager__button:disabled {
  cursor: default;
  opacity: 0.4;
}
