/*
 * 関連するデータ復旧コラム cards (thumbnail + published date + title).
 * Loaded after style.css / style_sp.css so it only layers on top of them.
 */

/* Columns cards */
.columns .columns__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.columns .columns__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
}

.columns .columns__card::after {
  content: none;
}

.columns__thumb {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.columns__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.columns__thumb .columns__thumb-fallback {
  padding: 24%;
  object-fit: contain;
}

.columns__date {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.columns__title {
  margin-top: 6px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.columns__title::after {
  content: ' →';
}

.columns .columns__card:hover {
  text-decoration: none;
}

.columns .columns__card:hover .columns__title {
  text-decoration: underline;
}

.columns .columns__card:hover .columns__thumb img {
  transform: scale(1.04);
}

@media screen and (max-width: 1023px) and (min-width: 768px) {
  .columns .columns__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .columns .columns__list {
    grid-template-columns: 1fr;
    gap: calc((24 / 390) * 100vw);
  }

  .columns__thumb {
    border-radius: calc((8 / 390) * 100vw);
  }

  .columns__date {
    margin-top: calc((10 / 390) * 100vw);
    font-size: calc((12 / 390) * 100vw);
  }

  .columns__title {
    margin-top: calc((4 / 390) * 100vw);
    font-size: calc((16 / 390) * 100vw);
  }
}
