:root {
  --accent: #7c5cff;
  --accent-soft: #efeaff;
  --ink: #1c1e21;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #fafafa;
  --card: #fff;
  --warn: #b45309;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 16px; align-items: center; padding: 10px 16px; flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.search-box { flex: 1 1 320px; display: flex; gap: 8px; }
.search-box input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; background: var(--bg);
}
.search-box button, .btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 18px; font-size: 14px; cursor: pointer; font-weight: 600;
}
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.header-nav { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.header-nav a { color: var(--ink); }
.pro-link { color: var(--accent) !important; font-weight: 700; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 10px; cursor: pointer; font-size: 12px;
}
.quota-chip { font-size: 12px; color: var(--muted); }

.media-chips {
  position: sticky; top: 57px; z-index: 19; background: var(--bg);
  display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto;
}
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.small { padding: 3px 10px; font-size: 12px; }

main { max-width: 1240px; margin: 0 auto; padding: 8px 16px 48px; }
.section-title { font-size: 17px; margin: 22px 0 10px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.filter-row .label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.sort-row { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 13px; }
.sort-row select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; margin-top: 12px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb {
  aspect-ratio: 4/3; background: #111; display: flex; align-items: center;
  justify-content: center; overflow: hidden; position: relative; cursor: pointer;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb .audio-icon { font-size: 44px; color: #fff; }
.card .badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.badge {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--ink);
}
.badge.premium { background: #fbbf24; }
.badge.class-c { background: #e0e7ff; }
.card .meta { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .title { font-size: 13.5px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.card .sub { font-size: 11.5px; color: var(--muted); }
.card .actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.card .actions button {
  flex: 1; font-size: 12px; padding: 6px 4px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: #fff;
}
.card .actions button.saved { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.sponsor-card {
  border: 1.5px dashed var(--accent); background: var(--accent-soft);
  align-items: flex-start; justify-content: center; padding: 18px; gap: 8px;
}
.sponsor-card .sponsor-label { font-size: 10px; color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.sponsor-card .sponsor-title { font-size: 16px; font-weight: 800; }
.sponsor-card p { margin: 0; font-size: 12.5px; color: #444; }

/* 忍者AdMax slots */
.admax-card { align-items: center; padding: 12px 8px; }
@media (min-width: 480px) { .admax-card { grid-column: span 2; } }
.admax-frame { border: 0; width: 300px; height: 250px; max-width: 100%; display: block; margin: 2px auto; background: #fff; }
.ad-label { font-size: 10px; color: #999; letter-spacing: .08em; margin-bottom: 2px; }
.ad-top { display: none; }
@media (min-width: 821px) {
  .ad-top { display: block; text-align: center; margin: 10px auto 0; min-height: 90px; }
}
.ad-fixed-bottom { display: none; }
@media (max-width: 820px) {
  .ad-fixed-bottom {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    text-align: center; background: rgba(255,255,255,.96);
    box-shadow: 0 -1px 6px rgba(0,0,0,.10); min-height: 50px;
  }
  body { padding-bottom: 58px; }
}

.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px; margin-top: 16px; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.detail .preview { background: #111; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.detail .preview img, .detail .preview video { max-width: 100%; max-height: 70vh; display: block; }
.detail .preview audio { width: 90%; }
.cond-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.cond-box h3 { margin: 0 0 8px; font-size: 14px; }
.cond-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.cond-box dt { color: var(--muted); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.ok-box { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: 10px 14px; font-size: 13px; }

.form { max-width: 640px; display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.form label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 5px; }
.form input, .form select, .form textarea {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 400;
}
.form .check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.form .check input { margin-top: 3px; }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 720px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.price-card.pro { border-color: var(--accent); border-width: 1.5px; }
.price-card .amount { font-size: 26px; font-weight: 800; }
.price-card ul { padding-left: 18px; font-size: 13.5px; line-height: 1.7; }

.board-list { display: flex; flex-direction: column; gap: 18px; }
.board-head { display: flex; gap: 10px; align-items: center; }
.board-head h3 { margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.site-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

.legal-body { max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; line-height: 1.85; font-size: 14.5px; }
.legal-body h1 { font-size: 22px; }
.legal-body h2 { font-size: 16px; margin-top: 28px; }
.placeholder { background: #fef3c7; padding: 0 4px; border-radius: 3px; }
.muted { color: var(--muted); }
.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.strip .card { min-width: 170px; max-width: 170px; }
.load-more { display: block; margin: 22px auto; }
.empty { text-align: center; color: var(--muted); padding: 36px 0; }

