@charset "utf-8";
/*新着情報　モジュール化予定*/
.mel25-newscard{
  margin-top: 40px;
}
.mel25-newscard .mel25-newscard__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.mel25-newscard .mel25-newscard__item {
  overflow: hidden;
}
.mel25-newscard .mel25-newscard__link {
  display: block;
  text-decoration: none;
    cursor: pointer;
}

.mel25-newscard .mel25-newscard__image-wrapper {
  width: 100%;
  overflow: hidden;
  height: 210px;
}

.mel25-newscard .mel25-newscard__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 210px;
  background: #f0f0f0;
}
.mel25-newscard .mel25-newscard__category-name {
  color: #c40001;
  margin-top: 20px;
  font-weight: 700;
  margin-bottom: 0px;
}

.mel25-newscard .mel25-newscard__date {
  display: inline-block;
  color: #4d4d4d;
  margin-top: 10px;
}

.mel25-newscard .mel25-newscard__title {
  color: #000;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
}
.mel25-newscard .mel25-newscard__item:hover .mel25-newscard__title {
  color: #c00;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .mel25-newscard .mel25-newscard__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .mel25-newscard .mel25-newscard__image-wrapper img{
    height: auto;
    max-height: 230px;
  }
}
@media (max-width: 767.99px) {
  .mel25-newscard .mel25-newscard__list {
    grid-template-columns: 1fr;
  }
  .mel25-newscard .mel25-newscard__image-wrapper{
    height: auto;
  }
  .mel25-newscard .mel25-newscard__image-wrapper img{
    max-height: 310px;
  }
}