body {
  padding-top: 80px;
}

@media (max-width: 560px) {
  body {
    padding-top: 64px;
  }
}

/* ==========================================
   news.css
   お知らせ一覧ページ専用スタイル
   BEM: news-{section}__{element}--{modifier}
   ========================================== */

/* ─────────────────────────────────────────
   KV（キービジュアル）
───────────────────────────────────────── */



/* ─────────────────────────────────────────
   ページコンテンツエリア
───────────────────────────────────────── */

.news-page {
  padding-top: 100px;
  padding-bottom: 140px;
  background-color: #fff;
}

.news-page__inner {
  max-width: 1366px;
  padding: 0 103px;
  margin: 0 auto;
  box-sizing: border-box;
}

.news-page__body {
  display: flex;
  align-items: flex-start;
}

/* ─────────────────────────────────────────
   サイドバー / フィルターボタン
───────────────────────────────────────── */

.news-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.news-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-filter__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  white-space: nowrap; /* 文字を改行させない */
  padding: 6px 40px;
  border: 1px solid #07344d;
  border-radius: 100px;
  background: transparent;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #07344d;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

a.news-filter__btn {
  text-decoration: none;
}

.news-filter__btn:hover,
.news-filter__btn.is-active {
  background-color: #07344d;
  color: #fff;
}

/* PC：アクティブ／マウスオン時は通常より幅が狭くなる（Figma：「お知らせ」で通常の約72%）
   左右の余白 40px → 20px（4文字で 約102px） */
@media (min-width: 561px) {
  .news-filter__btn {
    transition: background-color 0.3s, color 0.3s, padding 0.3s;
  }

  .news-filter__btn:hover,
  .news-filter__btn.is-active {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ─────────────────────────────────────────
   ニュースリスト
───────────────────────────────────────── */

.news-content {
  flex: 1;
  min-width: 0;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #c8c2b8;
}

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

.news-list__link {
  display: grid;
  grid-template-areas:
    "date category"
    "title arrow";
  grid-template-columns: auto 1fr;
  row-gap: 5px;
  column-gap: 16px;
  padding: 29px 0 32px;
  text-decoration: none;
  transition: opacity 0.3s;
  align-items: center;
}

.news-list__link:hover {
  opacity: 0.7;
}

.news-list__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
}

.news-empty {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #1d2e45;
  padding: 40px 0;
  margin: 0;
}

.news-list__date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #1d2e45;
  white-space: nowrap;
  letter-spacing: 0.51px;
  font-feature-settings: "palt" 1;
  grid-area: date;
  align-self: center;
  margin-right: 1em;
}

.news-list__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 30px;
  border: 1px solid #07344d;
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.45px;
  line-height: 1.5;
  color: #07344d;
  white-space: nowrap;
  grid-area: category;
  align-self: center;
  justify-self: start;
}

.news-list__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 2;
  letter-spacing: 0.6px;
  font-feature-settings: "palt" 1;
  color: #1d2e45;
  margin: 0;
  grid-area: title;
  align-self: center;
}

.news-list__arrow {
  grid-area: arrow;
  justify-self: end;
  align-self: center;
  display: flex;
}

/* スマホ: 矢印は 24×9（Figma） */
@media (max-width: 560px) {
  .news-list__arrow {
    width: 24px;
    height: 9px;
  }
}

/* ─────────────────────────────────────────
   ページネーション（フルページ幅・中央揃え）
───────────────────────────────────────── */

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 80px;
}

.news-pagination__pages {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pagination__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #c8c2b8;
  background: none;
  color: #0e212f;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

a.news-pagination__num,
a.news-pagination__arrow {
  text-decoration: none;
}

.news-pagination__arrow.is-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.news-pagination__num:hover {
  border-color: #1d2e45;
  color: #1d2e45;
}

.news-pagination__num.is-active {
  background-color: #1d2e45;
  border-color: #1d2e45;
  color: #fff;
}

.news-pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #c8c2b8;
  background: none;
  cursor: pointer;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.news-pagination__arrow:hover {
  border-color: #1d2e45;
}

.news-pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #1d2e45;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  user-select: none;
}

/* ─────────────────────────────────────────
   お知らせ一覧：スマホ
───────────────────────────────────────── */
@media (max-width: 560px) {
  .news-page {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .news-page__inner {
    padding: 0 20px;
  }

  .news-page__body {
    flex-direction: column;
  }

  .news-sidebar {
    width: 100%;
    margin-bottom: 28px;
  }

  .news-filter {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-filter__btn {
    padding: 6px 22px;
    font-size: 14px;
  }

  .news-content {
    width: 100%;
  }

  .news-list__link {
    column-gap: 12px;
    padding: 20px 0 22px;
  }

  .news-list__meta {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .news-list__date {
    font-size: 14px;
    margin-right: 0;
  }

  .news-list__category {
    padding: 2px 18px;
    font-size: 12px;
  }

  .news-list__title {
    font-size: 16px;
    line-height: 1.7;
  }

  .news-pagination {
    padding-top: 48px;
    gap: 6px;
  }

  .news-pagination__pages {
    gap: 6px;
  }

  .news-pagination__num,
  .news-pagination__arrow,
  .news-pagination__ellipsis {
    width: 36px;
    height: 36px;
  }
}

/* ─────────────────────────────────────────
   お知らせ詳細（single.php）
───────────────────────────────────────── */
.news-detail {
  padding: 80px 0 140px;
  background-color: #fff;
}

.news-detail__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.news-article__head {
  padding-bottom: 28px;
  border-bottom: 1px solid #c8c2b8;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.news-article__date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 17px;
  letter-spacing: 0.51px;
  color: #1d2e45;
}

.news-article__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 30px;
  border: 1px solid #07344d;
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.45px;
  line-height: 1.5;
  color: #07344d;
  white-space: nowrap;
}

.news-article__title {
  font-family: 'Shippori Mincho', serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.9px;
  color: #1d2e45;
  margin: 0;
}

.news-article__thumb {
  margin-top: 40px;
}

.news-article__thumb-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 本文（投稿エディタで入力した内容） */
.news-article__body {
  margin-top: 40px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.48px;
  color: #191e2e;
  overflow-wrap: anywhere;
}

.news-article__body > *:first-child {
  margin-top: 0;
}

.news-article__body p {
  margin: 0 0 1.6em;
}

.news-article__body h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  color: #1d2e45;
  margin: 2.2em 0 0.9em;
  padding-bottom: 12px;
  border-bottom: 1px solid #c8c2b8;
}

.news-article__body h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: #1d2e45;
  margin: 2em 0 0.8em;
  padding-left: 14px;
  border-left: 4px solid #07344d;
}

.news-article__body h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #1d2e45;
  margin: 1.8em 0 0.6em;
}

.news-article__body ul,
.news-article__body ol {
  margin: 0 0 1.6em;
  padding-left: 1.6em;
}

.news-article__body ul {
  list-style: disc;
}

.news-article__body ol {
  list-style: decimal;
}

.news-article__body li {
  margin-bottom: 0.4em;
}

.news-article__body a {
  color: #07344d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-article__body a:hover {
  opacity: 0.7;
}

.news-article__body img {
  max-width: 100%;
  height: auto;
}

.news-article__body figure {
  margin: 0 0 1.6em;
}

.news-article__body figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #5a6472;
}

.news-article__body blockquote {
  margin: 0 0 1.6em;
  padding: 16px 24px;
  background: #f1f3f4;
  border-left: 4px solid #c8c2b8;
}

.news-article__body table {
  width: 100%;
  margin: 0 0 1.6em;
  border-collapse: collapse;
  font-size: 15px;
}

.news-article__body th,
.news-article__body td {
  padding: 12px 16px;
  border: 1px solid #c8c2b8;
  text-align: left;
  vertical-align: top;
}

.news-article__body th {
  background: #f1f3f4;
  font-weight: 500;
}

.news-article__body hr {
  border: 0;
  border-top: 1px solid #c8c2b8;
  margin: 2.4em 0;
}

/* 前後の記事 / 一覧へ戻る */
.news-article__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #c8c2b8;
}

.news-article__nav-side--next {
  text-align: right;
}

.news-article__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Shippori Mincho', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.45px;
  color: #07344d;
  text-decoration: none;
  transition: opacity 0.3s;
}

.news-article__nav-link:hover {
  opacity: 0.6;
}

.news-article__nav-arrow {
  display: inline-flex;
}

.news-article__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 52px;
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid #07344d;
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
  color: #07344d;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.news-article__back:hover {
  background-color: #07344d;
  color: #fff;
}

@media (max-width: 560px) {
  .news-detail {
    padding: 40px 0 80px;
  }

  .news-detail__inner {
    padding: 0 20px;
  }

  .news-article__head {
    padding-bottom: 20px;
  }

  .news-article__meta {
    gap: 12px;
  }

  .news-article__date {
    font-size: 14px;
  }

  .news-article__category {
    padding: 2px 18px;
    font-size: 12px;
  }

  .news-article__title {
    font-size: 21px;
    line-height: 1.7;
    letter-spacing: 0.6px;
  }

  .news-article__thumb {
    margin-top: 28px;
  }

  .news-article__body {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.9;
  }

  .news-article__body h2 {
    font-size: 20px;
  }

  .news-article__body h3 {
    font-size: 18px;
  }

  .news-article__nav {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "back back"
      "prev next";
    gap: 24px 12px;
    margin-top: 56px;
    padding-top: 32px;
  }

  .news-article__back {
    grid-area: back;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .news-article__nav-side--prev {
    grid-area: prev;
  }

  .news-article__nav-side--next {
    grid-area: next;
  }

  .news-article__nav-link {
    font-size: 13px;
    gap: 8px;
  }
}
