/* ========================================
   資料一覧ページ用スタイル
======================================== */

/* セクション */
.dl_list_section {
  padding: 60px 20px 80px;
  background: #fff;
}

.dl_list_wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

/* リード文 */
.dl_list_lead {
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 50px;
}

/* カードグリッド */
.dl_card_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* カード */
.dl_card {
  display: none;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.dl_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dl_card:visited {
  color: inherit;
}

/* サムネイル */
.dl_card_thumbnail {
  display: flex;
  width: 100%;
  aspect-ratio: 720 / 420;
  background: #f5f5f5;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dl_card_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.dl_card:hover .dl_card_thumbnail img {
  transform: scale(1.05);
}

/* カード本文 */
.dl_card_body {
  padding: 20px;
}

.dl_card_title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
}

.dl_card_desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ボタン */
.dl_card_btn {
  display: inline-block;
  padding: 10px 24px;
  background: #6d4a7a;
  color: #fff !important;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.dl_card_btn:hover {
  background: #815998;
  color: #fff !important;
}

/* ========================================
   レスポンシブ
======================================== */

/* タブレット */
@media screen and (max-width: 900px) {
  .dl_card_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* スマートフォン */
@media screen and (max-width: 600px) {
  .dl_list_section {
    padding: 40px 15px 60px;
  }

  .dl_list_lead {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .dl_card_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dl_card_body {
    padding: 15px;
  }

  .dl_card_title {
    font-size: 16px;
  }

  .dl_card_desc {
    font-size: 13px;
  }

  .dl_card_btn {
    width: 100%;
    text-align: center;
  }
}
