/* =========================================================
   MagNow 読者向けページ（タイムライン・発行者・号・アカウント）
   style.css の色と部品（ボタン・フォーム・notice）をそのまま使う
   ========================================================= */
.cm .container.cm-wrap{ max-width:940px; }
.cm .container.cm-wrap.is-narrow{ max-width:680px; }
.cm.page{ padding-top:44px; }
.cm-nav .cm-me{ display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:999px; background:var(--ink); color:#fff; font-weight:700; max-width:12em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cm-nav .cm-me:hover{ color:#fff; background:var(--shu-d); }
.cm-nav .cm-admin-link{ font-weight:700; color:var(--shu-d); }
.cm-admin-card{ box-shadow:var(--sh-1), inset 0 0 0 2px var(--shu); }
.btn-xs{ height:32px; padding:0 14px; font-size:13px; }
.cm-h2{ margin:44px 0 16px; font-size:19px; font-weight:900; color:var(--ink); line-height:1.5; }
.cm-note{ font-size:13.5px; color:var(--muted); line-height:1.75; }
.cm-note a{ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }
.cm-loading{ padding:28px 0; color:var(--muted); font-size:14px; }
.cm-linkbtn{ font-size:13px; font-weight:700; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.cm-linkbtn:hover{ color:var(--shu-d); }
.cm-linkbtn.is-danger{ color:var(--shu-d); }
.cm-linkbtn:disabled{ opacity:.5; cursor:default; }

/* ---------- タイムラインの見出しとタブ ---------- */
.cm-head{ margin-bottom:26px; }
.cm-head .label{ margin-bottom:12px; }
.cm-head h1{ font-size:clamp(26px, 4.2vw, 38px); font-weight:900; line-height:1.35; color:var(--ink); }
.cm-head .lead{ margin-top:12px; font-size:15px; max-width:44em; }
.cm-tabs{ display:flex; gap:6px; padding:5px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1px var(--line); width:max-content; max-width:100%; overflow-x:auto; }
.cm-tabs [role="tab"]{ height:38px; padding:0 18px; border-radius:999px; font-size:14px; font-weight:700; color:var(--ink-2); white-space:nowrap; }
.cm-tabs [role="tab"][aria-selected="true"]{ background:var(--ink); color:#fff; }
.cm-tabs [role="tab"]:not([aria-selected="true"]):hover{ background:var(--paper-2); }
.cm-panel{ margin-top:22px; }
.cm-rssline{ margin-top:40px; font-size:13px; }
.cm-rssline a, .cm-rss{ color:var(--muted); text-decoration:underline; text-underline-offset:3px; }

/* ---------- 号のカード ---------- */
.cm-list{ display:grid; gap:14px; }
.cm-list.is-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.cm-card{ border-radius:var(--r); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); transition:transform .2s ease, box-shadow .2s ease; }
.cm-card:hover{ transform:translateY(-2px); box-shadow:var(--sh-2), inset 0 0 0 1px var(--line-2); }
.cm-card-link{ display:grid; grid-template-columns:132px minmax(0, 1fr); gap:18px; padding:14px; }
.cm-card-img{ display:block; aspect-ratio:3/4; border-radius:12px; overflow:hidden; background:var(--paper-2); }
.cm-card-img img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.cm-card-ph{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; height:100%; }
.cm-card-body{ display:flex; flex-direction:column; gap:6px; min-width:0; padding:4px 4px 2px 0; }
.cm-card-ch{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--ink-2); }
.cm-card-ttl{ font-size:18px; font-weight:900; line-height:1.5; color:var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cm-card-ex{ font-size:14px; line-height:1.75; color:var(--ink-2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cm-card-foot{ margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; font-size:12.5px; color:var(--muted); }
.cm-card-foot time{ margin-right:4px; }
.cm-card-stats{ margin-left:auto; display:inline-flex; gap:12px; font-family:var(--f-en); font-weight:600; }
.is-grid .cm-card-link{ grid-template-columns:96px minmax(0, 1fr); gap:14px; }
.is-grid .cm-card-ttl{ font-size:16px; }
.is-grid .cm-card-ex{ display:none; }

.cm-chip{ display:inline-flex; align-items:center; height:22px; padding:0 9px; border-radius:999px; font-size:11.5px; font-weight:700; white-space:nowrap; }
.cm-chip.f-manga{ background:var(--shu-soft); color:var(--shu-d); }
.cm-chip.f-podcast{ background:var(--vio-soft); color:var(--vio-d); }
.cm-chip.f-short{ background:var(--tea-soft); color:var(--tea-d); }

.cm-avatar{ flex:none; display:inline-grid; place-items:center; width:44px; height:44px; border-radius:50%; overflow:hidden; background:var(--ink); color:#fff; font-weight:900; font-size:18px; line-height:1; }
.cm-avatar img{ width:100%; height:100%; object-fit:cover; }
.cm-avatar.is-xs{ width:22px; height:22px; font-size:11px; }
.cm-avatar.is-lg{ width:88px; height:88px; font-size:36px; }

.cm-more{ display:block; margin:18px auto 0; height:44px; padding:0 26px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1.5px var(--ink); font-weight:700; font-size:14px; color:var(--ink); }
.cm-more:hover{ background:var(--ink); color:#fff; }
.cm-more:disabled{ opacity:.5; }
.cm-more[hidden]{ display:none; }   /* display を指定しているので、hidden を効かせる */

.cm-empty{ padding:36px 28px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line); text-align:center; }
.cm-empty-ttl{ font-size:17px; font-weight:900; color:var(--ink); }
.cm-empty p + p{ margin-top:8px; font-size:14px; color:var(--ink-2); }
.cm-empty-cta{ margin-top:16px; text-align:center; }

/* ---------- 発行者 ---------- */
.cm-chlist{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.cm-chrow{ display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:var(--r); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.cm-chrow:hover{ box-shadow:var(--sh-2), inset 0 0 0 1px var(--line-2); }
.cm-chrow-body{ display:flex; flex-direction:column; min-width:0; }
.cm-chrow-body b{ font-size:16px; line-height:1.5; }
.cm-chrow-body small{ font-size:12.5px; color:var(--ink-2); }
.cm-chrow-meta{ font-size:12px; color:var(--muted); }
.cm-chan-hero{ padding:30px; border-radius:var(--r-lg); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.cm-chan-top{ display:flex; align-items:center; gap:20px; }
.cm-chan-top h1{ font-size:clamp(24px, 4vw, 34px); font-weight:900; line-height:1.35; color:var(--ink); }
.cm-chan-author{ margin-top:2px; font-size:15px; font-weight:700; color:var(--ink-2); }
.cm-chan-desc{ margin-top:18px; font-size:15px; line-height:1.9; white-space:pre-line; }
.cm-chan-meta{ margin-top:14px; display:flex; gap:18px; font-size:13.5px; color:var(--muted); }
.cm-chan-meta b{ font-family:var(--f-en); font-size:16px; color:var(--ink); }
.cm-chan-acts{ margin-top:18px; display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; }
.cm-chan-acts .cm-rss{ margin-left:auto; font-size:13px; }
.cm-follow.is-on{ background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--ink); }
.cm-follow.is-on:hover{ background:var(--paper-2); color:var(--ink); }
.cm-sub.is-on{ background:var(--tea-soft); color:var(--tea-d); box-shadow:inset 0 0 0 1.5px var(--tea-d); }
.cm-sub.is-on:hover{ background:#fff; color:var(--ink); }
.cm-sub-note{ margin-top:10px; font-size:12.5px; line-height:1.7; color:var(--muted); }
.cm-subscribe-mail{ margin-top:4px; }
.cm-subscribe .cm-subscribe-mail .btn{ margin-top:10px; }
.cm-unsub-box{ max-width:560px; margin:40px auto; padding:32px 30px; border-radius:var(--r-lg); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.cm-unsub-box h1{ font-size:22px; font-weight:900; color:var(--ink); line-height:1.5; }
.cm-unsub-box p{ margin-top:12px; font-size:15px; line-height:1.85; }
.cm-unsub-box a:not(.btn){ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }
.cm-unsub-form{ margin-top:20px; display:flex; flex-wrap:wrap; gap:10px; }
.cm-unsub-box .btn{ margin-top:8px; }

/* ---------- 号のページ ---------- */
.cm-post-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; }
.cm-post-ch{ display:flex; align-items:center; gap:12px; min-width:0; }
.cm-post-ch b{ display:block; font-size:16px; line-height:1.4; color:var(--ink); }
.cm-post-ch small{ display:block; font-size:12.5px; color:var(--muted); }
.cm-post-ch:hover b{ color:var(--shu-d); }
.cm-post-ttl{ margin-top:22px; font-size:clamp(26px, 4.4vw, 40px); font-weight:900; line-height:1.4; color:var(--ink); }
.cm-post-meta{ margin-top:10px; display:flex; flex-wrap:wrap; gap:4px 14px; font-size:13.5px; color:var(--muted); }
.cm-post-ex{ margin-top:16px; font-size:16.5px; line-height:1.9; color:var(--ink-2); }
.cm-actions{ margin-top:22px; padding:12px 0; display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; border-block:1px solid var(--line); }
.cm-like{ display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 16px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1.5px var(--line); font-size:14px; font-weight:700; color:var(--ink); }
.cm-like b{ font-family:var(--f-en); }
.cm-like-ico{ color:var(--muted); font-size:17px; transition:transform .2s ease; }
.cm-like:hover{ box-shadow:inset 0 0 0 1.5px var(--shu); }
.cm-like.is-on{ background:var(--shu-soft); box-shadow:inset 0 0 0 1.5px var(--shu); color:var(--shu-d); }
.cm-like.is-on .cm-like-ico{ color:var(--shu); transform:scale(1.15); }
.cm-share{ display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border-radius:999px; font-size:13px; font-weight:700; color:var(--ink-2); }
.cm-share:hover{ background:var(--paper-2); color:var(--ink); }
.cm-share b{ font-family:var(--f-en); }
.cm-share-group{ margin-left:auto; display:inline-flex; flex-wrap:wrap; gap:2px; }
.cm-block{ margin-top:36px; }
.cm-block h2{ display:flex; align-items:center; gap:10px; margin-bottom:12px; font-size:14px; font-weight:700; color:var(--muted); }
.cm-frame{ display:block; width:100%; border:0; border-radius:14px; background:#fff; box-shadow:var(--sh-1); }
.cm-frame.is-manga{ max-width:640px; margin-inline:auto; aspect-ratio:3/5; }
.cm-frame.is-podcast{ height:228px; }
.cm-shorts{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 260px)); gap:12px; }
.cm-frame.is-short{ aspect-ratio:9/17; }
.cm-subscribe{ margin-top:40px; padding:28px 30px; border-radius:var(--r-lg); background:var(--ink); color:#E9E6DE; text-align:center; }
.cm-subscribe-ttl{ font-size:22px; font-weight:900; color:#fff; }
.cm-subscribe p + p{ margin-top:8px; font-size:14.5px; }
.cm-subscribe .btn{ margin-top:18px; }
.cm-ai-note{ margin-top:14px; font-size:12.5px; color:var(--muted); text-align:center; }
.cm-related .cm-h2{ margin-top:56px; }
.cm-related-more{ margin-top:14px; text-align:right; font-size:14px; font-weight:700; }
.cm-related-more a{ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }

/* ---------- コメント ---------- */
.cm-comments .cm-h2{ margin-top:48px; }
.cm-cform{ margin-bottom:18px; }
.cm-cform-login{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:18px 20px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line); font-size:14px; }
.cm-cform-form{ padding:18px 20px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line); }
.cm-cform-form textarea{ min-height:96px!important; }
.cm-cform-foot{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.cm-cform-foot .cm-note{ flex:1 1 260px; font-size:12.5px; }
.cm-counter{ font-family:var(--f-en); font-size:12.5px; color:var(--muted); }
.cm-clist{ display:grid; gap:10px; }
.cm-c{ padding:14px 18px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); }
.cm-c.is-owner{ box-shadow:inset 0 0 0 1.5px var(--shu); }
.cm-c-head{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; font-size:13px; }
.cm-c-head b{ font-size:14px; }
.cm-c-head time{ color:var(--muted); font-size:12px; }
.cm-c-acts{ margin-left:auto; display:inline-flex; gap:12px; }
.cm-c-body{ margin-top:6px; font-size:15px; line-height:1.85; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
.cm-c-empty{ padding:14px 0; font-size:14px; color:var(--muted); }
.cm-badge{ display:inline-flex; align-items:center; height:20px; padding:0 8px; border-radius:999px; background:var(--shu); color:#fff; font-size:11px; font-weight:700; }
.cm-report{ margin-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; font-size:13px; }
.cm-report select{ height:32px; padding:0 8px; border-radius:8px; border:1px solid var(--line); background:#fff; font:inherit; }
.cm-report-done{ margin-top:8px; font-size:13px; font-weight:700; color:var(--tea-d); }

/* ---------- ログイン ---------- */
.cm-dlg{ width:min(460px, calc(100vw - 32px)); max-height:calc(100vh - 32px); padding:28px 26px 24px; border:0; border-radius:var(--r-lg); background:var(--paper); color:var(--ink-2); box-shadow:var(--sh-2); }
.cm-dlg::backdrop{ background:rgba(21,23,28,.5); }
.cm-dlg h2{ font-size:21px; font-weight:900; color:var(--ink); }
.cm-dlg-lead{ margin-top:8px; font-size:14px; }
.cm-dlg-body{ margin-top:18px; }
.cm-dlg-x{ position:absolute; top:12px; right:14px; width:36px; height:36px; border-radius:50%; font-size:22px; line-height:1; color:var(--muted); }
.cm-dlg-x:hover{ background:var(--paper-2); color:var(--ink); }
.cm-lform .btn{ justify-self:start; }
.cm-lform-lead{ font-size:14.5px; line-height:1.8; }
.cm-lform-links{ display:flex; flex-wrap:wrap; gap:8px 18px; }
.cm-code{ font-family:var(--f-en); font-size:24px!important; letter-spacing:.3em; max-width:12em; }
.cm-ts:empty{ display:none; }
.cm-ts{ margin-top:16px; }
.cm-ltabs{ display:flex; gap:4px; margin-bottom:18px; padding:4px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1px var(--line); }
.cm-ltabs button{ flex:1; height:38px; padding:0 12px; border-radius:999px; font-size:14px; font-weight:700; color:var(--ink-2); white-space:nowrap; }
.cm-ltabs button.is-on{ background:var(--ink); color:#fff; }
.cm-invite{ font-family:var(--f-en); letter-spacing:.12em; text-transform:uppercase; }
.cm-login-card{ margin-top:0; }

/* ---------- アカウント ---------- */
.cm-account .notice:first-child{ margin-top:0; }
.cm-follows{ margin-top:12px; display:grid; gap:8px; }
.cm-follows li{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-2); font-weight:700; }
.cm-follows a:hover{ color:var(--shu-d); }
.cm-del{ margin-top:16px; }
/* パスキー */
.cm-pk-login{ margin-top:20px; padding-top:18px; border-top:1px solid var(--line-2); display:grid; gap:10px; justify-items:start; }
.cm-pk-list{ margin-top:12px; display:grid; }
.cm-pk-list li{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line-2); }
.cm-pk-list li.cm-note{ display:block; border-bottom:0; }
.cm-pk-list li > div{ min-width:0; }
.cm-pk-list li > button{ flex:none; white-space:nowrap; }
.cm-pk-list b{ display:block; font-weight:700; }
.cm-pk-list small{ display:block; margin-top:2px; font-size:12.5px; line-height:1.6; color:var(--muted); }

/* ---------- ダッシュボード ---------- */
.db-admin{ display:flex; flex-wrap:wrap; gap:6px 16px; align-items:center; padding:12px 16px; border-radius:var(--r); background:var(--shu-soft); color:var(--shu-d); font-size:14px; font-weight:700; }
.db-admin a{ text-decoration:underline; text-underline-offset:3px; }
.db-stats{ margin-top:18px; display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:10px; }
.db-stat{ padding:16px 14px; border-radius:var(--r); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); text-align:center; }
.db-stat b{ display:block; font-family:var(--f-en); font-size:28px; font-weight:800; color:var(--ink); line-height:1.2; }
.db-stat span{ font-size:12.5px; color:var(--muted); font-weight:700; }
.db-sec .cm-h2{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.db-h2-btn{ margin-left:auto; }
.db-issues{ display:grid; gap:12px; }
.db-issue{ padding:16px 18px; border-radius:var(--r); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.db-issue.is-act{ box-shadow:var(--sh-1), inset 0 0 0 2px var(--shu); }
.db-issue-top{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.db-issue-ttl{ margin-top:6px; font-size:17px; font-weight:900; color:var(--ink); line-height:1.5; }
.db-stage{ display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:999px; font-size:12px; font-weight:700; background:var(--paper-2); color:var(--ink-2); }
.db-stage.is-act{ background:var(--shu); color:#fff; }
.db-stage.is-warn{ background:#FFE07A; color:var(--ink); }
.db-stage.is-ok{ background:var(--tea-soft); color:var(--tea-d); }
.db-meta{ font-size:12.5px; color:var(--muted); }
.db-meta b{ color:var(--ink); }
.db-meta a{ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }
.db-hint{ margin-top:6px; font-size:14px; line-height:1.75; }
.db-acts{ margin-top:10px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.db-channels{ display:grid; gap:12px; }
.db-channel{ padding:18px 20px; border-radius:var(--r); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.db-channel-top{ display:flex; align-items:center; gap:14px; }
.db-channel-top b{ display:block; font-size:16px; color:var(--ink); }
.db-channel-top small{ display:block; font-size:12.5px; color:var(--ink-2); }
.db-desc{ margin-top:10px; font-size:14px; line-height:1.8; white-space:pre-line; }
.db-channel-edit{ font-weight:900; color:var(--ink); margin-bottom:10px; }
.db-comments{ display:grid; gap:10px; }
.db-comment{ padding:12px 16px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); }
.db-comment.is-hidden{ opacity:.55; }
.db-comment-body{ margin-top:4px; font-size:14px; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
.db-follows{ display:flex; flex-wrap:wrap; gap:8px; }
.db-follow{ display:inline-flex; align-items:center; gap:8px; padding:6px 14px 6px 6px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1px var(--line); font-size:14px; font-weight:700; }
.db-follow .cm-avatar{ width:28px; height:28px; font-size:12px; }
.db-follow:hover{ box-shadow:inset 0 0 0 1.5px var(--ink); }
.db-subs{ display:grid; gap:8px; }
.db-sub{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.db-sub .cm-sub{ margin-left:auto; }
.db-mail{ padding:16px 18px; border-radius:var(--r); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.db-list{ display:grid; gap:8px; }
.db-list li{ padding:10px 0; border-bottom:1px solid var(--line-2); font-size:14px; }
.db-list a{ font-weight:700; color:var(--ink); }
.db-list a:hover{ color:var(--shu-d); }
.db-foot{ margin-top:40px; font-size:13.5px; }
.db-foot a{ color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.db-top{ margin-bottom:16px; }
@media (max-width: 760px){
  .db-stats{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

/* ---------- 知らせ ---------- */
.cm-toast{ position:fixed; left:50%; bottom:24px; z-index:100; transform:translate(-50%, 20px); max-width:calc(100vw - 32px); padding:12px 20px; border-radius:999px; background:var(--ink); color:#fff; font-size:14px; font-weight:700; box-shadow:var(--sh-2); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.cm-toast.is-on{ opacity:1; transform:translate(-50%, 0); }

@media (max-width: 760px){
  .cm-list.is-grid, .cm-chlist{ grid-template-columns:minmax(0, 1fr); }
  .cm-shorts{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .cm-tabs{ width:100%; }
  .cm-tabs [role="tab"]{ flex:1; padding:0 10px; }
}
@media (max-width: 640px){
  .cm.page{ padding-top:28px; }
  .cm-nav .cm-nav-pub{ display:none; }
  .cm-nav .cm-me{ height:32px; padding:0 12px; }
  .cm-card-link{ grid-template-columns:92px minmax(0, 1fr); gap:12px; padding:12px; }
  .cm-card-ttl{ font-size:16px; }
  .cm-card-ex{ -webkit-line-clamp:2; font-size:13px; }
  .cm-card-stats{ margin-left:0; }
  .cm-chan-hero{ padding:22px 20px; }
  .cm-chan-top{ gap:14px; }
  .cm-avatar.is-lg{ width:64px; height:64px; font-size:26px; }
  .cm-share-group{ margin-left:0; }
  .cm-subscribe{ padding:24px 20px; }
}
@media (prefers-reduced-motion: reduce){
  .cm-card, .cm-like-ico, .cm-toast{ transition:none; }
}

/* ---------- 本文のある号（エディタで書いた号） ---------- */
.cm-chip.f-text{ background:var(--paper-2); color:var(--ink-2); }
.cm-nav .cm-nav-write{ font-weight:700; }
.cm-cover{ margin-top:24px; border-radius:var(--r); overflow:hidden; box-shadow:inset 0 0 0 1px var(--line); background:var(--paper-2); }
.cm-cover img{ display:block; width:100%; height:auto; aspect-ratio:1200/630; object-fit:cover; }
.cm-article{ margin-top:32px; }
.cm-article-h{ display:flex; align-items:center; gap:10px; margin-bottom:12px; font-size:14px; font-weight:700; color:var(--muted); }
.cm-prose{ font-size:17px; line-height:2; color:var(--ink); overflow-wrap:anywhere; }
.cm-prose > * + *{ margin-top:1.1em; }
.cm-prose h2{ margin-top:1.8em; font-size:21px; font-weight:900; line-height:1.5; }
.cm-prose h3{ margin-top:1.6em; font-size:18px; font-weight:900; line-height:1.5; }
.cm-prose blockquote{ padding:4px 0 4px 16px; border-left:3px solid var(--line); color:var(--ink-2); }
.cm-prose ul{ padding-left:1.4em; list-style:disc; }
.cm-prose li + li{ margin-top:.3em; }
.cm-prose hr{ border:0; border-top:1px solid var(--line); margin:2em 0; }
.cm-prose a{ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }
.cm-prose strong{ font-weight:900; }
.cm-paid{ margin-top:28px; padding:22px 24px; border-radius:var(--r); background:var(--shu-soft); text-align:center; }
.cm-paid-ttl{ font-size:17px; font-weight:900; color:var(--shu-d); }
.cm-paid p + p{ margin-top:6px; font-size:14px; color:var(--ink-2); }
.cm-paid .btn{ margin-top:14px; }
.cm-preview-bar{ margin-bottom:18px; padding:10px 16px; border-radius:var(--r-sm); background:#FFF4D6; color:#5C4300; font-size:14px; font-weight:700; }
.cm-preview-bar a{ margin-left:8px; text-decoration:underline; text-underline-offset:3px; }

/* ---------- エディタ ---------- */
.cm-writepage .container.cm-wrap{ max-width:1120px; }
.wr-back{ margin-bottom:14px; font-size:14px; }
.wr-back a{ color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.wr-grid{ display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:28px; align-items:start; }
.wr-form{ padding:24px 26px; border-radius:var(--r-lg); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.wr-form #wrTitle{ font-size:22px; font-weight:900; height:auto; padding:12px 14px; }
.wr-form textarea#wrBody{ min-height:420px; font-size:16px; line-height:1.9; }
.wr-body-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.wr-count{ font-size:12.5px; color:var(--muted); }
.wr-syntax, .wr-paid{ margin:12px 0; }
.wr-syntax summary, .wr-paid summary, .wr-conv summary, .db-more-ch summary{ cursor:pointer; font-size:14px; font-weight:700; color:var(--ink-2); }
.wr-syntax ul{ margin-top:6px; padding-left:1.3em; list-style:disc; font-size:13px; color:var(--muted); line-height:1.8; }
.wr-paid{ padding:12px 14px; border-radius:var(--r-sm); background:var(--shu-soft); }
.wr-paid .field{ margin-top:8px; }
.wr-cover{ margin:4px 0 18px; }
.wr-cover img{ display:block; width:100%; max-height:260px; object-fit:cover; border-radius:var(--r-sm); margin-bottom:8px; box-shadow:inset 0 0 0 1px var(--line); }
.wr-cover-acts{ display:flex; align-items:center; gap:12px; }
.wr-side{ position:sticky; top:calc(var(--header-h) + 16px); padding:20px; border-radius:var(--r-lg); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); display:grid; gap:14px; }
.wr-state{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.wr-saved{ font-size:12px; color:var(--muted); }
.wr-when{ border:0; padding:0; margin:0; display:grid; gap:6px; }
.wr-when legend{ font-size:13px; font-weight:700; color:var(--ink-2); margin-bottom:4px; }
.wr-radio, .wr-check{ display:flex; align-items:flex-start; gap:8px; font-size:14px; line-height:1.6; cursor:pointer; }
.wr-radio input, .wr-check input{ margin-top:4px; accent-color:var(--shu); }
.wr-when input[type="datetime-local"]{ height:40px; padding:0 10px; border-radius:var(--r-sm); box-shadow:inset 0 0 0 1.5px var(--line); font:inherit; font-size:14px; }
.wr-when input[type="datetime-local"]:disabled{ opacity:.5; }
.wr-acts{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.wr-conv{ padding-top:12px; border-top:1px solid var(--line-2); display:grid; gap:8px; }
.wr-conv-ttl{ font-size:13px; font-weight:700; color:var(--ink-2); }
.wr-checks{ display:flex; flex-wrap:wrap; gap:4px 14px; }
.wr-del{ padding-top:10px; border-top:1px solid var(--line-2); }
.wr-prefill{ margin-bottom:16px; }
.wr-start{ max-width:640px; }
@media (max-width: 900px){
  .wr-grid{ grid-template-columns:1fr; }
  .wr-side{ position:static; }
  .wr-form{ padding:18px 16px; }
}

/* ---------- ダッシュボード：発行者ページを作る・号 ---------- */
.db-create{ padding:20px 22px; border-radius:var(--r); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.db-url{ font-family:var(--f-en); font-weight:600; color:var(--ink-2); }
.db-av{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:14px; }
.db-av-prev .cm-avatar{ width:56px; height:56px; font-size:20px; }
.db-more-ch{ margin-top:14px; }
.db-more-ch .db-create{ margin-top:12px; }
.db-art .db-issue-top .db-stage + .db-stage{ background:var(--paper-2); }

/* ---------- プロフィールのリンク・発行者について ---------- */
.cm-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.cm-link{ display:inline-flex; align-items:center; height:32px; padding:0 14px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1.5px var(--line); font-size:13px; font-weight:700; color:var(--ink); }
.cm-link:hover{ box-shadow:inset 0 0 0 1.5px var(--ink); }
.cm-link::after{ content:"↗"; margin-left:6px; font-size:11px; color:var(--muted); }
.cm-about{ margin-top:40px; padding:24px 26px; border-radius:var(--r-lg); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); }
.cm-about-label{ font-size:12.5px; font-weight:700; color:var(--muted); letter-spacing:.06em; }
.cm-about-top{ margin-top:12px; display:flex; align-items:center; gap:16px; }
.cm-about-name{ font-size:19px; font-weight:900; color:var(--ink); line-height:1.4; }
.cm-about-name:hover{ color:var(--shu-d); }
.cm-about-author{ margin-top:2px; font-size:14px; font-weight:700; color:var(--ink-2); }
.cm-about-desc{ margin-top:14px; font-size:14.5px; line-height:1.85; white-space:pre-line; color:var(--ink-2); }
.cm-about-acts{ margin-top:16px; display:flex; flex-wrap:wrap; gap:8px; }
.db-links{ margin-top:8px; display:flex; flex-wrap:wrap; gap:6px 14px; font-size:13px; }
.db-links a{ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; font-weight:700; }
.db-linkset{ margin:6px 0 16px; padding:14px 16px; border:0; border-radius:var(--r-sm); background:var(--paper-2); }
.db-linkset legend{ padding:0; font-size:14px; font-weight:700; color:var(--ink-2); }
.db-linkgrid{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:0 14px; margin-top:8px; }
@media (max-width: 640px){
  .db-linkgrid{ grid-template-columns:1fr; }
  .cm-about{ padding:20px 18px; }
}

/* ---------- 会員のプロフィール ---------- */
.pf-handle{ margin-top:2px; font-family:var(--f-en); font-size:14px; font-weight:600; color:var(--muted); }
.pf-edit{ margin-top:16px; }
.pf-sec .cm-h2{ margin-top:40px; }
.pf-comments{ display:grid; gap:10px; }
.pf-comments li{ padding:14px 18px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); }
.pf-c-meta{ font-size:12.5px; color:var(--muted); }
.pf-c-meta a{ font-weight:700; color:var(--ink); }
.pf-c-meta a:hover{ color:var(--shu-d); }
.pf-c-body{ margin-top:6px; font-size:14.5px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); }
.cm-c-who{ display:inline-flex; align-items:center; gap:8px; color:var(--ink); }
.cm-c-who .cm-avatar{ width:26px; height:26px; font-size:12px; }
a.cm-c-who:hover b{ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }
.ac-privacy{ margin:6px 0 16px; padding:0; border:0; display:grid; gap:8px; }
.ac-privacy legend{ padding:0; margin-bottom:6px; font-size:14px; font-weight:700; color:var(--ink-2); }
.db-prof{ margin-left:6px; font-size:14px; color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }

/* =========================================================
   タイムライン（Substack を参考に、読む・見る・聞く）
   ========================================================= */
.tl-head h1{ font-size:clamp(24px, 3.8vw, 34px); }
.tl-tabs{ margin-bottom:16px; }
.tl-formats{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 16px; }
.tl-fmt{ height:32px; padding:0 14px; border-radius:999px; background:#fff; box-shadow:inset 0 0 0 1px var(--line); font-size:13px; font-weight:700; color:var(--ink-2); }
.tl-fmt.is-on{ background:var(--ink); color:#fff; box-shadow:none; }
.fc-list{ display:grid; gap:14px; }
.fc{ padding:18px 20px; border-radius:var(--r-lg); background:#fff; box-shadow:var(--sh-1), inset 0 0 0 1px var(--line-2); min-width:0; }
.fc-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; color:var(--muted); }
.fc-ch{ display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--ink); min-width:0; }
.fc-ch span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fc-link{ display:block; margin-top:10px; color:var(--ink); }
.fc-ttl{ font-size:19px; font-weight:900; line-height:1.5; }
.fc-link:hover .fc-ttl{ color:var(--shu-d); }
.fc-ex{ margin-top:6px; font-size:14.5px; line-height:1.8; color:var(--ink-2); display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.fc-manga{ margin-top:14px; display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:6px; overscroll-behavior-x:contain; }
.fc-page{ flex:none; width:min(46%, 220px); scroll-snap-align:start; border-radius:var(--r-sm); overflow:hidden; box-shadow:inset 0 0 0 1px var(--line); background:var(--paper-2); }
.fc-page img{ display:block; width:100%; height:auto; aspect-ratio:3/5; object-fit:cover; }
.fc-more{ display:grid; place-items:center; text-align:center; font-size:14px; font-weight:900; color:var(--shu-d); aspect-ratio:3/5; }
.fc-more small{ font-size:12px; color:var(--muted); font-weight:700; }
.fc-img{ display:block; margin-top:14px; border-radius:var(--r); overflow:hidden; box-shadow:inset 0 0 0 1px var(--line); }
.fc-img img{ display:block; width:100%; aspect-ratio:1200/630; object-fit:cover; }
.fc-foot{ margin-top:12px; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.fc-play, .fc-short{ display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 14px; border-radius:999px; font-size:13px; font-weight:900; }
.fc-play{ background:var(--vio); color:#fff; }
.fc-play:hover, .fc-play.is-playing{ background:var(--vio-d); }
.fc-play.is-playing span{ animation:mp-pulse 1s ease-in-out infinite; }
.fc-short{ background:var(--tea-soft); color:var(--tea-d); }
.fc-stats{ margin-left:auto; display:flex; gap:12px; font-size:13px; color:var(--muted); }
.fc-stats a:hover{ color:var(--shu-d); }
@keyframes mp-pulse{ 50%{ opacity:.35; } }

/* ミニプレーヤー */
.mp{ position:fixed; left:50%; bottom:14px; z-index:90; transform:translateX(-50%); width:min(760px, calc(100vw - 20px)); display:grid; grid-template-columns:minmax(0, 1fr) auto auto; grid-template-areas:"info ctl x" "bar bar bar"; align-items:center; gap:6px 12px; padding:10px 14px; border-radius:20px; background:var(--ink); color:#fff; box-shadow:var(--sh-2); }
.mp-info{ grid-area:info; display:flex; align-items:center; gap:10px; min-width:0; color:#fff; }
.mp-cover{ width:40px; height:40px; border-radius:10px; object-fit:cover; background:#333; flex:none; }
.mp-info span{ display:grid; min-width:0; }
.mp-title{ font-size:14px; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mp-sub{ font-size:12px; color:#C9C6BE; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mp-ctl{ grid-area:ctl; display:flex; align-items:center; gap:4px; }
.mp-btn{ min-width:34px; height:34px; padding:0 6px; border-radius:999px; color:#fff; font-size:13px; font-weight:900; }
.mp-btn:hover{ background:rgba(255,255,255,.12); }
.mp-play{ width:40px; height:40px; background:var(--shu); }
.mp-play:hover{ background:var(--shu-d); }
.mp-bar{ grid-area:bar; display:flex; align-items:center; gap:10px; font-size:12px; color:#C9C6BE; }
.mp-seek{ flex:1; accent-color:var(--shu); }
.mp-x{ grid-area:x; width:30px; height:30px; border-radius:50%; color:#C9C6BE; font-size:18px; }
.mp-x:hover{ background:rgba(255,255,255,.12); color:#fff; }
body.has-mp .site-footer{ margin-bottom:110px; }
body.has-mp .cm-toast{ bottom:120px; }
@media (max-width: 640px){
  .mp{ grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"info x" "ctl ctl" "bar bar"; }
  .mp-ctl{ justify-content:center; }
}

/* ---------- ノート ---------- */
.nt-list{ display:grid; gap:10px; }
.nt-compose{ display:flex; align-items:center; gap:12px; width:100%; margin-bottom:12px; padding:14px 16px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line); text-align:left; }
.nt-compose:hover{ box-shadow:inset 0 0 0 1.5px var(--ink); }
.nt-compose-ph{ flex:1; font-size:14.5px; color:var(--muted); }
.nt{ display:grid; grid-template-columns:40px minmax(0, 1fr); gap:0 12px; padding:14px 16px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); }
.nt.is-focus{ box-shadow:inset 0 0 0 2px var(--shu); }
.nt .cm-avatar{ width:40px; height:40px; font-size:16px; }
.nt-rsby{ grid-column:1 / -1; margin-bottom:6px; font-size:12.5px; font-weight:700; color:var(--muted); }
.nt-rsby a{ color:var(--ink-2); }
.nt-main{ min-width:0; }
.nt-head{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; font-size:13px; }
.nt-name{ font-size:14.5px; font-weight:900; color:var(--ink); }
a.nt-name:hover{ text-decoration:underline; text-underline-offset:3px; }
.nt-handle, .nt-time{ color:var(--muted); font-size:12.5px; }
.nt-time:hover{ text-decoration:underline; }
.nt-replyto{ font-size:12.5px; color:var(--muted); }
.nt-replyto a{ color:var(--shu-d); }
.nt-body{ margin-top:4px; font-size:15px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ink); cursor:pointer; }
.nt-body a{ color:var(--shu-d); text-decoration:underline; text-underline-offset:3px; }
.nt-img{ display:block; margin-top:10px; border-radius:var(--r-sm); overflow:hidden; box-shadow:inset 0 0 0 1px var(--line); max-width:520px; }
.nt-img img{ display:block; width:100%; max-height:420px; object-fit:cover; }
.nt-post{ display:flex; gap:12px; margin-top:10px; padding:12px; border-radius:var(--r-sm); background:var(--paper); box-shadow:inset 0 0 0 1px var(--line); color:var(--ink); }
.nt-post:hover{ box-shadow:inset 0 0 0 1.5px var(--ink); }
.nt-page{ flex:none; width:110px; aspect-ratio:3/5; object-fit:cover; border-radius:8px; box-shadow:0 0 0 1px var(--line); }
.nt-pimg{ flex:none; width:96px; aspect-ratio:1200/630; object-fit:cover; border-radius:8px; }
.nt-pbody{ display:grid; gap:4px; min-width:0; align-content:start; }
.nt-quote-text{ padding-left:10px; border-left:3px solid var(--shu); font-size:14px; line-height:1.8; color:var(--ink-2); }
.nt-ptitle{ font-size:14px; line-height:1.5; }
.nt-pmeta{ font-size:12px; color:var(--muted); }
.nt-mini{ display:grid; gap:4px; margin-top:10px; padding:10px 12px; border-radius:var(--r-sm); box-shadow:inset 0 0 0 1px var(--line); color:var(--ink); }
.nt-mini.is-gone{ color:var(--muted); font-size:13px; }
.nt-mini-head{ display:flex; align-items:center; gap:6px; font-size:13px; }
.nt-mini-head .cm-avatar{ width:22px; height:22px; font-size:10px; }
.nt-mini-head small{ color:var(--muted); }
.nt-mini-body{ font-size:14px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.nt-acts{ display:flex; flex-wrap:wrap; gap:2px 6px; margin-top:8px; }
.nt-act{ display:inline-flex; align-items:center; gap:5px; height:30px; padding:0 10px; border-radius:999px; font-size:13px; color:var(--muted); }
.nt-act:hover{ background:var(--paper-2); color:var(--ink); }
.nt-act b{ font-weight:700; }
.nt-like[aria-pressed="true"]{ color:var(--shu-d); }
.nt-rs[aria-pressed="true"]{ color:var(--tea-d); }
.nt.is-gone{ display:block; }
.nt-gone{ font-size:13.5px; color:var(--muted); }
.nt-threadlist .nt + .nt{ margin-left:22px; }
.nc{ width:min(600px, calc(100vw - 24px)); }
.nc-text{ width:100%; margin-top:12px; padding:12px 14px; border-radius:var(--r-sm); box-shadow:inset 0 0 0 1.5px var(--line); font:inherit; font-size:15.5px; line-height:1.8; resize:vertical; }
.nc-text:focus{ outline:none; box-shadow:inset 0 0 0 2px var(--ink); }
.nc-ctx{ margin-top:10px; }
.nc-ctx > small{ font-size:12px; font-weight:700; color:var(--muted); }
.nc-imgprev{ margin-top:10px; display:flex; align-items:flex-end; gap:10px; }
.nc-imgprev img{ max-width:200px; max-height:160px; border-radius:10px; box-shadow:0 0 0 1px var(--line); }
.nc-foot{ margin-top:12px; display:flex; align-items:center; gap:10px; }
.nc-count{ margin-left:auto; font-size:12.5px; color:var(--muted); }
.pf-acts{ margin-top:14px; }
[data-ufollow].is-on{ background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--ink); }

/* ---------- 聞く（通勤モード） ---------- */
.ls-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:10px 20px; }
.ls-ttl{ font-size:19px; font-weight:900; color:var(--ink); }
.ls-all{ margin:6px 0 16px; }
.ls-list{ display:grid; gap:8px; }
.ls-row{ display:flex; align-items:center; gap:14px; padding:10px 12px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); }
.ls-row.is-playing{ box-shadow:inset 0 0 0 2px var(--vio); }
.ls-play{ position:relative; flex:none; width:64px; height:64px; border-radius:12px; overflow:hidden; background:var(--paper-2); }
.ls-play img{ width:100%; height:100%; object-fit:cover; }
.ls-ico{ position:absolute; inset:0; display:grid; place-items:center; background:rgba(21,23,28,.35); color:#fff; font-size:20px; }
.ls-body{ display:grid; gap:2px; min-width:0; }
.ls-title{ font-size:15px; font-weight:900; color:var(--ink); line-height:1.5; }
.ls-title:hover{ color:var(--shu-d); }
.ls-body small{ font-size:12.5px; color:var(--muted); }

/* ---------- ショート（縦に流す） ---------- */
.sh-feed{ height:min(calc(100svh - 190px), 820px); overflow-y:auto; scroll-snap-type:y mandatory; border-radius:var(--r-lg); background:#111; overscroll-behavior:contain; }
.sh-item{ position:relative; height:100%; scroll-snap-align:start; scroll-snap-stop:always; display:grid; place-items:center; }
.sh-video{ width:100%; height:100%; object-fit:contain; background:#000; cursor:pointer; }
.sh-over{ position:absolute; left:0; right:0; bottom:0; padding:60px 18px 20px; background:linear-gradient(transparent, rgba(0,0,0,.75)); color:#fff; display:grid; gap:8px; justify-items:start; }
.sh-ch{ display:inline-flex; align-items:center; gap:8px; color:#fff; font-weight:700; font-size:14px; }
.sh-ch .cm-avatar{ width:30px; height:30px; font-size:12px; box-shadow:0 0 0 2px #fff; }
.sh-title{ font-size:16px; font-weight:900; line-height:1.5; max-width:40em; }
.sh-snd{ position:absolute; top:14px; right:14px; width:42px; height:42px; border-radius:50%; background:rgba(0,0,0,.5); color:#fff; font-size:18px; }
.sh-end{ display:grid; place-items:center; height:30%; color:#C9C6BE; font-size:14px; scroll-snap-align:end; }

/* ---------- 見つける（ランキング） ---------- */
.dc-ttl{ margin-top:4px; }
.dc-head{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-bottom:12px; }
.dc-head .tl-formats{ margin:0; }
.dc-cat{ height:34px; padding:0 12px; border-radius:999px; box-shadow:inset 0 0 0 1px var(--line); background:#fff; font:inherit; font-size:13px; font-weight:700; }
.dc-list{ display:grid; gap:8px; }
.dc-row{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:var(--r); background:#fff; box-shadow:inset 0 0 0 1px var(--line-2); }
.dc-rank{ flex:none; width:28px; text-align:center; font-family:var(--f-en); font-size:18px; font-weight:800; color:var(--shu-d); }
.dc-ch{ display:flex; align-items:center; gap:12px; flex:1; min-width:0; color:var(--ink); }
.dc-ch > span{ display:grid; gap:2px; min-width:0; }
.dc-ch b{ font-size:15px; }
.dc-ch small, .dc-meta{ font-size:12px; color:var(--muted); }
.dc-desc{ font-size:13px; color:var(--ink-2); line-height:1.6; }
.dc-row .cm-follow{ flex:none; }

/* ---------- おすすめ（発行者どうし）・カテゴリ ---------- */
.cm-chan-cat{ margin-top:4px; font-size:12.5px; font-weight:700; }
.cm-chan-cat a{ display:inline-block; padding:2px 10px; border-radius:999px; background:var(--paper-2); color:var(--ink-2); }
.cm-recs-list{ display:grid; gap:10px; margin-top:12px; }
.cm-recs-list li{ display:flex; align-items:center; gap:12px; }
.cm-recs-ch{ display:flex; align-items:center; gap:10px; flex:1; min-width:0; color:var(--ink); }
.cm-recs-ch span{ display:grid; min-width:0; }
.cm-recs-ch small{ font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cm-dlg-foot{ margin-top:16px; text-align:right; }

/* ---------- 号のページ：引用 ---------- */
.qt-fab{ position:absolute; z-index:80; height:38px; padding:0 16px; border-radius:999px; background:var(--ink); color:#fff; font-size:13px; font-weight:900; box-shadow:var(--sh-2); }
.qt-manga{ margin-top:10px; }
.qt-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:10px; margin-top:12px; max-height:60vh; overflow:auto; }
.qt-page{ position:relative; border-radius:8px; overflow:hidden; box-shadow:inset 0 0 0 1px var(--line); }
.qt-page img{ display:block; width:100%; aspect-ratio:3/5; object-fit:cover; }
.qt-page span{ position:absolute; left:6px; bottom:6px; padding:0 8px; border-radius:999px; background:rgba(21,23,28,.75); color:#fff; font-size:12px; font-weight:700; }
.qt-page:hover{ box-shadow:inset 0 0 0 2px var(--shu); }
@media (max-width: 640px){
  .fc{ padding:14px 14px; }
  .fc-ttl{ font-size:17px; }
  .fc-page{ width:44%; }
  .nt{ padding:12px; grid-template-columns:34px minmax(0, 1fr); gap:0 10px; }
  .nt .cm-avatar{ width:34px; height:34px; }
  .nt-threadlist .nt + .nt{ margin-left:10px; }
  .nt-page{ width:84px; }
  .sh-feed{ height:calc(100svh - 170px); border-radius:var(--r); }
}

/* ショートを開いているあいだは、見出しを隠して縦いっぱいに */
body.is-shorts .tl-head, body.is-shorts .cm-rssline{ display:none; }
body.is-shorts .cm.page{ padding-top:16px; }
@media (max-width: 640px){
  body.is-shorts .sh-feed{ height:calc(100svh - 150px); }
}

/* 漫画のページの並びは、日本の漫画と同じく右から左へ（1ページ目が右端。横にめくると左へ進む） */
.fc-manga, .qt-grid{ direction:rtl; }
.fc-page, .qt-page{ direction:ltr; }

/* =========================================================
   スワイプ（/shorts。TikTok のような縦の全画面：ショート動画と漫画）
   ========================================================= */
body.is-reel{ background:#000; overflow:hidden; }
body.is-reel .site-header, body.is-reel .site-footer{ display:none; }
body.is-reel .cm.page{ padding:0; }
body.is-reel .cm-wrap{ max-width:none; padding:0; }
.rl{ position:fixed; inset:0; z-index:1; background:#000; color:#fff; }
.rl-noscript{ padding:80px 24px; text-align:center; color:#fff; }
.rl-noscript a{ color:#fff; text-decoration:underline; }

.rl-top{ position:absolute; top:0; left:0; right:0; z-index:6; display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:calc(8px + env(safe-area-inset-top)) 10px 18px; background:linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events:none; }
.rl-top > *{ pointer-events:auto; }
.rl-back, .rl-snd{ display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; cursor:pointer; }
.rl-kinds{ display:flex; gap:4px; padding:3px; border-radius:999px; background:rgba(255,255,255,.12); }
.rl-kind{ height:32px; padding:0 14px; border:0; border-radius:999px; background:none; font:inherit; font-size:14px; font-weight:700; color:rgba(255,255,255,.75); cursor:pointer; }
.rl-kind[aria-pressed="true"]{ background:#fff; color:#111; }
.rl-ic{ display:inline-grid; place-items:center; }
.rl-ic svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.rl-feed{ position:absolute; inset:0; overflow-y:auto; overscroll-behavior:contain; scroll-snap-type:y mandatory; scrollbar-width:none; outline:none; }
.rl-feed::-webkit-scrollbar{ display:none; }
.rl-item{ position:relative; height:100%; display:flex; justify-content:center; scroll-snap-align:start; scroll-snap-stop:always; overflow:hidden; }
.rl-stage{ position:relative; width:min(100%, 62svh); height:100%; background:#000; }

/* 動画 */
.rl-video{ display:block; width:100%; height:100%; object-fit:contain; background:#000; }
.rl-pause{ position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; opacity:0; transition:opacity .15s ease; }
.rl-pause .rl-ic{ width:76px; height:76px; border-radius:50%; background:rgba(0,0,0,.35); }
.rl-pause svg{ width:40px; height:40px; fill:#fff; stroke:none; margin-left:4px; }
.is-paused .rl-pause{ opacity:1; }
.rl-prog{ position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.18); }
.rl-prog i{ display:block; height:100%; width:0; background:rgba(255,255,255,.85); }

/* 下の情報と、右の列（漫画では下の列） */
.rl-meta{ position:absolute; left:0; right:0; bottom:0; z-index:4; display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:end; gap:10px;
  padding:56px 10px 16px 14px; background:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.65)); pointer-events:none; }
.rl-meta > *{ pointer-events:auto; }
.rl-info{ min-width:0; display:grid; gap:4px; text-shadow:0 1px 3px rgba(0,0,0,.5); }
.rl-ch{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rl-ch a{ font-weight:900; font-size:15px; color:#fff; }
.rl-follow{ height:26px; padding:0 10px; border:1px solid rgba(255,255,255,.7); border-radius:8px; background:none; font:inherit; font-size:12px; font-weight:700; color:#fff; cursor:pointer; }
.rl-follow.is-on{ border-color:rgba(255,255,255,.35); color:rgba(255,255,255,.7); }
.rl-ttl{ margin:0; font-size:15px; font-weight:700; line-height:1.5; color:#fff; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rl-sub{ margin:0; font-size:12.5px; line-height:1.5; color:rgba(255,255,255,.75); display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.rl-cta{ justify-self:start; margin-top:4px; padding:6px 12px; border-radius:999px; background:var(--shu); font-size:13px; font-weight:700; color:#fff; text-shadow:none; }
.rl-side{ display:flex; flex-direction:column; align-items:center; gap:14px; padding-bottom:4px; }
.rl-av .cm-avatar{ width:44px; height:44px; font-size:18px; box-shadow:0 0 0 2px #fff; }
.rl-act{ display:grid; justify-items:center; gap:2px; min-width:44px; padding:0; border:0; background:none; font:inherit; color:#fff; cursor:pointer; filter:drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.rl-act .rl-ic svg{ width:30px; height:30px; stroke-width:1.9; }
.rl-n{ font-size:11.5px; font-weight:700; }
.rl-like[aria-pressed="true"] svg{ fill:#ff3b5c; stroke:#ff3b5c; }
.rl-act:active{ transform:scale(.9); }
.rl-burst{ position:absolute; z-index:5; transform:translate(-50%, -50%); pointer-events:none; animation:rl-burst .85s ease forwards; }
.rl-burst svg{ width:96px; height:96px; fill:#ff3b5c; stroke:none; filter:drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
@keyframes rl-burst{ 0%{ transform:translate(-50%, -50%) scale(.3); opacity:0; } 25%{ transform:translate(-50%, -50%) scale(1.15); opacity:1; } 60%{ transform:translate(-50%, -60%) scale(1); opacity:1; } 100%{ transform:translate(-50%, -90%) scale(.9); opacity:0; } }

/* 漫画：右から左へ横にめくる。ページは上の帯と下の情報にかからないように置く */
.is-manga .rl-stage{ display:flex; flex-direction:column; padding-top:calc(62px + env(safe-area-inset-top)); }
.rl-pages{ flex:1; min-height:0; display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
.rl-pages::-webkit-scrollbar{ display:none; }
.rl-page{ position:relative; flex:0 0 100%; height:100%; margin:0; scroll-snap-align:center; scroll-snap-stop:always; direction:ltr; }
.rl-page img{ position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; user-select:none; -webkit-user-drag:none; }   /* ページ全体が入るように */
.rl-page img:not([src]){ visibility:hidden; }
.is-manga .rl-meta{ position:static; padding:12px 14px 14px; background:#000; grid-template-columns:minmax(0, 1fr); }
.is-manga .rl-side{ flex-direction:row; justify-content:space-between; align-items:center; gap:6px; padding:2px 0 0; }
.is-manga .rl-av .cm-avatar{ width:36px; height:36px; font-size:15px; }
.is-manga .rl-act{ grid-auto-flow:column; align-items:center; gap:5px; }
.is-manga .rl-act .rl-ic svg{ width:24px; height:24px; }
.rl-no{ margin-left:auto; padding:2px 10px; border-radius:999px; background:rgba(255,255,255,.14); font-size:12px; font-weight:700; white-space:nowrap; }   /* ページの上に重ねない（漫画は右上から読むので） */
.is-manga .rl-cta{ display:none; }                     /* 漫画は下の列の「号へ」と、最後のカードから */
.rl-hint{ position:absolute; left:50%; top:46%; z-index:3; transform:translateX(-50%); padding:8px 16px; border-radius:999px; background:rgba(0,0,0,.7); font-size:14px; font-weight:700; pointer-events:none; animation:rl-hint 1.6s ease-in-out infinite; }
.rl-hint[hidden]{ display:none; }
@keyframes rl-hint{ 0%, 100%{ transform:translateX(-50%); } 50%{ transform:translateX(calc(-50% - 14px)); } }
.rl-endcard{ display:grid; align-content:center; justify-items:center; gap:10px; padding:24px; text-align:center; }
.rl-end-ttl{ margin:0; font-size:22px; font-weight:900; }
.rl-end-sub{ margin:0 0 6px; font-size:14px; color:rgba(255,255,255,.75); }
.rl-end-next{ margin:12px 0 0; font-size:12.5px; color:rgba(255,255,255,.6); }

/* 最後・なにもないとき */
.rl-fin{ align-items:center; text-align:center; padding:24px; }
.rl-fin > div{ display:grid; gap:8px; justify-items:center; color:rgba(255,255,255,.8); }
.rl-fin-ttl{ margin:0; font-size:20px; font-weight:900; color:#fff; }
.rl-fin-btns{ display:flex; gap:10px; margin-top:8px; }
.rl-fin .btn-ghost{ color:#fff; border-color:rgba(255,255,255,.6); }

/* スマホ：下のメニューの上まで。メニューは黒に */
@media (max-width: 760px){
  body.is-reel.has-tabbar .rl{ bottom:calc(var(--tb-h) + env(safe-area-inset-bottom)); }
  body.is-reel .tabbar{ background:#000; border-top-color:#1d1d21; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
  body.is-reel .tabbar > a, body.is-reel .tabbar > button{ color:rgba(255,255,255,.6); }
  body.is-reel .tabbar [aria-current="page"], body.is-reel .tabbar .tb-write{ color:#fff; }
  .rl-stage{ width:100%; }
  .rl-kind{ padding:0 12px; font-size:13.5px; }
}
@media (prefers-reduced-motion: reduce){ .rl-burst, .rl-hint{ animation:none; } .rl-feed, .rl-pages{ scroll-behavior:auto; } }

/* タイムラインの「ショート」タブ：スワイプの画面への入口と一覧 */
.rl-launch{ display:flex; align-items:center; gap:14px; padding:16px 18px; border-radius:var(--r); background:var(--ink); color:#fff; box-shadow:var(--sh-1); }
.rl-launch:hover{ color:#fff; background:#23262e; }
.rl-launch-ic{ flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--shu); font-size:18px; }
.rl-launch b{ display:block; font-size:16px; color:#fff; }
.rl-launch small{ font-size:12.5px; color:rgba(255,255,255,.75); }
.rl-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:8px; margin-top:14px; }
.rl-tile{ position:relative; display:block; aspect-ratio:9/16; border-radius:12px; overflow:hidden; background:#16181d; color:#fff; }
.rl-tile img{ width:100%; height:100%; object-fit:cover; display:block; }
.rl-tile.is-manga img{ object-position:top right; }
.rl-tile::after{ content:""; position:absolute; inset:auto 0 0 0; height:55%; background:linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.75)); }
.rl-tile-kind{ position:absolute; top:8px; left:8px; z-index:1; padding:2px 8px; border-radius:999px; background:rgba(0,0,0,.6); font-size:11px; font-weight:700; }
.rl-tile.is-manga .rl-tile-kind{ background:var(--shu); }
.rl-tile-ttl{ position:absolute; left:8px; right:8px; bottom:8px; z-index:1; font-size:13px; font-weight:700; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media (max-width: 640px){ .rl-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px; } .rl-tile{ border-radius:8px; } .rl-tile-ttl{ font-size:11.5px; } }
