:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --radius: 16px;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* 上部タイトル */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246,247,249,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing:.02em;
}
.brand-badge{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #111827;
}
.brand span{ font-size: 18px; }
.version{ color:var(--muted); font-size:13px; }

/* 検索バー */
.search-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px 6px;
}
.search{
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.search svg{ flex:0 0 auto; opacity:.65; }
.search input{
  width: 100%;
  border:0;
  outline:0;
  font-size: 15px;
  background: transparent;
}

/* バナー */
.hero{
  max-width: 980px;
  margin: 10px auto 0;
  padding: 0 16px;
}
.hero-card{
  height: 180px;
  border-radius: var(--radius);
  background:
    radial-gradient(900px 260px at 20% 30%, rgba(17,24,39,.18), transparent 60%),
    radial-gradient(700px 220px at 80% 60%, rgba(17,24,39,.12), transparent 55%),
    linear-gradient(135deg, #dbeafe, #f5f3ff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display:flex;
  align-items:flex-end;
  padding: 18px;
  overflow:hidden;
  position: relative;
}
.hero-card::after{
  content:"";
  position:absolute;
  inset:-40px -60px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  background: rgba(17,24,39,.08);
  transform: rotate(15deg);
}
.hero-title{
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 6px;
}
.hero-sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* 新着 */
.section{
  max-width: 980px;
  margin: 18px auto;
  padding: 0 16px 28px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 8px 2px 10px;
}
.section-head h2{
  margin:0;
  font-size: 18px;
  font-weight: 900;
}
.section-head .hint{
  margin:0;
  font-size: 13px;
  color: var(--muted);
}

.list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.item{
  display:flex;
  align-items:center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px;
  text-decoration:none;
  color: inherit;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  transition: transform .12s ease, box-shadow .12s ease;
}
.item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}
.thumb{
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.meta{
  min-width: 0;
  flex: 1 1 auto;
}
.meta .title{
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .desc{
  margin:0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chev{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  border: 1px solid var(--line);
  background: #fff;
}

.empty{
  display:none;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 6px;
}

@media (max-width: 560px){
  .hero-card{ height: 160px; }
  .hero-title{ font-size: 18px; }
  .thumb{ width: 48px; height: 48px; border-radius: 12px; }
}
