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

:root{
  --bg:#0a0a0a;
  --surface:#141414;
  --surface2:#1c1c1c;
  --border:#222;
  --border2:#2a2a2a;
  --text:#e8e8e8;
  --text2:#a0a0a0;
  --text3:#6a6a6a;
  --orange:#ff6b2b;
  --orange2:#ff8f5e;
  --green:#4ade80;
  --purple:#a78bfa;
  --slate:#7a8fa8;
  --red:#f87171;
}

html,body{
  font-family:'Noto Sans JP','Inter',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  font-size:15px;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

a{color:inherit;text-decoration:none}

.container{
  max-width:1280px;
  margin:0 auto;
  padding:0 32px;
}

/* ===== HERO ===== */
.hero{
  padding:80px 0 56px;
  background:linear-gradient(180deg,#141414 0%,#0a0a0a 100%);
  border-bottom:1px solid var(--border);
}

.brand{
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.4em;
  color:var(--orange);
  margin-bottom:16px;
}

.hero h1{
  font-size:clamp(2rem,5vw,3rem);
  font-weight:900;
  letter-spacing:-.02em;
  margin-bottom:20px;
  line-height:1.3;
}

.hero .lead{
  font-size:1.05rem;
  color:var(--text2);
  margin-bottom:36px;
  max-width:640px;
}

.search-wrap{
  margin-bottom:24px;
  max-width:520px;
}

#search{
  width:100%;
  padding:16px 24px;
  font-size:1rem;
  font-family:inherit;
  background:var(--surface);
  border:1px solid var(--border2);
  border-radius:12px;
  color:var(--text);
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}

#search:focus{
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(255,107,43,.1);
}

#search::placeholder{color:var(--text3)}

.filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chip{
  padding:8px 18px;
  font-size:.85rem;
  font-weight:600;
  background:var(--surface);
  border:1px solid var(--border2);
  color:var(--text2);
  border-radius:99px;
  cursor:pointer;
  transition:all .2s;
  font-family:inherit;
}

.chip:hover{
  border-color:var(--orange);
  color:var(--orange2);
}

.chip.active{
  background:var(--orange);
  color:#fff;
  border-color:var(--orange);
}

/* ===== MAIN ===== */
main{
  padding:64px 0 120px;
}

.cat-section{
  margin-bottom:72px;
}

.cat-section.hidden{display:none}

.cat-title{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:1.4rem;
  font-weight:800;
  margin-bottom:28px;
  padding-bottom:16px;
  border-bottom:1px solid var(--border);
}

.cat-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  background:var(--orange);
  color:#fff;
  font-size:.85rem;
  font-weight:800;
  border-radius:8px;
  letter-spacing:0;
}

.cat-icon.orange{background:var(--orange2)}
.cat-icon.green{background:var(--green);color:#0a0a0a}
.cat-icon.purple{background:var(--purple);color:#0a0a0a}
.cat-icon.red{background:var(--red);color:#0a0a0a}

/* ===== GRID ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:14px;
}

/* ===== CARD ===== */
.card{
  display:block;
  padding:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  transition:all .2s;
  cursor:pointer;
  position:relative;
  min-height:120px;
}

.card.hidden{display:none}

.card:hover{
  background:var(--surface2);
  border-color:var(--orange);
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,0,0,.4),0 0 0 1px rgba(255,107,43,.1);
}

.card.primary{
  border-color:rgba(255,107,43,.4);
  background:linear-gradient(135deg,rgba(255,107,43,.06),var(--surface));
}

.card.primary:hover{
  border-color:var(--orange);
  background:linear-gradient(135deg,rgba(255,107,43,.1),var(--surface2));
}

.card-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:rgba(255,107,43,.1);
  color:var(--orange2);
  font-size:.85rem;
  font-weight:800;
  border-radius:10px;
  margin-bottom:14px;
  letter-spacing:.05em;
}

.card.primary .card-icon{
  background:var(--orange);
  color:#fff;
}

.card h3{
  font-size:1rem;
  font-weight:700;
  line-height:1.5;
  margin-bottom:6px;
  color:var(--text);
}

.card p{
  font-size:.82rem;
  color:var(--text2);
  line-height:1.6;
  margin:0;
}

/* ===== EMPTY ===== */
.empty-msg{
  text-align:center;
  padding:80px 20px;
  color:var(--text3);
  font-size:1rem;
}

/* ===== FOOTER ===== */
footer{
  padding:40px 0;
  border-top:1px solid var(--border);
  background:var(--surface);
}

footer p{
  text-align:center;
  font-size:.8rem;
  color:var(--text3);
  margin:4px 0;
}

footer .footer-note{
  font-size:.75rem;
  opacity:.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width:768px){
  .container{padding:0 20px}
  .hero{padding:48px 0 36px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
  .card{padding:18px;min-height:100px}
  .card-icon{width:34px;height:34px;font-size:.75rem;margin-bottom:10px}
  .card h3{font-size:.92rem}
  .card p{font-size:.75rem}
  .cat-title{font-size:1.15rem}
}
