main.post-archive{
	background-image: url(../../assets/images/common/section__bg--geometric.svg);
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: 0% 0%;
    padding-bottom: 6rem;
}
/* =========================================
  投稿一覧ページ
========================================= */

.post-archive {
  background: #fff;
}

.post-archive__section {
  padding: 80px 0 100px;
}

.post-archive__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
/* =========================================================
  News
========================================================= */

/* 共通CSSの body.page:not(.home) main section 指定対策 */
body.page:not(.home) main.post-archive section.page-header {
  background-color: transparent;
  box-shadow: none;
  margin: 0 !important;
  padding: 1rem 0 !important;
}

/* 投稿一覧全体 */
.post-archive {
  background-image: url(../../assets/images/common/section__bg--geometric.svg);
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: 0% 0%;
  padding-bottom: 6rem;
}

/* 投稿一覧セクション */
body.page:not(.home) main.post-archive section.post-archive__section {
  width: min(100%, 1200px);
  margin: 0 auto 6rem;
  padding: 2.5rem;
  background: #fff;
  box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
}

/* 内側 */
.post-archive__inner {
/*  width: 100%;*/
  margin: 0 auto;
}

/* 見出し */
.post-archive__heading {
  position: relative;
  margin: 1rem 0 2.5rem !important;
  font-family: "Inter", sans-serif;
  font-size: 1.75rem !important;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #111;
}

.post-archive__heading::before {
  position: absolute;
  content: "";
  width: 2.5rem;
  height: 3px;
  background-color: #e60012;
  left: 0;
  top: -1rem;
  display: block;
}

/* 投稿一覧グリッド */
.post-archive__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

/* 投稿カード */
.post-card {
  background: #fff;
  border: 1px solid #e5e8ec;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 8px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.post-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* サムネイル */
.post-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f5f8fc;
}

.post-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card__link:hover .post-card__thumb img {
  transform: scale(1.06);
}

/* 本文エリア */
.post-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

/* 日付・カテゴリ */
.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.post-card__date {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  line-height: 1;
}

.post-card__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0.25rem 0.75rem;
  background: #e60012;
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* タイトル */
.post-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  color: #111;
  transition: color 0.3s ease;
}

.post-card__link:hover .post-card__title {
  color: #e60012;
}

/* 投稿なし */
.post-archive__empty {
  margin: 0;
  padding: 2rem;
  background: #f5f8fc;
  border-radius: 0.5rem;
  color: #333;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
}

/* =========================================================
  Pagination
========================================================= */

.pagination {
  margin-top: 4rem;
}

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

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

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: 0.3s ease;
}

.pagination .page-numbers a:hover,
.pagination .page-numbers .current {
  border-color: #e60012;
  background: #e60012;
  color: #fff;
}

.pagination .page-numbers .prev,
.pagination .page-numbers .next {
  min-width: 72px;
}

/* =========================================================
  SP
========================================================= */

@media screen and (max-width: 992px) {
  body.page:not(.home) main.post-archive section.post-archive__section {
    width: calc(100% - 48px);
    padding: 1.25rem;
  }

  .post-archive__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .post-archive__heading {
    font-size: 1.5rem !important;
  }
}

@media screen and (max-width: 640px) {
  body.page:not(.home) main.post-archive section.post-archive__section {
    width: calc(100% - 32px);
    margin-bottom: 4rem;
    padding: 1.25rem;
  }

  .post-archive {
    padding-bottom: 4rem;
  }

  .post-archive__list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-card__body {
    padding: 1rem 1rem 1.25rem;
  }

  .post-card__title {
    font-size: 0.95rem;
  }

  .pagination {
    margin-top: 3rem;
  }

  .pagination .page-numbers {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .pagination .page-numbers a,
  .pagination .page-numbers span {
    min-width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  .pagination .page-numbers .prev,
  .pagination .page-numbers .next {
    min-width: 64px;
  }
}



/* =========================================================
  News Archive Page Header
========================================================= */

/* 共通CSSの body.page:not(.home) main section の影響を打ち消す */
body.page:not(.home) main.post-archive section.page-header,
main.post-archive section.page-header {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  margin: 0 !important;
  padding: 1rem 0 !important;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: none;
  color: #fff;
}

/* 背景画像の上に薄いレイヤー */
main.post-archive .page-header__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(0, 25, 55, 0.72) 0%,
    rgba(0, 48, 90, 0.45) 45%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

/* 内側 */
main.post-archive .page-header__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 40px;
}

/* パンくず */
main.post-archive .page-header__breadcrumb {
  margin: 0 0 2.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  text-align: right;
}

main.post-archive .page-header__breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

main.post-archive .page-header__breadcrumb a:hover {
  opacity: 0.7;
}

/* タイトル・説明文 */
main.post-archive .page-header__content {
  max-width: 720px;
  padding: 3.5rem 0 4.5rem;
}

main.post-archive .page-header__title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

main.post-archive .page-header__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 28px;
  background: #e60012;
}

main.post-archive .page-header__description {
  margin: 36px 0 0;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
  SP
========================================================= */

@media screen and (max-width: 992px) {
  body.page:not(.home) main.post-archive section.page-header,
  main.post-archive section.page-header {
    min-height: 260px;
    padding: 6rem 0 4rem !important;
  }

  main.post-archive .page-header__inner {
    width: 100%;
    padding: 0 24px;
  }

  main.post-archive .page-header__breadcrumb {
    margin: 0 0 2rem;
    font-size: 0.85rem;
    text-align: left;
  }

  main.post-archive .page-header__content {
    padding: 0;
  }

  main.post-archive .page-header__title {
    font-size: 2.25rem;
  }

  main.post-archive .page-header__title::after {
    width: 56px;
    height: 3px;
    margin-top: 20px;
  }

  main.post-archive .page-header__description {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.7;
  }
}