/* ===== フォーム ===== */
.sac-form-wrap {
    margin: 2em 0;
    background: #fff;
    border-radius: 14px;
    padding: 1.8em;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1px solid #e8edf2;
}
.sac-form-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.3em;
    padding-left: .7em;
    border-left: 3px solid #3b82f6;
}
.sac-field { margin-bottom: 1.2em; }
.sac-field label {
    display: block;
    font-weight: 600;
    font-size: .875em;
    color: #475569;
    margin-bottom: .4em;
    letter-spacing: .02em;
}
.sac-field input[type="text"],
.sac-field textarea {
    width: 100%;
    padding: .65em .9em;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: .95em;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
    font-family: inherit;
}
.sac-field input[type="text"]:focus,
.sac-field textarea:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.sac-required { color: #ef4444; margin-left: .2em; }
.sac-submit-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    padding: .7em 2em;
    border-radius: 8px;
    cursor: pointer;
    font-size: .95em;
    font-weight: 600;
    letter-spacing: .03em;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 2px 10px rgba(37,99,235,.3);
}
.sac-submit-btn:hover { opacity: .88; transform: translateY(-1px); }
.sac-submit-btn:active { transform: translateY(0); }
.sac-message {
    padding: .8em 1em;
    border-radius: 8px;
    margin-bottom: 1em;
    font-size: .9em;
}
.sac-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.sac-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ===== コメント一覧 ===== */
.sac-list-wrap { margin: 2em 0; }
.sac-comment {
    border: 1px solid #e8edf2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.2em;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    transition: box-shadow .2s;
}
.sac-comment:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); }
.sac-reply { margin-left: 2em; border-left: 3px solid #3b82f6; }
.sac-comment-header {
    display: flex;
    align-items: center;
    gap: .8em;
    padding: .6em 1em;
    background: linear-gradient(to right, #eff6ff, #f8fafc);
    border-bottom: 1px solid #e8edf2;
}
.sac-nickname { font-weight: 700; color: #1e293b; font-size: .93em; }
.sac-date { color: #94a3b8; font-size: .78em; }
.sac-reply-label {
    background: #3b82f6;
    color: #fff;
    font-size: .72em;
    padding: .15em .6em;
    border-radius: 20px;
    font-weight: 600;
}
.sac-comment-body {
    line-height: 1.85;
    padding: .9em 1em;
    margin: 0;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    font-size: .95em;
}

/* リアクション */
.sac-reactions { display: flex; gap: .5em; flex-wrap: wrap; padding: .65em 1em .4em; }
.sac-reaction-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: .3em 1em;
    cursor: pointer;
    font-size: .85em;
    color: #475569;
    transition: all .15s;
}
.sac-reaction-btn:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.sac-reaction-btn.sac-reacted { background: #dbeafe; border-color: #3b82f6; color: #1d4ed8; font-weight: 600; }

/* アクション行 */
.sac-reply-actions { display: flex; gap: .6em; align-items: center; padding: .4em 1em .8em; }
.sac-reply-toggle-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: .85em;
    padding: 0;
    font-weight: 500;
}
.sac-reply-toggle-btn:hover { text-decoration: underline; }

.sac-quote-btn {
    background: none;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    font-size: .8em;
    padding: .25em .85em;
    border-radius: 5px;
    transition: all .15s;
}
.sac-quote-btn:hover { background: #f1f5f9; border-color: #94a3b8; color: #334155; }
.sac-quote-btn.sac-quote-copied { background: #f0fdf4; border-color: #86efac; color: #15803d; }

/* 返信エリア */
.sac-replies { margin-top: .5em; }
.sac-reply-form-slot { margin-top: .5em; }
.sac-inline-reply-form {
    border: 1.5px solid #3b82f6;
    border-radius: 10px;
    padding: 1.2em;
    background: #f0f7ff;
}
.sac-cancel-reply {
    margin-left: .4em;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: .45em 1em;
    border-radius: 7px;
    cursor: pointer;
    font-size: .9em;
    transition: background .15s;
}
.sac-cancel-reply:hover { background: #e2e8f0; }
.sac-no-comments {
    color: #94a3b8;
    text-align: center;
    padding: 2.5em 1em;
    background: #f8fafc;
    border-radius: 12px;
    border: 1.5px dashed #e2e8f0;
    font-size: .95em;
}

/* フォーカス */
.sac-reply-toggle-btn:focus-visible,
.sac-reaction-btn:focus-visible,
.sac-quote-btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
