/* J-FLOOR common works card v6.0
   TOP・施工実績一覧・各工事／工法ページで共通利用する。
   表示件数と取得条件だけを各ページ側で変更し、カードの見た目はこのファイルで管理する。
*/
.jf-works-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 24px rgba(5, 38, 79, .10);
}

.jf-works-card__image {
  display: block;
  overflow: hidden;
  line-height: 0;
}

.jf-works-card__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform .25s ease;
}

.jf-works-card__image:hover img,
.jf-works-card__image:focus img {
  transform: scale(1.04);
}

.jf-works-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 18px 22px;
  background: #fff;
}

.jf-works-card__area {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 4px 9px;
  background: #05264f;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
}

.jf-works-card__meta {
  margin: 0 0 16px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.jf-works-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: auto;
  margin: auto 0 0;
  padding: 10px 16px;
  background: linear-gradient(90deg, #06214a, #0b3674);
  color: #fff !important;
  border: 1px solid #05264f;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 16px rgba(5, 38, 79, .18);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.jf-works-card__button:hover,
.jf-works-card__button:focus {
  background: #fff;
  color: #05264f !important;
  border-color: #05264f;
}

@media (max-width: 640px) {
  .jf-works-card__body {
    padding: 14px 15px 18px;
  }

  .jf-works-card__meta {
    font-size: 13px;
  }
}
