/*============================== START SEC case ==============================*/
.c-case {
  position: relative;
  background: url("../images/top/case-bg.webp") no-repeat top center;
  background-size: cover;
  padding: 3rem 0 6rem;
}

.c-case__item {
  background: #fff;
  border-radius: 1.6rem;
  box-shadow: 0 0 10px #f0f0f0;
  border: 1px solid #f0f0f0;
}
.c-case__item:not(.c-case__item:last-child) {
  margin-bottom: 2rem;
}

.c-case__head {
  position: relative;
  background: url("../images/top/case-icon.webp") no-repeat top 1rem right 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #ccc;
  padding: 1.5rem 0;
}

.c-case__number {
  position: relative;
  z-index: 0;
}
.c-case__number:before {
  position: absolute;
  content: "";
  background: var(--gray);
  clip-path: polygon(calc(100% - 1.5rem) 0, 100% 50%, calc(100% - 1.5rem) 100%, 0 100%, 0 0);
  width: 100%;
  height: 100%;
  left: 0;
  top: 4px;
  z-index: -1;
}
.c-case__number:after {
  position: absolute;
  content: "";
  background: #d0c400;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  width: 1rem;
  height: 1rem;
  bottom: -1rem;
  left: -1rem;
}
.c-case__number span {
  position: relative;
  display: inline-block;
  width: calc(100% + 1rem);
  background: var(--yellow);
  clip-path: polygon(calc(100% - 1.5rem) 0, 100% 50%, calc(100% - 1.5rem) 100%, 0 100%, 0 0);
  text-align: center;
  font-size: 1.6rem;
  font-family: var(--font-Noto-en);
  font-weight: bold;
  color: #000;
  padding: 0.3rem;
  margin-left: -1rem;
  z-index: 0;
}

.c-case__title {
  font-size: 1.6rem;
  font-weight: bold;
  padding-right: 0.5rem;
}

.c-case__detail {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: 2rem 1rem;
}

.c-case__arrow {
  width: 100%;
  background: url("../images/top/case-arr.webp") no-repeat center left;
  background-size: 3rem;
  padding-left: 4rem;
}
.c-case__detail .c-btn {
  width: 100%;
}
.pagination.pagination__detail {
  position: relative;
}
@media only screen and (max-width: 767px) {
  .c-case {
    background-repeat: repeat;
    background-size: contain;
  }
  .c-case__list {
    padding: 0 1rem;
  }
  .c-case__number {
    width: 9rem;
    min-width: 9rem;
  }
  .c-case__number span {
    padding: 1rem 0.3rem;
  }
  .c-case__arrow {
    margin-top: 1rem;
  }
}
@media only screen and (min-width: 768px) {
  .c-case {
    padding: 6rem 0 13rem;
  }
  .c-case__item:not(.c-case__item:last-child) {
    margin-bottom: 5rem;
  }
  .c-case__head {
    padding: 3rem 4rem 3rem 0;
    gap: 2rem;
  }
  .c-case__number {
    width: 22rem;
    min-width: 22rem;
  }
  .c-case__number:before {
    clip-path: polygon(calc(100% - 2.5rem) 0, 100% 50%, calc(100% - 2.5rem) 100%, 0 100%, 0 0);
  }
  .c-case__number:after {
    width: 1.2rem;
    height: 1.2rem;
    bottom: -1.2rem;
    left: -1.2rem;
  }
  .c-case__number span {
    width: calc(100% + 1.2rem);
    clip-path: polygon(calc(100% - 2.5rem) 0, 100% 50%, calc(100% - 2.5rem) 100%, 0 100%, 0 0);
    margin-left: -1.2rem;
    font-size: 2.4rem;
  }
  .c-case__title {
    font-size: 2rem;
  }
  .c-case__detail {
    padding: 4rem;
    gap: 2rem;
  }
  .c-case__arrow {
    flex: 1;
    min-width: 40%;
    background-size: 4.4rem;
    padding-left: 7rem;
  }
  .pagination.pagination__detail .btn-prev {
    position: absolute;
    top: 0;
    left: 0;
  }
  .pagination.pagination__detail .btn-next {
    position: absolute;
    top: 0;
    right: 0;
  }
}


.post-type-archive-consultations .c-case__item {
	background-color:#efefef;
	display:block;
	text-decoration:none;
}