@charset "utf-8";


.works-archive {
  padding: 0px 0px 0 0;
  background: #fff;
}

.works-archive__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.works-archive__hero {
  margin-bottom: 72px;
}

.works-archive__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.3;
  font-weight: 700;
  color: #222;
}

.works-archive__lead {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #555;
}

.works-archive__section + .works-archive__section {
  margin-top: 0;
  margin-bottom: 72px;
}

.works-archive__heading {
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid #222;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.4;
  font-weight: 700;
  color: #222;
}

.works-archive__empty {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.works-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}


/* カード */
.works-card {
  height: 100%;
}

.works-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.works-card__image {
  margin-bottom: 10px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* border-radius: 18px; */
  background: #f3f3f3;
}

.works-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.works-card__link:hover .works-card__image img {
  transform: scale(1.05);
}

.works-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.works-card__place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 88px;
  padding: 6px 14px;
  margin: 0;
  border: 1px solid #222;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
}

.works-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

.works-card__date {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 991px) {
  .works-archive {
    padding: 64px 0px;
  }

  .works-archive__hero {
    margin-bottom: 56px;
  }

  .works-archive__section + .works-archive__section {
    margin-top: 56px;
  }

  .works-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .works-card__title {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .works-archive {
    padding: 56px 0px 0 0;
  }

  .works-archive__hero {
    margin-bottom: 44px;
  }

  .works-archive__section + .works-archive__section {
    margin-top: 44px;
  }

  .works-archive__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .works-archive__heading {
    margin-bottom: 22px;
    padding-bottom: 12px;
  }

  .works-archive__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .works-card__title {
    font-size: 18px;
  }
}



/* ==============================
個別ページ
============================== */

.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;
}

.works-single__back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 28px;
  margin-bottom: 22px;
  border: 1px solid;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: .35s ease;
  border-color: #bf993e;
  color: #bf993e;
}

.works-single__back a:hover {
  background: #bf993e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(191,153,62,.22);
}

.nuri-works-title {
  position: relative;
  margin: 0 0 36px;
  padding-bottom: 18px;
  width: 100%;

  font-size: clamp(2rem, 2vw, 3rem);
  font-weight: 700;
  line-height: 1.45;
  color: #1f2a33;
}

/* 下線 */
.nuri-works-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  /* max-width: 520px; 長すぎ防止 */
  height: 4px;
  border-radius: 999px;

  /* 山吹 → なじませ → 藤 */
  background: linear-gradient(
    90deg,
    #bf993e 0%,
    #bf993e 42%,
    rgba(191,153,62,0.2) 50%,
    #8a63b8 58%,
    #8a63b8 100%
  );

  opacity: 0.95;
}

/* 左官っぽい微妙な揺らぎ */
.nuri-works-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;

  width: 100%;
  /* max-width: 520px; */
  height: 6px;

  background:
    radial-gradient(circle at 8% 50%, rgba(255,255,255,.25) 0 2px, transparent 2px),
    radial-gradient(circle at 24% 50%, rgba(255,255,255,.15) 0 1px, transparent 1px),
    radial-gradient(circle at 66% 50%, rgba(255,255,255,.15) 0 2px, transparent 2px);

  pointer-events: none;
  opacity: .5;
}

@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;
  }

  .nuri-works-title {
    padding-bottom: 14px;
    margin-bottom: 24px;
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .nuri-works-title::after {
    height: 3px;
    /* max-width: 280px; */
  }

  .nuri-works-title::before {
    /* max-width: 280px; */
  }
}




.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;
  }
}

/* ==============================
施工事例 個別ページ：画像スライダー
ACF画像ID works_img_1〜works_img_10 対応
============================== */

.works-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 20px;
  margin: 36px 0 44px;
}

.works-gallery__main {
  position: relative;
  overflow: hidden;
  background: #f5f2ea;
}

.works-gallery__mainItem {
  display: none;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.works-gallery__mainItem.is-active {
  display: block;
}

.works-gallery__mainItem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.works-gallery__arrow--prev {
  left: 14px;
}

.works-gallery__arrow--next {
  right: 14px;
}

.works-gallery__count {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  transform: translateX(-50%);
}

.works-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.works-gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 3px solid transparent;
  background: none;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.works-gallery__thumb.is-active {
  border-color: #7b5aa6;
}

.works-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .works-gallery {
    display: block;
  }

  .works-gallery__main {
    margin-bottom: 12px;
  }

  .works-gallery__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .works-gallery {
    margin: 28px 0 36px;
  }

  .works-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-gallery__arrow {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }
}
