/* eromania.lol - dark-first adult site
   18+ only / 2D adult niche / にゃんちゅ～ラボ
   Lighthouse 100 target */

:root {
  --bg: #0a0a0f;
  --bg-card: #14141c;
  --bg-elev: #1c1c28;
  --fg: #f0f0f5;
  --fg-muted: #a0a0b0;
  --accent: #ff3e7a;        /* pink */
  --accent-2: #b537ff;      /* purple */
  --accent-3: #ffcf3a;      /* gold for warning */
  --link: #ff6fa8;
  --border: #2a2a3a;
  --success: #4ade80;
  --danger: #f87171;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(255, 62, 122, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ====== layout ====== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ====== header ====== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; max-width: 1100px; margin: 0 auto;
}
header h1 a {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
header .badge18 {
  display: inline-block;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  margin-left: 6px; vertical-align: middle;
}
nav ul { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }
nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); }

/* ====== hero ====== */
.hero {
  text-align: center;
  padding: 56px 16px 40px;
  background: radial-gradient(ellipse at top, rgba(255,62,122,0.12), transparent 60%);
}
.hero h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.3;
}
.hero h2 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { color: var(--fg-muted); font-size: 17px; max-width: 720px; margin: 0 auto 24px; }
.hero img.mascot { width: 180px; height: auto; margin: 0 auto 18px; display: block; border-radius: 50%; box-shadow: var(--shadow); }

/* ====== cards / grid ====== */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--fg); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--fg-muted); font-size: 14.5px; }

.category-card {
  display: block; text-decoration: none; color: inherit;
  text-align: center; padding: 28px 16px;
}
.category-card .icon { font-size: 38px; margin-bottom: 10px; display: block; }
.category-card h3 { font-size: 18px; margin-bottom: 6px; }
.category-card p { font-size: 13px; color: var(--fg-muted); }

/* ====== buttons / CTA ====== */
.cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff !important;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,62,122,0.4); }
.cta-secondary {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  background: transparent;
}
.cta-secondary:hover { background: rgba(255,62,122,0.1); }

/* ====== product list (DLsite / cam) ====== */
.product-list { display: grid; gap: 14px; }
.product-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.product-item .cat-tag {
  display: inline-block;
  background: rgba(255,62,122,0.15);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  width: max-content;
}
.product-item h4 { font-size: 16px; line-height: 1.5; }
.product-item h4 a { color: var(--fg); text-decoration: none; }
.product-item h4 a:hover { color: var(--accent); }
.product-item .pid { font-size: 12px; color: var(--fg-muted); font-family: monospace; }
.product-item .actions { margin-top: 6px; }

/* ====== article ====== */
article.post {
  max-width: 820px; margin: 0 auto;
  padding: 40px 16px 60px;
}
article.post h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900; line-height: 1.4; margin-bottom: 14px;
}
article.post .meta {
  color: var(--fg-muted); font-size: 13.5px; margin-bottom: 30px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
article.post h2 {
  font-size: 24px; font-weight: 800; margin: 38px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
article.post h3 { font-size: 19px; margin: 26px 0 10px; color: var(--accent-2); }
article.post p { margin-bottom: 16px; color: #d8d8e0; }
article.post ul, article.post ol { margin: 0 0 18px 22px; color: #d8d8e0; }
article.post li { margin-bottom: 6px; }
article.post a { color: var(--link); }
article.post blockquote {
  border-left: 4px solid var(--accent-2);
  padding: 12px 18px; background: var(--bg-card);
  border-radius: 8px; margin: 20px 0;
  color: var(--fg-muted);
}
article.post .product-callout {
  background: linear-gradient(135deg, rgba(255,62,122,0.1), rgba(181,55,255,0.1));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px; margin: 24px 0;
}
article.post .product-callout h4 { font-size: 17px; margin-bottom: 8px; }
article.post .product-callout .cta { margin-top: 8px; }

/* ====== footer ====== */
footer {
  border-top: 1px solid var(--border);
  background: #050508;
  padding: 40px 16px 30px;
  margin-top: 60px;
}
footer .wrap { max-width: 1100px; margin: 0 auto; }
footer .cols {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  margin-bottom: 28px;
}
footer h5 { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 7px; }
footer a { color: var(--fg-muted); text-decoration: none; font-size: 13.5px; }
footer a:hover { color: var(--accent); }
footer .copy {
  text-align: center; color: var(--fg-muted); font-size: 12.5px;
  padding-top: 22px; border-top: 1px solid var(--border);
}

/* ====== 18+ modal ====== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  max-width: 480px; width: 100%;
  padding: 32px 26px;
  text-align: center;
}
.modal-card .age { font-size: 64px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.modal-card h2 { font-size: 22px; margin-bottom: 10px; }
.modal-card p { color: var(--fg-muted); font-size: 14px; margin-bottom: 22px; }
.modal-card .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.modal-card .row .cta { padding: 13px 32px; }
.modal-card .row .leave {
  display: inline-block; padding: 11px 24px; border-radius: 999px;
  background: var(--bg-elev); color: var(--fg-muted); text-decoration: none;
  font-weight: 600; font-size: 14px;
}

/* ====== utility ====== */
.section { padding: 48px 16px; }
.section h2.section-title {
  font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 6px;
}
.section .sub { text-align: center; color: var(--fg-muted); margin-bottom: 32px; }
.tag {
  display: inline-block; background: var(--bg-elev); color: var(--fg-muted);
  font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-right: 5px;
}
.warn {
  background: rgba(255,207,58,0.1); border: 1px solid var(--accent-3);
  color: var(--accent-3); padding: 14px 18px; border-radius: 8px;
  font-size: 14px; margin: 20px 0;
}
.note {
  background: var(--bg-card); border-left: 3px solid var(--accent-2);
  padding: 12px 16px; border-radius: 6px; color: var(--fg-muted);
  font-size: 13.5px; margin: 16px 0;
}

/* ====== CRO: conclusion box (ATF) ====== */
.conclusion-box {
  max-width: 760px; margin: 26px auto 0;
  background: linear-gradient(135deg, rgba(255,62,122,0.14), rgba(181,55,255,0.14));
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
}
.conclusion-box .label {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.conclusion-box .pick-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.conclusion-box .stars { color: var(--accent-3); font-size: 16px; letter-spacing: 1px; }
.conclusion-box .reason { color: var(--fg-muted); font-size: 14.5px; margin: 8px 0 16px; }
.conclusion-box .cta-big {
  display: block; text-align: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff !important;
  padding: 16px 24px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(255,62,122,0.35);
  transition: transform 0.15s;
}
.conclusion-box .cta-big:hover { transform: translateY(-2px); }
.conclusion-box .micro { text-align: center; font-size: 12px; color: var(--fg-muted); margin-top: 10px; }

/* ====== CRO: ranking / comparison table ====== */
.rank-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }
.rank-table th { padding: 13px 12px; text-align: left; font-size: 13px; color: var(--accent); background: var(--bg-elev); }
.rank-table td { padding: 13px 12px; font-size: 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.rank-table tr.is-top td { background: rgba(255,62,122,0.06); }
.rank-table .rk { font-weight: 900; font-size: 18px; color: var(--accent); }
.rank-table .rk-1 { color: var(--accent-3); }
.rank-table .cta { padding: 10px 18px; font-size: 13.5px; white-space: nowrap; }
.rank-stars { color: var(--accent-3); font-size: 13px; }

/* ====== CRO: badges / social proof ====== */
.badge-best {
  display: inline-block; background: var(--accent-3); color: #1a1200;
  font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 4px; margin-left: 6px;
}
.proof-row {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  margin: 22px auto 0; max-width: 720px;
}
.proof-row .pill {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--fg-muted);
}
.proof-row .pill strong { color: var(--accent); }

/* ====== CRO: FAQ ====== */
.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 10px; padding: 0 16px;
}
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 15px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q. "; color: var(--accent); font-weight: 800; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .ans { padding: 14px 0 16px; color: var(--fg-muted); font-size: 14px; }

/* ====== CRO: sticky mobile CTA ====== */
.sticky-affi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: none;
  background: rgba(10,10,15,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--accent);
  padding: 9px 12px;
  align-items: center; gap: 10px;
}
.sticky-affi .txt { flex: 1; font-size: 12.5px; color: var(--fg); line-height: 1.35; }
.sticky-affi .txt b { color: var(--accent); }
.sticky-affi .cta { padding: 11px 18px; font-size: 14px; white-space: nowrap; }
.sticky-affi .close {
  background: none; border: none; color: var(--fg-muted); font-size: 20px;
  cursor: pointer; padding: 0 4px; line-height: 1;
}
@media (max-width: 760px) {
  .sticky-affi { display: flex; }
  body.has-sticky { padding-bottom: 70px; }
}

/* ====== CRO: author / E-E-A-T box ====== */
.author-box {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 26px 0;
}
.author-box img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.author-box .a-name { font-weight: 800; font-size: 15px; }
.author-box .a-name .v { color: var(--success); font-size: 12px; margin-left: 6px; }
.author-box .a-desc { color: var(--fg-muted); font-size: 13px; margin-top: 3px; }

/* ====== CRO: internal link grid ====== */
.related-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); margin-top: 16px; }
.related-links a {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; text-decoration: none; color: var(--fg); font-size: 14px; font-weight: 600;
  transition: border-color .2s;
}
.related-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ====== mobile ====== */
@media (max-width: 700px) {
  nav ul { gap: 12px; }
  nav a { font-size: 13px; }
  .hero { padding: 36px 16px 24px; }
  .section { padding: 36px 12px; }
  .rank-table th:nth-child(3), .rank-table td:nth-child(3) { display: none; }
}
