@charset "utf-8";

/* ----------------------------------------
	archive-news
---------------------------------------- */

.h1-wrapper {
  padding-top: 12rem;
  position: relative;
  overflow: hidden;
}

.h1-wrapper::before {
  content: attr(data-en);
  position: absolute;
  top: 34%;
  left: -2%;
  z-index: -2;
  color: #e1f3e2;
  font-size: 250px;
  font-family: "ZCOOL XiaoWei", sans-serif;
  font-weight: 400;
  line-height: 0;
  white-space: nowrap;
}

.h1-content {
  width: 100%;
  height: 40vh;
  overflow: hidden;
}

.h1-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
  display: block;
}

.h1-ttl {
  margin: 0 15% 2rem 15%;
}

.h1-ttl h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 1.5rem;
}

.archive-list-wrapper {
    margin: 8rem 15%;
}

.archive-list {
    margin: 0 auto;
}

.archive-item {
    border-bottom: solid 1px #666;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.archive-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.archive-date {
  white-space: nowrap;
}

.archive-categories {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.archive-category {
  white-space: nowrap;
  background-color: #E1F3E2;
  border-radius: 20px;
  padding: 0 1rem;
}

.archive-excerpt-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; /* 余白 */
}

.archive-excerpt {
  flex: 1;
}

.archive-item:hover .archive-post-title,
.archive-item:hover .archive-excerpt {
  color: #39B54A;
}

.archive-item:hover i.fa-arrow-right {
  color: #fff;
  border: double 4px transparent;
  background-color: #39B54A;
  transform: rotateY(360deg);
}

/* 中央寄せ（親をflexに） */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* ページが多いとき折り返し可能に */
    gap: 1rem;
    margin-bottom: 4rem;
}

/* ページタブの共通スタイル */
.nav-links a.page-numbers,
.nav-links .current,
.nav-links a.prev,
.nav-links a.next,
.nav-links .dots {
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    background: #fff;
    color: #39b54a;
    border-radius: 50%;
    /* margin-right: 1rem; */
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #39b54a;
}

/* hover */
.nav-links a.page-numbers:hover {
    color: #39b54a;
    background-color: #E1F3E2;
    border-color: #E1F3E2;
}

/* 現在のページ */
.nav-links .current {
    background: #39b54a;
    color: #FFFFFF;
}

/* 前後リンク */
.nav-links a.prev,
.nav-links a.next {
    border: 1px solid #39b54a;
    color: #39b54a;
    position: relative;
}

/* 省略「…」 */
.nav-links .dots {
    background: transparent;
    border: none;
}

.btn-circle-wrapper {
    margin-top: 8rem;
    text-align: center;
}

/* 画面幅1180px以下：タブレット対応 */
@media screen and (max-width:1180px) {
  .h1-wrapper {
    padding-top: 8rem;
  }

  .h1-wrapper::before {
    font-size: 12rem;
    top: 31%;
  }

  .archive-list-wrapper {
    margin: 8rem 6%;
  }

  h2 {
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
  }
}

/* 画面幅767px以下：スマホ対応 */
@media screen and (max-width:767px) {
  .h1-wrapper {
    padding-top: 4rem;
  }

  .h1-wrapper::before {
    font-size: 11rem;
    top: 28%;
  }

  .h1-content {
    height: 30vh;
  }

  .h1-ttl {
    margin: 0 10% 2rem 10%;
  }

  .btn-circle-wrapper {
    margin-top: 4rem;
  }

  .archive-list-wrapper {
    margin: 4rem 6%;
  }

  h2 {
    font-size: 1.1rem;
  }
}

/* 画面幅575px以下：スマホ対応 */
@media screen and (max-width:575px) {
  .h1-wrapper::before {
    font-size: 8rem;
    top: 35%;
  }

  .h1-content {
    height: 25vh;
  }

  .h1-ttl {
    margin: 0 1rem 2rem 1rem;
  }

  .h1-ttl h1 {
    font-size: 1.2rem;
  }

  .h1-content-ttl {
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 1rem;
  }

  .archive-list-wrapper {
    margin: 4rem 1rem;
  }
}