/* ============================================================
   site.css - トップページとデモ一覧まわり
   ============================================================ */

/* ---------- ヒーロー ---------- */

.hp-hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  border-bottom: 1px solid var(--hp-border);
  padding: 48px 0 40px;
  text-align: center;
}
.hp-hero h1 {
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.35;
  margin: 0 0 12px;
}
.hp-hero p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: var(--hp-muted);
}
.hp-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- フィルタ ---------- */

.hp-filter {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 20px;
}
.hp-filter__group { display: flex; flex-direction: column; gap: 4px; }
.hp-filter__group > span {
  font-size: 13px;
  color: var(--hp-muted);
  font-weight: 600;
}
.hp-filter__buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-filter__buttons button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hp-border);
  background: var(--hp-surface);
  color: var(--hp-text);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.hp-filter__buttons button:hover { background: #f3f4f6; }
.hp-filter__buttons button[aria-pressed="true"] {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: #fff;
}
.hp-filter__count { color: var(--hp-muted); font-size: 14px; }

/* ---------- デモカード ---------- */

.hp-demo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.hp-demo-card {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hp-demo-card[hidden] { display: none; }
.hp-demo-card h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.hp-demo-card h3 a { text-decoration: none; }
.hp-demo-card h3 a:hover { text-decoration: underline; }
.hp-demo-card p { margin: 0; font-size: 14px; color: var(--hp-muted); }
.hp-demo-card__foot { margin-top: auto; padding-top: 6px; }

.hp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--hp-border);
  background: #f9fafb;
  color: var(--hp-muted);
}
.hp-tag--category { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.hp-tag--level { border-color: #fde68a; background: #fffbeb; color: #92400e; }

/* ---------- 準備中リスト ---------- */

.hp-upcoming {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.hp-upcoming li {
  border: 1px dashed var(--hp-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--hp-surface);
  color: var(--hp-muted);
  font-size: 14px;
}
.hp-upcoming strong { display: block; color: var(--hp-text); font-size: 15px; }

/* ---------- デモページ内のレッスン一覧 ---------- */

.hp-lesson-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hp-lesson-list li {
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  background: var(--hp-surface);
  padding: 12px 16px;
}
.hp-lesson-list a { font-weight: 600; text-decoration: none; }
.hp-lesson-list a:hover { text-decoration: underline; }
.hp-lesson-list span { display: block; font-size: 13px; color: var(--hp-muted); }
