:root {
  --bg: #0f1220;
  --bg2: #11152a;
  --card: #1a1f35;
  --line: #232a47;
  --accent: #4f7cff;
  --accent2: #8a5cff;
  --text: #e8ecf5;
  --muted: #9aa3bd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header / nav */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  max-width: 960px; margin: 0 auto; padding: 14px 18px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.brand { font-weight: 800; font-size: 18px; color: var(--text); }
.brand span { color: var(--accent); }
.nav a.link { color: var(--muted); font-size: 14px; }
.nav a.link:hover { color: var(--text); text-decoration: none; }
.nav .spacer { flex: 1; }
.btn {
  display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: 0; border-radius: 10px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }

/* layout */
main { max-width: 960px; margin: 0 auto; padding: 28px 18px 72px; }

/* hero */
.hero {
  background: radial-gradient(1200px 400px at 20% -10%, rgba(138,92,255,.25), transparent),
              radial-gradient(1000px 400px at 90% 0%, rgba(79,124,255,.22), transparent);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 28px; text-align: center; margin-bottom: 28px;
}
.hero h1 { font-size: 28px; margin: 0 0 10px; }
.hero p { color: var(--muted); margin: 0 0 22px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.section-title { font-size: 20px; margin: 6px 0 16px; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: block; color: var(--text);
}
.article-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); transition: .15s; }
.article-card .date { color: var(--muted); font-size: 12px; }
.article-card h3 { font-size: 16px; margin: 8px 0; }
.article-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* article body */
.article h1 { font-size: 26px; margin: 0 0 6px; }
.article .date { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.article h2 { font-size: 19px; margin: 30px 0 10px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article p, .article li { font-size: 15px; }
.article ul { padding-left: 22px; }
.ad-note { color: var(--muted); font-size: 12px; background: var(--bg2); padding: 8px 12px; border-radius: 8px; }

/* legal table */
table.info { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
table.info th, table.info td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; font-size: 14px; }
table.info th { background: var(--bg2); width: 160px; color: var(--muted); }

/* tool (顔検索) */
.drop { border: 2px dashed #38406b; border-radius: 12px; padding: 26px; text-align: center; }
.err { background: #3a1d28; border: 1px solid #6b2d3f; color: #ffb3c4; padding: 12px 14px; border-radius: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.item { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; }
a.item { text-decoration: none; color: inherit; }
a.item:hover { border-color: var(--accent); }
.item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: #000; }
.item .meta { padding: 8px 10px; }
.item .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .pct { font-size: 12px; color: var(--accent); }
.bar { height: 5px; background: var(--line); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); }
.foot { max-width: 960px; margin: 0 auto; padding: 26px 18px; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); margin-right: 16px; }
.foot .r18 { display: inline-block; border: 1px solid #6b2d3f; color: #ffb3c4; border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 12px; margin-bottom: 10px; }

/* age gate */
.age-overlay {
  position: fixed; inset: 0; background: rgba(8,10,20,.96); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.age-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; max-width: 420px; text-align: center; }
.age-box h2 { margin: 0 0 8px; font-size: 20px; }
.age-box p { color: var(--muted); font-size: 14px; }
.age-actions { display: flex; gap: 12px; margin-top: 20px; }
.age-actions button { flex: 1; padding: 12px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; border: 0; }
.age-yes { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.age-no { background: #2a3050; color: var(--muted); }
