/* ---------------------------------------------------- */
/* category_title */
.category_title h1 {
  font-size: 3.5rem;
  font-family: var(--NotoSerif);
  line-height: 1.4em;
  text-align: center;
  margin-top: 7rem;
}

/* ---------------------------------------------------- */
/* category */
.category {
  background-color: #ECECEC99;
  display: flex;
  justify-content: center;
  padding: 5.6rem 0;
  margin-top: 4.6rem;
}

.category_wrap {
  width: 96.2rem;
  display: flex;
  flex-wrap: wrap;
}

.category p {
  font-size: 1.3rem;
  font-family: var(--NotoSans);
  line-height: 1.9em;
  margin: 0 3.3rem 0 10.7rem;

}

.category a {
  font-size: 1.5rem;
  font-family: var(--NotoSans);
  line-height: 1.9em;
  border: 1px solid #707070;
  padding: 1.2rem 3.8rem;
  margin: 0.7rem 1rem;
  color: #393636;
  background-color: #FFFFFF;
}

.category a:hover {
  color: #FFFFFF;
  background-color: #393636;
}

/* ---------------------------------------------------- */
/* category_ul */

.category_outer{

  margin: 8.1rem auto 14rem;
  padding-left:16.2rem;
  max-width: 1280px;
}

.category_ul {
  width: 100%;
}

.category_a {
  display: block;
  width: fit-content;
  height: fit-content;
}

.category_a.regular {
  height: 19.9rem;
}

.category_a.long {
  height: 46.5rem;
}

.category_item {
  width: 30.4rem;
  height: 100%;
	overflow:	hidden;
	position:	relative;	/* 相対位置指定 */
  margin: 1rem 0;
}

.category_item.long {
  height: 46.5rem;
}

.category_item .caption {
  font-size: 1.5rem;
  font-family: var(--NotoSans);
  line-height: 2.6em;
  color: #FFFFFF;
}

.category_item .mask {
	width: 100%;
	height:	100%;
	position:	absolute;	/* 絶対位置指定 */
	top: 0;
	left: 0;
	opacity: 0;	/* マスクを表示しない */
	background-color:	rgba(0,0,0,0.4);	/* マスクは半透明 */
	transition:	all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category_item:hover .mask {
	opacity: 1;	/* マスクを表示する */
}

.category_item img {
  transition: 1s all;
}

.category_a:hover .category_item img {
  transform: scale(1.2,1.2);
  transition: 1s all;
}

/* ------------------------------------------------------ */
/* pagination */

.pagination {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin-bottom: 13.1rem;
}

.page-numbers {
  display: flex;
  margin: 0 0.5rem;
  color: #393636;
  font-size: 1.5rem;
  font-family: var(--NotoSans);
  line-height: 1.9em;
}

.next, .prev {
  display: none;
}

.current {
  position: relative;
}

.current::after {
  position: absolute;
  content: ".";
  top: 1rem;
  left: 0.2rem;
}



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

  main{
    padding-top: 3.1rem;
  }

  .category_title h1{
    margin: 0;
  }

  .category {
    flex-direction: column;
    padding:3rem 2.5rem;
  }

  .category p{
    margin: 0;
  }

  .category_wrap{
    width: 100%;
    gap: 2.5rem;
  }

  .category a{
    font-size: 1.4rem;
    margin: 0;
    padding: 1.2rem 3rem;
  }

  .category_outer{
    margin: 6.94rem auto 10rem;
    padding: 0 2.5rem ;
  }
  

  .category_item{
    width: 100%;
  }

  .pagination{
    margin-bottom: 5.5rem;
  }

}