*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
body{
  font-family:'Noto Sans JP',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:#f5f5f7;color:#1d1d1f;line-height:1.6;
}
a{color:#0071e3;text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.site-header{
  background:#fff;border-bottom:1px solid #d2d2d7;
  position:sticky;top:0;z-index:200;
}
.header-inner{
  max-width:1200px;margin:0 auto;padding:14px 24px;
  display:flex;justify-content:space-between;align-items:center;
}
.logo a{font-size:20px;font-weight:700;color:#1d1d1f;text-decoration:none}
.logo a span{color:#0071e3}
.header-nav{display:flex;gap:20px}
.header-nav a{color:#6e6e73;font-size:14px;font-weight:500}
.header-nav a:hover{color:#0071e3;text-decoration:none}

/* Hero */
.catalog-hero{
  background:linear-gradient(135deg,#0071e3 0%,#00b4d8 100%);
  color:#fff;padding:56px 24px;text-align:center;
}
.catalog-hero h1{font-size:36px;margin-bottom:10px}
.catalog-hero .subtitle{font-size:18px;opacity:.9}
.catalog-hero .stats{
  display:flex;gap:28px;justify-content:center;margin-top:20px;
  font-size:14px;opacity:.85;
}

/* Filters */
.filter-section{
  max-width:1100px;margin:-20px auto 0;padding:0 24px;position:relative;z-index:10;
}
.filter-bar{
  background:#fff;border-radius:12px;padding:16px 20px;
  box-shadow:0 4px 16px rgba(0,0,0,.08);
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
}
.cat-btn{
  padding:6px 16px;border:1px solid #d2d2d7;border-radius:20px;
  background:#fff;color:#6e6e73;font-size:13px;font-weight:500;
  cursor:pointer;transition:all .15s;font-family:inherit;
}
.cat-btn:hover{border-color:#0071e3;color:#0071e3}
.cat-btn.active{background:#0071e3;color:#fff;border-color:#0071e3}

/* Grid */
.catalog-container{max-width:1100px;margin:32px auto;padding:0 24px}
.results-count{font-size:14px;color:#6e6e73;margin-bottom:16px}
.card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.card{
  background:#fff;border-radius:12px;border:1px solid #e0e0e0;
  overflow:hidden;transition:transform .2s,box-shadow .2s;
  display:flex;flex-direction:column;color:inherit;position:relative;
}
.card:hover{
  transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.1);
  text-decoration:none;
}
.card-thumb{
  height:160px;
  background:linear-gradient(135deg,#0071e320,#00b4d820);
  overflow:hidden;position:relative;
}
.card-thumb img{
  width:100%;height:100%;object-fit:cover;display:block;
}
.wishlist-btn{
  position:absolute;top:10px;right:10px;z-index:2;
  background:rgba(255,255,255,.88);border:none;border-radius:50%;
  width:36px;height:36px;font-size:18px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:transform .15s;backdrop-filter:blur(4px);
  color:#6e6e73;line-height:1;
}
.wishlist-btn:hover{transform:scale(1.15)}
.wishlist-btn.active{color:#ff3b30}
.card-icon-fallback{
  display:none;align-items:center;justify-content:center;
  font-size:48px;width:100%;height:100%;position:absolute;top:0;left:0;
}
.card-body{padding:20px;flex:1;display:flex;flex-direction:column}
.card-cat{
  font-size:12px;color:#0071e3;font-weight:700;margin-bottom:6px;
  letter-spacing:.3px;
}
.card-body h3{
  font-size:16px;line-height:1.4;margin-bottom:8px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-desc{
  font-size:13px;color:#6e6e73;margin-bottom:12px;flex:1;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card-meta{
  font-size:13px;color:#6e6e73;margin-bottom:10px;
  display:flex;align-items:center;gap:12px;
}
.badge-free{
  background:#34c759;color:#fff;padding:2px 8px;border-radius:4px;
  font-size:11px;font-weight:700;
}
.card-cta{font-size:14px;font-weight:700;color:#0071e3}

/* Empty */
.empty-state{text-align:center;padding:48px;color:#6e6e73}

/* Footer */
.site-footer{
  background:#1d1d1f;color:rgba(255,255,255,.7);
  padding:32px 24px;text-align:center;margin-top:48px;font-size:14px;
}
.site-footer a{color:rgba(255,255,255,.9)}
.site-footer a:hover{color:#fff}

/* Social Proof */
.card-social-proof{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:8px}
.card-rating{color:#ffd700;font-weight:600}
.card-enrollments{color:#6e6e73}

/* Responsive */
@media(max-width:900px){
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .catalog-hero h1{font-size:28px}
}
@media(max-width:600px){
  .card-grid{grid-template-columns:1fr}
  .catalog-hero{padding:40px 16px}
  .catalog-hero h1{font-size:24px}
  .catalog-hero .stats{flex-wrap:wrap;gap:12px}
  .filter-bar{flex-direction:column;align-items:stretch}
}
