/* =========================================================
 * 299. ID45 コメント欄
 * 2ch / 掲示板風コンパクトデザイン
 * ========================================================= */

/* ---------------------------------------------------------
 * 基本
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-sections {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    padding: 0;
    box-sizing: border-box;
}

.skvcu-work-detail .skv-comment-sections *,
.skvcu-work-detail .skv-comment-sections *::before,
.skvcu-work-detail .skv-comment-sections *::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
 * フィルター
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
}

.skvcu-work-detail .skv-comment-filter-button {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

.skvcu-work-detail .skv-comment-filter-button.is-active {
    background: #333;
    color: #fff;
    border-color: #333;
}


/* ---------------------------------------------------------
 * 「好き派」「嫌い派」の外側カードを解除
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-section {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}


/* ---------------------------------------------------------
 * セクションタイトル
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-section-title {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0;
    padding: 8px 10px;

    border-top: 1px solid #bbb;
    border-bottom: 1px solid #ddd;

    background: #f5f5f5;
}

.skvcu-work-detail .skv-comment-section-title h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.skvcu-work-detail .skv-comment-count {
    font-size: 12px;
    color: #777;
}


/* ---------------------------------------------------------
 * コメント一覧
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-list {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* ---------------------------------------------------------
 * コメント1件
 * 大きなカードをやめて掲示板の1レス風にする
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment {
    position: relative;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 10px 8px;

    border: 0;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 0;

    background: transparent;
}


/* 奇数行をほんのり色付け */

.skvcu-work-detail .skv-comment-list
.skv-comment:nth-child(odd) {
    background: #fafafa;
}


/* ---------------------------------------------------------
 * コメント番号
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-number {
    display: inline-block;

    margin: 0 6px 3px 0;

    font-size: 11px;
    font-weight: 700;
    color: #888;
    line-height: 1.3;
}


/* ---------------------------------------------------------
 * 好き / 嫌い ラベル
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-label {
    display: inline-block;

    margin: 0 6px 3px 0;
    padding: 2px 7px;

    border-radius: 3px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.skvcu-work-detail .skv-comment-like {
    background: #e8f5e9;
    color: #2e7d32;
}

.skvcu-work-detail .skv-comment-dislike {
    background: #ffebee;
    color: #c62828;
}


/* ---------------------------------------------------------
 * 投稿者
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-author {
    display: inline-block;

    margin: 0 6px 0 0;

    font-size: 13px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}


/* ---------------------------------------------------------
 * 投稿日
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-date {
    display: inline-block;

    margin: 0 0 4px;

    font-size: 11px;
    color: #999;
    line-height: 1.4;
}


/* ---------------------------------------------------------
 * コメント本文
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-content {
    margin: 3px 0 6px;

    font-size: 14px;
    line-height: 1.65;

    color: #333;

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* ---------------------------------------------------------
 * コメント内リンク
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-reference {
    color: #1976d2;
    font-weight: 700;
    text-decoration: none;
}

.skvcu-work-detail .skv-comment-reference:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
 * 返信ツリー
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-children {
    margin: 8px 0 0 18px;
    padding: 0 0 0 12px;

    border-left: 2px solid #ddd;
}

.skvcu-work-detail .skv-comment-children[hidden] {
    display: none;
}


/* ---------------------------------------------------------
 * 「返信○件」ボタン
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-replies-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin: 4px 0 0;
    padding: 3px 7px;

    border: 1px solid #ddd;
    border-radius: 3px;

    background: #f5f5f5;
    color: #666;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;

    cursor: pointer;
}

.skvcu-work-detail .skv-replies-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.skvcu-work-detail
.skv-replies-toggle.is-open
.skv-replies-arrow {
    transform: rotate(180deg);
}


/* ---------------------------------------------------------
 * リアクション
 * 機能は残してサイズだけコンパクト化
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-reactions {
    display: flex;
    align-items: center;
    gap: 7px;

    width: 100%;
    margin-top: 6px;
}

.skvcu-work-detail .skv-comment-reaction {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;
    background: transparent;

    font-size: 19px;
    line-height: 1;

    cursor: pointer;
}

.skvcu-work-detail
.skv-comment-reaction.is-selected {
    transform: scale(1.1);
}


/* リアクションバー */

.skvcu-work-detail .skv-comment-reaction-bar {
    display: flex;
    flex: 1;

    min-width: 0;
    height: 20px;

    overflow: hidden;

    border-radius: 999px;

    background: #e8e8e8;
}

.skvcu-work-detail .skv-comment-reaction-bar-like,
.skvcu-work-detail .skv-comment-reaction-bar-dislike {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    color: #fff;

    transition: width 0.25s ease;
}

.skvcu-work-detail .skv-comment-reaction-bar-count {
    padding: 0 6px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;
}

.skvcu-work-detail .skv-comment-reaction-bar-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #888;
    font-size: 10px;
}


/* ---------------------------------------------------------
 * コメント操作ボタン
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 5px;
}

.skvcu-work-detail .skv-comment-actions a,
.skvcu-work-detail .skv-comment-quote,
.skvcu-work-detail .skv-comment-copy-link,
.skvcu-work-detail .skv-comment-report,
.skvcu-work-detail .skv-comment-hide {
    padding: 3px 7px;

    border: 1px solid #ddd;
    border-radius: 3px;

    background: #fff;
    color: #777;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    cursor: pointer;
}

.skvcu-work-detail .skv-comment-actions a:hover,
.skvcu-work-detail .skv-comment-quote:hover,
.skvcu-work-detail .skv-comment-copy-link:hover,
.skvcu-work-detail .skv-comment-report:hover,
.skvcu-work-detail .skv-comment-hide:hover {
    background: #f5f5f5;
}


/* ---------------------------------------------------------
 * 通報済み
 * --------------------------------------------------------- */

.skvcu-work-detail
.skv-comment-report.is-reported {
    color: #2e7d32;
    border-color: #c8e6c9;
    background: #e8f5e9;
}


/* ---------------------------------------------------------
 * 非表示コメント
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-hidden-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 8px 10px;

    border-radius: 4px;

    background: #f5f5f5;
    color: #666;

    font-size: 12px;
    line-height: 1.5;
}

.skvcu-work-detail .skv-comment-unhide {
    padding: 4px 7px;

    border: 1px solid #ccc;
    border-radius: 3px;

    background: #fff;

    font-size: 11px;
    cursor: pointer;
}


/* ---------------------------------------------------------
 * コメントがない場合
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-no-comments {
    margin: 0;
    padding: 12px 8px;

    border-bottom: 1px solid #e5e5e5;

    color: #888;
    font-size: 13px;
}


/* ---------------------------------------------------------
 * コメント投稿フォーム
 * 大きなカードを解除
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-form {
    width: 100%;
    max-width: 100%;

    margin: 25px 0 0;
    padding: 15px 0;

    border: 0;
    border-top: 1px solid #bbb;
    border-radius: 0;

    background: transparent;
}

.skvcu-work-detail .skv-comment-form h2 {
    margin: 0 0 12px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}


/* ---------------------------------------------------------
 * WordPress comment_form の入力欄
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-form textarea,
.skvcu-work-detail .skv-comment-form input[type="text"],
.skvcu-work-detail .skv-comment-form input[type="email"],
.skvcu-work-detail .skv-comment-form input[type="url"] {
    width: 100%;
    max-width: 100%;

    padding: 9px 10px;

    border: 1px solid #ccc;
    border-radius: 4px;

    background: #fff;
    color: #333;

    font-size: 14px;
    line-height: 1.6;

    box-sizing: border-box;
}

.skvcu-work-detail .skv-comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.skvcu-work-detail .skv-comment-form textarea:focus,
.skvcu-work-detail .skv-comment-form input[type="text"]:focus,
.skvcu-work-detail .skv-comment-form input[type="email"]:focus,
.skvcu-work-detail .skv-comment-form input[type="url"]:focus {
    outline: none;
    border-color: #888;
}


/* ---------------------------------------------------------
 * コメント投稿ボタン
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-form input[type="submit"] {
    padding: 8px 16px;

    border: 1px solid #333;
    border-radius: 4px;

    background: #333;
    color: #fff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    cursor: pointer;
}

.skvcu-work-detail .skv-comment-form input[type="submit"]:hover {
    background: #222;
}


/* ---------------------------------------------------------
 * コメントフォーム内の余計な余白
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comment-form p {
    margin: 0 0 10px;
}

.skvcu-work-detail .skv-comment-form p:last-child {
    margin-bottom: 0;
}


/* ---------------------------------------------------------
 * ロック中
 * --------------------------------------------------------- */

.skvcu-work-detail .skv-comments-locked {
    width: 100%;

    margin: 25px 0;
    padding: 20px 10px;

    border: 1px solid #ddd;
    border-radius: 4px;

    text-align: center;
}

.skvcu-work-detail .skv-comments-lock-icon {
    margin-bottom: 6px;
    font-size: 28px;
}

.skvcu-work-detail .skv-comments-lock-note {
    color: #777;
    font-size: 13px;
}


/* =========================================================
 * スマホ
 * ========================================================= */

@media (max-width: 600px) {

    .skvcu-work-detail .skv-comment-sections {
        margin: 20px 0;
    }

    .skvcu-work-detail .skv-comment-section {
        margin: 15px 0;
    }

    .skvcu-work-detail .skv-comment-section-title {
        padding: 7px 8px;
    }

    .skvcu-work-detail .skv-comment-section-title h2 {
        font-size: 15px;
    }

    .skvcu-work-detail .skv-comment {
        padding: 9px 5px;
    }

    .skvcu-work-detail .skv-comment-content {
        font-size: 13px;
        line-height: 1.65;
    }

    .skvcu-work-detail .skv-comment-children {
        margin-left: 10px;
        padding-left: 8px;
    }

    .skvcu-work-detail .skv-comment-reaction {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .skvcu-work-detail .skv-comment-reaction-bar {
        height: 19px;
    }

    .skvcu-work-detail .skv-comment-form {
        margin-top: 20px;
        padding: 12px 0;
    }

    .skvcu-work-detail .skv-comment-form textarea {
        min-height: 100px;
    }

}
/* =========================================================
   好き嫌い投票 UI カスタマイズ
   コメント欄のみ整理版

   ※ 投票UI（投票ボックス / ボタン / 結果 / ゲージ / シェア）の
      上書きCSSは削除済み。
   ※ 投票UIは ID305 側で一元管理する前提。
========================================================= */


/* =========================================================
   コメントセクション
========================================================= */

.skvcu-work-detail .skv-comment-sections {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 25px !important;
    box-sizing: border-box !important;
}


/* コメント一覧 */

.skvcu-work-detail
.skv-comment-sections
.comment-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}


/* コメント */

.skvcu-work-detail
.skv-comment-sections
.comment {
    margin: 0 !important;
    padding: 0 !important;
}


/* コメント本文 */

.skvcu-work-detail
.skv-comment-sections
.comment-body {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}


/* コメント区切り */

.skvcu-work-detail
.skv-comment-sections
.comment + .comment {
    border-top: 1px solid #e5e5e5 !important;
}


/* 投稿者 */

.skvcu-work-detail
.skv-comment-sections
.comment-author {
    margin: 0 0 3px 0 !important;
    line-height: 1.3 !important;
}


/* 投稿者名 */

.skvcu-work-detail
.skv-comment-sections
.comment-author .fn {
    font-size: 14px !important;
    font-weight: bold !important;
}


/* 投稿日 */

.skvcu-work-detail
.skv-comment-sections
.comment-metadata {
    margin: 0 0 4px 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}


/* コメント本文 */

.skvcu-work-detail
.skv-comment-sections
.comment-content {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}


/* コメント段落 */

.skvcu-work-detail
.skv-comment-sections
.comment-content p {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}


/* 最後の段落 */

.skvcu-work-detail
.skv-comment-sections
.comment-content p:last-child {
    margin-bottom: 0 !important;
}


/* 返信 */

.skvcu-work-detail
.skv-comment-sections
.reply {
    margin-top: 5px !important;
    line-height: 1.2 !important;
}

.skvcu-work-detail
.skv-comment-sections
.reply a {
    font-size: 12px !important;
}


/* コメントフォーム */

.skvcu-work-detail
.skv-comment-sections
.comment-respond {
    margin-top: 20px !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}


/* コメント入力 */

.skvcu-work-detail
.skv-comment-sections
textarea {
    width: 100% !important;
    min-height: 100px !important;
    box-sizing: border-box !important;
}


/* =========================================================
   スマホ
========================================================= */

@media (max-width: 768px) {

    .skvcu-work-detail .skv-comment-sections {
        width: 100% !important;
        max-width: 100% !important;
    }

    .skvcu-work-detail
    .skv-comment-sections
    .comment-body {
        padding: 8px 10px !important;
    }

    .skvcu-work-detail
    .skv-comment-sections
    .comment-author .fn {
        font-size: 13px !important;
    }

    .skvcu-work-detail
    .skv-comment-sections
    .comment-content {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

.skvcu-work-detail .skv-comment-neutral {color:#555;background:#eee;}
