/* 作成者: 羽祢田 */
/* container */
.archive_container {
  padding-top: 10.6rem;
  background-color: #D9EAF2;
}
.archive_contents {
  font-family: var(--NotoSans);
  font-weight: 400;
  background-color: #EAECEF;
  padding: 10rem 10rem 15rem;
  border: 0.1rem solid #000;
  border-radius: 0 5rem 0 0;
}
.archive_wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
}
/* sidebar_category */
/* .cat_sing_wrap {
  width: 100%;
  display: flex;
} */
.archive_sidebar {
  position: sticky;
  top: 10rem;
  height: fit-content;
}
.archive_sidebar_title {
  font-family: var(--Alegreya);
  font-size: 2.2rem;
  letter-spacing: calc(0.33em / 22);
}
.archive_category_list {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}
.category_list_item {
  font-size: 1.7rem;
  letter-spacing: calc(0.26em / 17);
  padding-left: 2.4rem;
  position: relative;
}
.category_list_item.is_current {
  font-weight: 500;
}
.category_list_item.is_current::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #000000;
  position: absolute;
  top: 1rem;
  left: 1rem;
}
/* archive_posts */
.archive_list {
  width: 88rem;
  position: relative;
  display: grid;
  row-gap: 7rem;
}
.archive_post {
  display: flex;
}
.archive_thumbnail_box {
  width: 25rem;
  height: 25rem;
  border: 0.2rem solid #000;
  border-radius: 1rem;
  position: relative;
  z-index: 1;
}
.archive_thumbnail_img {
  border-radius: 1rem;
}
.bg_color {
  background-color: #FFFFFF;
}

.wews_cont_warp {
  width: 63rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.archive_post_text {
  padding-left: 2.5rem;
  position: relative;
  z-index: 0;
}
/* [common] archive_category, archive_more */
.archive_decoration {
  font-size: 1.3rem;
  padding: 0.1rem 4rem;
  color: #FFF;
  background-color: #000;
  border-radius: 1.1rem;
  height: 2.1rem;
  position: relative;
  z-index: 1;
}
.archive_category_area {
  gap: 1.4rem 2rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  position: relative;
}
.archive_category_wrap {
  height: fit-content;
}
.archive_category_wrap::before {
  content: "";
  width: 63.175rem;
  height: 0.2rem;
  background-color: #000;
  position: absolute;
  left: -2rem;
  top: 1rem;
}
  .archive_category_area.line2::before { /* カテゴリが2列以上のときだけ横線を追加 */
    content: "";
    width: 61rem;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: -2rem;
    top: 4.5rem;
  }

.archive_post_date {
  font-family: var(--ZenOldMincho);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: calc(0.7em / 14);
  display: inline-block;
  padding-bottom: 0.7rem;
}
.archive_post_title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: calc(0.75em / 15);
  padding-bottom: 2.5rem;
}
.archive_post_excerpt {
  font-size: 1.5rem;
  letter-spacing: calc(0.75em / 15);
  line-height: calc(32 / 15);
}
.archive_more_wrap {
  margin-left: 46.5rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.archive_more_wrap::before {
  content: "";
  width: 63.175rem;
  height: 0.2rem;
  background-color: #000;
  position: absolute;
  left: -48.6rem;
  top: 1rem;
  z-index: 0;
}
/* archive_pagination */
.archive_pagination {
  text-align: center;
  margin-top: 10rem;
}
.archive_pagination .page-numbers {
  display: inline-block;
  margin: 0 1rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50%;
  font-size: 1.3rem;
  background-color: #FFF;
  width: 2.9rem;
  height: 2.9rem;
}
.archive_pagination .page-numbers.current {
  background-color: #000;
  color: #FFF;
}

.nav-links {
  position: relative;
  top: 0;
  right: 2.5rem;
}
.no_post {
  font-size: 1.6rem;
  padding: 0.4rem 2.8rem;
}


@media screen and (max-width: 699.98px) {
  /* container */
  .archive_container {
    max-width: 100%;
    padding-top: 8rem;
    background-color:#F1F7FA ;
  }
  .archive_contents {
    padding: 4.2rem 3rem 14.5rem;
  }
  .archive_wrapper {
    flex-direction: column;
  }


  /* sidebar_category */
  .cat_sing_wrap {
    width: 100%;
    display: flex;
  }
  .archive_sidebar {
    position: static;
  }
  .archive_category_menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1rem;
  }
  .archive_category_list {
    display: none;  /* 初期状態は非表示 */
    padding-bottom: 1rem;
  }
  .archive_category_list.is_open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 3rem;
  }
  .archive_category_toggle {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
    background: #000;
    color: #FFF;
    border-radius: 50%;
  }
  .archive_category_toggle .icon {
    display: block;
    text-align: center;
    line-height: calc(25 / 25);
  }
  /* archive_posts */
  .archive_list {
    margin-top: 10.1rem;
    width: 100%;
    row-gap: 4rem;
  }
  .archive_post {
    flex-direction: column;
  }
  .archive_thumbnail_box {
    width: 100%;
    height: 20rem;
    margin-bottom: 1.4rem;
  }
  .wews_cont_warp {
    width: 100%;
    padding-left: 0;
  }
  .archive_post_text {
    width: 100%;
    height: fit-content;
    margin-bottom: 1.45rem;
  }

  .archive_category_area::before {
    width: 100%;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: 0rem;
    top: 1rem;
  }

  .archive_category_wrap {
    position: relative;
  }
  .archive_category_wrap::before {
    content: "";
    width: 31.5rem;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 1rem;
   }

  .archive_category_area.line::before { /* カテゴリが3列以上のときだけ横線を追加 */
    content: "";
    width: 31.5rem;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 3.6rem;
  }
  .archive_category_area.line::after { /* カテゴリが3列のときだけ横線を追加 */
    content: "";
    width: 31.5rem;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 6.4rem;
  }
  .archive_category_area.line3::after { /* カテゴリが3列のときだけ横線を追加 */
    content: "";
    width: 31.5rem;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 6.4rem;
  }

  .archive_category_area.line2::before { /* カテゴリが2列以上のときだけ横線を追加 */
    content: "";
    width: 31.5rem;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: 0;
    top: 3.6rem;
  }

  .archive_category_area {
    padding: 0 2rem;
    margin-bottom: 0.5rem;
    row-gap: 0.6rem;
  }

  .archive_decoration {
    font-size: 1.3rem;
    padding: 0.1rem 3.5rem;
  }

  .archive_post_date {
    padding-bottom: 1rem;
  }
  .archive_post_title {
    padding-bottom: 0;
  }
  .archive_post_excerpt {
    font-size: 1.4rem;
    letter-spacing: calc(0.7em / 14);
    line-height: calc(32 / 14);
  }

  /* archive_pagination */
  .archive_pagination {
    margin-top: 9rem;
  }

  .archive_more_wrap {
    margin-left: auto;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
  }
  .archive_more_wrap::before {
    content: "";
    width: 31.5rem;
    height: 0.2rem;
    background-color: #000;
    position: absolute;
    left: -20.1rem;
    top: 1rem;
    z-index: 0;
  }

  .nav-links {
    right: 0;
  }
}