/* Single: works (施工事例) */

.l-single-works {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.p-work {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* Header */
.p-work__header {
  margin: 8px 0 24px;
  border-bottom: 1px solid rgba(58, 124, 165, 0.15);
  padding-bottom: 16px;
}
.p-work__title {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  font-size: 1.8rem;
}
.p-work__date {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.55);
}

/* Eyecatch */
.p-work__thumb {
  margin: 16px 0 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 22px -12px rgba(58, 124, 165, 0.35);
}
.p-work__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* Content */
.p-work__content {
  margin: 16px 0 32px;
}
.p-work__content > *:not(:last-child) {
  margin-bottom: 1.2em;
}

/* Data area */
.works-data-area {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid rgba(58, 124, 165, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 26px -16px rgba(58, 124, 165, 0.28);
  padding: 20px;
}

.works-main-image {
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
}
.works-main-image img {
  display: block;
  width: 100%;
  height: auto;
}

.works-description-box {
  margin: 20px 0;
  padding: 20px;
  background: #f0f7fb;
  border: 1px solid rgba(58, 124, 165, 0.18);
  border-radius: 10px;
}
.works-description-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-blue);
}
.works-description-box p {
  color: #333;
}

/* Table */
.works-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(58, 124, 165, 0.18);
  background: #fff;
}
.works-table th,
.works-table td {
  padding: 14px 16px;
  vertical-align: top;
  line-height: 1.7;
}
.works-table th {
  width: 32%;
  background: #eaf4fb;
  color: #205e83;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid rgba(58, 124, 165, 0.18);
}
.works-table td {
  border-bottom: 1px solid rgba(58, 124, 165, 0.12);
}
.works-table tr:last-child th,
.works-table tr:last-child td {
  border-bottom: none;
}

/* Footer */
.p-work__footer {
  margin-top: 28px;
}
.p-work__back .c-btn {
  background: var(--primary-blue);
  box-shadow: 0 10px 24px -14px rgba(58, 124, 165, 0.6);
}

/* Responsive */
@media (min-width: 901px) {
  .p-work {
    padding: 40px 24px 80px;
  }
  .p-work__title {
    font-size: 2.2rem;
  }
  .works-data-area {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .p-work__title {
    font-size: 1.6rem;
  }
  .works-table th,
  .works-table td {
    padding: 12px 12px;
  }
  .works-table th {
    width: 40%;
  }
}
/* スライダー全体の大きさ */
.works-swiper {
  width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
}

/* スライド個別の設定 */
.swiper-slide {
  text-align: center;
  background: #fff;
  /* 中央揃えにする設定 */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 画像の設定 */
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ラベル（Before/After）を左上に重ねる */
.works-swiper .swiper-slide {
  position: relative;
}
.works-swiper .works-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 14px -8px rgba(32, 94, 131, 0.6);
  pointer-events: none;
}

/* AFTER ラベルのみ黄色背景に */
.works-swiper .works-label--after {
  background: #ffd400;
}
/* 矢印の色を変えたい場合 */
.swiper-button-next,
.swiper-button-prev {
  color: #333; /* 好きな色に変更 */
}

/* ページネーション（点々）の色を変えたい場合 */
.swiper-pagination-bullet-active {
  background: #333;
}

@media (max-width: 768px) {
  .works-swiper .works-label {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 1.7rem;
    border-radius: 5px;
  }
}
