@charset "UTF-8";


/*カテゴリー・事業所*/

.archive-page__categories {
  margin: 0 auto 10rem;
}

.archive-page__categories__office {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.6rem;
  align-items: center;
}

.archive-page__categories__office__title {
  margin-right: 2rem;
  margin-bottom: 1rem;
  font-size: 2.4rem;
  font-weight: bold;
  flex: 100%;
  display: inline-block;
}

.archive-page__categories__office__office-name a {
  background: #f2f1ec;
  padding: 0.25em 1em;
  margin-right: 1em;
  display: block;
  border-radius: 1rem;
  color: #008864;
  font-weight: bold;
}

.archive-page__categories__category {
  margin: 2rem auto;
}

.archive-page__categories__category__title {
  font-size: 2.4rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.archive-page__categories__category__list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
}

.archive-page__categories__category__list .cat-item a {
background: #f2f1ec;
    padding: 0.25em 1em;
    margin-right: 1em;
    display: block;
    border-radius: 1rem;
    color: #008864;
    font-weight: bold;
}

@media screen and (max-width: 767px) {

  .archive-page__categories__office {
    justify-content: center;
  }

  .archive-page__categories__office__title {
    margin: 0 auto 1rem;
    text-align: center;
  }

  .archive-page__categories__office__office-name a {
    margin: 0.5rem;
    font-size: 1.4rem;
    padding: 0 0.5em;
  }

  .archive-page__categories__category__title {
    text-align: center;
    margin: 0 auto 1rem;
  }
.archive-page__categories__category__list{
    justify-content: center;
  
}
  .archive-page__categories__category__list .cat-item a {
    margin: 0.5rem;
    font-size: 1.4rem;
    padding: 0 0.5em;
  }

}


/*記事一覧*/
.archive-page__posts-wrap{margin: 10rem auto 0;}

.archive-page__posts-list {
  display: flex;
  flex-wrap: wrap;
}

.archive-page__posts-item {
  width: 22%;
  margin-right: 4%;
  margin-bottom: 4%;
}

.archive-page__posts-item:nth-child(4n) {
  margin-right: 0;
}

.archive-page__posts-item__imgBox {
  width: 100%;
  height: min(200px,15vw);
  position: relative;
}

.archive-page__posts-item__imgBox img {
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #eee;
  position: relative;
}

.archive-page__posts-item__name {
  position: absolute;
  left: 0;
  top: 0;
  background: #9ec200;
  color: #fff;
  padding: 0 1em;
  font-size: 1.4rem;
  border-radius: 2rem 0 2rem 0;
}

.archive-page__posts-item__info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0.5rem 0;
}

.archive-page__posts-item__cat {
  padding: 0;
  font-size: .8em;
  font-weight: bold;
  color: #e06d74;
  font-weight: normal;
  /* border-bottom: 1px dashed; */
}

.archive-page__posts-item__date {
  font-size: 0.8em;
  margin-right: 1em;
}

.archive-page__posts-item__txt {
  font-size: 1.8rem;
  font-weight: bold;
  color: #008864;
}

@media screen and (max-width: 767px) {
  .archive-page__posts-item {
    width: 100%;
    margin: 0 auto 5rem;
  }

  .archive-page__posts-item__imgBox {
    height: 60vw;
  }

  .archive-page__posts-item__name {
    font-size: 1.3rem;
    padding: 0 .5em;
  }


  .archive-page__posts-item__cat {
    font-size: 1.4rem;
    padding: .5em;
    line-height: 1.2;
  }

  .archive-page__posts-item__txt {
    font-size: 1.8rem;
  }

}


/*ページネーション*/


.m-pagenation__body {
  display: flex;
  flex-wrap: wrap;
}

.m-pagenation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.m-pagenation__body li a {
  font-size: 1.8rem;
  margin: 0 1rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #008864;
  color: #fff;
}

.m-pagenation__body li a:hover {
  background: #e06d74;
  opacity: 1;
}

.m-pagenation__prev,.m-pagenation__nex {
  margin: 0 2rem;
}

.m-pagenation__body li.-current {
  font-size: 1.8rem;
  margin: 0 1rem;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e06d74;
  color: #fff;
}
.m-pagenation__next,
.m-pagenation__prev {
  margin: 0 1rem;
  width: 4rem;
  height: 4rem;
  line-height: 1;
  color: transparent;
  position: relative;
}
.m-pagenation__next a,
.m-pagenation__prev a{
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  background: #008864;
}

.m-pagenation__next a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #008864;
  pointer-events: none;
  transition: .2s;
}

.m-pagenation__next a::after {
  content: "";
  position: absolute;
  border-top: .2rem solid #fff;
  border-right: .2rem solid #fff;
  width: 1rem;
  height: 1rem;
  transform: rotate(45deg);
  right: 6px;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  pointer-events: none;
  transition: .2s;
}

.m-pagenation__prev a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #666;
  border-radius: 50%;
}

.m-pagenation__prev a::after {
  content: "";
  position: absolute;
  border-top: .2rem solid #fff;
  border-left: .2rem solid #fff;
  width: 1rem;
  height: 1rem;
  transform: rotate(-45deg);
  right: 0;
  left: 3px;
  top: 0;
  bottom: 0;
  margin: auto
}


.m-pagenation__next a:hover::before,
.m-pagenation__prev a:hover::before {
  background: #e06d74;
  opacity: 1;
}
    