/* 読みものの一覧。PCは3列、スマホは1列 */
.reading-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reading-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e8e5e0;
  border-radius: 12px;
  background: #fff;
  color: #492811;
  text-decoration: none;
}
.reading-card:hover .reading-card-action { text-decoration: underline; }
.reading-card:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* 画像の枠は同じ比率にそろえる。ロゴは枠の中に収め、表紙は枠いっぱいに */
.reading-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #f4f6dc;
  overflow: hidden;
}
.reading-card-image img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  transition: transform 0.25s ease;
}
.reading-card:hover .reading-card-image:not(.is-game) img {
  transform: scale(1.03);
}
.reading-card:hover .reading-card-image.is-game img {
  transform: translateY(-50%) scale(1.03);
}
.reading-card-image.is-manga-logo { background: #f7eddb; }
.reading-card-image.is-cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reading-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  word-break: keep-all;
}
.reading-card-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
.reading-card-text { font-size: 0.9375rem; font-weight: 400; line-height: 1.7; }
/* 読み上げだけに伝える文 */
.reading-card .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reading-card-action { margin-top: auto; padding-top: 4px; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 767px) {
  .reading-list { grid-template-columns: minmax(0, 1fr); }
}

/* ゲーム一覧の絵。受付の絵の上にロゴを重ねる(トップと同じ素材) */
.reading-card-image.is-game {
  overflow: hidden;
  background: #f5ecd2 url("/assets/games/reception.webp") 50% 58% / 110% auto no-repeat;
}
.reading-card-image.is-game img { inset: auto; top: 50%; left: 5%; width: 90%; height: auto; transform: translateY(-50%); }
.reading-card-image.is-designer-day { background-image: url("/assets/games/designer-day-desk.webp"); background-size: cover; background-position: center; filter: grayscale(1); }
.reading-card-soon {
  position: absolute;
  left: 50%;
  bottom: 12%;
  padding: 4px 10px;
  background: #4d3423;
  color: #fff8e8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.reading-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; }
.reading-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ebe2d6;
  font-family: Fredoka, sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
}
.reading-card-tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* 課題の題名と説明はデータから入るので、<wbr> の代わりに文節で折り返す */
.reading-card-body.is-data { word-break: auto-phrase; text-wrap: pretty; }
.reading-card-body.is-data .reading-card-text { white-space: pre-line; }
.reading-list-error { grid-column: 1 / -1; }
