/* J-FLOOR public works page v1.0 */
.page-hero {
  background: #f7f7f7;
  padding: 56px 0 32px;
}
.works-list-section,
.works-detail-section {
  padding-top: 70px;
  padding-bottom: 90px;
}
.works-list-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}
.works-count {
  margin: 0;
  color: #555;
  font-weight: 700;
}
.works-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.works-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 12px 28px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}
.works-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #eee;
  overflow: hidden;
}
.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.works-card__image:hover img {
  transform: scale(1.04);
}
.works-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.works-card__meta {
  margin: 0 0 8px;
  color: #c8a24a;
  font-size: 13px;
  font-weight: 800;
}
.works-card h2 {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 15px;
}
.works-card h2 a {
  color: #1b1b1b;
  text-decoration: none;
}
.works-card__spec {
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.works-card__spec div {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  align-items: start;
}
.works-card__spec dt {
  background: #1f2a44;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  text-align: center;
}
.works-card__spec dd {
  margin: 0;
  color: #333;
}
.works-card__comment {
  color: #555;
  margin: 0 0 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.works-card__btn {
  margin-top: auto;
  align-self: flex-start;
}
.works-detail {
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.works-detail__main-image {
  background: #eee;
}
.works-detail__main-image img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
}
.works-detail__content {
  padding: 44px;
}
.works-detail__label {
  color: #c8a24a;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 8px;
}
.works-detail h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  margin: 0 0 28px;
}
.works-detail__spec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e5e5e5;
  border-left: 1px solid #e5e5e5;
  margin: 0 0 30px;
}
.works-detail__spec div {
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.works-detail__spec dt {
  background: #1f2a44;
  color: #fff;
  padding: 10px 14px;
  font-weight: 800;
}
.works-detail__spec dd {
  margin: 0;
  padding: 16px 14px;
  min-height: 54px;
}
.works-detail__comment {
  background: #f8f5ed;
  border-left: 5px solid #c8a24a;
  font-weight: 700;
  line-height: 1.8;
  margin: 0 0 28px;
  padding: 18px 22px;
}
.works-detail__body {
  line-height: 2;
  color: #333;
  margin-bottom: 42px;
}
.works-detail__photo {
  margin-top: 34px;
}
.works-detail__photo h2 {
  font-size: 24px;
  margin: 0 0 18px;
  border-left: 5px solid #c8a24a;
  padding-left: 14px;
}
.works-detail__photo img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #f4f4f4;
  display: block;
}
.works-detail__nav {
  margin-top: 34px;
}
@media (max-width: 960px) {
  .works-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .works-detail__spec {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .page-hero {
    padding-top: 34px;
  }
  .works-list-section,
  .works-detail-section {
    padding-top: 44px;
    padding-bottom: 64px;
  }
  .works-card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .works-card__body,
  .works-detail__content {
    padding: 22px;
  }
  .pagination {
    flex-wrap: wrap;
  }
}
