:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e6e8ec;
  --accent: #e23b6d;
  --accent-dark: #c42a58;
  --text: #1d2233;
  --muted: #6b7280;
  --shadow: 0 1px 3px rgba(20,24,40,.06), 0 1px 2px rgba(20,24,40,.04);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── header ── */
.site-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.nav { max-width: 1080px; margin: 0 auto; padding: 13px 18px; display: flex; align-items: center; gap: 20px; }
.brand { font-weight: 800; font-size: 21px; color: var(--text); letter-spacing: .01em; }
.brand b { color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav .link { color: var(--muted); font-size: 13px; font-weight: 600; }
.nav .link:hover { color: var(--text); text-decoration: none; }
.nav .spacer { flex: 1; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ── secondary tab strip ── */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav-in { max-width: 1080px; margin: 0 auto; padding: 0 18px; display: flex; gap: 2px; overflow-x: auto; }
.subnav a { color: var(--muted); font-size: 13px; padding: 11px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 24px 18px 72px; }

/* ── hero ── */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #fdf1f5 100%);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 48px 28px; text-align: center; margin-bottom: 26px; box-shadow: var(--shadow);
}
.hero h1 { font-size: 30px; margin: 0 0 12px; font-weight: 800; line-height: 1.35; color: var(--text); }
.hero h1 b { color: var(--accent); }
.hero p { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

/* ── sections / cards ── */
.section-title { font-size: 18px; margin: 0 0 16px; padding-left: 11px; border-left: 4px solid var(--accent); font-weight: 700; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: block; color: var(--text); box-shadow: var(--shadow); transition: .14s; }
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; box-shadow: 0 4px 12px rgba(20,24,40,.08); }
.article-card .date { color: var(--muted); font-size: 11px; }
.article-card h3 { font-size: 15px; margin: 7px 0; line-height: 1.5; color: var(--text); }
.article-card p { color: var(--muted); font-size: 12.5px; margin: 0; }

/* ── article body ── */
.article h1 { font-size: 25px; margin: 0 0 6px; font-weight: 800; line-height: 1.4; }
.article .date { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.article h2 { font-size: 18px; margin: 28px 0 10px; padding-left: 10px; border-left: 3px solid var(--accent); }
.article p, .article li { font-size: 14.5px; }
.article ul { padding-left: 22px; }
.ad-note { color: var(--muted); font-size: 12px; background: #faf0f4; padding: 8px 12px; border-radius: 6px; border-left: 3px solid var(--accent); }

/* ── 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: #f3f4f6; width: 160px; color: var(--muted); }

/* ── tool (顔さがし) ── */
.drop { border: 2px dashed #cfd4dc; border-radius: 10px; padding: 26px; text-align: center; background: #fafbfc; }
.err { background: #fdecf1; border: 1px solid #f5b6cb; color: #b0264f; padding: 12px 14px; border-radius: 8px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(226,59,109,.12); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: block; box-shadow: var(--shadow); }
a.item { text-decoration: none; color: inherit; }
a.item:hover { border-color: var(--accent); }
.item { position: relative; }
.favbtn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--accent); font-size: 16px; line-height: 30px; text-align: center; cursor: pointer; box-shadow: var(--shadow); }
.favbtn.on { background: var(--accent); color: #fff; }
.item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: #eee; }
.item .meta { padding: 7px 9px; }
.item .name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .pct { font-size: 12px; color: var(--accent); font-weight: 700; }
.bar { height: 4px; background: #eceef1; border-radius: 2px; margin-top: 5px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.foot { max-width: 1080px; margin: 0 auto; padding: 26px 18px; color: var(--muted); font-size: 12.5px; }
.foot a { color: var(--muted); margin-right: 16px; }
.foot a:hover { color: var(--text); }
.foot .r18 { display: inline-block; border: 1px solid var(--accent); color: var(--accent); border-radius: 3px; padding: 2px 7px; font-weight: 700; font-size: 11px; margin-bottom: 10px; }

/* ── age gate ── */
.age-overlay { position: fixed; inset: 0; background: rgba(20,24,40,.55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.age-box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 32px; max-width: 420px; text-align: center; box-shadow: 0 10px 30px rgba(20,24,40,.2); }
.age-box h2 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.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: 6px; font-size: 15px; font-weight: 700; cursor: pointer; border: 0; }
.age-yes { background: var(--accent); color: #fff; }
.age-no { background: #eceef1; color: var(--muted); }
