/* ==========================================================================
   # News & Topics（一覧・カテゴリー一覧・詳細）
   ========================================================================== */

.nk-news .nk-hero__breadcrumb a {
  transition: opacity 0.4s;
}

.nk-news .nk-hero__breadcrumb a:hover {
  opacity: 0.6;
}

.c-inner.nk-news__inner {
  max-width: 1000px;
  padding-bottom: 120px;
}

/* 共通：日付・カテゴリー */
.nk-news-date {
  flex-shrink: 0;
  color: #363d40;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.nk-news-tag {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background-color: #e9f1f8;
  color: #363d40;
  font-size: 12px;
  line-height: 1;
}

/* ---------- ピックアップ ---------- */

.nk-news-pickup {
  margin-bottom: 72px;
}

.nk-news-pickup__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 24px;
}

.nk-news-pickup__title-en {
  background: linear-gradient(90deg, #185baa 0%, #348daa 51%, #6eb83f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: "Figtree", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.nk-news-pickup__title-ja {
  color: #363d40;
  font-size: 14px;
  font-weight: 500;
}

.nk-news-pickup__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.nk-news-card {
  display: flex;
  flex-direction: column;
  color: #363d40;
}

.nk-news-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 460 / 286;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  background-color: #fff;
}

.nk-news-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nk-news-thumb__img--logo {
  object-fit: contain;
}

.nk-news-card:hover .nk-news-thumb__img {
  transform: scale(1.05);
}

.nk-news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.nk-news-card__title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  transition: color 0.4s;
}

.nk-news-card:hover .nk-news-card__title {
  color: #1b5da8;
}

/* ---------- カテゴリー絞り込み ---------- */

.nk-news-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nk-news-filter__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid #1b5da8;
  border-radius: 999px;
  background-color: #fff;
  color: #1b5da8;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}

.nk-news-filter__link:hover,
.nk-news-filter__link.is-current {
  background-color: #1b5da8;
  color: #fff;
}

/* ---------- 一覧 ---------- */

.nk-news-list {
  margin-top: 32px;
  border-top: 1px solid #9b9fa2;
}

.nk-news-list__item {
  border-bottom: 1px solid #9b9fa2;
}

.nk-news-list__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 10px;
  color: #363d40;
  transition: color 0.4s;
}

.nk-news-list__link:hover {
  color: #1b5da8;
}

.nk-news-list__title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.nk-news-list__dot {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 0.4s;
}

.nk-news-list__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1b5da8;
  transform: translate(-50%, -50%);
}

.nk-news-list__link:hover .nk-news-list__dot {
  border-color: #d2d6db;
}

.nk-news-empty {
  margin-top: 40px;
  color: #363d40;
  text-align: center;
}

/* ---------- ページ送り ---------- */

.nk-news-pager {
  margin-top: 48px;
}

.nk-news-pager__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nk-news-pager .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid #d2d6db;
  border-radius: 4px;
  background-color: #fff;
  color: #363d40;
  font-family: "Figtree", sans-serif;
  font-size: 15px;
  transition: border-color 0.3s, color 0.3s;
}

.nk-news-pager a.page-numbers:hover {
  border-color: #1b5da8;
  color: #1b5da8;
}

.nk-news-pager .page-numbers.current {
  border-color: #1b5da8;
  background-color: #1b5da8;
  color: #fff;
}

.nk-news-pager .page-numbers.dots {
  border-color: transparent;
  background: none;
}

.nk-news-pager .prev,
.nk-news-pager .next {
  position: relative;
}

.nk-news-pager .prev::before,
.nk-news-pager .next::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateX(-1px);
}

.nk-news-pager .prev::before {
  transform: rotate(-135deg) translateX(-1px);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 詳細 ---------- */

.c-inner.nk-news-article {
  max-width: 880px;
  padding-bottom: 120px;
}

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

.nk-news-article__meta .nk-news-tag {
  transition: background-color 0.3s, color 0.3s;
}

.nk-news-article__meta .nk-news-tag:hover {
  background-color: #1b5da8;
  color: #fff;
}

.nk-news-article__title {
  margin-top: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid #9b9fa2;
  color: #202f39;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.nk-news-article__body {
  margin-top: 40px;
  color: #333;
  font-size: 16px;
  line-height: 2;
}

.nk-news-article__body > * + * {
  margin-top: 1.5em;
}

.nk-news-article__body h2 {
  margin-top: 2.5em;
  padding-left: 16px;
  border-left: 4px solid #1b5da8;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}

.nk-news-article__body h3 {
  margin-top: 2em;
  color: #1b5da8;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.nk-news-article__body a {
  color: #1b5da8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nk-news-article__body ul,
.nk-news-article__body ol {
  padding-left: 1.5em;
}

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

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

.nk-news-article__body img {
  height: auto;
  border-radius: 8px;
}

.nk-news-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid #9b9fa2;
}

.nk-news-nav__item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #363d40;
  transition: color 0.4s;
}

.nk-news-nav__item a:hover {
  color: #1b5da8;
}

.nk-news-nav__item--next {
  text-align: right;
}

.nk-news-nav__label {
  color: #1b5da8;
  font-size: 13px;
  font-weight: 700;
}

.nk-news-nav__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 1000px) {
  .nk-news-pickup__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .c-inner.nk-news__inner,
  .c-inner.nk-news-article {
    padding-bottom: 72px;
  }

  .nk-news-pickup {
    margin-bottom: 48px;
  }

  .nk-news-pickup__title-en {
    font-size: 26px;
  }

  .nk-news-pickup__list {
    grid-template-columns: 1fr;
  }

  .nk-news-filter__list {
    gap: 8px;
  }

  .nk-news-filter__link {
    min-width: 0;
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .nk-news-list__link {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 18px 4px;
  }

  .nk-news-list__title {
    flex-basis: calc(100% - 42px);
    font-size: 14px;
  }

  .nk-news-list__dot {
    margin-left: auto;
  }

  .nk-news-article__title {
    font-size: 21px;
  }

  .nk-news-article__body {
    font-size: 15px;
  }

  .nk-news-nav {
    grid-template-columns: 1fr 1fr;
  }

  .nk-news-nav__back {
    grid-row: 2;
    grid-column: 1 / -1;
  }
}
