/* NTR Core — 小説・体験談ページ用 */

:root {
  --ntr-novel-size: 20px;      /* 小説本文の文字サイズ */
  --ntr-novel-bg: #361616;     /* 小説本文の背景色 */
  --ntr-novel-color: #fff;     /* 小説本文の文字色 */
  --ntr-taiken-bg: #ffffe0;    /* 体験談本文の背景色 */
  --ntr-taiken-color: #800000; /* 体験談本文の文字色 */
  --ntr-accent: #27acd9;
  --ntr-accent-dark: #0686b2;
}

.ntr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ntr-notice { padding: .75em 1em; border-left: 4px solid #28a745; background: rgba(40, 167, 69, .12); }
.ntr-error { padding: .75em 1em; border-left: 4px solid #dc3545; background: rgba(220, 53, 69, .12); }
.ntr-error ul { margin: 0; padding-left: 1.2em; }
.ntr-right { text-align: right; }

/* 表 */
.ntr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ntr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ntr-table th, .ntr-table td { border: 1px solid rgba(128, 128, 128, .5); padding: 6px 8px; vertical-align: top; }
.ntr-taiken-table td:nth-child(n+3) { text-align: center; white-space: nowrap; }
.ntr-taiken-table tbody tr:nth-child(odd) { background: rgba(144, 238, 144, .15); }

/* ボタン */
.ntr-btn, .ntr-btn-small {
  display: inline-block; text-align: center; text-decoration: none; font-weight: bold;
  color: #fff !important; background: var(--ntr-accent); border-bottom: 4px solid var(--ntr-accent-dark); border-radius: 4px;
}
.ntr-btn { display: block; max-width: 400px; margin: 1em auto; padding: .8em 2em; }
.ntr-btn-small { padding: 2px 10px; margin: 2px 0; font-size: 13px; }
.ntr-actions .ntr-btn-small { display: block; }
.ntr-btn-search { background: #ffa500; border-color: #cc8400; }
.ntr-btn-post { background: #0000ff; border-color: #0000aa; }

.ntr-chip { display: inline-block; padding: 3px 10px; margin: 2px; border-radius: 4px; background: #98fb98; color: #222 !important; text-decoration: none; font-size: 13px; font-weight: bold; }

/* フォーム */
.ntr-form input[type="text"], .ntr-form input[type="email"], .ntr-form input[type="password"],
.ntr-form input[type="datetime-local"], .ntr-form select, .ntr-form textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.ntr-form textarea[name="novel_body"], .ntr-form textarea[name="taiken_honbun"] { min-height: 300px; }
.ntr-tags { border: 1px solid rgba(128, 128, 128, .5); padding: .5em 1em; }
.ntr-tags label { display: inline-block; margin-right: 1em; }
.ntr-tag-add { margin-top: 2em; padding: 1em; border: 1px dashed rgba(128, 128, 128, .7); }

/* ページ送り */
.ntr-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 1.5em 0; }
.ntr-pager a, .ntr-pager strong, .ntr-pager span { padding: 4px 10px; border: 1px solid rgba(128, 128, 128, .5); border-radius: 4px; text-decoration: none; }
.ntr-pager strong { background: var(--ntr-accent); color: #fff; }

/* 小説 */
.ntr-novel-item { text-align: center; padding: 1em 0; border-bottom: 1px solid rgba(128, 128, 128, .5); }
.ntr-novel-title { font-size: 26px; font-weight: bold; margin: 0 0 .3em; }
.ntr-section-title { font-size: 20px; font-weight: bold; border-bottom: 2px solid rgba(128, 128, 128, .5); padding-bottom: .2em; }
.ntr-novel-summary { max-width: 40em; margin: .5em auto; }
.ntr-episode-links { text-align: center; line-height: 2; }
.ntr-episode-links a { margin: 0 .3em; white-space: nowrap; }
.ntr-episode-current { text-align: center; font-weight: bold; }
.novelbody { font-size: var(--ntr-novel-size); background-color: var(--ntr-novel-bg); color: var(--ntr-novel-color); padding: 1em; line-height: 1.9; }
.ntr-prev-next { display: flex; justify-content: space-between; margin: 1.5em 0; font-size: 18px; }

/* 体験談 */
.ntr-taiken-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 1em 0; }
.ntr-taiken-links .ntr-btn-small { padding: 4px 16px; }
.ntr-taiken-title { font-size: 24px; font-weight: bold; text-align: center; color: var(--ntr-taiken-color); background: var(--ntr-taiken-bg); border: 2px solid var(--ntr-taiken-color); border-radius: 5px; padding: 10px; }
.ntr-taiken-body { font-size: 20px; line-height: 1.7; color: var(--ntr-taiken-color); background: var(--ntr-taiken-bg); padding: 1em; margin-top: 1em; }
.ntr-taiken-stats { text-align: right; font-weight: bold; }
.ntr-rate-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.ntr-rate-buttons button { flex: 1 1 18%; min-width: 80px; padding: .6em .4em; font-size: 1rem; border: none; border-radius: 4px; cursor: pointer; }
.ntr-rate-5 { background: #28a745; color: #fff; }
.ntr-rate-4 { background: #007bff; color: #fff; }
.ntr-rate-3 { background: #f8f9fa; color: #212529; }
.ntr-rate-2 { background: #ffc107; color: #212529; }
.ntr-rate-1 { background: #dc3545; color: #fff; }
.ntr-comments { margin-top: 2em; }
.ntr-comments button[type="submit"] { width: 100%; padding: 10px; font-size: 1.1rem; background: #ffc107; color: #212529; border: none; border-radius: 4px; cursor: pointer; }
.ntr-comment { padding: .5em 0; border-bottom: 1px solid rgba(128, 128, 128, .5); }
.ntr-comment p { margin: 0; }
.ntr-comment-date { font-size: 12px; opacity: .7; }

/* ===== 作者用ページ ===== */
.ntr-crumb { font-size: 13px; opacity: .8; }
.ntr-work-title { font-size: 22px; margin: .3em 0; }
.ntr-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ntr-accent); margin: 1em 0; flex-wrap: wrap; }
.ntr-tabs a { padding: 8px 16px; text-decoration: none; border: 1px solid rgba(128, 128, 128, .5); border-bottom: none; border-radius: 6px 6px 0 0; }
.ntr-tabs a.is-active { background: var(--ntr-accent); color: #fff; border-color: var(--ntr-accent); font-weight: bold; }
.ntr-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; color: #fff; white-space: nowrap; }
.ntr-badge-public { background: #28a745; }
.ntr-badge-scheduled { background: #e68a00; }
.ntr-badge-draft { background: #6c757d; }
.ntr-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: .6em 1em; margin-bottom: 1em; border: 1px solid rgba(128, 128, 128, .5); border-radius: 6px; }
.ntr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ntr-card { border: 1px solid rgba(128, 128, 128, .5); border-radius: 8px; padding: 12px; }
.ntr-card p { margin: 0 0 .5em; }
.ntr-card-title { font-size: 18px; font-weight: bold; }
.ntr-card-summary { font-size: 13px; opacity: .85; }
.ntr-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ntr-btn-sub { background: #6c757d; border-color: #545b62; }
.ntr-btn-primary { padding: .7em 2.5em; font-size: 1.05rem; font-weight: bold; color: #fff; background: var(--ntr-accent); border: none; border-bottom: 4px solid var(--ntr-accent-dark); border-radius: 6px; cursor: pointer; }
.ntr-btn-ghost { padding: 4px 12px; background: transparent; border: 1px solid rgba(128, 128, 128, .7); border-radius: 4px; color: inherit; cursor: pointer; }
.ntr-episode-no { font-size: 18px; font-weight: bold; }
.ntr-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.ntr-row > p { flex: 1 1 220px; }
.ntr-editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; margin-top: -.6em; }
.ntr-near { color: #e68a00; font-weight: bold; }
.ntr-over, .ntr-table tr.ntr-over td { color: #dc3545; font-weight: bold; }
.ntr-autosave-status { display: block; font-size: 12px; opacity: .7; min-height: 1.2em; }
.ntr-preview { margin: 1em 0; }
.ntr-preview-label { font-size: 12px; opacity: .7; margin: 0 0 4px; }
.ntr-restore { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: .6em 1em; margin-bottom: 1em; border-left: 4px solid #e68a00; background: rgba(230, 138, 0, .12); }
.ntr-restore button { padding: 4px 14px; cursor: pointer; }
.ntr-submit-bar { position: sticky; bottom: 0; padding: 10px 0; background: inherit; text-align: center; z-index: 5; }
.ntr-fieldset { border: 1px solid rgba(128, 128, 128, .5); padding: .5em 1em; margin: 0 0 1em; }
.ntr-fieldset label { display: block; margin: .2em 0; }
.ntr-hint-box { padding: .6em 1em; margin-bottom: 1em; border-left: 4px solid var(--ntr-accent); background: rgba(39, 172, 217, .1); font-size: 14px; }
.ntr-bulk-preview { margin: 1em 0; }
.ntr-episodes td { vertical-align: middle; }
.ntr-move { display: inline-flex; gap: 2px; margin: 0; }
.ntr-move button { padding: 0 8px; cursor: pointer; }
.ntr-move button[disabled] { opacity: .3; cursor: default; }
.ntr-actions { white-space: nowrap; }
.ntr-actions .ntr-btn-small { display: inline-block; margin-right: 4px; }
[hidden] { display: none !important; }

/* ===== 読みやすさ ===== */
.ntr-center { text-align: center; }
.ntr-badge-ongoing { background: #007bff; }
.ntr-badge-complete { background: #6f42c1; }
.ntr-novel-info { font-size: 14px; opacity: .9; }
.ntr-read-buttons .ntr-btn-small { padding: 4px 14px; }
.ntr-episode-list summary, .ntr-novel-summary summary, .ntr-series-box summary, .ntr-series-input summary { cursor: pointer; font-weight: bold; }
.ntr-prev-next-big { align-items: center; margin: 1em 0; }
.ntr-prev-next-big a { display: inline-block; padding: 8px 18px; border: 1px solid rgba(128, 128, 128, .6); border-radius: 6px; text-decoration: none; font-weight: bold; }
.ntr-pos { font-size: 13px; opacity: .7; }
.ntr-resume { display: block; margin: .5em auto; padding: 6px 16px; border-radius: 16px; border: 1px solid #e68a00; background: rgba(230, 138, 0, .15); color: inherit; cursor: pointer; }
.ntr-continue a { font-weight: bold; }

/* 本文の表示設定（ntr-reader.js が html 要素にクラスを付ける） */
.ntr-reader-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: flex-end; font-size: 12px; margin: .5em 0; }
.ntr-pref-group { display: inline-flex; align-items: center; gap: 2px; }
.ntr-pref-label { margin-right: 4px; opacity: .8; }
.ntr-pref-group button { padding: 2px 8px; font-size: 12px; border: 1px solid rgba(128, 128, 128, .6); background: transparent; color: inherit; border-radius: 4px; cursor: pointer; }
.ntr-pref-group button[aria-pressed="true"] { background: var(--ntr-accent); color: #fff; border-color: var(--ntr-accent); }
html.ntr-fs-s { --ntr-read-fs: 16px; }
html.ntr-fs-m { --ntr-read-fs: 20px; }
html.ntr-fs-l { --ntr-read-fs: 24px; }
html.ntr-fs-xl { --ntr-read-fs: 28px; }
html.ntr-lh-n { --ntr-read-lh: 1.9; }
html.ntr-lh-w { --ntr-read-lh: 2.4; }
[data-ntr-reader] { font-size: var(--ntr-read-fs, 20px); line-height: var(--ntr-read-lh, 1.9); max-width: 46em; margin-left: auto; margin-right: auto; }
html.ntr-th-dark [data-ntr-reader] { background: #161616; color: #e6e6e6; }
html.ntr-th-light [data-ntr-reader] { background: #fff; color: #222; }
html.ntr-th-sepia [data-ntr-reader] { background: #f4ecd8; color: #4b3a26; }

/* 体験談カード */
.ntr-sort-tabs { margin: 0; border-bottom: none; }
.ntr-taiken-cards { display: grid; gap: 12px; }
.ntr-tcard { position: relative; border: 1px solid rgba(128, 128, 128, .5); border-radius: 8px; padding: 12px 14px; }
.ntr-tcard p { margin: 0 0 .4em; }
.ntr-tcard-title { font-size: 18px; font-weight: bold; padding-right: 2.2em; }
.ntr-tcard-title a { text-decoration: none; }
.ntr-tcard-meta, .ntr-tcard-stats { font-size: 13px; opacity: .85; }
.ntr-tcard-excerpt { font-size: 14px; }
.ntr-rank { position: absolute; top: 10px; right: 12px; width: 2em; height: 2em; line-height: 2em; text-align: center; border-radius: 50%; font-weight: bold; color: #fff; background: #999; }
.ntr-rank-1 { background: #d4a017; }
.ntr-rank-2 { background: #9e9e9e; }
.ntr-rank-3 { background: #b06f30; }
.ntr-chip-series { background: #ffd8a8; }
.ntr-stars { color: #f0a500; letter-spacing: 1px; }
.ntr-series-box { border: 1px solid rgba(128, 128, 128, .5); border-radius: 6px; padding: .5em 1em; margin: .5em 0; }
.ntr-related ul { margin: .3em 0 1em 1.2em; }
.ntr-rules ul { margin: .3em 0 0 1.2em; }
.ntr-agree { font-weight: bold; }
.ntr-editkey { border: 2px solid #e68a00; border-radius: 8px; padding: 1em; margin: 1em 0; }
.ntr-editkey-value { font-size: 28px; font-weight: bold; letter-spacing: 3px; font-family: monospace; user-select: all; }
.ntr-btn-danger { padding: .5em 1.5em; background: #dc3545; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.ntr-withdraw { margin-top: 2em; padding-top: 1em; border-top: 1px dashed rgba(128, 128, 128, .6); }

/* 反応ボタン */
.ntr-react { margin: 1.5em 0; }
.ntr-react-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ntr-react-btn { flex: 1 1 140px; padding: 10px 8px; border: 1px solid rgba(128, 128, 128, .6); border-radius: 22px; background: transparent; color: inherit; font-size: 15px; cursor: pointer; }
.ntr-react-btn:hover { border-color: #e83e8c; }
.ntr-react-btn.is-pressed { background: rgba(232, 62, 140, .18); border-color: #e83e8c; cursor: default; }
.ntr-react-count { font-weight: bold; margin-left: 4px; }

/* 共有 */
.ntr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.ntr-share a { padding: 4px 12px; border-radius: 4px; color: #fff !important; text-decoration: none; font-weight: bold; }
.ntr-share-x { background: #000; border: 1px solid #555; }
.ntr-share-line { background: #06c755; }

/* 感想 */
.ntr-comment-head { font-size: 13px; }
.ntr-comment-name { font-weight: bold; }
.ntr-comment-form textarea { min-height: 6em; }
.ntr-report { text-align: right; margin: 0; }
.ntr-report button { font-size: 11px; padding: 0 6px; background: transparent; color: inherit; opacity: .6; border: 1px solid rgba(128, 128, 128, .5); border-radius: 3px; cursor: pointer; }
.ntr-inline-form { margin: 0; }
.ntr-badge-new { background: #e83e8c; }
.ntr-notify-settings { margin: 1em 0; border: 1px solid rgba(128, 128, 128, .5); border-radius: 6px; padding: .5em 1em; }
.ntr-author-comments { margin-top: 2em; }
.ntr-muted { font-size: 12px; opacity: .7; }

/* 作者ページ */
.ntr-writer-head { padding: 1em; margin-bottom: 1em; border: 1px solid rgba(128, 128, 128, .5); border-radius: 8px; }
.ntr-writer-name { font-size: 24px; font-weight: bold; margin: 0; }
.ntr-writer-stats { margin: .3em 0 0; opacity: .9; }

/* トップページ */
.ntr-home { margin-top: 2em; }
.ntr-home-theme, .ntr-home-invite { padding: 1em 1.2em; margin: 1em 0; border-radius: 10px; border: 2px solid #e83e8c; background: rgba(232, 62, 140, .08); }
.ntr-home-invite { border-color: var(--ntr-accent); background: rgba(39, 172, 217, .08); }
.ntr-home-label { font-size: 12px; font-weight: bold; color: #e83e8c; margin: 0; }
.ntr-home-theme-title { font-size: 20px; font-weight: bold; margin: .2em 0 .5em; }
.ntr-home-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.ntr-home-cta .ntr-btn-small { padding: 6px 16px; }
.ntr-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.ntr-home-box { border: 1px solid rgba(128, 128, 128, .5); border-radius: 8px; padding: .5em 1em; }
.ntr-home-list { margin: 0 0 .5em 1.2em; padding: 0; }
.ntr-home-list li { margin: .35em 0; }
.ntr-more { text-align: right; font-size: 13px; margin: 0; }

/* ===== 新しいTOPページ [ntr_home] ===== */
.ntr-top { --ntr-rose: #e8466f; --ntr-violet: #7b4bd6; --ntr-card: rgba(255, 255, 255, .04); --ntr-line: rgba(255, 255, 255, .12); }
.ntr-top a { text-decoration: none; }
.ntr-sp { display: none; }
.ntr-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 44px 32px; margin-bottom: 20px; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(232, 70, 111, .55), transparent 45%), radial-gradient(circle at 10% 90%, rgba(123, 75, 214, .55), transparent 50%), linear-gradient(135deg, #1b1022, #2a0f1f 60%, #150d24); }
.ntr-hero-eyebrow { margin: 0; font-size: 13px; letter-spacing: .15em; opacity: .85; }
.ntr-hero-title { margin: .2em 0 .3em; font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.25; }
.ntr-hero-lead { margin: 0 0 1.2em; opacity: .9; }
.ntr-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 1.4em; padding: 0; }
.ntr-hero-stats li { min-width: 110px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.ntr-hero-stats strong { display: block; font-size: 24px; line-height: 1.1; }
.ntr-hero-stats span { font-size: 12px; opacity: .8; }
.ntr-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.ntr-cta { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: bold; transition: transform .15s, box-shadow .15s; }
.ntr-cta:hover { transform: translateY(-2px); }
.ntr-cta-primary { color: #fff !important; background: linear-gradient(135deg, var(--ntr-rose), var(--ntr-violet)); box-shadow: 0 6px 18px rgba(232, 70, 111, .35); }
.ntr-cta-ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .5); }

.ntr-entry { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ntr-entry-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--ntr-card); border: 1px solid var(--ntr-line); color: inherit !important; transition: transform .15s, border-color .15s; }
.ntr-entry-card:hover { transform: translateY(-3px); border-color: var(--ntr-rose); }
.ntr-entry-icon { font-size: 30px; }
.ntr-entry-title { font-size: 20px; font-weight: 800; }
.ntr-entry-desc { font-size: 13px; opacity: .8; flex: 1; }
.ntr-entry-count { font-size: 13px; font-weight: bold; color: var(--ntr-rose); }

.ntr-theme-banner { padding: 20px 24px; margin-bottom: 20px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, rgba(232, 70, 111, .9), rgba(123, 75, 214, .9)); }
.ntr-theme-banner .ntr-home-label { color: #fff; opacity: .85; }
.ntr-theme-title { font-size: 24px; font-weight: 800; margin: .1em 0 .3em; }
.ntr-theme-desc { margin: 0 0 1em; }
.ntr-theme-banner .ntr-cta-primary { background: #fff; color: #b0244d !important; box-shadow: none; }

.ntr-top-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.ntr-top-section { margin-bottom: 24px; }
.ntr-top-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ntr-line); margin-bottom: 12px; }
.ntr-top-h { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.ntr-top-head a { font-size: 13px; }
.ntr-mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ntr-mini-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--ntr-card); border: 1px solid var(--ntr-line); color: inherit !important; }
.ntr-mini-card:hover, .ntr-story-card:hover { border-color: var(--ntr-rose); }
.ntr-mini-badge { align-self: flex-start; font-size: 11px; font-weight: bold; padding: 1px 8px; border-radius: 999px; color: #fff; background: var(--ntr-rose); }
.ntr-mini-title { font-weight: bold; line-height: 1.4; }
.ntr-mini-meta { font-size: 12px; opacity: .7; }
.ntr-rank-list, .entry-content .ntr-top .ntr-rank-list { list-style: none; margin: 0; padding: 0; }
.ntr-rank-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--ntr-line); }
.ntr-rank-no { flex: 0 0 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; font-size: 13px; font-weight: bold; color: #fff; background: #555; }
.ntr-rank-no-1 { background: #d4a017; }
.ntr-rank-no-2 { background: #9e9e9e; }
.ntr-rank-no-3 { background: #b06f30; }
.ntr-story-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ntr-story-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--ntr-card); border: 1px solid var(--ntr-line); color: inherit !important; }
.ntr-story-meta { font-size: 12px; color: var(--ntr-rose); font-weight: bold; }
.ntr-story-title { font-size: 16px; font-weight: 800; line-height: 1.4; }
.ntr-story-excerpt { font-size: 13px; opacity: .8; flex: 1; }
.ntr-story-author { font-size: 12px; opacity: .7; text-align: right; }

.ntr-invite { padding: 28px; border-radius: 18px; border: 1px solid var(--ntr-line); background: linear-gradient(135deg, rgba(123, 75, 214, .18), rgba(232, 70, 111, .12)); }
.ntr-invite-title { font-size: 24px; font-weight: 800; margin: 0 0 .3em; }
.ntr-invite-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 1em; }
.ntr-invite-option { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--ntr-line); color: inherit !important; font-size: 13px; }
.ntr-invite-option:hover { border-color: var(--ntr-rose); }
.ntr-invite-h { font-size: 16px; font-weight: 800; color: var(--ntr-rose); }

@media screen and (max-width: 834px) {
  .ntr-top-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 480px) {
  .ntr-sp { display: inline; }
  .ntr-hero { padding: 28px 18px; border-radius: 14px; }
  .ntr-hero-stats li { min-width: calc(50% - 5px); }
  .ntr-cta { flex: 1 1 auto; text-align: center; }
}

/* 年齢確認 */
html.ntr-age-pending body { overflow: hidden; }
html.ntr-age-pending body > *:not(.ntr-age-gate) { filter: blur(14px); }
.ntr-age-gate { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .75); padding: 16px; }
.ntr-age-box { max-width: 420px; width: 100%; background: #222; color: #fff; border-radius: 10px; padding: 24px; text-align: center; }
.ntr-age-title { font-size: 22px; font-weight: bold; }
.ntr-age-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1em; }
.ntr-age-yes { padding: 10px 20px; font-size: 16px; font-weight: bold; background: #c0392b; color: #fff; border: none; border-radius: 6px; cursor: pointer; }
.ntr-age-no { padding: 10px 20px; color: #ccc !important; }

@media screen and (max-width: 600px) {
  .ntr-form input, .ntr-form select, .ntr-form textarea { font-size: 16px; } /* iPhone で入力時に拡大されないように */
  .ntr-form textarea[name="novel_body"], .ntr-form textarea[name="bulk_text"] { min-height: 60vh; }
  .ntr-tabs a { flex: 1 1 auto; text-align: center; padding: 8px 6px; font-size: 14px; }
  .ntr-btn-primary { width: 100%; }
  .ntr-card-actions .ntr-btn-small { flex: 1 1 45%; text-align: center; padding: 6px 4px; }
}

@media screen and (max-width: 480px) {
  .ntr-novel-title { font-size: 20px; }
  .novelbody, .ntr-taiken-body { padding: .75em; }
  /* スマホでは文字サイズの基準を一段小さく（読者が選んだ大きさは維持） */
  html.ntr-fs-s { --ntr-read-fs: 15px; }
  html.ntr-fs-m { --ntr-read-fs: 17px; }
  html.ntr-fs-l { --ntr-read-fs: 20px; }
  html.ntr-fs-xl { --ntr-read-fs: 24px; }
  [data-ntr-reader] { font-size: var(--ntr-read-fs, 17px); }
  .ntr-btn { padding: .8em 1em; }
}
