/* News list shared by the home page and news archive. */
.news__list {
  overflow: hidden;
  border-top: 1px solid rgba(194, 198, 209, 0.7);
  border-radius: var(--radius-3xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.news__list .news-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--surface-container);
  padding: 1.75rem 2rem;
}

.news-item__date {
  width: 8rem;
  flex-shrink: 0;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.news-item__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7rem;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  background: rgba(0, 51, 102, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.news-item__title {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75rem;
  transition: color 0.3s ease;
}

.news-item:hover .news-item__title {
  color: var(--secondary);
}

.news__empty {
  margin: 0;
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  background: var(--white);
  color: var(--on-surface-variant);
  text-align: center;
}

.news__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .news__list {
    border-radius: var(--radius-2xl);
  }
  .news__list .news-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 0.5rem 0.75rem;
    border-color: var(--surface-outline);
    padding: 1.5rem;
  }
  .news-item__category {
    width: auto;
    max-width: 100%;
  }
  .news-item__date {
    width: auto;
  }
  .news-item__body {
    grid-column: 1/-1;
  }
  .news-item__title {
    font-size: 1rem;
    line-height: 1.55;
  }
  .news__more {
    justify-content: flex-start;
  }
}
/* Archive: news list */
/* ==========================================================================
   Page: お知らせ一覧
   ========================================================================== */
.page-main--news {
  background: var(--background);
}

.page-hero--news .page-hero__image {
  object-position: center 52%;
}

.page-hero--news .page-hero__overlay {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.94) 0%, rgba(0, 79, 111, 0.78) 54%, rgba(0, 55, 79, 0.52) 100%);
}

@media (max-width: 767px) {
  .page-hero--news .page-hero__image {
    object-position: 70% center;
  }
}
.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.news-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination .page-numbers li {
  margin: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid rgba(0, 51, 102, 0.16);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.875rem;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.news-pagination .page-numbers a:hover,
.news-pagination .page-numbers a:focus {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.news-pagination .page-numbers .current {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.news-pagination .material-symbols-outlined {
  font-size: 1.25rem;
}

@media (max-width: 767px) {
  .news-pagination {
    margin-top: 2rem;
  }
  .news-pagination .page-numbers a,
  .news-pagination .page-numbers span {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
}
/* Single: お知らせ詳細・前後記事ナビゲーション */
.news-single__inner {
  max-width: 1120px;
}

.news-single__content {
  border-radius: var(--radius-3xl);
  padding: 4rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.news-single__page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.news-single__page-links span,
.news-single__page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--primary);
  font-weight: 800;
}

.news-single__post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.news-single__post-nav-item {
  min-width: 0;
}

.news-single__post-nav-item--next {
  grid-column: 2;
  text-align: right;
}

.news-single__post-nav a {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  max-width: 26rem;
  padding: 0.5rem 0;
  color: var(--primary);
}

.news-single__post-nav-item--next a {
  grid-template-columns: minmax(0, 1fr) auto;
}

.news-single__post-nav-copy {
  min-width: 0;
}

.news-single__post-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  font-size: 1.125rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.news-single__post-nav a:hover .news-single__post-nav-icon,
.news-single__post-nav a:focus-visible .news-single__post-nav-icon {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.news-single__post-nav-item--prev a:hover .news-single__post-nav-icon,
.news-single__post-nav-item--prev a:focus-visible .news-single__post-nav-icon {
  transform: translateX(-0.2rem);
}

.news-single__post-nav-item--next a:hover .news-single__post-nav-icon,
.news-single__post-nav-item--next a:focus-visible .news-single__post-nav-icon {
  transform: translateX(0.2rem);
}

.news-single__post-nav-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.news-single__post-nav-title {
  display: block;
  overflow-wrap: anywhere;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgba(0, 51, 102, 0.22);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.25s ease;
}

.news-single__post-nav a:hover .news-single__post-nav-title,
.news-single__post-nav a:focus-visible .news-single__post-nav-title {
  text-decoration-color: var(--primary);
}

.news-single__back {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

@media (max-width: 767px) {
  .news-single__content {
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem;
  }
  .news-single__post-nav {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 3rem;
  }
  .news-single__post-nav-item--next {
    grid-column: auto;
    text-align: left;
  }
  .news-single__back {
    margin-top: 3rem;
  }
  .news-single__back .button {
    width: 100%;
  }
}
