/* ===== ARCHIVE NEWS PAGE ===== */

/* page-hero: タイトルバーのみ（intro boxなし） */
.page-hero--simple {
  padding-bottom: 0;
}
.page-hero--simple .page-hero__tit {
  margin-bottom: 0;
}

/* ===== コンテンツラッパー ===== */
.news-archive {
  background: var(--bg);
  padding: 56px 0 80px;
}
.news-archive__inner {
  width: 1077px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* ===== 白カード ===== */
.news-archive-box {
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 44px) 100%, 0 100%);
  padding: 16px 56px 0;
}

/* ===== ニュースアイテム ===== */
.news-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.news-item.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.news-item__link {
  display: flex;
  width: 100%;
  gap: 40px;
  align-items: flex-start;
  padding: 32px 0;
  text-decoration: none;
  transition: opacity .2s;
}
.news-item__link:hover { opacity: .75; }

/* サムネイル */
.news-item__thumb {
  flex-shrink: 0;
  width: 300px;
  height: 220px;
  position: relative;
  overflow: hidden;
}
.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* カテゴリタグ（サムネイル右下） */
.news-item__cat {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--orange);
  color: var(--white);
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .1em;
  padding: 6px 20px 6px 30px;
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
  white-space: nowrap;
}

/* テキストエリア */
.news-item__body {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-item__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #000;
  line-height: 1.6;
}
.news-item__date {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -.02em;
}

/* 区切り線 */
.news-item__divider {
  height: 2px;
  background: var(--orange);
}

/* ===== ページネーション ===== */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-pagination__prev,
.news-pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .1em;
  text-decoration: none;
  height: 40px;
  padding: 0 56px;
  white-space: nowrap;
  transition: opacity .2s;
}
.news-pagination__prev:hover,
.news-pagination__next:hover { opacity: .8; }

/* 前へ：左辺が斜め（services__title-bar と同じ向き） */
.news-pagination__prev {
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
}
/* 次へ：右辺が斜め（前への左右反転） */
.news-pagination__next {
  clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}

/* ページ番号 */
.news-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #000;
}
.news-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  color: #000;
  font-family: 'M PLUS 2', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.news-pagination__page:hover {
  background: var(--orange);
  color: var(--white);
}
.news-pagination__page.is-current {
  background: var(--orange);
  color: var(--white);
}
.news-pagination__dots {
  font-family: 'M PLUS 2', sans-serif;
  font-size: 14px;
  color: #000;
  letter-spacing: .1em;
  padding: 0 4px;
}

/* ===== 1100px以下 ===== */
@media (max-width: 1100px) {
  .news-item__thumb { width: 260px; height: 195px; }
  .news-item__title { font-size: 22px; }
}

/* ===== 900px以下 ===== */
@media (max-width: 900px) {
  .news-archive { padding: 40px 0 60px; }
  .news-archive__inner { gap: 40px; }
  .news-archive-box { padding: 8px 24px 0; }

  .news-item__link { gap: 20px; padding: 24px 0; }
  .news-item__thumb { width: 180px; height: 135px; }
}

/* ===== 501〜900px ===== */
@media (min-width: 501px) and (max-width: 900px) {
  .news-item__cat { font-size: 14px; }
  .news-item__title { font-size: 20px; }
  .news-item__date { font-size: 13px; }
}

/* ===== 700px以下 ===== */
@media (max-width: 700px) {
  .news-item__link { flex-direction: column; align-items: stretch; gap: 12px; }
  .news-item__thumb { width: 100%; height: 220px; flex-shrink: unset; }
  .news-item__title { font-size: 18px; }
  .news-item__date { font-size: 12px; }
  .news-item__cat { padding: 5px 16px 5px 24px; }

  .news-pagination__prev,
  .news-pagination__next { font-size: 16px; height: 40px; padding: 0 56px; }
  .news-pagination__page { width: 36px; height: 36px; font-size: 18px; }
  .news-pagination__dots { font-size: 16px; }
}

/* ===== 500px以下 ===== */
@media (max-width: 500px) {
  .news-archive__inner { max-width: calc(100% - 24px); }
  .news-archive-box { padding: 4px 16px 0; }

  .news-item__link { flex-direction: column; align-items: stretch; gap: 12px; padding: 20px 0; }
  .news-item__thumb { width: 100%; height: 200px; flex-shrink: unset; }
  .news-item__body { padding-top: 0; }
  .news-item__cat { font-size: 13px; }
  .news-item__title { font-size: 16px; }
  .news-item__date { font-size: 12px; }

  .news-pagination { gap: 12px; }
  .news-pagination__prev,
  .news-pagination__next { font-size: 16px; height: 40px; padding: 0 36px; }
  .news-pagination__pages { gap: 4px; }
  .news-pagination__page { width: 32px; height: 32px; font-size: 16px; }
}
