@charset "utf-8";
/* CSS Document */

/* 親コンテナ（横並び） */
#other .container-row {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  flex-wrap: wrap; 
  align-items: stretch;
}

#other .card-link .container-row a:hover {
  opacity: 0.75;
  text-decoration: none;
  color: #000000;
}

#other .card-link .container-row a:visited {
  color: #000000;
}

/* カードリンク */
.card {
  flex: 0 1 calc(100% / 3);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #000000;
  overflow: hidden;
  background: #fff;
}

.card:nth-child(even) .card-text {
    background-color: #F0F3F5;
}

/* 画像エリア */
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0; 
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストエリア */
.card-text {
  padding:10px 15px 15px 15px;
  background-color: rgb(229 235 238);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-text p {
  font-size: 12px;
  margin-bottom: 10px;
}

.card-text p.card-title {
  font-size: 90%;
  font-weight: bold;
  line-height: 1.3;
  margin: 5px 0;
}

.card-text .card-text-footer {
  margin-top: auto; 
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.card-text span.moret {
	margin-top: auto;
    align-self: flex-start;
	padding: 2px 10px 1px;
	background-color: #D60000;
	font-size: 60%;
	text-align: center;
	color: #ffffff;
    }
    
.card-text span.date {
    font-size: 12px;
}

@media screen and (max-width: 736px) {
  .card {
    flex: 0 1 50%; 
  }
  
  .card-img {
      aspect-ratio: auto;
  }
  
  #other #card-link .container-row .card .card-img img {
      margin: 0 auto;
  }
  
}