/* Scratch ↔ JS 学習サイト - 静的版スタイル */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ヘッダー */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #dbeafe;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.site-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
}

.main-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.main-description {
  font-size: 1rem;
  color: #6b7280;
  max-width: 42rem;
  margin: 0 auto;
}

/* 学習の進め方 */
.learning-guide {
  background-color: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.learning-guide-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.learning-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.learning-step {
  display: flex;
  gap: 0.75rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background-color: #3b82f6;
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.75rem;
  color: #1e40af;
}

/* カテゴリセクション */
.category-section {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #dbeafe;
  border-radius: 0.5rem;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.category-description {
  font-size: 0.875rem;
  color: #6b7280;
}

/* レッスンカード */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.lesson-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  background-color: #ffffff;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.lesson-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.lesson-card.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.lesson-card.coming-soon:hover {
  border-color: #e5e7eb;
  box-shadow: none;
}

.lesson-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.lesson-number-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lesson-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: #dbeafe;
  color: #2563eb;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.lesson-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.lesson-card:hover .lesson-title {
  color: #2563eb;
}

.lesson-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.badge-new {
  background-color: #f43f5e;
}

.badge-coming-soon {
  background-color: #9ca3af;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tag-level-beginner {
  background-color: #d1fae5;
  color: #065f46;
}

.tag-topic {
  background-color: #dbeafe;
  color: #1e40af;
}

.lesson-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lesson-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.coming-soon-badge-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

/* フッター */
.footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.footer-text {
  font-size: 0.875rem;
  color: #6b7280;
}

/* アイコン（シンプルなSVG用） */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .main-title {
    font-size: 1.875rem;
  }

  .learning-steps {
    grid-template-columns: 1fr;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }
}
