/* 投稿ループの共通CSS */
.news-box {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: auto;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

a.news-card:hover {
  text-decoration: none;
}

.news-thumb-wrapper {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.news-thumb-wrapper img {
  aspect-ratio: 4/3;
}

.news-detail-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: inherit;
  gap: 15px;
}

.news-title {
  margin: 0;  
}

.news-date {
  font-size: .9rem;
}

@media (max-width: 991px) {
  .news-box {
    gap: 20px;
  }
}

@media (max-width: 828px) {
  .news-box {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
  .news-box > * {
    grid-column: 1;
  }
}

@media (max-width: 428px) {
  .news-thumb-wrapper {
    width: 85%;
  }
  .news-card:not(:last-of-type)::after {
    content: '';
    width: 100px;
    height: 1px;
    margin: 10px auto;
    background: #aaa;
  }

  .news-date {
    width: 85%;
    margin: auto;
    text-align: left;
  }

  .news-title {
    width: 85%;
    margin: auto;
    text-align: left;
  }
}