@charset "utf-8";

/* ==================================================
   CATEGORY ARCHIVE
================================================== */

/* カテゴリーページのメイン画像 */

body.category .main-visual-sub .main-visual-sub-img {
  width: 100%;
  height: 100%;
}

@media (max-width: 767px) {
  body.category .main-visual-sub {
    height: 200px;
  }
}

body.category #postlist .InsideNavigation {
  display: flex;
  flex-direction: row-reverse;
  gap: clamp(40px, 8vw, 130px);
}

body.category #postlist .InsideNavigation_Contents {
  flex: 1;
  min-width: 0;
  padding-top: 40px;
}

body.category #postlist .post-list-box,
body.category #postlist .post-list {
  width: 100%;
}

body.category #postlist .post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.category #postlist .post-list > li {
  padding: 30px 20px;
  border-bottom: 1px solid #b5b5b6;
}

body.category #postlist .post-list > li:first-child {
  padding-top: 0;
}

body.category #postlist .post-list > li > a {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #231815;
  text-decoration: none;
}

body.category #postlist .post-list .data {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

body.category #postlist .post-list .data span {
  display: block;
  margin-left: 10px;
  padding: 5px 10px;
  border: 1px solid #22ac38;
  color: #22ac38;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .05em;
  text-align: center;
}

body.category #postlist .post-list .title-wrap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

body.category #postlist .post-list .title-wrap .title {
  margin: 0;
  color: #231815;
  line-height: 1.7;
  text-align: left;
}

/* 記事右側の矢印 */
body.category #postlist .InsideNavigation_Contents .right-yaji,
body.category #postlist .InsideNavigation_Navi .right-yaji {
  position: relative;
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 12px;
  margin-left: 15px;
}

body.category #postlist .right-yaji::before,
body.category #postlist .right-yaji::after {
  content: "";
  position: absolute;
  top: calc(50% - .5px);
  right: 0;
  width: 9.9px;
  height: 1px;
  border-radius: 9999px;
  background: #22ac38;
  transform-origin: calc(100% - .5px) 50%;
}

body.category #postlist .right-yaji::before {
  transform: rotate(38.15deg);
}

body.category #postlist .right-yaji::after {
  transform: rotate(-38.15deg);
}

/* カテゴリーナビゲーション */
body.category #postlist .InsideNavigation_Navi {
  width: 100%;
  max-width: 200px;
}

body.category #postlist .InsideNavigation_Navi_Header {
  margin: 0;
  color: #22ac38;
  font-size: 20px;
  letter-spacing: .05em;
}

body.category #postlist .InsideNavigation_Navi_List {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

body.category #postlist .InsideNavigation_Navi_List li + li {
  margin-top: 7px;
}

body.category #postlist .InsideNavigation_Navi_List a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #22ac38;
  color: #fff;
  text-decoration: none;
}

body.category #postlist .InsideNavigation_Navi_List a p {
  margin: 0;
  color: inherit;
  line-height: 1.3;
}

body.category #postlist .InsideNavigation_Navi_List a .right-yaji::before,
body.category #postlist .InsideNavigation_Navi_List a .right-yaji::after {
  background: #fff;
}

body.category #postlist .InsideNavigation_Navi_List a.current {
  border: 1px solid #22ac38;
  background: #fff;
  color: #22ac38;
}

body.category #postlist .InsideNavigation_Navi_List a.current .right-yaji::before,
body.category #postlist .InsideNavigation_Navi_List a.current .right-yaji::after {
  background: #22ac38;
}

/* ページネーション */
body.category #postlist .archive__pagination,
body.category #postlist .archive__pagination .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.category #postlist .archive__pagination .pagination {
  gap: 11px;
  margin-top: 50px;
}

body.category #postlist .archive__pagination .page-numbers:not(.dots) {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b5b5b6;
  border-radius: 50%;
  color: #22ac38;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
}

body.category #postlist .archive__pagination .page-numbers.current {
  border-color: #22ac38;
  background: #22ac38;
  color: #fff;
}

body.category #postlist .archive__pagination .page-numbers.next,
body.category #postlist .archive__pagination .page-numbers.prev {
  border: 0;
}

@media (max-width: 1023px) {
  body.category #postlist .InsideNavigation {
    flex-direction: column;
    gap: 50px;
  }

  body.category #postlist .InsideNavigation_Contents {
    width: 100%;
    padding-top: 0;
  }

  body.category #postlist .InsideNavigation_Navi {
    max-width: none;
  }

  body.category #postlist .InsideNavigation_Navi_Header {
    font-size: 25px;
    line-height: 1;
    text-align: center;
  }

  body.category #postlist .InsideNavigation_Navi_List {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-top: 15px;
  }

  body.category #postlist .InsideNavigation_Navi_List li + li {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  body.category #postlist .post-list > li {
    padding: 15px 0;
  }

  body.category #postlist .post-list > li > a {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  body.category #postlist .post-list .data {
    flex-wrap: wrap;
    gap: 5px 0;
    font-size: 14px;
  }

  body.category #postlist .post-list .data span {
    font-size: 10px;
  }

  body.category #postlist .post-list .title-wrap {
    width: 100%;
  }

  body.category #postlist .post-list .title-wrap .title {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body.category #postlist .InsideNavigation_Navi_List {
    grid-template-columns: 1fr;
  }
}
