@charset "UTF-8";
/*
カード群
------------------------------ */
.archive-section {
  position: relative;
  width: 100%;
  background-color: var(--white);
  padding: 24px 0 100px 0;
}

.archive-section::before {
  content: none;
}

.archive-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  margin-top: 40px;
}

.post-card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: var(--white);
  position: relative;
  z-index: 1;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 4px;
}

.post-card a:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.post-image {
  position: relative;
  overflow: hidden;
}

.post-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1); 
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.post-card a:hover .post-image::before {
  opacity: 1;
}

.post-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-content {
  flex: 1;
  padding: 12px;
  position: relative;
  overflow: hidden;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

.post-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/bg/uroko-small-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.post-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  color: var(--dark-blue);
  border: 1px solid var(--dark-blue);
  padding: 1px 6px;
  margin-bottom: 6px;
  border-radius: 2px;
  width: fit-content;
}

.post-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-weight: bold;
  color: var(--dark-blue);
  line-height: 1.5;
  height: 4.5em;
  margin-bottom: 4px;
  word-break: break-all;
  font-size: 14px;
}

.post-date {
  margin-top: auto;
  display: block;
  font-size: 12px;
  color: var(--dark-blue);
  position: relative;
  z-index: 1;
}

.post-badge, 
.post-title, 
.post-date {
  position: relative;
  z-index: 1;
}

.more-button-container {
  text-align: center;
  margin-top: 60px;
}

.btn-more {
  background-color: var(--blue);
  color: var(--white);
  padding: 12px 48px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
}

.btn-more:hover {
  opacity: 0.8;
}

@media (hover: hover) {
  .post-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
}

.post-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-img-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 100, 200, 0.1); 
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .post-card a:hover .post-img-wrapper::before {
    opacity: 1;
  }
}


/*
ページャー
------------------------------ */
.pagination-container {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 80px;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各アイテムの基本スタイル */
.pagination-item a, 
.pagination-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* 通常時：白背景に青枠 */
.pagination-item a {
  background-color: var(--blue);
  color: var(--white);
  border: 1px solid var(--gray);
}

/* ホバー時とアクティブ（現在地）時：青背景に白文字 */
.pagination-item a:hover {
  background-color: var(--dark-blue);
  color: var(--white);
  border-color: var(--gray);
}

.pagination-item.is-active a {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gray);
}

/* 「...」の部分 */
.pagination-item span {
  color: var(--dark-blue);
  border: none;
}

/* 矢印（くの字）の共通設定 */
.pagination-item.prev a::before,
.pagination-item.next a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: inline-block;
}

/* 前へ（左向き） */
.pagination-item.prev a::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

/* 次へ（右向き） */
.pagination-item.next a::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* WordPressが書き出す外枠 (.nav-links) */
.pagination-container .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* 各アイテム (a と span) の共通スタイル */
.pagination-container .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  
  /* 元のスタイルを適用 */
  background-color: var(--blue);
  color: var(--white);
  border: 1px solid var(--gray);
}

/* ホバー時 */
.pagination-container a.page-numbers:hover {
  background-color: var(--dark-blue);
}

/* 現在のページ (.current) */
.pagination-container .page-numbers.current {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gray);
}

/* 「...」の部分 (.dots) */
.pagination-container .page-numbers.dots {
  background-color: transparent;
  color: var(--dark-blue);
  border: none;
}

/* 矢印（くの字）の設定 */
.pagination-container .prev.page-numbers::before,
.pagination-container .next.page-numbers::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: inline-block;
}

.pagination-container .prev.page-numbers::before {
  transform: rotate(-135deg);
}

.pagination-container .next.page-numbers::before {
  transform: rotate(45deg);
}








/* --- 5. レスポンシブ --- */
@media screen and (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }

  .post-content {
    padding: 4px;
  }

  .post-date {
    font-size: 10px;
  }

  .pagination-item a, 
  .pagination-item span {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }


}