.page-news .news__box {
  padding-bottom: 40px;
}

/* 投稿詳細ページ */
.page-news-single .news-single {
  padding: 80px 0;
}

.page-news-single .news-single__article {
  max-width: 880px;
  margin: 0 auto;
}

.page-news-single .news-single__header {
  margin-bottom: 40px;
}

.page-news-single .news-single__date {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  color: #477ab3;
}

.page-news-single .news-single__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.6;
}

.news-single__content img {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
}

.page-news-single .news-single__content {
  line-height: 1.9;
  font-size: 20px;
}

.news-single__back {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

@media (max-width: 767px) {
  .page-news-single .news-single {
    padding: 60px 20px;
  }

  .page-news-single .news-single__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.6;
  }

  .news-single__content img {
    max-width: 200px;
    margin: 28px auto;
  }

  .page-news-single .news-single__content {
    line-height: 1.8;
    font-size: 18px;
  }
}

/* ==================================================
NEWSセクション共通レイアウト
・トップページ
・お知らせ一覧ページ
で共通使用するため news.css に配置

※元は top.css にあったが
一覧ページでも使用するため移動
================================================== */

.news {
  background: url("../images/news-bg.jpg") no-repeat center / cover;
  padding: 120px 20px;
}

.news__inner {
  max-width: 920px;
  margin: 0 auto;
}

/* 白い枠 */
.news__box {
  background: #fff;
  border: none;
  box-shadow: inset 0 0 0 3px #2b7bb2;
  border-radius: 12px;
  padding: 40px 40px 28px;
  box-sizing: border-box;
}

.news__head {
  text-align: center;
  margin-bottom: 24px;
}

/* list */
.news__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #2b7bb2;
}

.news__item {
  border-bottom: 1px solid #2b7bb2;
}

.news__link {
  display: grid;
  grid-template-columns: 132px auto 1fr 44px;
  align-items: center;
  gap: 16px;

  padding: 16px 0;
  text-decoration: none;
  color: inherit;

  transition: background-color 0.2s;
}

.news__date {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  padding: 0 14px;

  background: #477ab3;
  color: #fff;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.news__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;

  white-space: nowrap;
}

/* カテゴリ別色分け */
.news__cat--news {
  background: #eaf4fb;
  color: #2b7bb2;
}

.news__cat--column {
  background: #eef7f0;
  color: #2e7d5b;
}

.news__title {
  font-size: 18px;
  font-weight: 600;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.news__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition:
    transform 0.25s ease,
    opacity 0.25s;
}

.news__arrow img {
  width: 24px;
  height: 24px;
  display: block;
}

.news__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;
  padding-bottom: 16px;
}

.news__more-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.9;
}

.news__more-link:hover {
  text-decoration: underline;
}

.news__link:hover,
.news__link:focus-visible {
  outline: none;
  background-color: rgba(43, 123, 178, 0.05);
}

.news__link:hover .news__arrow {
  transform: translateX(6px);
  opacity: 1;
}
.news__link:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(43, 123, 178, 0.35);
}

/* empty */
.news__item--empty {
  border-bottom: 1px solid #2b7bb2;
}
.news__empty {
  display: block;
  padding: 22px 0;
  font-size: 16px;
  color: #666;
}

@media (max-width: 767px) {
  .news {
    padding: 60px 28px;
  }

  .news__inner {
    max-width: 100%;
  }

  .news__box {
    padding: 28px 18px 18px;
    border-radius: 10px;
  }

  .news__jp {
    font-size: 22px;
  }

  /* リスト */
  .news__link {
    display: block;
    padding: 14px 0;
  }

  /* 1段目：日付＋カテゴリ */
  .news__date {
    height: 30px;
    font-size: 14px;
    padding: 0 10px;
    letter-spacing: 0.08em;
  }

  .news__cat {
    height: 30px;
    font-size: 14px;
    padding: 0 10px;
  }

  .news__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
  }

  /* 2段目：タイトル＋矢印 */
  .news__body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .news__title {
    font-size: 16px;
    font-weight: 500;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .news__arrow {
    flex: 0 0 auto;
    opacity: 0.85;
    margin-top: 2px;
  }

  .news__arrow img {
    width: 22px;
    height: 22px;
  }

  .news__more {
    margin-top: 28px;
    padding-bottom: 8px;
  }
}

/* ==================================================
お知らせ一覧レイアウト（PC用）
SPでは縦レイアウトのため news__meta / news__body を使用。
PCでは display: contents を使い、子要素だけを
gridレイアウトに参加させて横並びに戻す。
================================================== */
@media (min-width: 768px) {
  /* お知らせ行レイアウト（PC） */
  .news__link {
    display: grid;
    grid-template-columns: 132px auto 1fr 44px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
  }

  /* ラッパーを無効化して中身だけをgridに参加させる */
  .news__meta,
  .news__body {
    display: contents;
  }

  /* 矢印を右端に配置 */
  .news__arrow {
    justify-self: end;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* タブレットだけ適用 */
  /* 投稿詳細ページ */
  .page-news-single .news-single {
    padding: 80px 40px;
  }

  .page-news-single .news-single__header {
    margin-bottom: 40px;
  }

  .page-news-single .news-single__title {
    font-size: 28px;
  }

  .news-single__content img {
    max-width: 300px;
  }

  .page-news-single .news-single__content {
    line-height: 1.8;
    font-size: 18px;
  }
}
