/* 大枠 */
.archive_container {
  display: flex;
  background-color: #FFFEF8;
  color: #212121;
}

/* カテゴリー選択サイドバー */
.archive_sidebar {
  width: 23.9rem;
  height: 100%;
}

.sidebar_title {
  font-weight: 700;
  font-size: 2rem;
  padding: 3rem 7.3rem 3rem 6.2rem;
  border-bottom: 0.1rem solid #212121;
}

.sidebar_category_list {
  margin-top: 2.3rem;
  padding-left: 4.75rem;
}

.sidebar_category_item {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.45rem;
  position: relative;
}

.sidebar_category_item::before {
  background-color: #212121;
  content: '';
  display: block;
  height: 0.1rem;
  left: -1.75rem;
  position: absolute;
  top: 1.2rem;
  width: 1rem;
}

/* 今選んでいるカテゴリを太字にする */
.sidebar_category_link.is_current {
  font-weight: 700;
}

.sidebar_category_link {
  color: #212121;
}

/* アーカイブの記事一覧 */
.archive_wrapper {
  border-left: 0.1rem solid #212121;
  width: 104rem;
  padding: 4.9rem 10rem 34.8rem 10.1rem; 
}

.archive_title {
  position: relative;
  padding-left: 6.9rem;
  color: #212121;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3.9rem;
}

.archive_title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  width: 5.1rem;
  height: 4.7rem;
  background-image: url('../img/stones_line.svg');
  background-size: cover;
  background-position: center;
  vertical-align: middle;
}

/* archive_content */
.archive_list {
  display: grid;
  gap: 4rem;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  width: 100%;
}

.archive_item {
  height: 45rem;
  /* width: 40rem; */
  border: 0.1rem solid #212121;
  background-color: #F7F6F2;

  a{
    display: block;
    height: 100%;
  }
}

.archive_thumb_box {
  width: 39.8rem;
  height: 22.6rem;
  border-bottom: 0.1rem solid #212121;
  margin-bottom: 1.8rem;
}

.archive_thumb {
  width: 100%;
  height: 100%;
}

.text_box {
  width: 36rem;
  margin: 0 auto;
}

.archive_meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.post_category {
  font-size: 1.2rem;
  font-weight: 700;
}

.post_date {
  color: #B1B1B1;
  font-size: 1.2rem;
  font-weight: 700;
}

.archive_post_title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 9.2rem;
}

.post_tags {
  height: 1.7rem;
  margin-bottom: 1.4rem;
  margin-top: -0.1rem;
  width: 100%;
}

.post_tag {
  color: #B1B1B1;
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 1rem;
}

.post_tag:first-child {
  margin-left: 0;
}

.no_post {
  font-size: 1.6rem;
}

/* sp */
@media screen and (max-width:699.98px) {

  /* 大枠 */
  .archive_container {
    flex-direction: column-reverse;
    padding: 0 1.5rem;
  }

  /* カテゴリー選択サイドバー */
  .archive_sidebar {
    border: 0.1rem solid #212121;
    height: fit-content;
    margin-bottom: 5rem;
    width: 100%;
  }

  .sidebar_title {
    border-bottom: 0;
    font-size: 1.8rem;
    padding: 2.5rem 1.262rem 2.25rem 1.257rem;
    text-align: center;
  }

  .sidebar_category_list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding-left: 4.75rem;
  }

  .sidebar_category_item {
    font-size: 1.4rem;
    height: 2rem;
    margin-bottom: 1.55rem;
    width: 13rem;
  }

  .sidebar_category_item:nth-of-type(2n) {
    margin-left: 1.975rem;
  }

  .sidebar_category_item::before {
    left: -1.75rem;
    top: 1.2rem;
  }

  /* アーカイブの記事一覧 */
  .archive_wrapper {
    border-left: none;
    width: 100%;
    padding: 2.8rem 0 3.8rem 0;
  }

  .archive_title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .archive_title::before {
    width: 4.3rem;
    height: 4rem;
  }

  /* archive_content */
  .archive_list {
    gap: 1.5rem;
  }

  .archive_item {
    height: 20rem;
    width: 16.5rem;
  }

  .archive_thumb_box {
    height: 9.3rem;
    margin-bottom: 0.7rem;
    width: 16.3rem;
  }

  .text_box {
    width: 14.7rem;
  }

  .archive_meta {
    margin-bottom: 0.7rem;
  }

  .post_category {
    font-size: 1rem;
  }

  .post_date {
    font-size: 1rem;
  }

  .archive_post_title {
    font-size: 1.2rem;
    line-height: calc(17 / 12);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 2.4rem;
  }

  .post_tags {
    height: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
  }

  .post_tag {
    font-size: 1rem;
    margin-left: 0.5rem;
  }

}