.cards {
  display: grid;
  gap: 1.5rem;
  padding: 1rem 0rem;
  max-width: 900px;
  margin: auto;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-date {
    text-align: right;
    margin-top: 0;      /* 上余白は不要 */
    margin-bottom: 0.5rem;
  }

.card:hover {
  transform: translateY(-5px);
}

.card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: fill;
}

.card-content {
  padding: 0.5rem 1rem;
}

.card-title {
  font-size: 1.2rem;
  font-family: 'Crimson Pro', serif;
  color: #2b2d42;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-date {
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.card-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px){
  .card-link {
    display: flex;
    align-items: center;
  }
  .card-image {
    width: 110px;
    height: auto;
    margin-right: 0.3rem;
    flex-shrink: 0;
  }
  .card-content {
    flex: 1;
    padding: 0.5rem 0.5rem;
  }
  .card-title {
    font-size: 1rem;
    margin: 0 0 0.2rem;
  }
  .card-date {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
  }
   .card-excerpt {
    display: none;
  }
  .title-date{
    display: flex;
  }
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
