/**
 * Archive Page Styles (archive.php - NEWSアーカイブページ)
 *
 * ニュース一覧ページのスタイル
 */

.section8 {
  position: relative;
  margin-bottom: 0;
  background-color: #f7f7f7;
  padding-bottom: 32px;
}

.section8 .section8-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 150px;
  font-size: 20px;
  text-align: center;
  color: #000;
  padding: 0 14px;
}

.section8 .section8-title h2 {
  margin: 0;
  letter-spacing: 0.5em;
}

.section8 .section8-title .section8-title-p {
  margin: 10px 0 0;
  font-size: 14px;
}

.section8-link {
  text-decoration: none;
  color: #000;
  cursor: pointer;
  transition: color 0.3s ease;
}

.section8-link:hover {
  color: #cf0d37;
}

.section8 .container {
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (width <= 800px) {
  .section8 .container {
    margin: 0 8px;
  }
}

.section8 .container .card {
  background-color: #fff;
  color: #000;
  padding: 0 32px 24px;

  --image--width: 5rem;

  position: relative;
  margin-top: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.section8 .container .card .section8-img {
  display: block;
  margin-top: calc(var(--image--width) / -2);
  width: var(--image--width);
  object-fit: cover;
  position: absolute;
  left: 45%;
  background-color: #fff;
  padding: 8px 2px;
  border-radius: 4px;
}

@media (width <= 600px) {
  .section8 .container .card .section8-img {
    left: 40%;
  }
}

.section8 .container .card .section8-newstext {
  padding-top: 60px;
  font-size: 14px;
}

.section8 .container .card .section8-newstext p {
  margin: 8px 0;
  line-height: 1.6;
}

.section8 .container .card .section8-newstext span {
  color: #666;
  font-size: 12px;
}

.section8 .container .card .section8-newstext hr {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 12px 0;
}

/* ページネーション */
.section8 .pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.section8 .nav-links {
  display: flex;
  gap: 8px;
}

.section8 .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 4px;
  color: #666;
  background: #fff;
  border: 1px solid #666;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.section8 .page-numbers:hover {
  background: #f0f0f0;
  border-color: #cf0d37;
  color: #cf0d37;
}

.section8 .page-numbers.current {
  background: #cf0d37;
  color: #fff;
  border-color: #cf0d37;
}

.section8 .page-numbers.prev,
.section8 .page-numbers.next {
  background: transparent;
  border: none;
  color: #666;
}

.section8 .page-numbers.prev:hover,
.section8 .page-numbers.next:hover {
  color: #cf0d37;
}

.section8 .page-numbers.dots {
  background: transparent;
  border: none;
  color: #666;
  pointer-events: none;
}
