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

/* =============================================
9. this month's osusume
============================================= */
/* ... 既存のCSS ... */

.recommend {
  padding: 5px;
  background-color: #adcdec;
  display: grid; /* PC画面ではグリッドレイアウトを使用 */
  grid-template-columns: repeat(3, 1fr); /* 横に3つの均等なカラム */
  grid-row-gap: 10px; /* 行間のスペース */
}

.recommendation-item {
  width: auto; /* グリッドアイテムなので自動調整 */
  color: black;
  font-weight: 500;
  font-size: 1em;
  border-radius: 3px;
  padding: 10px; /* 少しpaddingを増やして見やすく */
  margin: 5px; /* marginも少し調整 */
  background-color: white;
  border: solid 1px #666666;
  display: flex; /* 内部要素はflexboxで扱いやすく */
  flex-direction: column;
  z-index: auto;
}

.recommendation-link {
  display: block;
  text-decoration: none;
  color: inherit;
  display: flex; /* リンク全体をflexboxに */
  flex-direction: column; /* 縦方向に配置 */
  align-items: stretch; /* 幅を揃える */
}

.recommendation-link:hover {
  color: red;
}

.recommendation-figure {
  position: relative;
  margin-bottom: 5px; /* 画像とテキストの間隔 */
}

.reco_pic {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0; /* figcaptionとのスペースはfigcaptionのpaddingで調整 */
}

.recommendation-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 3px 5px; /* 少し小さめのpadding */
  font-size: 70%; /* さらに小さめのフォントサイズ */
  color: #fff;
  background: rgba(51, 51, 51, 0.8); /* 背景を少し透明に */
}

.recommendation-details {
  clear: both; /* floatの影響をクリア */
  line-height: 1.4em;
  font-size: 0.8em; /* 少し小さめのフォントサイズ */
}

.recommendation-details span {
  font-size: 0.9em;
  margin-right: 3px;
  padding: 1px 3px;
}

.sai {
  background: #e75480;
  color: white;
  font-weight: normal;
}

.mikomi {
  background: navy;
  color: white;
  font-weight: normal;
}

.toi{
	  padding:3px 5px; /* ?g?A??????I?o?O */
	margin:0 3px; /* ?g?I?O?I?o?O */
	background-color:#999900; /* ?g?I?hw?i?F */
	border:0px solid #777; /* ?g?I?u?I?e??3?E?i?T?E?F */
	border-radius:2px; /* ?g?I?p?d?U?-??E?e */
	font-family:inherit; /* ?t?H??g?g?I?i?T?d?p?3??E?e */
	font-size:0.9em;	/* ?t?H??g?g?I?ea????3 */
  color:white;
  font-weight:;
  white-space:nowrap;
	
}
/* 600px以下の画面サイズに適用 (既存のコード) */
@media (max-width: 600px) {
  .recommend {
    background-color: white;
    padding: 0;
    margin: 0;
    display: block; /* 縦並びの基本 */
  }

  .recommendation-item {
    width: 100%;
    border: 0;
    margin: 0 0 0 0;
    padding: 10px;
    display: flex; /* 横並びにする */
    align-items: flex-start; /* 上揃え */
    flex-direction: row; /* ★ 画像とテキストを横並びにする */
  }

  .recommendation-link {
    display: flex; /* リンク内も横並び */
    align-items: flex-start;
    flex-direction: row; /* ★ リンク内も横並びにする */
  }

  .recommendation-figure {
    flex-shrink: 0;
    width: 140px;
    margin-right: 10px;
    margin-bottom: 0;
  }

  .reco_pic {
    width: 140px;
    height: auto;
    margin-bottom: 0;
  }

  .recommendation-caption {
    font-size: 0.8em;
  }

  .recommendation-details {
    flex-grow: 1; /* 残りのスペースをテキストが占める */
    line-height: 1.4em;
    text-align: left;
    font-size: 0.8em;
  }

  .recommendation-details span {
    font-size: 0.8em;
  }
}