/* ================================
   一覧ページ（archive-resource）
================================= */
.resource-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-archive-item {
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  background-color: #fff;
  transition: box-shadow 0.2s;
}

.resource-archive-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.resource-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0.8rem 0 0.5rem;
}

.resource-excerpt {
  font-size: 0.95rem;
  color: #666;
}

/* ================================
   詳細ページ（single-resource）
================================= */

/* レイアウト */
.single-resource-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.single-resource-left {
  flex: 1;
  min-width: 280px;
}

.single-resource-right {
  flex: 1;
  min-width: 300px;
}

@media (max-width: 768px) {
  .single-resource-wrapper {
    flex-direction: column;
  }

  .resource-thumb img.resource-image {
    max-width: 100%;
  }
}

/* タイトル・本文 */
.single-resource-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: left;
}

.resource-content {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* 書影 */
.resource-thumb {
  text-align: center;
  margin-bottom: 2rem;
}

.resource-thumb img.resource-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* フォーム */
.resource-form-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* メタ情報 */
.resource-meta {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.resource-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-meta-list li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.meta-label {
  display: inline-block;
  font-weight: bold;
  color: #005c8a;
  margin-right: 0.5rem;
}

/* ダウンロードボタン */
.resource-download {
  margin-top: 2rem;
  text-align: center;
}

.resource-download-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--color-primary, #0073aa);
  color: #fff;
  padding: 0.8rem 1.6rem;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.resource-download-button:hover {
  background-color: var(--color-primary-dark, #005c8a);
}
