/* p-case
---------------------------------------------------------------------------- */
.p-case {
  padding-top: 8rem;
}

.m-page-ttl-wrap {
  padding-bottom: 0;
}

@media screen and (max-width: 767px) {
  .p-case {
    padding-top: 10.6666666667vw;
  }
}
.p-case-content-wrap {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 12rem;
}

.p-case-main {
  width: 100%;
}

.p-case-item-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, calc(33.3333333333% - 2.6666666667rem));
  gap: 0 4rem;
}

@media screen and (max-width: 767px) {
  .p-case-content-wrap {
    flex-direction: column;
    padding-bottom: 16vw;
  }
  .p-case-item-wrap {
    display: block;
  }
}
.p-case-item-link {
  transition: all 0.3s;
}
.p-case-item-link:hover {
  color: #EDBB2B;
}
.p-case-item-link:hover .p-case-item-img {
  opacity: 0.9;
}

.p-case-item-img {
  display: block;
  height: auto;
  overflow: hidden;
}
.p-case-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
}

.p-case-item-cat-list {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  gap: 1rem 0.6rem;
}

.p-case-item-cat {
  display: block;
  color: #EDBB2B;
  font-size: 1.4rem;
  line-height: 1.5;
  letter-spacing: 0.08em;
  font-weight: 400;
  padding: 0.2rem 1.2rem;
  border: 1px solid #EDBB2B;
  background-color: #fff;
  border-radius: 9999px;
  transition: all 0.3s;
}
.p-case-item-cat.is-current {
  color: #fff;
  background-color: #EDBB2B;
}

a.p-case-item-cat:hover {
  color: #fff;
  background-color: #EDBB2B;
}

@media screen and (max-width: 767px) {
  .p-case-item-cat-list {
    gap: 2.6666666667vw;
    margin-bottom: 4vw;
  }
  .p-case-item-cat {
    font-size: 3.7333333333vw;
    padding: 0.5333333333vw 3.2vw;
    border: 0.2666666667vw solid #F6CA4A;
  }
  a.p-case-item-cat:hover {
    color: #fff;
    background-color: #F6CA4A;
  }
}
.p-case-item {
  display: contents;
}
.p-case-item .p-case-item-img {
  width: 100%;
  aspect-ratio: 255/143;
}

.p-case-item-inner {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  margin-bottom: 8rem;
  transition: all 0.3s;
}
.p-case-item-inner .p-case-item-cat-list {
  margin-top: 1.5rem;
}

.p-case-item-ttl {
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin: 3rem 0 2rem;
}

.p-case-item-info {
  display: flex;
  margin-bottom: 0.5rem;
}
.p-case-item-info dt {
  color: #EDBB2B;
  font-weight: 700;
  white-space: nowrap;
}

@media screen and (max-width: 767px) {
  .p-case-item-inner {
    display: block;
    margin-bottom: 10.6666666667vw;
  }
  .p-case-item-inner .p-case-item-cat-list {
    margin-top: 2.6666666667vw;
  }
  .p-case-item-txt {
    display: block;
    padding: 5.3333333333vw 5.3333333333vw 4vw;
  }
  .p-case-item-ttl {
    font-size: 4.8vw;
    margin: 2.6666666667vw 0 1.3333333333vw;
  }
  .p-case-item-info {
    margin-bottom: 0;
  }
}
.p-case-search-box {
  padding: 8rem 0;
}

.p-case-search-tabs {
  display: flex;
  gap: 1rem;
  padding-left: 3rem;
  margin-bottom: 4rem;
  border-bottom: 0.2rem solid #EDBB2B;
}

.p-case-search-tabs li {
  min-width: 20rem;
}
.p-case-search-tabs li button {
  color: inherit;
  font: inherit;
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 1.3rem 0;
  cursor: pointer;
  background-color: #DCDCDC;
  transition: all 0.3s;
}
.p-case-search-tabs li button.is-active {
  color: #fff;
  background-color: #EDBB2B;
}

.p-case-search-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.p-case-search-cat-item {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-weight: 400;
  padding: 0.4rem 1.3rem;
  border: 0.2rem solid #EDBB2B;
  border-radius: 9999px;
  background-color: #EDBB2B;
}
.p-case-search-cat-item.is-current {
  color: #EDBB2B;
  background-color: #fff;
}

@media screen and (max-width: 767px) {
  .p-case-search-box {
    padding: 10.6666666667vw 0;
  }
  .p-case-search-tabs {
    gap: 1.3333333333vw;
    padding-left: 0;
    margin-bottom: 5.3333333333vw;
    border-bottom: 0.5333333333vw solid #EDBB2B;
    overflow-x: auto;
  }
  .p-case-search-tabs li {
    min-width: auto;
  }
  .p-case-search-tabs li button {
    font-size: 3.7333333333vw;
    white-space: nowrap;
    padding: 3.4666666667vw 2.6666666667vw;
  }
  .p-case-search-cat-list {
    gap: 2.6666666667vw 1.3333333333vw;
  }
  .p-case-search-cat-item {
    font-size: 4.2666666667vw;
    padding: 0.8vw 3.4666666667vw;
    border: 0.5333333333vw solid #EDBB2B;
  }
}
.p-case-overview-inner {
  display: flex;
  align-items: center;
  gap: 6rem;
  max-width: 109.7rem;
  padding: 5rem 6rem;
  padding-left: 0;
  margin-left: auto;
  margin-top: 3.5rem;
  background-color: #FFFAC6;
}
.p-case-overview-inner .p-case-item-cat-list {
  margin-top: 1rem;
}

.p-case-overview-image {
  width: 53rem;
  min-width: 53rem;
  margin-left: -10.3rem;
}

.p-case-page-ttl {
  font-size: 3rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 3rem;
}

.p-case-sec01 {
  background: #ffffff;
  background: linear-gradient(180deg, #fff 0%, #fff 33%, #FEFCE6 33%, #FEFCE6 100%);
}

.p-case-info-item {
  display: flex;
  align-items: first baseline;
  gap: 1.6rem;
}
.p-case-info-item:not(:last-child) {
  margin-bottom: 1rem;
}
.p-case-info-item dt {
  color: #fff;
  font-weight: 700;
  text-align: center;
  min-width: 9.8rem;
  background-color: #EDBB2B;
}

.p-case-problem-ttl {
  color: #4261B7;
  font-size: 2.4rem;
  line-height: 1.5833333333;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5rem;
}

.p-case-problem-list,
.p-case-result-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 1rem;
}
.p-case-problem-list li,
.p-case-result-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4261B7;
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  width: calc(33.3333333333% - 0.6666666667rem);
  min-height: 12.9rem;
  padding: 3.5rem 1rem 3rem;
  position: relative;
}
.p-case-problem-list li::before,
.p-case-result-list li::before {
  position: absolute;
  content: "";
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.6rem;
  height: auto;
  aspect-ratio: 1/1;
}

.p-case-problem-list {
  margin-bottom: 10rem;
}
.p-case-problem-list li {
  background-color: #F5F5F5;
}
.p-case-problem-list li::before {
  background: url(../../images/common/icn_question_bl.svg) no-repeat center/contain;
}

.p-case-result-ttl {
  font-size: 3rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4.5rem;
  position: relative;
}
.p-case-result-ttl::before {
  position: absolute;
  content: "";
  top: -4rem;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 6.3rem;
  height: auto;
  aspect-ratio: 63/26;
  background-color: #EDBB2B;
  clip-path: polygon(100% 0, 0 0, 50% 100%);
}

.p-case-result-list li {
  border: 0.2rem solid #EDBB2B;
  background-color: #fff;
}
.p-case-result-list li::before {
  background: url(../../images/common/icn_check-circle_yl.svg) no-repeat center/contain;
}

.p-case-outline-ttl,
.p-case-detail-ttl {
  color: #fff;
  text-align: center;
  position: relative;
}
.p-case-outline-ttl span,
.p-case-detail-ttl span {
  position: relative;
  z-index: 1;
}
.p-case-outline-ttl::before,
.p-case-detail-ttl::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 9999px;
}

.p-case-outline-ttl {
  font-size: 2.4rem;
  line-height: 1.5833333333;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 1.3rem;
  background-color: #4261B7;
}
.p-case-outline-ttl::before {
  width: 10.5rem;
  background: url(../../images/common/icn_question_bl.svg) no-repeat center top/5.5rem;
  background-color: #4261B7;
}

.p-case-detail-ttl {
  font-size: 3rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 1.5rem;
  margin-top: 8rem;
  background-color: #EDBB2B;
}
.p-case-detail-ttl::before {
  width: 12.7rem;
  background: url(../../images/common/icn_check-circle_yl.svg) no-repeat center top/7rem;
  background-color: #EDBB2B;
}

.p-case-outline-body,
.p-case-detail-body {
  padding: 4.5rem 6rem;
}
.p-case-outline-body strong,
.p-case-detail-body strong {
  font-weight: 700;
}
.p-case-outline-body mark,
.p-case-detail-body mark {
  color: #4261B7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
  text-underline-position: under;
  text-decoration-color: #F6CA4A;
  background-color: transparent;
}

.p-case-outline-body {
  background-color: #F5F5F5;
}

.p-case-detail-body {
  border: 0.2rem solid #EDBB2B;
}

.p-case-staff {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  padding: 6rem;
  background-color: #fff;
}
.p-case-staff:not(:last-child) {
  margin-bottom: 2rem;
}
.p-case-staff .p-case-info-item {
  align-self: center;
  margin-bottom: 0;
}
.p-case-staff .p-case-info-item:has(*) {
  padding: 1.5rem 0;
  border-bottom: 0.2rem dashed #D5D5D5;
}
.p-case-staff .p-case-info-item:nth-child(1) {
  grid-row: 1/4;
  align-self: flex-start;
  width: 9.8rem;
  padding: 0;
  margin-right: 5.4rem;
  border: none;
  border-radius: 9999px;
  overflow: hidden;
}
.p-case-staff .p-case-info-item:nth-child(2), .p-case-staff .p-case-info-item:nth-child(3), .p-case-staff .p-case-info-item:nth-child(4) {
  grid-row: 1/2;
  padding-top: 0;
  padding-right: 4rem;
}
.p-case-staff .p-case-info-item:nth-child(5) {
  grid-column: 2/5;
  grid-row: 2/3;
}
.p-case-staff .p-case-info-item:nth-child(6) {
  grid-column: 2/5;
  grid-row: 3/4;
}

@media screen and (max-width: 767px) {
  .p-case-overview-inner {
    flex-direction: column;
    gap: 5.3333333333vw;
    max-width: 100%;
    padding: 8vw 5.3333333333vw;
    margin: 32vw 0 8vw auto;
  }
  .p-case-overview-image {
    width: 100%;
    min-width: 100%;
    margin: auto;
    margin-top: -29.3333333333vw;
  }
  .p-case-page-ttl {
    font-size: 5.3333333333vw;
    line-height: 1.6;
    margin-bottom: 4vw;
  }
  .p-case-sec01 {
    padding: 0 0 13.3333333333vw;
    background: #ffffff;
    background: linear-gradient(180deg, #fff 0%, #fff 38%, #FEFCE6 38%, #FEFCE6 100%);
  }
  .p-case-info-item {
    gap: 4.2666666667vw;
  }
  .p-case-info-item:not(:last-child) {
    margin-bottom: 2.6666666667vw;
  }
  .p-case-info-item dt {
    min-width: 26.1333333333vw;
  }
  .p-case-problem-ttl {
    font-size: 5.3333333333vw;
    margin-bottom: 9.3333333333vw;
  }
  .p-case-problem-list,
  .p-case-result-list {
    flex-direction: column;
    gap: 6.6666666667vw;
  }
  .p-case-problem-list li,
  .p-case-result-list li {
    font-size: 4.2666666667vw;
    width: 100%;
    min-height: 27.2vw;
    padding: 6.6666666667vw 2.6666666667vw;
  }
  .p-case-problem-list li::before,
  .p-case-result-list li::before {
    width: 8vw;
  }
  .p-case-problem-list {
    margin-bottom: 17.3333333333vw;
  }
  .p-case-result-ttl {
    font-size: 6.4vw;
    margin-bottom: 9.3333333333vw;
  }
  .p-case-result-ttl::before {
    top: -5.3333333333vw;
    width: 16.8vw;
  }
  .p-case-result-list li {
    min-height: 23.2vw;
    border: 0.5333333333vw solid #EDBB2B;
  }
  .p-case-outline-ttl {
    font-size: 4.2666666667vw;
    padding: 2.9333333333vw;
  }
  .p-case-outline-ttl::before {
    width: 22.6666666667vw;
    background: url(../../images/common/icn_question_bl.svg) no-repeat center top/13.3333333333vw;
    background-color: #4261B7;
  }
  .p-case-detail-ttl {
    font-size: 4.8vw;
    padding: 3.2vw;
    margin-top: 14.6666666667vw;
  }
  .p-case-detail-ttl::before {
    width: 22.6666666667vw;
    background: url(../../images/common/icn_check-circle_yl.svg) no-repeat center top/13.3333333333vw;
    background-color: #EDBB2B;
  }
  .p-case-outline-body,
  .p-case-detail-body {
    padding: 5.3333333333vw;
  }
  .p-case-outline-body mark,
  .p-case-detail-body mark {
    text-underline-offset: 0.5333333333vw;
  }
  .p-case-detail-body {
    border: 0.5333333333vw solid #EDBB2B;
  }
  .p-case-staff {
    display: block;
    padding: 8vw 5.3333333333vw;
  }
  .p-case-staff:not(:last-child) {
    margin-bottom: 5.3333333333vw;
  }
  .p-case-staff .p-case-info-item {
    align-self: center;
    margin-bottom: 0;
  }
  .p-case-staff .p-case-info-item:has(*) {
    padding: 4vw 0;
    border-bottom: 0.5333333333vw dashed #D5D5D5;
  }
  .p-case-staff .p-case-info-item:nth-child(1) {
    width: 17.0666666667vw;
    margin: auto;
  }
  .p-case-staff .p-case-info-item:nth-child(2), .p-case-staff .p-case-info-item:nth-child(3), .p-case-staff .p-case-info-item:nth-child(4) {
    padding-top: 4vw;
    padding-right: 0;
  }
  .p-case-staff .p-case-info-item:nth-child(6) {
    flex-direction: column;
    gap: 2.6666666667vw;
  }
}
.p-case-related-sec {
  padding-bottom: 0;
}

.p-case-back-btn {
  width: 26.9rem;
  margin: 6rem auto 0;
}

.wp-pagenavi {
  margin-top: 0;
}

@media screen and (max-width: 767px) {
  .p-case-back-btn {
    width: 71.7333333333vw;
    margin: 16vw auto 0;
  }
  .wp-pagenavi {
    margin-top: 21.3333333333vw;
  }
}
