.p-works {
  background-color: #000 !important;
  background-image: none !important;
  padding-top: 40px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 768px) {
  .p-works {
    padding-top: 80px;
    padding-bottom: 100px;
  }
}

.p-works__inner {
  width: 100%;
  padding-right: 2rem;
  padding-left: 2rem;
  max-width: 60rem;
  margin-inline: auto;
}

@media screen and (min-width: 768px) {
  .p-works__inner {
    max-width: 110rem;
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
}

/* セクションタイトル (service-categoryと同じスタイル) */
.p-works .sectionTitle__wrapper {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  text-align: center;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .p-works .sectionTitle__wrapper {
    margin-bottom: 60px;
  }
}

.p-works .sectionTitle--en--works {
  font-family: Oswald;
  font-weight: 500;
  font-size: 38px;
  letter-spacing: 0.12em;
  color: #CFCFCF;
  text-transform: uppercase;
  margin-top: -3px;
}

.p-works .sectionTitle--works {
  font-family: "Noto Sans JP";
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #CFCFCF;
  position: relative;
  margin-top: -3px;
}

@media screen and (max-width: 767px) {
  .p-works .sectionTitle--works {
    font-size: 20px;
  }
}

.p-works .sectionTitle--en--works p {
  position: relative;
  display: inline-block;
}

.p-works .sectionTitle--en--works p::before {
  display: block;
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -32px;
  width: 20px;
  height: 1px;
  background-color: #CFCFCF;
}

.p-works .sectionTitle--en--works p::after {
  display: block;
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -32px;
  width: 20px;
  height: 1px;
  background-color: #CFCFCF;
}

/* カードスタイル (page-news.phpと同じスタイル) */
.p-works__items {
  display: grid;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .p-works__items {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
  }
}

.p-works__item {
  background-color: #fff;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.p-works__item:hover {
  transform: translateY(-5px);
}

.p-works__img {
  position: relative;
  width: 100%;
}

.p-works__img::before {
  content: "";
  display: block;
  padding-top: 66.67%;
}

.p-works__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-works__item .post-categories {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.p-works__item .post-category {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  padding: 5px 10px;
  margin: 0;
}

@media screen and (min-width: 768px) {
  .p-works__item .post-category {
    font-size: 12px;
  }
}

.p-works__body {
  padding: 2.7rem 2.7rem 3.4rem;
}

@media screen and (min-width: 768px) {
  .p-works__body {
    padding-bottom: 5.4rem;
  }
}

.p-works__title {
  padding: 0 2.7rem 1.9rem;
  border-bottom: 1px solid #454545;
  font-weight: bold;
  letter-spacing: 0.04em;
  font-size: 1.8rem;
  line-height: 1.5;
  margin: 0 -2.7rem 0 -2.7rem;
  color: #333;
}

@media screen and (min-width: 768px) {
  .p-works__title {
    font-size: 2rem;
  }
}

.p-works__text {
  padding: 1.6rem 0 0;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.8571428571;
  color: #666;
  margin: 0;
}

/* ボタンスタイル (service-categoryと同じスタイル) */
.p-works .button__wrapper--service {
  text-align: center;
  margin-top: 30px;
  padding-bottom: 30px;
}

.p-works .button {
  display: inline-block;
  text-transform: uppercase;
  background-color: #fff;
  text-align: center;
  width: 244px;
  padding: 13px 10px 11px 14px;
  position: relative;
  transition: opacity 0.3s ease-out;
  font-family: Inter;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 22px;
  color: #000;
  z-index: 1;
  text-decoration: none;
}

.p-works .button:hover {
  opacity: 0.8;
}

.p-works .button::after {
  background-image: url(../img/button-arrow.svg);
  position: absolute;
  content: "";
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 2.7rem;
  height: 1rem;
  top: 50%;
  transform: translateY(-50%);
  right: 2.6rem;
}