.archive-resource {
  padding-bottom: 60px;
  background-color: #f9fafb; /* 任意 */
}

/* ===== タイトル・説明 ===== */
.resource-intro {
  font-size: 1rem;
  text-align: center;
  color: #666;
  margin-top: -1rem;
  margin-bottom: 2.5rem; /* タグフォームとの余白 */
}

/* PCでは中央寄せ */
.archive-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* スマホ（768px以下）では左寄せ＆横幅いっぱい */
@media screen and (max-width: 768px) {
  .archive-intro {
    text-align: left;
    max-width: 100%;
    margin: 0 1rem 1.5rem;
  }
}

.current-tag {
  text-align: center;
  font-size: 14px;
  color: #0074c8; /* テーマカラー */
  font-weight: bold;
  margin-bottom: 2rem;
}

/* ===== タグ選択フォーム ===== */
.tag-filter-form {
  text-align: center;
  margin-bottom: 3rem;
}

.tag-filter-form select {
  font-size: 14px;
  padding: 0.5em 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ===== グリッドレイアウト ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC: 3列 */
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1024px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレット: 2列 */
  }
}

@media (max-width: 640px) {
  .resource-grid {
    grid-template-columns: 1fr; /* スマホ: 1列 */
  }
}

/* ===== カード全体 ===== */
.resource-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  padding-bottom: 3rem; /* ボタン用スペース */
}

.resource-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ===== サムネイル画像 ===== */
.resource-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===== タイトル・リンク ===== */
.resource-title {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.resource-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
}

/* ===== ダウンロードボタン ===== */
.resource-download-button {
  display: inline-block;
  background-color: #0074c8;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.resource-download-button:hover {
  background-color: #005fa3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ===== PC時の左右余白調整 ===== */
@media (min-width: 1024px) {
  .container {
    padding-left: 100px;
    padding-right: 100px;
  }
}