@charset "UTF-8";


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

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

.archive-page__categories__office {
  margin: 6rem auto 2rem;
}

.archive-page__categories__office__title {
  font-size: 3rem;
  margin: 0 auto 3rem;
  font-family: "Noto Serif JP", "Times New Roman", "Hiragino Mincho ProN", "MS Mincho", "YuMincho", "Yu Mincho", serif;
  /* color: #f7ab00; */
}

.archive-page__categories__office__list {
  display: flex;
  flex-wrap: wrap;
}

.archive-page__categories__office__office-name a {
  background: #f7ab00;
  border: 1px solid #f7ab00;
  color: #fff;
  margin-right: 1em;
  display: block;
  padding: 0.5em 2.5em;
  border-radius: 1.2rem;
  transition: 0.2s;
}
.archive-page__categories__office__office-name a:hover{
  background: #fff;
  color: #f7ab00; 
  opacity:1;
}

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

.archive-page__categories__category__title {
  font-size: 3rem;
  margin: 0 auto 3rem;
  font-family: "Noto Serif JP", "Times New Roman", "Hiragino Mincho ProN", "MS Mincho", "YuMincho", "Yu Mincho", serif;
  /* color: #f7ab00; */
}

.archive-page__categories__category__list {
  display: flex;
  flex-wrap: wrap;
}

.archive-page__categories__category__list .cat-item a {
  padding: 0.5em 2.5em;
  margin-right: 1em;
  margin-top: 0.5em;
  display: block;
  background: #fff;
  color: #f7ab00;
  border: 1px solid #f7ab00;
  border-radius: 1.2rem;
  transition: 0.2s;
}
.archive-page__categories__category__list .cat-item a:hover{
  background: #f7ab00;
  color: #fff; 
  opacity:1;
}
@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: 1rem 1.2rem;
  }

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

  .archive-page__categories__category__list .cat-item a {
    margin: 0.5rem;
    font-size: 1.4rem;
    padding: 1rem 1.2rem;
  }

}


/*記事一覧*/


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

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

.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 {
  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: #000;
  color: #fff;
  padding: 0 1em;
  font-size: 1.4rem;
}

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

.archive-page__posts-item__cat {
  background: #eee;
  padding: 0 1em;
  font-size: .8em;
}

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

.archive-page__posts-item__txt {
  font-size: 2rem;
  font-weight: bold;
}

@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;
  row-gap: 0.5em;
}

.m-pagenation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10rem auto 0;
}

.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: #f7ab00;
  color: #fff;
}

.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: #ccc;
  color: #000;
}
.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%;
}
.m-pagenation__next a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #f7ab00;
  pointer-events: none;
}

.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;
}

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

.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
}