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

:root {
  --ntr-novel-size: 20px;      /* 小説本文の文字サイズ */
  --ntr-novel-bg: #361616;     /* 小説本文の背景色 */
  --ntr-novel-color: #fff;     /* 小説本文の文字色 */
  --ntr-taiken-bg: #1c1b20;    /* 体験談本文の背景色 */
  --ntr-taiken-color: #ebe4e6; /* 体験談本文の文字色 */
  --ntr-accent: #e8466f;
  --ntr-accent-dark: #b52f52;
}

.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: #4a4a52; border-color: #33333a; }
.ntr-btn-post { background: var(--ntr-accent); border-color: var(--ntr-accent-dark); }

.ntr-chip { display: inline-block; padding: 2px 10px; margin: 2px; border-radius: 999px; background: rgba(232, 70, 111, .14); border: 1px solid rgba(232, 70, 111, .45); color: inherit !important; text-decoration: none; font-size: 12px; 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: #4a4a52; border-color: #33333a; }
.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, .entry-content .ntr-pref-group button { padding: 2px 8px; line-height: 1.6; 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; }
}

/* ===== TOP B案（ラベル・アイコン中心） ===== */
.tb { --tb-rose: #ff4f7b; --tb-violet: #8b5cf6; --tb-gold: #f5b301; --tb-card: rgba(255, 255, 255, .05); --tb-line: rgba(255, 255, 255, .1); }
.tb a { text-decoration: none; color: inherit; }
.tb p, .entry-content .tb p, .article .tb p { margin: 0; }
.tb-hero { padding: 18px 20px; border-radius: 14px; margin-bottom: 14px; color: #fff; background: linear-gradient(120deg, #2a1030, #1a1238 60%, #301022); border: 1px solid rgba(255, 79, 123, .35); }
.tb-hero-title { font-size: clamp(18px, 3vw, 24px); font-weight: 800; }
.tb-hero-nums { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 13px; opacity: .9; }
.tb-hero-nums b { font-size: 20px; margin-right: 2px; }
.tb-hot b { color: var(--tb-rose); }
.tb-menu { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 20px; }
.tb-menu a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 12px; background: var(--tb-card); border: 1px solid var(--tb-line); font-size: 13px; font-weight: bold; }
.tb-menu a span { font-size: 24px; }
.tb-menu a:hover { border-color: var(--tb-rose); }
.tb-sec { margin-bottom: 24px; }
.tb-h { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; margin-bottom: 10px !important; }
.tb-h a { margin-left: auto; font-size: 13px; font-weight: normal; color: var(--tb-rose) !important; }
.tb-h-label { font-size: 10px; letter-spacing: .12em; padding: 2px 6px; border-radius: 4px; color: #fff; background: linear-gradient(135deg, var(--tb-rose), var(--tb-violet)); }
.tb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-tags a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 79, 123, .12); border: 1px solid rgba(255, 79, 123, .4); font-size: 14px; font-weight: bold; }
.tb-tags a small { margin-left: 6px; font-size: 11px; opacity: .7; font-weight: normal; }
.tb-tags a.tb-tag-cat { background: rgba(139, 92, 246, .14); border-color: rgba(139, 92, 246, .5); }
.tb-tags a:hover { background: rgba(255, 79, 123, .3); }
.tb-theme { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; margin-bottom: 24px; color: #fff !important; background: linear-gradient(120deg, rgba(255, 79, 123, .85), rgba(139, 92, 246, .85)); }
.tb-theme b { font-size: 17px; }
.tb-theme-go { margin-left: auto; font-size: 13px; font-weight: bold; white-space: nowrap; }
.tb-label { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; font-weight: bold; line-height: 1.7; color: #fff; white-space: nowrap; }
.tb-l-new { background: var(--tb-rose); }
.tb-l-ongoing { background: #2f80ed; }
.tb-l-done { background: var(--tb-violet); }
.tb-l-plain { background: rgba(255, 255, 255, .15); }
.tb-l-cat { background: rgba(255, 255, 255, .12); color: inherit; }
.tb-l-series { background: #c77d1a; }
.tb-l-theme { background: rgba(0, 0, 0, .3); }
.tb-labels { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tb-date { font-size: 12px; opacity: .6; margin-right: 2px; }
.tb-stats { display: inline-flex; gap: 10px; font-size: 12px; opacity: .75; white-space: nowrap; }
.tb-rank { display: flex; flex-wrap: wrap; }
.tb-rank input { position: absolute; opacity: 0; pointer-events: none; }
.tb-rank label { padding: 6px 16px; margin-right: 4px; border-radius: 8px 8px 0 0; background: var(--tb-card); border: 1px solid var(--tb-line); border-bottom: none; cursor: pointer; font-size: 14px; font-weight: bold; opacity: .7; }
.tb-rank input:checked + label { opacity: 1; color: #fff; background: linear-gradient(135deg, var(--tb-rose), var(--tb-violet)); }
.tb-rank-panel { display: none; flex-basis: 100%; list-style: none; margin: 0 !important; padding: 6px 12px !important; border: 1px solid var(--tb-line); border-radius: 0 10px 10px 10px; background: var(--tb-card); }
#tb-rank-week:checked ~ .tb-rank-week, #tb-rank-react:checked ~ .tb-rank-react, #tb-rank-all:checked ~ .tb-rank-all { display: block; }
.tb-rank-panel li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--tb-line); }
.tb-rank-panel li:last-child { border-bottom: none; }
.tb-rank-panel li > a { flex: 1; font-weight: bold; }
.tb-no { flex: 0 0 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 6px; font-weight: 800; font-size: 13px; color: #fff; background: #444; }
.tb-no-1 { background: var(--tb-gold); }
.tb-no-2 { background: #a0a0a0; }
.tb-no-3 { background: #c0773a; }
.tb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tb-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--tb-card); border: 1px solid var(--tb-line); }
.tb-card:hover, .tb-rows a:hover { border-color: var(--tb-rose); }
.tb-card-title { font-size: 16px; font-weight: 800; line-height: 1.4; flex: 1; }
.tb-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb-author { font-size: 12px; opacity: .7; }
.tb-rows { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 8px; }
.tb-rows li { margin: 0 !important; }
.tb-rows a { display: flex; flex-direction: column; gap: 5px; padding: 10px 14px; border-radius: 10px; background: var(--tb-card); border: 1px solid var(--tb-line); }
.tb-row-title { font-weight: 800; font-size: 15px; }
.tb-row-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tb-row-tags { font-size: 12px; color: var(--tb-rose); }
.tb-post { padding: 18px; border-radius: 14px; background: linear-gradient(120deg, rgba(139, 92, 246, .18), rgba(255, 79, 123, .14)); border: 1px solid var(--tb-line); }
.tb-post-title { font-size: 18px; font-weight: 800; margin-bottom: 10px !important; }
.tb-post-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-post-btns a { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 12px; color: #fff !important; background: linear-gradient(135deg, var(--tb-rose), var(--tb-violet)); }
.tb-post-btns a b { font-size: 16px; }
.tb-post-btns a span { font-size: 12px; opacity: .9; }
@media screen and (max-width: 600px) {
  .tb-menu { grid-template-columns: repeat(3, 1fr); }
  .tb-post-btns { grid-template-columns: 1fr; }
  .tb-rows { grid-template-columns: 1fr; }
}

/* ===== パンくず（テーマに無い場合の最低限）・作品ページ ===== */
.ntr-crumbs { font-size: 12px; opacity: .75; margin: 0 0 8px; }
.ntr-crumbs a { text-decoration: none; }
.ntr-crumbs span[aria-hidden] { margin: 0 6px; }
.ntr-novel-title a { color: inherit; text-decoration: none; }
.ntr-work-meta { font-size: 14px; }
.ntr-work-stats { font-size: 13px; opacity: .7; }
.ntr-work-summary { padding: 12px 16px; margin: 1em 0; border-left: 3px solid #e8466f; background: rgba(255, 255, 255, .04); }
.ntr-toc { list-style: none; margin: 0 0 1.5em !important; padding: 0 !important; border-top: 1px solid rgba(128, 128, 128, .3); }
.ntr-toc li { margin: 0 !important; border-bottom: 1px solid rgba(128, 128, 128, .3); }
.ntr-toc a { display: flex; gap: 14px; align-items: baseline; padding: 10px 6px; text-decoration: none; }
.ntr-toc a:hover { background: rgba(255, 255, 255, .04); }
.ntr-toc-no { flex: 0 0 auto; font-weight: bold; min-width: 4.5em; }
.ntr-toc-sub { flex: 1; }
.ntr-toc-date { margin-left: auto; font-size: 12px; opacity: .6; white-space: nowrap; }

/* ===== TOP C案（タイトル主役・一言キャッチ・漢字アイコン） ===== */
.tc { --tc-rose: #e8466f; --tc-ink: #ececec; --tc-sub: rgba(236, 236, 236, .6); --tc-line: rgba(255, 255, 255, .1); --tc-card: rgba(255, 255, 255, .035); }
.tc a { text-decoration: none; color: inherit; }
.tc p, .entry-content .tc p, .article .tc p { margin: 0; }
.tc-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--tc-line); }
.tc-hero-title { font-size: clamp(20px, 3.2vw, 26px); font-weight: 800; letter-spacing: .04em; }
.tc-hero-sub { margin-top: 4px !important; font-size: 13px; color: var(--tc-sub); }
.tc-post-btn { padding: 12px 22px; border-radius: 8px; font-weight: 800; color: #fff !important; background: var(--tc-rose); box-shadow: 0 4px 14px rgba(232, 70, 111, .35); white-space: nowrap; }
.tc-post-btn:hover { filter: brightness(1.1); }
.tc-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 6px; font-weight: 900; font-size: 19px; color: #fff; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.tc-ic-rose { background: #c0304f; } .tc-ic-violet { background: #6d44c4; } .tc-ic-gold { background: #b8860b; }
.tc-ic-blue { background: #2a6fb5; } .tc-ic-green { background: #2e8b57; } .tc-ic-orange { background: #d2691e; }
.tc-menu { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 30px; }
.tc-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--tc-card); border: 1px solid var(--tc-line); font-weight: bold; font-size: 14px; }
.tc-menu a:hover, .tc-theme-tile:hover, .tc-card:hover, .tc-post-btns a:hover { border-color: var(--tc-rose); }
.tc-theme { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 30px; border-radius: 8px; border: 1px solid rgba(232, 70, 111, .5); background: rgba(232, 70, 111, .08); }
.tc-theme-label { font-size: 12px; font-weight: bold; color: var(--tc-rose); white-space: nowrap; }
.tc-theme-title { font-weight: 800; font-size: 16px; }
.tc-theme .tc-more { margin-left: auto; }
.tc-sec { margin-bottom: 36px; }
.tc-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--tc-rose); }
.tc-h { font-size: 19px; font-weight: 800; letter-spacing: .05em; }
.tc-more { font-size: 13px; color: var(--tc-rose) !important; white-space: nowrap; }
.tc-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tc-theme-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 8px; background: var(--tc-card); border: 1px solid var(--tc-line); }
.tc-theme-body { display: flex; flex-direction: column; gap: 3px; }
.tc-theme-name { font-weight: 800; font-size: 16px; }
.tc-theme-name small { margin-left: 8px; font-size: 12px; font-weight: normal; color: var(--tc-sub); }
.tc-theme-blurb { font-size: 13px; color: var(--tc-sub); line-height: 1.5; }
.tc-rank { display: flex; flex-wrap: wrap; }
.tc-rank input { position: absolute; opacity: 0; pointer-events: none; }
.tc-rank label { padding: 6px 18px; font-size: 14px; font-weight: bold; color: var(--tc-sub); border-bottom: 2px solid transparent; cursor: pointer; }
.tc-rank input:checked + label { color: var(--tc-ink); border-bottom-color: var(--tc-rose); }
.tc-rank-panel { display: none; flex-basis: 100%; list-style: none; margin: 8px 0 0 !important; padding: 0 !important; }
#tc-rank-week:checked ~ .tc-rank-week, #tc-rank-react:checked ~ .tc-rank-react, #tc-rank-all:checked ~ .tc-rank-all { display: block; }
.tc-rank-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--tc-line); margin: 0 !important; }
.tc-rank-item a { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tc-no { flex: 0 0 28px; font-size: 20px; font-weight: 900; line-height: 1.2; text-align: center; color: var(--tc-sub); font-family: Georgia, serif; }
.tc-no-1 { color: #e0b030; font-size: 26px; } .tc-no-2 { color: #b8b8b8; font-size: 24px; } .tc-no-3 { color: #c7844a; font-size: 22px; }
.tc-top .tc-title { font-size: 17px; }
.tc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tc-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 8px; background: var(--tc-card); border: 1px solid var(--tc-line); }
.tc-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tc-label { padding: 0 7px; border-radius: 3px; font-size: 11px; font-weight: bold; line-height: 1.8; white-space: nowrap; }
.tc-new { background: var(--tc-rose); color: #fff; }
.tc-done { background: #6d44c4; color: #fff; }
.tc-outline { border: 1px solid rgba(255, 255, 255, .3); color: var(--tc-sub); }
.tc-meta { font-size: 12px; color: var(--tc-sub); }
.tc-hook { font-size: 13px; color: #f08aa5; line-height: 1.5; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.tc-title { font-size: 16px; font-weight: 800; line-height: 1.45; color: var(--tc-ink); }
.tc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tc-author { font-size: 12px; color: var(--tc-sub); }
.tc-stats { font-size: 12px; color: var(--tc-sub); }
.tc-post .tc-h { margin-bottom: 12px !important; }
.tc-post-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-post-btns a { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 8px; background: var(--tc-card); border: 1px solid var(--tc-line); }
.tc-post-btns b { display: block; font-size: 17px; }
.tc-post-btns small { font-size: 12px; color: var(--tc-sub); }
@media screen and (max-width: 834px) {
  .tc-menu { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 600px) {
  .tc-hero { flex-direction: column; align-items: stretch; }
  .tc-post-btn { text-align: center; }
  .tc-menu a { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 12px; }
  .tc-post-btns { grid-template-columns: 1fr; }
  .tc-cards { grid-template-columns: 1fr; }
}

/* 年齢確認 */
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; }
}

/* ---------- 寝取られニュース ---------- */
.ntr-news-lead { color: rgba(236, 236, 236, .7); margin: -4px 0 18px; font-size: 14px; }
.ntr-news-list { list-style: none; margin: 0 0 24px; padding: 0; max-width: 820px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ntr-news-item { padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ntr-news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12px; color: rgba(236, 236, 236, .6); }
.ntr-news-src { padding: 1px 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: rgba(236, 236, 236, .85); }
.ntr-news-title { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 700; }
.ntr-news-title a { color: #ececec; text-decoration: none; }
.ntr-news-title a:hover { color: var(--ntr-accent); }
.ntr-news-sum { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: rgba(236, 236, 236, .72); }
.ntr-news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ntr-news-tags .ntr-chip { font-size: 12px; }
.nt-single .ntr-news-points, .nt-single .ntr-news-view, .nt-single .ntr-news-related, .nt-single .ntr-news-quote, .nt-single .ntr-news-body, .nt-single .ntr-news-src-btn { max-width: 760px; }
.ntr-news-points { margin: 20px 0; padding: 14px 18px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.ntr-news-points h2, .ntr-news-view h2, .ntr-news-related h2 { margin: 0 0 8px; font-size: 15px; }
.ntr-news-points ul { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.ntr-news-quote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .025); color: rgba(236, 236, 236, .8); font-size: 14px; }
.ntr-news-quote p { margin: 0 0 6px; }
.ntr-news-quote footer { font-size: 12px; color: rgba(236, 236, 236, .6); }
.ntr-news-view { margin: 24px 0; padding: 16px 18px; border-radius: 8px; border: 1px solid rgba(232, 70, 111, .45); background: rgba(232, 70, 111, .07); line-height: 1.9; }
.ntr-news-view h2 { display: flex; align-items: center; gap: 8px; color: #f08aa5; }
.ntr-news-view h2 span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ntr-accent); color: #fff; font-size: 13px; }
.ntr-news-view p { margin: 0 0 8px; }
.ntr-news-src-btn { margin: 20px 0; }
.ntr-news-related { margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ntr-news-related ul { margin: 0; padding-left: 1.2em; line-height: 2; }
.ntr-news-more { margin: 4px 0 0; font-size: 13px; }
.ntr-news-cta { margin: 18px 0 0; padding: 14px 16px; border-radius: 8px; background: rgba(255, 255, 255, .04); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 600px) { .ntr-news-title { font-size: 16px; } }
.ntr-news-new { padding: 0 6px; border-radius: 4px; background: var(--ntr-accent); color: #fff; font-weight: 700; font-size: 11px; }
.ntr-news-src-btn .ntr-btn, .ntr-news-cta .ntr-btn { display: inline-block; margin: 0; max-width: none; }

/* ---------- 小説：タブ・検索・ランキング・本棚・おすすめ・メール通知 ---------- */
.ntr-ntabs { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ntr-ntabs a { padding: 8px 16px; color: rgba(236, 236, 236, .7); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 700; }
.ntr-ntabs a.is-current { color: #fff; border-bottom-color: var(--ntr-accent); }
.ntr-nsearch { margin: 0 0 18px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(255, 255, 255, .03); }
.ntr-nsearch summary { cursor: pointer; font-weight: 700; }
.ntr-nsearch-form { margin-top: 10px; }
.ntr-nsearch-form p { margin: 0 0 10px; }
.ntr-nsearch-q input { width: 100%; box-sizing: border-box; }
.ntr-nsearch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ntr-nsearch-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(236, 236, 236, .75); }
.ntr-nsearch-check { font-size: 14px; }
.ntr-novel-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ntr-novel-date { color: rgba(236, 236, 236, .6); font-size: 13px; }
.ntr-badge-stale { background: rgba(255, 255, 255, .1) !important; color: rgba(236, 236, 236, .75) !important; }
.ntr-rank-periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ntr-rank-periods a { padding: 4px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(236, 236, 236, .85); text-decoration: none; font-size: 14px; }
.ntr-rank-periods a.is-current { background: var(--ntr-accent); border-color: var(--ntr-accent); color: #fff; }
.ntr-rank-periods .ntr-rank-done { margin-left: auto; }
.ntr-rank-list { list-style: none; margin: 0; padding: 0; }
.ntr-rank-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ntr-rank-no { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .08); font-weight: 800; }
.ntr-rank-item.is-top .ntr-rank-no { background: var(--ntr-accent); color: #fff; }
.ntr-rank-item .ntr-novel-title { margin: 0 0 4px; }
.ntr-rank-sum { margin: 6px 0 0; font-size: 13px; color: rgba(236, 236, 236, .7); }
.ntr-shelf-list { list-style: none; margin: 0; padding: 0; }
.ntr-shelf-item { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ntr-shelf-new { padding: 0 6px; border-radius: 4px; background: var(--ntr-accent); color: #fff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.ntr-shelf-remove { background: none; border: 0; color: rgba(236, 236, 236, .55); font-size: 12px; cursor: pointer; text-decoration: underline; }
.ntr-recommend { margin: 24px 0 0; }
.ntr-recommend ul { margin: 0; padding-left: 1.2em; line-height: 2; }
.ntr-end-mark { text-align: center; margin: 28px 0 6px; font-size: 18px; letter-spacing: .3em; }
.ntr-subscribe { margin: 28px 0 8px; padding: 16px; border-radius: 8px; border: 1px solid rgba(232, 70, 111, .4); background: rgba(232, 70, 111, .06); }
.ntr-subscribe-title { margin: 0 0 4px; font-weight: 800; }
.ntr-subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ntr-subscribe-form input[type=email] { flex: 1 1 220px; min-width: 0; }
.ntr-novel-list .ntr-novel-item, .ntr-shelf-item, .ntr-rank-item { text-align: left; }
.ntr-novel-list .ntr-novel-title, .ntr-shelf-item .ntr-novel-title { font-size: 20px; text-align: left; margin: 0 0 6px; }
.ntr-novel-list .ntr-read-buttons, .ntr-shelf-item .ntr-read-buttons { text-align: left; justify-content: flex-start; }
.ntr-novel-list .ntr-novel-summary { text-align: left; }
.ntr-novel-list .ntr-novel-summary summary { font-size: 14px; color: rgba(236, 236, 236, .75); }
.ntr-novel-list .ntr-novel-summary { margin: .4em 0; }
.ntr-completed-box { margin: 12px 0 18px; padding: 12px 16px; border-radius: 8px; border: 1px dashed rgba(232, 70, 111, .5); background: rgba(232, 70, 111, .05); }
.ntr-completed-box.is-done { border-style: solid; border-color: rgba(123, 75, 214, .6); background: rgba(123, 75, 214, .08); }
.ntr-completed-box p { margin: 0 0 8px; }
.ntr-complete-check { margin: 14px 0; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .04); }
