@charset "utf-8";

/* ==============================
施工事例一覧
============================== */

.works-archive {
  background: #fff;
}

.works-archive__lead-section {
  padding: 72px 0 56px;
  background:
    linear-gradient(135deg, rgba(191, 153, 62, 0.08), rgba(126, 88, 154, 0.08));
}

.works-archive__lead-inner {
  max-width: 960px;
}

.works-archive__lead {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: #333;
}

.works-archive__section {
  padding: 72px 0 88px;
}

.works-archive__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.works-archive__empty {
  margin: 0;
  padding: 40px 24px;
  background: #f8f5ed;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: center;
}

.works-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 30px;
}

/* カード */
.works-card {
  height: 100%;
}

.works-card__link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(191, 153, 62, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.works-card__link:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 88, 154, 0.55);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.1);
}

.works-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f0e6;
}

.works-card__image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.works-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.works-card__link:hover .works-card__image img {
  transform: scale(1.06);
}

.works-card__noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(191, 153, 62, 0.18), rgba(126, 88, 154, 0.16));
  color: rgba(34, 34, 34, 0.45);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.works-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 22px 22px 24px;
}

.works-card__title {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
  font-weight: 700;
  color: #222;
}

.works-card__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}

.works-card__meta {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(34, 34, 34, 0.12);
}

.works-card__meta-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.works-card__meta dt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  background: #bf993e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.works-card__meta dd {
  margin: 0;
  color: #333;
}

.works-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 4px;
  color: #7e589a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.works-card__more::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.works-card__link:hover .works-card__more::after {
  width: 42px;
}

/* ページネーション */
.works-archive__pagination {
  margin-top: 56px;
}

.works-archive__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.works-archive__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(34, 34, 34, 0.18);
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  background: #fff;
}

.works-archive__pagination .page-numbers.current,
.works-archive__pagination .page-numbers:hover {
  border-color: #7e589a;
  background: #7e589a;
  color: #fff;
}

@media (max-width: 991px) {
  .works-archive__lead-section {
    padding: 56px 0 44px;
  }

  .works-archive__section {
    padding: 56px 0 72px;
  }

  .works-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 767px) {
  .works-archive__lead-section {
    padding: 44px 0 36px;
  }

  .works-archive__section {
    padding: 44px 0 56px;
  }

  .works-archive__lead {
    line-height: 1.95;
  }

  .works-archive__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .works-card__body {
    padding: 20px 18px 22px;
  }

  .works-card__meta-row {
    grid-template-columns: 58px 1fr;
    gap: 10px;
  }

  .works-archive__pagination {
    margin-top: 42px;
  }
}



/* ==============================
個別ページ
============================== */

.works-single {
  padding: 80px 20px;
  background: #fff;
}

.works-single__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.works-single__title {
  margin: 0 0 36px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.4;
  font-weight: 700;
  color: #222;
}

.works-single__mainimage {
  margin-bottom: 40px;
  overflow: hidden;
  /* border-radius: 20px; */
  background: #f3f3f3;
}

.works-single__mainimage img {
  display: block;
  width: 100%;
  height: auto;
}

.works-single__tableWrap {
  margin-bottom: 48px;
}

.works-single__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-top: 1px solid #222;
}

.works-single__table tr {
  border-bottom: 1px solid #222;
}

.works-single__table th,
.works-single__table td {
  padding: 18px 20px;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.9;
}

.works-single__table th {
  width: 180px;
  background: #fafafa;
  text-align: left;
  font-weight: 700;
  color: #222;
}

.works-single__table td {
  color: #444;
}

.works-single__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.works-single__galleryItem {
  display: block;
  overflow: hidden;
  /* border-radius: 18px; */
  background: #f3f3f3;
  text-decoration: none;
}

.works-single__galleryItem img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.works-single__galleryItem:hover img {
  transform: scale(1.05);
}

.works-progress {
  /* display: grid; */
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.works-progress__bar {
  /* height: 12px; */
  /* background: #e5e5e5; */
  /* overflow: hidden; */
}

.works-progress__bar span {
  display: block;
  height: 100%;
  background: #2b2f7f;
}

.works-progress__num {
  margin: 0;
  /* font-weight: 700; */
  /* color: #222; */
}

.works-single__gallerySection {
  margin-top: 56px;
}

.works-single__sectionTitle {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  /* color: #222; */
}

.works-single__galleryFigure {
  margin: 0;
}

.works-single__galleryCaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 991px) {
  .works-single {
    padding: 64px 20px;
  }

  .works-single__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .works-single__table th {
    width: 150px;
  }
}

@media (max-width: 767px) {
  .works-single {
    padding: 56px 16px;
  }

  .works-single__title {
    margin-bottom: 24px;
  }

  .works-single__mainimage {
    margin-bottom: 28px;
    /* border-radius: 14px; */
  }

  .works-single__tableWrap {
    margin-bottom: 32px;
  }

  .works-single__table,
  .works-single__table tbody,
  .works-single__table tr,
  .works-single__table th,
  .works-single__table td {
    display: block;
    width: 100%;
  }

  .works-single__table th,
  .works-single__table td {
    padding: 14px 12px;
  }

  .works-single__table th {
    border-bottom: 1px solid #e5e5e5;
  }

  .works-single__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .works-single__galleryItem {
    /* border-radius: 14px; */
  }

    .works-progress {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}




.works-single__content {
  margin-top: 48px;
  line-height: 1.9;
}

.works-single__content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.works-single__content figure {
  margin: 0 0 28px;
}

.works-single__content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.works-single__content .wp-block-gallery figure {
  margin: 0;
}

.works-single__content .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 991px) {
  .works-single__content .wp-block-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .works-single__content {
    margin-top: 32px;
  }

  .works-single__content .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

figure.wp-block-image {
    width: 100% !important;
}

.works-single__content figcaption,
.works-single__content .blocks-gallery-caption,
.works-single__content .wp-element-caption {
  display: none;
  background: transparent;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
    /* backdrop-filter: blur(0px); */
    backdrop-filter: none !important;
    content: "";
    height: 0;
    /* -webkit-mask-image: linear-gradient(0deg, #000 20%, #0000); */
    mask-image: none;
    /* max-height: 40%; */
    /* pointer-events: none; */
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: linear-gradient(0deg, #0006, #0000);
    background: none !important;
}




.works-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  padding: 40px;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.works-lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.works-lightbox__close {
  position: fixed;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 767px) {
  .works-lightbox {
    padding: 20px;
  }

  .works-lightbox__close {
    top: 12px;
    right: 16px;
    font-size: 36px;
  }
}