/* =====================================================================
   エロチョイス（EROCHOICE） - style.css
   モバイルファースト / 外部ライブラリ・Webフォント不使用
   色は :root の変数を書き換えるだけで全体に反映されます
   ===================================================================== */

:root {
  --bg:          #0e0e11;
  --surface:     #17171c;
  --surface-2:   #1e1e25;
  --border:      #2a2a33;
  --border-soft: #22222a;
  --text:        #e9e9ee;
  --muted:       #9a9aa6;
  --faint:       #6e6e7a;

  --accent:      #e0224a;
  --accent-dark: #b81638;
  --accent-soft: rgba(224, 34, 74, .12);

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 2px 14px rgba(0, 0, 0, .45);

  --wrap:        1060px;
  --wrap-narrow: 700px;
  --gutter:      clamp(18px, 5vw, 28px);

  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.85;
  color: var(--text); background: var(--bg);
  overflow-wrap: break-word; line-break: strict;
}
/* 年齢確認が済むまでスクロールを止める（JS無効時は解除されない＝安全側） */
html.is-locked, body.is-locked { overflow: hidden; height: 100%; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { opacity: .82; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding-left: 1.3em; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }

/* ===================== 年齢確認ゲート ===================== */
.agegate {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 90% at 50% 0%, #1a0d13 0%, #0b0b0e 60%);
  overflow-y: auto;
}
.agegate__box {
  width: 100%; max-width: 420px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(26px, 7vw, 38px) clamp(20px, 6vw, 30px);
  box-shadow: var(--shadow);
}
.agegate__badge {
  display: inline-grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  font-size: 19px; font-weight: 800; letter-spacing: .02em;
  margin-bottom: 18px;
}
.agegate__brand { font-size: 15px; font-weight: 800; letter-spacing: .16em; color: var(--muted); margin-bottom: 8px; }
.agegate__title { font-size: clamp(18px, 4.8vw, 21px); font-weight: 800; line-height: 1.5; margin-bottom: 14px; }
.agegate__text { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; text-align: left; }
.agegate__actions { display: grid; gap: 10px; }
.agegate__note { margin-top: 18px; font-size: 11.5px; color: var(--faint); line-height: 1.75; }
.agegate__note a { color: var(--faint); }

/* ===================== レイアウト ===================== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(36px, 7vw, 60px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border-soft); }
.section__head { margin-bottom: clamp(18px, 4vw, 26px); }
.section__title { font-size: clamp(19px, 4.6vw, 25px); font-weight: 800; line-height: 1.5; letter-spacing: .01em; }
.section__title::before {
  content: ""; display: inline-block; width: 4px; height: .95em;
  background: var(--accent); margin-right: 10px; vertical-align: -.08em; border-radius: 2px;
}
.section__desc { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.section__more { margin-top: 24px; text-align: center; }

/* ===================== 表記バー ===================== */
.notice-bar {
  background: #121216; border-bottom: 1px solid var(--border-soft);
  color: var(--faint); font-size: 11.5px; line-height: 1.7; text-align: center;
  padding: 7px var(--gutter);
}
.notice-bar a { color: var(--muted); }
.notice-bar .r18 {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  border-radius: 3px; padding: 0 5px; font-weight: 800; font-size: 10.5px; margin-right: 6px;
}

/* ===================== ヘッダー ===================== */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 13px; }
.header__brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; color: var(--text); }
.header__name { font-size: 17px; font-weight: 900; letter-spacing: .12em; }
.header__name span { color: var(--accent); }
.header__tagline { font-size: 10.5px; color: var(--faint); letter-spacing: .04em; }
.header__nav ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.header__nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.header__nav a:hover { color: var(--accent); opacity: 1; }
@media (max-width: 700px) {
  .header__inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 11px; }
  .header__nav { width: 100%; }
  .header__nav ul { gap: 15px; font-size: 12.5px; overflow-x: auto; scrollbar-width: none; }
  .header__nav ul::-webkit-scrollbar { display: none; }
}
@media (max-width: 359px) { .header__tagline { display: none; } }

/* ===================== ヒーロー ===================== */
.hero {
  background:
    radial-gradient(90% 120% at 50% -10%, rgba(224,34,74,.16) 0%, rgba(224,34,74,0) 55%),
    var(--bg);
  padding-block: clamp(40px, 9vw, 72px);
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.hero__name { font-size: clamp(28px, 8vw, 46px); font-weight: 900; letter-spacing: .1em; line-height: 1.2; margin-bottom: 14px; }
.hero__name span { color: var(--accent); }
.hero__concept { font-size: clamp(15px, 4.2vw, 19px); font-weight: 700; color: var(--accent); margin-bottom: 16px; letter-spacing: .02em; }
.hero__lead { font-size: 14.5px; color: var(--muted); max-width: 620px; margin-inline: auto; text-align: left; }
@media (min-width: 600px) { .hero__lead { text-align: center; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ===================== ボタン ===================== */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-size: 14.5px; font-weight: 700; text-decoration: none; text-align: center;
  transition: background .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); opacity: 1; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); color: var(--text); }
.btn--block { display: block; width: 100%; max-width: 420px; margin-inline: auto; padding: 15px 22px; font-size: 15.5px; }
/* config.js にURL未設定のCTAは表示しない */
.btn.is-unset, a[data-cta].is-unset { display: none; }

/* ===================== カテゴリーチップ ===================== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted); text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.chip--current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===================== カテゴリーカード ===================== */
.catgrid { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .catgrid { grid-template-columns: repeat(2, 1fr); } }
.catcard {
  display: block; height: 100%; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit; transition: border-color .15s ease;
}
.catcard:hover { border-color: var(--accent); opacity: 1; }
.catcard__name { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.catcard__desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.7; }
.catcard__count { display: block; margin-top: 10px; font-size: 11.5px; color: var(--faint); }

/* ===================== 記事リスト ===================== */
.postlist { list-style: none; margin: 0; padding: 0; }
.postlist__item { border-bottom: 1px solid var(--border-soft); }
.postlist__item:first-child { border-top: 1px solid var(--border-soft); }
.postlink { display: block; padding: 18px 2px; text-decoration: none; color: inherit; }
.postlink:hover { opacity: 1; }
.postlink:hover .postlink__title { color: var(--accent); }
.postlink__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); margin-bottom: 7px; }
.postlink__cat { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 2px 8px; font-weight: 700; }
.postlink__pr { background: #2b2410; color: #d9b25a; border-radius: 3px; padding: 2px 8px; font-weight: 700; }
.postlink__title { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.6; margin-bottom: 6px; transition: color .15s ease; }
.postlink__excerpt { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
@media (min-width: 768px) { .postlink__title { font-size: 17.5px; } }

/* ===================== パンくず ===================== */
.breadcrumb { padding-block: 12px; font-size: 11.5px; color: var(--faint); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); text-decoration: none; }

/* ===================== 記事 ===================== */
.article { padding-bottom: clamp(36px, 8vw, 56px); }
.article__header { padding-block: 6px 22px; border-bottom: 1px solid var(--border-soft); margin-bottom: 26px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); margin-bottom: 12px; }
.article__title { font-size: clamp(22px, 5.6vw, 31px); line-height: 1.5; font-weight: 800; }
.article__lead { margin-top: 15px; font-size: 14.5px; color: var(--muted); }

/* 記事単位の広告表記 */
.pr-article { display: none; }
body[data-pr="true"] .pr-article {
  display: block; background: #221c0c; border: 1px solid #3d3316;
  border-radius: var(--radius); padding: 12px 14px;
  font-size: 12.5px; line-height: 1.75; color: #d9b25a; margin-bottom: 22px;
}
body[data-pr="true"] .pr-article strong { color: #f0c96e; }

/* 目次 */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 30px; }
.toc__title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.toc__list { margin: 0; padding-left: 1.35em; font-size: 14px; }
.toc__list li { margin-bottom: 5px; }
.toc__list a { color: var(--text); text-decoration: none; }
.toc__list a:hover { color: var(--accent); text-decoration: underline; }

/* 本文 */
.article__body { font-size: 16px; }
.article__body > * + * { margin-top: 1.2em; }
.article__body h2 {
  font-size: clamp(18px, 4.6vw, 21px); font-weight: 800; line-height: 1.55;
  margin-top: 2.2em; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
}
.article__body h3 {
  font-size: clamp(16px, 4.1vw, 18px); font-weight: 700; line-height: 1.6;
  margin-top: 1.9em; padding-left: 11px; border-left: 3px solid var(--accent);
}
.article__body strong { font-weight: 700; color: #fff; }
.article__body a { text-decoration: underline; }
.article__body li + li { margin-top: .5em; }

.callout { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 15px 18px; font-size: 14.5px; }
.callout__title { font-weight: 700; margin-bottom: 5px; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 27px; }
.checklist li::before {
  content: ""; position: absolute; left: 5px; top: .62em; width: 10px; height: 5px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article__body table, .doc table { width: 100%; font-size: 14.5px; }
.article__body th, .article__body td, .doc th, .doc td {
  border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top;
}
.article__body th, .doc th { background: var(--surface); font-weight: 700; }

/* 比較表（スマホではカード化） */
.compare { width: 100%; font-size: 14.5px; }
.compare th, .compare td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface-2); font-weight: 700; }
.compare tbody th { background: var(--surface); font-weight: 700; }
@media (max-width: 599px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
  .compare th, .compare td { border: 0; padding: 0; background: none; }
  .compare tbody th { font-size: 15.5px; padding-bottom: 9px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
  .compare td { display: grid; grid-template-columns: 5.2em 1fr; align-items: baseline; gap: 8px; padding: 5px 0; }
  .compare td::before { content: attr(data-label); font-size: 12.5px; font-weight: 700; color: var(--muted); }
}

.article__foot { margin-top: 2.6em; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--faint); }
.source-note { font-size: 12.5px; color: var(--faint); border-left: 2px solid var(--border); padding-left: 12px; line-height: 1.75; }

/* 記事内CTA */
.inline-cta { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 18px; text-align: center; }
.inline-cta__title { font-size: 15px; font-weight: 700; text-align: left; margin-bottom: 10px; }
.inline-cta__list { list-style: none; padding-left: 0; margin: 0 0 16px; text-align: left; font-size: 14px; line-height: 1.75; }
.inline-cta__list li { position: relative; padding-left: 23px; }
.inline-cta__list li + li { margin-top: 6px; }
.inline-cta__list li::before {
  content: ""; position: absolute; left: 5px; top: .62em; width: 10px; height: 5px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.inline-cta__note { display: block; font-size: 11.5px; color: var(--faint); margin-top: 10px; }

/* 関連記事 */
.related { margin-top: clamp(34px, 7vw, 48px); }
.related__title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

/* ===================== 固定ページ ===================== */
.doc { padding-block: 10px clamp(40px, 8vw, 60px); }
.doc__title { font-size: clamp(22px, 5.4vw, 30px); line-height: 1.45; font-weight: 800; margin-bottom: 8px; }
.doc__updated { font-size: 12.5px; color: var(--faint); margin-bottom: 2em; }
.doc > * + * { margin-top: 1.1em; }
.doc h2 { font-size: clamp(17px, 4.3vw, 20px); font-weight: 700; margin-top: 2.1em; padding-bottom: 9px; border-bottom: 2px solid var(--accent); }
.doc h3 { font-size: 16px; font-weight: 700; margin-top: 1.7em; }
.doc li + li { margin-top: .45em; }
.doc th { width: 32%; }
@media (max-width: 560px) {
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; width: 100%; }
  .doc th { border-bottom: 0; }
  .doc td { margin-bottom: 10px; }
}

/* ===================== フッター ===================== */
.footer { background: #0a0a0d; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.footer__inner { padding-block: 32px 26px; }
.footer__brand { font-size: 15px; font-weight: 900; letter-spacing: .12em; color: var(--text); margin-bottom: 4px; }
.footer__brand span { color: var(--accent); }
.footer__concept { font-size: 12px; color: var(--faint); margin-bottom: 20px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 20px; list-style: none; padding: 0; }
.footer__nav a { color: var(--text); text-decoration: none; font-size: 13px; }
.footer__nav a:hover { color: var(--accent); text-decoration: underline; opacity: 1; }
.footer__note { font-size: 11.5px; line-height: 1.85; color: var(--faint); border-top: 1px solid var(--border-soft); padding-top: 16px; }
.footer__copy { margin-top: 14px; font-size: 11.5px; color: var(--faint); }

/* ===================== 404 ===================== */
.notfound { text-align: center; padding-block: clamp(50px, 12vw, 90px); }
.notfound__code { font-size: 56px; font-weight: 900; color: var(--surface-2); line-height: 1; }
.notfound__title { font-size: clamp(19px, 4.6vw, 24px); font-weight: 700; margin: 10px 0 12px; }
.notfound__text { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }

@media (min-width: 768px) {
  body { font-size: 16.5px; }
  .article__body { font-size: 17px; }
  .header__nav ul { gap: 20px; font-size: 13.5px; }
}
