:root {
  --bg: #121012;
  --surface: #1c181b;
  --surface-2: #26202430;
  --line: #3a3036;
  --text: #f3eeee;
  --muted: #b3a7ab;
  --red: #e0344b;
  --red-soft: #e0344b22;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.85;
  font-size: 16px;
}

a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-weight: 800; letter-spacing: .02em; text-decoration: none; font-size: 20px; white-space: nowrap; flex-shrink: 0; }
.nav { min-width: 0; }
.logo span { color: var(--red); }
.nav { display: flex; gap: 18px; font-size: 14px; overflow-x: auto; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.badge18 {
  border: 1.5px solid var(--red); color: var(--red);
  font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; flex-shrink: 0;
}

/* Hero */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.35; margin: 12px 0 18px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0; }

/* Sections */
section { padding: 48px 0; }
h2.section-title { font-size: 22px; margin: 0 0 24px; display: flex; align-items: center; gap: 10px; }
h2.section-title::before { content: ""; width: 4px; height: 22px; background: var(--red); border-radius: 2px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; text-decoration: none; display: block; transition: border-color .15s;
}
.card:hover { border-color: var(--red); color: var(--text); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.card .tag { color: var(--red); font-size: 12px; font-weight: 700; }

.note {
  background: var(--red-soft); border-left: 3px solid var(--red);
  padding: 16px 18px; border-radius: 0 8px 8px 0; color: var(--text); font-size: 14px;
}

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 48px 16px 72px; }
.article h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.45; margin: 8px 0 12px; }
.article .meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.article h2 { font-size: 22px; margin: 48px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.article h3 { font-size: 18px; margin: 32px 0 8px; }
.pr-label {
  display: inline-block; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; margin-bottom: 8px;
}
.author-box {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px;
}
.author-box .avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

/* Age gate */
.age-gate {
  position: fixed; inset: 0; z-index: 100;
  background: #0b090bf2; display: none; align-items: center; justify-content: center; padding: 16px;
}
.age-gate.show { display: flex; }
.age-gate .box {
  max-width: 440px; width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px 24px; text-align: center;
}
.age-gate .big18 {
  width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--red); color: var(--red);
  font-weight: 800; font-size: 26px; display: grid; place-items: center; margin: 0 auto 16px;
}
.age-gate h2 { margin: 0 0 10px; font-size: 20px; }
.age-gate p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0 0 22px; }
.age-gate .btns { display: grid; gap: 10px; }
.btn {
  border: 0; border-radius: 10px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.btn-yes { background: var(--red); color: #fff; }
.btn-no { background: transparent; color: var(--muted); border: 1px solid var(--line); }
body.gated { overflow: hidden; }
/* 年齢確認が済むまで本文を隠す（読み込み直後のちらつき防止を含む） */
html.age-pending body > *:not(.age-gate) { visibility: hidden; }
html.age-pending .age-gate { display: flex; }
