/* 応援コメント フロント v0.20.141 */
.dc-cc { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.dc-cc__bar { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #1f2933; padding-bottom: 8px; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.dc-cc__title { font-size: 1.05rem; font-weight: 700; color: #1f2933; margin: 0; }
.dc-cc__sorts { display: flex; gap: 4px; }
.dc-cc__sorts button { border: 0; background: none; color: #9aa3ab; font-size: 0.85rem; font-weight: 700; cursor: pointer; padding: 4px 10px; border-radius: 999px; }
.dc-cc__sorts button.is-active { color: #1f2933; background: #eef1f4; }
.dc-cc__list { display: flex; flex-direction: column; }
.dc-cc__item { padding: 12px 0; border-bottom: 1px solid #eceff2; }
.dc-cc__item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dc-cc__name { font-weight: 700; color: #1f2933; font-size: 0.9rem; }
.dc-cc__likes { color: #9aa3ab; font-size: 0.8rem; }
.dc-cc__body { color: #333; font-size: 0.8rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.dc-cc__meta { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.dc-cc__date { color: #9aa3ab; font-size: 0.6rem; }
.dc-cc__report { border: 0; background: none; color: #9aa3ab; font-size: 0.75rem; cursor: pointer; padding: 0; text-decoration: underline; }
.dc-cc__empty { color: #9aa3ab; font-size: 0.9rem; padding: 20px 0; text-align: center; }
.dc-cc__more { display: block; margin: 14px auto 0; padding: 10px 28px; border: 1px solid #d1d5db; border-radius: 999px; background: #fff; color: #374151; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
/* 投稿フォーム */
.dc-cc__form { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.dc-cc__input { flex: 1; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px; font-size: 0.9rem; font-family: inherit; resize: vertical; box-sizing: border-box; }
.dc-cc__submit { flex: 0 0 auto; border: 0; border-radius: 8px; background: var(--brand, #00aebe); color: #fff; font-weight: 700; padding: 10px 18px; cursor: pointer; }
.dc-cc__submit:disabled { opacity: 0.6; }
.dc-cc__msg { font-size: 0.8rem; color: #b32d2e; margin: 6px 0 0; }
.dc-cc__login { display: inline-block; margin-top: 10px; color: var(--brand, #00aebe); font-weight: 700; text-decoration: none; }

/* ビューワー: 下からスライドするパネル */
.dc-cc-fab { position: fixed; left: 20px; bottom: 78px; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; background: #fff; color: var(--brand, #00aebe); border: 1px solid var(--brand, #00aebe); border-radius: 50%; width: 48px; height: 48px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.dc-cc-fab svg { width: 22px; height: 22px; }
.dc-cc-fab__count { font-size: 0.55rem; font-weight: 700; line-height: 1; margin-top: 1px; }
@media (max-width: 768px) { .dc-cc-fab { left: 14px; bottom: 66px; width: 44px; height: 44px; } .dc-cc-fab svg { width: 20px; height: 20px; } }
.dc-cc-panel { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.32s; }
.dc-cc-panel.is-open { pointer-events: auto; }
.dc-cc-panel.is-open { visibility: visible; transition-delay: 0s; }
.dc-cc-panel__bd { position: absolute; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.28s ease; }
.dc-cc-panel.is-open .dc-cc-panel__bd { opacity: 1; }
.dc-cc-panel__sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; background: #fff; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.22,0.61,0.36,1); }
.dc-cc-panel.is-open .dc-cc-panel__sheet { transform: translateY(0); }
.dc-cc-panel__close { position: absolute; top: 8px; right: 10px; z-index: 3; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #6b7785; }
.dc-cc-panel .dc-cc--reader { margin: 0; max-width: none; padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.dc-cc-panel .dc-cc__bar { flex: 0 0 auto; margin: 0; padding: 14px 44px 10px 16px; background: #fff; }
.dc-cc-panel .dc-cc__title { color: #1f2933; }
.dc-cc-panel .dc-cc__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 16px; }
.dc-cc-panel .dc-cc__foot { flex: 0 0 auto; background: #fff; border-top: 1px solid #eceff2; padding: 8px 16px 10px; }
.dc-cc-panel .dc-cc__form { margin: 0; }


/* 通報モーダル */
.dc-cc-report[hidden] { display: none; }
.dc-cc-report { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.dc-cc-report__bd { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.dc-cc-report__dlg { position: relative; z-index: 1; width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 20px; }
.dc-cc-report__head { font-size: 1.1rem; font-weight: 700; margin: 0 0 14px; text-align: center; color: #6b7785; }
.dc-cc-report__detail { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px; font-size: 0.9rem; font-family: inherit; margin-top: 10px; min-height: 90px; resize: vertical; }
.dc-cc-report__note { font-size: 0.72rem; color: #9aa3ab; line-height: 1.6; margin: 10px 0 0; }
.dc-cc-report__submit { width: 100%; margin-top: 14px; border: 0; border-radius: 999px; background: #e0567a; color: #fff; font-weight: 700; font-size: 1.02rem; padding: 14px; cursor: pointer; }
.dc-cc-report__cancel { width: 100%; margin-top: 8px; border: 0; background: none; color: #1f2933; font-weight: 700; font-size: 0.95rem; padding: 12px; cursor: pointer; }
/* 通報理由/作家 セレクトを当サイトの絞り込みセレクトと同じデザインに */
.dc-cc-report__reason, .dc-cheer-modal__select {
  -webkit-appearance: none; appearance: none;
  width: 100%; box-sizing: border-box;
  padding: 11px 34px 11px 14px;
  border: 1px solid #d6dbdf; border-radius: 10px; background-color: #f7f9fa;
  font-size: 0.9rem; font-family: inherit; color: #1f2933; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.dc-cheer-modal__select { width: auto; max-width: 62%; display: inline-block; }

/* v0.20.143: コメントのユーザーアイコン */
.dc-cc__item { display: flex; gap: 10px; }
.dc-cc__avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.dc-cc__main { flex: 1 1 auto; min-width: 0; }

/* v0.20.145: いいね / BEST / カウンター / ガイドライン */
.dc-cc__item-head { align-items: center; }
.dc-cc__nameline { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dc-cc__best { display: inline-block; border: 1px solid #ff4d4f; color: #ff4d4f; font-size: 0.62rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; line-height: 1.5; }
.dc-cc__like { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; cursor: pointer; color: #b9bec4; font-size: 0.82rem; font-weight: 700; padding: 2px; }
.dc-cc__like .dc-cc__like-icon { font-size: 1rem; line-height: 1; }
.dc-cc__like.is-liked { color: #ff4d6d; }
.dc-cc__formfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.dc-cc__counter { font-size: 0.72rem; color: #9aa3ab; }
.dc-cc__msg { font-size: 0.78rem; color: #b32d2e; margin: 0; }
.dc-cc__guideline-lead { font-size: 0.76rem; color: #9aa3ab; margin: 0 0 6px; }
.dc-cc__guideline-lead a { color: var(--brand, #00aebe); text-decoration: underline; }

/* 投稿ガイドライン スライドパネル(コメントパネルの上に重ねる) */
.dc-cc-guideline { position: fixed; inset: 0; z-index: 100002; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.32s; }
.dc-cc-guideline.is-open { pointer-events: auto; }
.dc-cc-guideline.is-open { visibility: visible; transition-delay: 0s; }
.dc-cc-guideline__bd { position: absolute; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.28s ease; }
.dc-cc-guideline.is-open .dc-cc-guideline__bd { opacity: 1; }
.dc-cc-guideline__sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; background: #fff; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.22,0.61,0.36,1); }
.dc-cc-guideline.is-open .dc-cc-guideline__sheet { transform: translateY(0); }
.dc-cc-guideline__head { position: relative; text-align: center; font-weight: 700; padding: 16px; border-bottom: 1px solid #eceff2; color: #1f2933; }
.dc-cc-guideline__close { position: absolute; left: 12px; top: 12px; border: 0; background: none; font-size: 22px; line-height: 1; color: #6b7785; cursor: pointer; }
.dc-cc-guideline__body { overflow-y: auto; padding: 16px 20px 28px; font-size: 0.9rem; line-height: 1.8; color: #333; }
.dc-cc-guideline__body h1, .dc-cc-guideline__body h2, .dc-cc-guideline__body h3 { font-size: 1rem; margin: 1.2em 0 0.4em; }
.dc-cc-guideline__body p { margin: 0 0 0.8em; }

/* v0.20.146: 話ラベル + compact + 作品ページのスクロール枠 */
.dc-cc__ep { display: inline-block; font-size: 0.76rem; color: var(--brand, #00aebe); text-decoration: none; margin: 1px 0 2px; }
a.dc-cc__ep:hover { text-decoration: underline; }
.dc-cc__item { padding: 10px 0; }
.dc-cc__item-head { margin-bottom: 2px; }
.dc-cc__body { margin-top: 2px; }
.dc-cc__meta { margin-top: 4px; }
/* 作品ページ: 縦幅を固定してスクロール(無限読み込み) */
.dc-cc--work .dc-cc__scroll--work { max-height: 400px; overflow-y: auto; border: 1px solid #eceff2; border-radius: 8px; padding: 0 12px; }

/* v0.20.168: 読了モーダル表示中はコメントFABをオーバーレイの下に(非表示) */
body.dc-ep-modal-open .dc-cc-fab { visibility: hidden; pointer-events: none; }

/* v0.20.172: 応援コメント一覧の行間を詰める */
.dc-cc__body { line-height: 1; }

/* v0.20.173: 見出しの件数を小さく通常太さ + .dc-cc padding 0 */
.dc-cc__count { font-weight: normal; font-size: 0.9rem; }
.dc-cc { padding: 0; }

/* v0.20.178: 読了コメントパネル PC=600px中央+上部角丸 / 本文 / No IMG */
@media (min-width: 769px) {
  .dc-cc-panel__sheet { width: 600px; max-width: 600px; left: 50%; right: auto; border-radius: 16px 16px 0 0; transform: translateX(-50%) translateY(100%); }
  .dc-cc-panel.is-open .dc-cc-panel__sheet { transform: translateX(-50%) translateY(0); }
}
.dc-cc__body { line-height: 1.4; font-size: 9pt; }
.dc-noimg { display: inline-flex; align-items: center; justify-content: center; background: #eee; color: #999; font-size: 0.6rem; text-align: center; box-sizing: border-box; }

/* v0.20.179: 読了コメントパネル reader コンテナの上部角丸(PCの600px中央と整合) */
.dc-cc-panel .dc-cc--reader { border-radius: 16px 16px 0 0; overflow: hidden; }
