:root {
  --bg: #0e1020;
  --bg-2: #161a31;
  --card: #1b2040;
  --line: #2a3060;
  --text: #e9e8f5;
  --muted: #a3a6c8;
  --accent: #f2d27a;      /* 月の黄色 */
  --accent-2: #b9a6ff;    /* 夜のラベンダー */
  --voice: #8fd3ff;
  --comic: #ffa6c9;
  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* PR表記 */
.pr-bar {
  background: #090b17;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
}

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 16, 32, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .04em;
}
.logo .moon {
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset -6px -3px 0 0 var(--accent);
  transform: rotate(-20deg);
}
.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }

/* ヒーロー */
.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 85% 20%, rgba(242,210,122,.18), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(185,166,255,.14), transparent 45%);
}
.hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.35; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0; max-width: 560px; }

/* セクション */
.section { padding: 32px 0; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 16px; font-size: 20px;
}
.section-title small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .12em; }
.section-title a { font-size: 13px; color: var(--accent); text-decoration: none; }

/* カテゴリカード */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat-card {
  display: block; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .2s, transform .2s;
}
.cat-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.cat-card .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.cat-card.voice .label { color: var(--voice); }
.cat-card.comic .label { color: var(--comic); }
.cat-card h3 { margin: 4px 0 6px; font-size: 20px; }
.cat-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* 記事一覧 */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s;
}
.post-card:hover { border-color: var(--accent-2); }
.post-card .thumb {
  aspect-ratio: 16 / 9; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 14px 16px 16px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 2px 8px; border-radius: 999px; background: var(--bg-2);
}
.tag.voice { color: var(--voice); }
.tag.comic { color: var(--comic); }
.post-card h3 { font-size: 16px; line-height: 1.5; margin: 8px 0 4px; }
.post-card p { margin: 0; font-size: 13px; color: var(--muted); }
.post-card time { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* プレイ内容のタグ */
.tag-cloud, .article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, color .2s;
}
.tag-chip:hover { border-color: var(--accent-2); color: var(--accent-2); }
.tag-chip span { font-size: 12px; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--accent-2); }

/* 記事ページ */
.article-meta { font-size: 13px; color: var(--muted); margin: -12px 0 12px; }
.article-tags { margin-bottom: 24px; }
.article-tags .tag-chip { font-size: 13px; padding: 4px 12px; }
.point-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 16px 0;
}
.point-box h3 { margin: 0 0 6px; font-size: 15px; color: var(--accent); }
.point-box ul { margin: 0; padding-left: 1.2em; }
.draft {
  border: 1px dashed var(--accent); border-radius: 10px; padding: 12px 16px;
  color: var(--accent); font-size: 14px; background: rgba(242,210,122,.06);
}
.btn-buy {
  display: block; text-align: center; text-decoration: none; margin: 24px 0 8px;
  padding: 16px; border-radius: 12px; font-weight: 800; font-size: 16px;
  background: var(--accent); color: #1a1530;
}
.btn-buy:hover { filter: brightness(1.05); }

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted); font-size: 14px;
}

/* 固定ページ */
.page { padding: 40px 0 56px; }
.page-inner { max-width: 760px; }
.page h1 { font-size: 28px; margin: 0 0 24px; }
.page h2 {
  font-size: 18px; margin: 32px 0 8px; padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.page p, .page li { color: #d6d6ea; }
.page table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.page th, .page td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { width: 32%; color: var(--muted); font-weight: 600; }
.note { font-size: 13px; color: var(--muted); }

/* お問い合わせフォーム（Googleフォーム埋め込み） */
.contact-form {
  margin: 20px 0 8px; border-radius: var(--radius); overflow: hidden;
  background: #f0ebf8; border: 1px solid var(--line);
}
.contact-form iframe { display: block; width: 100%; height: 1250px; border: 0; }
.page .contact-alt { font-size: 13px; color: var(--muted); }
.contact-alt a { color: var(--accent-2); }

/* フッター */
.site-footer {
  border-top: 1px solid var(--line); background: #0a0c19;
  padding: 32px 0; margin-top: 24px; font-size: 13px; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 4px 0; }

/* 年齢確認 */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 16px;
  background:
    radial-gradient(circle at 80% 15%, rgba(242,210,122,.15), transparent 40%),
    rgba(8, 9, 20, 0.97);
}
.age-gate.show { display: flex; }
.age-box {
  width: 100%; max-width: 420px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px 24px;
}
.age-box .logo { justify-content: center; margin-bottom: 16px; }
.age-box h2 { font-size: 20px; margin: 0 0 8px; }
.age-box p { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.age-btns { display: grid; gap: 10px; }
.btn {
  display: block; width: 100%; padding: 14px; border-radius: 12px; border: 0;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn-yes { background: var(--accent); color: #1a1530; }
.btn-no { background: transparent; color: var(--muted); border: 1px solid var(--line); }
body.locked { overflow: hidden; }

@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  .logo { font-size: 17px; }
  .hero { padding: 40px 0 28px; }
}
@media (max-width: 420px) {
  .cat-grid { grid-template-columns: 1fr; }
}
