/* ===== お知らせ一覧・詳細 ===== */
* {
  box-sizing: border-box;
}

.c-news .l-inner {
  width: min(90%, 960px);
  margin: 0 auto;
}

.c-news .c-main section:last-child {
  margin-top: 60px;
  padding-bottom: 80px;
}

.c-news__container,
.c-news__detail {
  background: #fff;
  padding: 48px 56px;
}

/* ----- list ----- */
.c-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-news__item {
  border-bottom: 1px solid #e5e5e5;
}

.c-news__item:last-child {
  border-bottom: none;
}

.c-news__link {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}

.c-news__link:hover {
  opacity: .75;
}

.c-news__item:not(.has-thumb) .c-news__link {
  grid-template-columns: 1fr;
}

.c-news__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f6f7f8;
}

.c-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-news__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.c-news__date {
  color: #CDA700;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.c-news__cat {
  display: inline-flex;
  align-items: center;
  color: #1F2D5D;
  padding: 2px 12px;
  border: 1px solid #1F2D5D;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.c-news__site {
  color: #6F6F6F;
  font-size: 13px;
}

.c-news__title {
  margin: 0;
  color: #1F2D5D;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.c-news__lead {
  margin: 10px 0 0;
  color: #6F6F6F;
  font-size: 15px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-news__empty {
  color: #6F6F6F;
  font-size: 16px;
  text-align: center;
  padding: 40px 0;
}

/* ----- pagination（customer-voicesと同系統） ----- */
.c-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.c-pagination__list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-pagination__item {
  list-style: none;
}

.c-pagination__link,
.c-pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #1F2D5D;
  background: #fff;
  border-radius: 6px;
  transition: background-color .3s ease, color .3s ease;
}

.c-pagination__dots {
  font-weight: 400;
  color: #B0B0B0;
}

a.c-pagination__link:hover {
  background: #1F2D5D;
  color: #fff;
}

.c-pagination__link--current {
  background: #1F2D5D;
  color: #fff;
  pointer-events: none;
}

.c-pagination__arrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1F2D5D;
  transition: opacity .3s ease;
}

a.c-pagination__arrow:hover {
  opacity: .6;
}

.c-pagination__arrow.is-disabled {
  color: #B0B0B0;
  pointer-events: none;
}

/* ----- detail ----- */
.c-news__detail-header {
  margin-bottom: 32px;
}

.c-news__detail-title {
  margin: 0;
  color: #1F2D5D;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

.c-news__detail-lead {
  margin: 16px 0 0;
  color: #6F6F6F;
  font-size: 16px;
  line-height: 1.9;
}

.c-news__detail-thumb {
  margin: 0 0 36px;
}

.c-news__detail-thumb img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f6f7f8;
}

.c-news__detail-content {
  color: #333;
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
}

.c-news__detail-content p {
  margin: 0 0 1.4em;
}

.c-news__detail-content h2,
.c-news__detail-content h3 {
  color: #1F2D5D;
  margin: 1.8em 0 .8em;
  line-height: 1.5;
}

.c-news__detail-content img {
  max-width: 100%;
  height: auto;
}

.c-news__detail-content a {
  color: #1F2D5D;
  text-decoration: underline;
}

/* 掲載サイト（被リンク）ブロック */
.c-news__affiliate {
  margin-top: 48px;
  padding: 28px 32px;
  background: #f7f8fb;
  border: 1px solid #e5e8ef;
}

.c-news__affiliate-label {
  margin: 0 0 16px;
  color: #1F2D5D;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.c-news__affiliate-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.c-news__affiliate-logo img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.c-news__affiliate-name {
  margin: 0 0 10px;
  color: #1F2D5D;
  font-size: 18px;
  font-weight: 700;
}

.c-news__affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: #1F2D5D;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s ease, transform .15s ease;
}

.c-news__affiliate-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* 前後ナビ */
.c-news__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.c-news__nav a {
  color: #1F2D5D;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s ease;
}

.c-news__nav a:hover {
  opacity: .65;
}

.c-news__nav-prev {
  justify-self: start;
}

.c-news__nav-list {
  justify-self: center;
}

.c-news__nav-list a {
  display: inline-flex;
  padding: 8px 20px;
  border: 1px solid #1F2D5D;
  border-radius: 6px;
}

.c-news__nav-next {
  justify-self: end;
  text-align: right;
}

@media (max-width: 768px) {
  .c-news .c-main section:last-child {
    margin-top: 40px;
    padding-bottom: 48px;
  }

  .c-news__container,
  .c-news__detail {
    padding: 24px 16px;
  }

  .c-news__link {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .c-news__title {
    font-size: 17px;
  }

  .c-news__detail-title {
    font-size: 22px;
  }

  .c-news__affiliate {
    padding: 20px 16px;
  }

  .c-news__affiliate-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .c-news__nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .c-news__nav-prev,
  .c-news__nav-list,
  .c-news__nav-next {
    justify-self: stretch;
    text-align: center;
  }

  .c-pagination {
    margin-top: 28px;
  }

  .c-pagination__list {
    gap: 4px;
  }

  .c-pagination__link,
  .c-pagination__dots {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .c-pagination__arrow {
    font-size: 13px;
  }
}
