/* 資料ダウンロード一覧ページのスタイル */

/* ページヘッダー */
.download-hero {
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  padding: 60px 20px;
  text-align: center;
}

.page-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.page-subtitle {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
}

/* 資料グリッド */
.download-grid-section {
  padding: 60px 20px;
  background: white;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.download-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

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

.card-image {
  position: relative;
  width: 100%;
  height: 250px;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #E60012;
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  z-index: 5;
}

.card-content {
  padding: 30px;
}

.card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}

.card-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  justify-content: center;
}

.meta-item {
  font-size: 14px;
  color: #999;
}

/* ダウンロード数を画像下部に配置 */
.download-count-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #E60012;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.download-button {
  display: block;
  width: 100%;
  background: #E60012;
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.download-button:hover {
  background: #cc0010;
}

/* その他の資料 */
.additional-resources {
  background: #f8f8f8;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #333;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.resource-item {
  background: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.resource-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.resource-item p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.coming-soon {
  display: inline-block;
  background: #f0f0f0;
  color: #999;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
}

/* CTA */
.download-cta {
  background: #E60012;
  padding: 80px 20px;
  text-align: center !important;
  color: white;
}

.download-cta * {
  text-align: center !important;
}

.download-cta .container {
  text-align: center !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.download-cta h2 {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center !important;
  width: 100%;
}

.download-cta p {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
  text-align: center !important;
  width: 100%;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #E60012;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s;
  min-width: 200px;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 32px;
  }
  
  .resource-list {
    grid-template-columns: 1fr;
  }
}