/*
 * tora-vote-buttons — 評価ボタン スタイル
 * 阪神カラー（黒×黄）。Cocoon / AdSense と干渉しない最小スタイル。
 * クラス名はすべて .ty-vote- プレフィックスで衝突を防ぐ。
 */

.ty-vote-wrap {
    margin: 1.8em 0 1em;
    padding: 1.1em 1em 1.2em;
    background: #1a1a1a;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
}

.ty-vote-title {
    color: #ffe201;
    font-size: .85em;
    font-weight: bold;
    margin: 0 0 .75em;
    letter-spacing: .06em;
}

.ty-vote-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: .75em;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.ty-vote-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .2em;
    padding: .55em 1.3em .6em;
    min-width: 110px;
    border: 2px solid #ffe201;
    border-radius: 4px;
    background: #000;
    color: #ffe201;
    font-size: 1em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    -webkit-transition: background .15s, color .15s;
    transition: background .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ty-vote-btn:hover,
.ty-vote-btn:focus-visible {
    background: #ffe201;
    color: #000;
    outline: none;
}

/* 投票済みのボタンは押された状態で固定 */
.ty-vote-btn--voted {
    background: #ffe201;
    color: #000;
}

.ty-vote-btn:disabled {
    opacity: .55;
    cursor: default;
}

.ty-vote-btn__label {
    font-size: 1.1em;
    line-height: 1.2;
}

.ty-vote-btn__count {
    font-size: .78em;
    opacity: .85;
    min-width: 2em;
}

/* スマホ幅対応 */
@media (max-width: 400px) {
    .ty-vote-btn {
        min-width: 90px;
        padding: .5em .9em;
        font-size: .95em;
    }
}

/* =========================================================
   コメント単位 評価ボタン (.ty-cv-*)
   コメント欄（明るい背景）に馴染むよう黄色主役・コンパクト設計
   ========================================================= */

.ty-cv-wrap {
    margin-top: .7em;
    padding-top: .55em;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.ty-cv-buttons {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    gap: .4em;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.ty-cv-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: .1em;
    padding: .3em .9em .35em;
    min-width: 78px;
    border: 1.5px solid #ffe201;
    border-radius: 4px;
    background: rgba(255, 226, 1, .1);
    color: #333;
    font-size: .82em;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    -webkit-transition: background .15s, color .15s, border-color .15s;
    transition: background .15s, color .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.ty-cv-btn:hover,
.ty-cv-btn:focus-visible {
    background: #ffe201;
    color: #000;
    border-color: #ffe201;
    outline: none;
}

.ty-cv-btn--voted {
    background: #ffe201;
    color: #000;
    border-color: #ffe201;
}

.ty-cv-btn:disabled {
    opacity: .5;
    cursor: default;
}

.ty-cv-btn__label {
    font-size: 1em;
    line-height: 1.25;
}

.ty-cv-btn__count {
    font-size: .75em;
    opacity: .75;
    min-width: 1.5em;
    text-align: center;
}

@media (max-width: 400px) {
    .ty-cv-btn {
        min-width: 66px;
        padding: .28em .65em .32em;
        font-size: .78em;
    }
}

/* =========================================================
   コメント本文 純評価スコア色分け・フォントサイズ
   net = そらそうよ票 − あっかーん票 で付与する。
   ボタン（.ty-cv-btn）は固有 color を持つため影響しない。
   ========================================================= */

.ty-cv-score--pink   { color: #e6398b; }
.ty-cv-score--red    { color: #d6001c; }
.ty-cv-score--black  { color: #1a1a1a; }
.ty-cv-score--blue   { color: #1565c0; }
.ty-cv-score--purple { color: #7b1fa2; }

.ty-cv-neg-font { font-size: .92em; }

/* =========================================================
   のもとけ風 コメントカード (.ty-comment-card)
   wp_list_comments_args コールバック経由・追加CSS非依存
   ========================================================= */

/* テーマのコメントリスト li スタイルをリセット */
.commentlist li.ty-comment-card {
    list-style: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 10px;
}

.ty-comment-card {
    background: #fff;
    border: 1px solid #2b2b2b;
    border-radius: 10px;
    padding: 10px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    box-sizing: border-box;
    word-break: break-word;
}

/* 子コメント：左インデント＋阪神黄ライン */
.ty-comment-card.depth-2,
.ty-comment-card.depth-3,
.ty-comment-card.depth-4,
.ty-comment-card.depth-5 {
    margin-left: 20px;
    border-left: 3px solid #FFE201;
    border-radius: 0 10px 10px 0;
}

/* ヘッダー行（連番・ID・日時） */
.ty-c-head {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: center;
    align-items: center;
    gap: 4px;
    font-size: .80em;
    color: #888;
    margin-bottom: 6px;
}

.ty-c-num {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.ty-c-id {
    font-family: monospace;
    color: #888;
}

.ty-c-date {
    color: #aaa;
}

/* 本文エリア（純評価の色分けクラスはここに当たる） */
.ty-c-body {
    font-size: .95em;
    line-height: 1.65;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.ty-c-body p {
    margin: 0 0 .4em;
}

.ty-c-parent-link {
    margin-bottom: 4px;
}

/* フッター行（評価ボタン＋返信リンク） */
.ty-c-foot {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
}

/* .ty-c-foot 内では ty-cv-wrap の上線・余白をリセット */
.ty-c-foot .ty-cv-wrap {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* 返信リンク */
.ty-c-reply a {
    font-size: .82em;
    color: #1565c0;
    text-decoration: none;
}

.ty-c-reply a:hover {
    text-decoration: underline;
}

/* >>アンカーリンク */
.ty-c-anchor {
    color: #1565c0;
    text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .ty-comment-card {
        padding: 8px 10px;
    }
    .ty-comment-card.depth-2,
    .ty-comment-card.depth-3,
    .ty-comment-card.depth-4,
    .ty-comment-card.depth-5 {
        margin-left: 10px;
    }
}
