:root {
  --bg: #12121a;
  --card: #1c1c28;
  --fg: #e8e8f0;
  --muted: #9a9ab0;
  --accent: #ff5c8a;
  --accent-dim: #c94670;
  --line: #2c2c3c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* header / footer */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(18,18,26,0.9); backdrop-filter: blur(6px);
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); }
.brand .beta { color: var(--accent); font-size: 0.7rem; margin-left: 4px; vertical-align: super; }
.nav a { margin-left: 16px; color: var(--muted); font-size: 0.9rem; }
.site-footer {
  border-top: 1px solid var(--line); padding: 24px 16px; text-align: center;
  color: var(--muted); font-size: 0.85rem;
}

/* hero + search */
.hero { text-align: center; padding: 32px 0 8px; }
.hero h1 { font-size: 1.6rem; line-height: 1.5; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 24px; }
.search-box { display: flex; gap: 8px; margin: 16px 0; }
.search-box input {
  flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--fg); font-size: 1rem;
}
.search-box input:focus { outline: 2px solid var(--accent-dim); border-color: transparent; }
.search-box button {
  padding: 12px 20px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem;
}
.search-box button:hover { background: var(--accent-dim); }

/* how-to + articles */
.how, .articles, .how-list { margin-top: 32px; }
.how h2, .articles h2 { font-size: 1.15rem; border-left: 4px solid var(--accent); padding-left: 10px; }
.how-list { padding-left: 20px; color: var(--fg); }
.how-list li { margin: 6px 0; }
.article-list { list-style: none; padding: 0; }
.article-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.article-list a { font-weight: 600; font-size: 1.02rem; }

/* results */
.result-count { color: var(--muted); margin: 20px 0 8px; }
.result-list { list-style: none; padding: 0; }
.result-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-bottom: 14px;
}
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.result-head h3 { margin: 0; font-size: 1.1rem; }
.score { color: var(--accent); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.circle { color: var(--muted); margin: 4px 0; font-size: 0.9rem; }
.tags { margin: 8px 0; }
.tag {
  display: inline-block; background: #26263a; color: var(--fg);
  padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; margin: 0 6px 6px 0;
}
.desc { margin: 8px 0; }
.actions .link { font-weight: 600; }
.link-disabled { color: var(--muted); cursor: default; }

/* article page */
.article h1 { font-size: 1.4rem; line-height: 1.5; }
.article-body h2 { font-size: 1.1rem; margin-top: 28px; border-left: 4px solid var(--accent); padding-left: 10px; }
.article-body ul { padding-left: 20px; }
.back { margin-top: 32px; }

/* age gate */
.age-gate { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.age-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 24px; max-width: 420px; text-align: center;
}
.age-card h1 { margin-top: 0; }
.age-actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 12px; }
.age-actions button { padding: 14px; border-radius: 10px; border: none; cursor: pointer; font-size: 1rem; font-weight: 700; }
.btn-yes { background: var(--accent); color: #fff; }
.btn-yes:hover { background: var(--accent-dim); }
.btn-no { background: transparent; color: var(--muted); border: 1px solid var(--line) !important; }
