/* ===== NHJ トップ 実績ブログ（works） ===== */
.nhj-works {
  --nhj-line: #e0ddd6;
  --nhj-ink: #1a1916;
  --nhj-t2: #5a5852;
  --nhj-t3: #9a9690;
  display: block;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  color: var(--nhj-ink);
  padding: 48px 0 64px;
}

.nhj-works__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.nhj-works__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--nhj-line);
  padding-bottom: 12px;
}

.nhj-works__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .02em;
}

.nhj-works__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--nhj-t2);
  text-decoration: none;
}
.nhj-works__more:hover { color: var(--nhj-ink); }

.nhj-works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 860px) {
  .nhj-works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nhj-works__grid { grid-template-columns: 1fr; }
  .nhj-works__inner { padding: 0 16px; }
}

.nhj-works__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.nhj-works__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid var(--nhj-line);
}
.nhj-works__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.nhj-works__card:hover .nhj-works__thumb img { transform: scale(1.04); }
.nhj-works__thumb-ph { width: 100%; height: 100%; background: #efece6; }

.nhj-works__card-title {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--nhj-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nhj-works__loading,
.nhj-works__empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--nhj-t3);
  font-size: 13px;
}
.nhj-works__empty a { color: var(--nhj-t2); }
