/* にしつーQ Ask - フロントエンドCSS */
/* にしつーQデザインに統一 */

/* ========================================
   フローティング質問ボタン
   ======================================== */
.n2qa-ask-button {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 999999;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    font-size: 14px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.n2qa-ask-button:hover,
.n2qa-ask-button:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.n2qa-ask-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* ========================================
   モーダル
   ======================================== */
.n2qa-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.n2qa-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.n2qa-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.n2qa-modal-wide {
    max-width: 600px;
}

.n2qa-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.n2qa-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* ユーザーバー */
.n2qa-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 16px 16px 0 0;
}

.n2qa-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.n2qa-user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.n2qa-user-name {
    font-size: 14px;
    font-weight: 600;
}

.n2qa-user-warning {
    font-size: 12px;
    cursor: help;
}

.n2qa-mypage-btn {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    background: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.n2qa-mypage-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.n2qa-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.n2qa-modal-close-bar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    line-height: 1;
}

.n2qa-modal-close-bar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.n2qa-modal-header {
    padding: 24px 24px 0;
    text-align: center;
}

.n2qa-modal-header h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #333;
}

.n2qa-modal-desc {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.n2qa-modal-body {
    padding: 20px 24px;
}

.n2qa-modal-footer {
    padding: 0 24px 24px;
}

/* ========================================
   フォーム要素
   ======================================== */
.n2qa-form-group {
    margin-bottom: 16px;
}

.n2qa-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    resize: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.n2qa-textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.n2qa-char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.n2qa-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.n2qa-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

/* ========================================
   ボタン
   ======================================== */
.n2qa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.n2qa-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

.n2qa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.n2qa-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   投稿結果
   ======================================== */
.n2qa-submit-result {
    padding: 16px 24px;
    text-align: center;
    font-size: 15px;
}

.n2qa-submit-result.success {
    color: #059669;
    background: #ecfdf5;
    border-radius: 0 0 16px 16px;
}

.n2qa-submit-result.error {
    color: #dc2626;
    background: #fef2f2;
}

.n2qa-modal-link {
    padding: 12px 24px 20px;
    text-align: center;
}

.n2qa-modal-link a {
    color: #ff6b6b;
    font-size: 13px;
    text-decoration: none;
}

.n2qa-modal-link a:hover {
    text-decoration: underline;
}

/* ========================================
   質問ブロック（にしつーQスタイル）
   ======================================== */
.n2qa-questions-container {
    margin: 32px 0;
}

.n2qa-question-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    padding: 24px;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.n2qa-question-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
}

.n2qa-question-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    position: relative;
}

/* 管理者用フロントエンドコントロール */
.n2qa-admin-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 4px;
}

.n2qa-admin-btn {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    color: #666;
    transition: all 0.2s;
}

.n2qa-admin-btn:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

.n2qa-question-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.n2qa-label {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.n2qa-question-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.n2qa-question-author {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.n2qa-friend-badge {
    background: #feca57;
    color: #2d3436;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.n2qa-question-time {
    font-size: 11px;
    color: #aaa;
}

.n2qa-question-text {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 16px 0;
    line-height: 1.6;
    cursor: default;
}

/* ========================================
   回答入力セクション（コンパクト）
   ======================================== */
.n2qa-answer-section {
    margin-bottom: 0;
}

.n2qa-answer-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.n2qa-answer-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s;
    min-width: 0;
}

.n2qa-answer-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.n2qa-answer-input::placeholder {
    color: #aaa;
}

.n2qa-answer-form .n2qa-btn-primary {
    flex-shrink: 0;
    width: auto;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
}

/* アクション行（テキストリンク風） */
.n2qa-action-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

/* インライン回答フォーム（コンパクト版） */
.n2qa-answer-form-inline {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0;
}

.n2qa-answer-form-inline .n2qa-answer-input {
    flex: 1 1 auto !important;
    min-width: 150px !important;
    padding: 10px 14px;
    font-size: 13px;
}

.n2qa-answer-form-inline .n2qa-name-select {
    flex: 0 0 80px !important;
    width: 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
}

.n2qa-answer-form-inline .n2qa-custom-name-input {
    flex: 0 0 80px !important;
    width: 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
}

.n2qa-answer-form-inline .n2qa-btn-small {
    flex: 0 0 auto !important;
}

.n2qa-btn-small {
    padding: 10px 16px !important;
    font-size: 13px !important;
    flex-shrink: 0;
}

/* フッターアクション（横並び・コンパクト） */
.n2qa-footer-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.n2qa-footer-actions .n2qa-want-to-know-btn {
    font-size: 12px;
    padding: 0;
}

.n2qa-ask-link {
    font-size: 12px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}

.n2qa-ask-link:hover {
    color: #ee5a5a;
}

.n2qa-list-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    font-weight: 500;
}

.n2qa-list-link:hover {
    color: #666;
}

.n2qa-footer-actions .n2qa-admin-link {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.n2qa-want-to-know-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.n2qa-want-to-know-btn:hover:not(.disabled) {
    color: #ff6b6b;
}

.n2qa-want-to-know-btn.disabled {
    color: #48dbfb;
    cursor: default;
}

.n2qa-btn-count {
    color: #ff6b6b;
    font-weight: 700;
}

.n2qa-view-results-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.n2qa-view-results-btn:hover {
    color: #ff6b6b;
}

/* ========================================
   結果表示
   ======================================== */
.n2qa-results {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

/* コメント一覧 */
.n2qa-comments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.n2qa-comment-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 14px 12px 24px;
    transition: all 0.2s ease;
}

/* コメントヘッダー（投稿者とハート） */
.n2qa-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.n2qa-comment-author {
    font-size: 11px;
    color: #888;
}

/* ハートエリア */
.n2qa-heart-area {
    display: flex;
    align-items: center;
    gap: 2px;
}

.n2qa-heart-btn,
.n2qa-thanks-btn.n2qa-heart-btn {
    background: none !important;
    border: none !important;
    color: #ccc;
    font-size: 11px;
    cursor: pointer;
    padding: 0 !important;
    line-height: 1;
    transition: color 0.2s;
    border-radius: 0 !important;
}

.n2qa-heart-btn:hover,
.n2qa-thanks-btn.n2qa-heart-btn:hover {
    background: none !important;
    color: #ff6b6b;
}

.n2qa-heart-done {
    color: #ff6b6b;
    font-size: 11px;
    line-height: 1;
}

.n2qa-heart-count {
    font-size: 11px;
    color: #ff6b6b;
    font-weight: 600;
}

.n2qa-comment-text {
    font-size: 15px;
    color: #2d3436;
    word-break: break-word;
    line-height: 1.5;
}

/* バッジ */
.n2qa-badge {
    display: inline-block;
    margin-right: 4px;
    cursor: help;
}

/* ありがとうボタンとアクション */
.n2qa-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.n2qa-thanks-btn {
    background: #fff5f5;
    color: #ff6b6b;
    border: 1px solid #ffcccc;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.n2qa-thanks-btn:hover {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.n2qa-thanks-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.n2qa-thanks-done {
    color: #48dbfb;
    font-size: 11px;
    font-weight: 600;
}

.n2qa-thanks-count {
    color: #888;
    font-size: 11px;
}

/* コメント削除ボタン */
.n2qa-delete-comment-btn {
    background: #f8f9fa;
    color: #888;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.n2qa-delete-comment-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #dc2626;
}

.n2qa-delete-comment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 管理者用編集ボタン */
.n2qa-edit-comment-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    color: #666;
    cursor: pointer;
    margin-left: 4px;
}

.n2qa-edit-comment-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* 管理者用：削除ボタン */
.n2qa-admin-delete-comment {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    color: #dc2626;
    cursor: pointer;
    margin-left: 2px;
}

.n2qa-admin-delete-comment:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

/* 管理者用：返信ボタン */
.n2qa-reply-comment-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    color: #2563eb;
    cursor: pointer;
    margin-left: 2px;
}

.n2qa-reply-comment-btn:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

/* 管理者返信ブロック（LINE引用風） */
.n2qa-admin-reply {
    margin-top: 8px;
    margin-left: 16px;
    padding: 10px 12px;
    background: #f0f7ff;
    border-left: 3px solid #2563eb;
    border-radius: 0 8px 8px 0;
}

.n2qa-admin-reply-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.n2qa-admin-reply-icon {
    font-size: 12px;
}

.n2qa-admin-reply-author {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
}

.n2qa-admin-reply-text {
    font-size: 14px;
    color: #1e3a5f;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

/* プレビュー内の管理者返信 teaser（一覧で「人気回答に公式返信あり」と見せる） */
.n2qa-preview-admin-reply-teaser {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 10px;
    background: #f0f7ff;
    border: 1px solid #cfe1ff;
    border-left: 3px solid #2563eb;
    border-radius: 0 8px 8px 0;
    color: #1e3a5f;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.n2qa-preview-admin-reply-teaser:hover {
    background: #e3efff;
}

.n2qa-preview-admin-reply-teaser .n2qa-preview-admin-reply-author {
    font-weight: 700;
    color: #2563eb;
    margin-right: 4px;
}

.n2qa-preview-admin-reply-teaser .n2qa-preview-admin-reply-snippet {
    color: var(--n2s-text-primary, #1e3a5f);
}

.n2qa-preview-admin-reply-teaser .n2qa-preview-admin-reply-more {
    color: #2563eb;
    font-weight: 600;
    margin-left: 4px;
    white-space: nowrap;
}

/* teaser 内で全文展開した状態（他に回答がない時のフォールバック） */
.n2qa-preview-admin-reply-teaser--expanded {
    cursor: default;
}

.n2qa-preview-admin-reply-teaser--expanded .n2qa-preview-admin-reply-snippet {
    white-space: pre-wrap;
}

/* 管理者返信の編集ボタン */
.n2qa-edit-reply-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 10px;
    cursor: pointer;
    padding: 0 4px;
}

.n2qa-edit-reply-btn:hover {
    color: #2563eb;
}

/* 返信インライン編集 */
.n2qa-reply-edit-input {
    width: 100%;
    min-height: 60px;
    padding: 6px 8px;
    border: 2px solid #2563eb;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    resize: vertical;
}

.n2qa-save-reply-edit,
.n2qa-cancel-reply-edit {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 6px;
    margin-right: 4px;
}

.n2qa-save-reply-edit {
    background: #ff6b6b;
    color: #fff;
}

.n2qa-cancel-reply-edit {
    background: #e0e0e0;
    color: #333;
}

/* 管理者返信の削除ボタン */
.n2qa-delete-reply-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 10px;
    cursor: pointer;
    padding: 0 4px;
}

.n2qa-delete-reply-btn:hover {
    color: #dc2626;
}

/* 返信入力フォーム */
.n2qa-reply-form {
    margin-top: 8px;
    margin-left: 16px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.n2qa-reply-input {
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    resize: vertical;
}

.n2qa-reply-input:focus {
    border-color: #2563eb;
    outline: none;
}

.n2qa-reply-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    justify-content: flex-end;
}

.n2qa-submit-reply {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.n2qa-submit-reply:hover {
    background: #1d4ed8;
}

.n2qa-cancel-reply {
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
}

.n2qa-cancel-reply:hover {
    background: #d1d5db;
}

/* インライン編集 */
.n2qa-inline-edit-input,
.n2qa-inline-edit-textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #ff6b6b;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.n2qa-inline-edit-textarea {
    min-height: 60px;
    resize: vertical;
}

.n2qa-inline-save-btn,
.n2qa-inline-cancel-btn,
.n2qa-inline-save-question-btn,
.n2qa-inline-cancel-question-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 6px;
    margin-right: 4px;
}

.n2qa-inline-save-btn,
.n2qa-inline-save-question-btn {
    background: #ff6b6b;
    color: #fff;
}

.n2qa-inline-cancel-btn,
.n2qa-inline-cancel-question-btn {
    background: #e0e0e0;
    color: #333;
}

.n2qa-inline-edit-actions {
    margin-top: 8px;
}

/* AI校正ボタン */
.n2qa-ai-rewrite-btn {
    background: #8b5cf6;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    cursor: pointer;
}
.n2qa-ai-rewrite-btn:hover {
    background: #7c3aed;
}
.n2qa-ai-rewrite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* AI校正済みラベル */
.n2qa-ai-label {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

/* ========================================
   フッター
   ======================================== */
.n2qa-ask-prompt {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.n2qa-ask-prompt-link {
    font-size: 13px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.n2qa-ask-prompt-link:hover {
    color: #ee5a5a;
}

.n2qa-list-link {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.n2qa-list-link:hover {
    color: #ff6b6b;
}

.n2qa-admin-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    margin-left: auto;
}

.n2qa-admin-link:hover {
    color: #ff6b6b;
}

/* ========================================
   スライダー（複数質問）
   ======================================== */
.n2qa-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.n2qa-slider-prev,
.n2qa-slider-next {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
    white-space: nowrap;
}

.n2qa-slider-prev:hover:not(:disabled),
.n2qa-slider-next:hover:not(:disabled) {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.n2qa-slider-prev:disabled,
.n2qa-slider-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.n2qa-slider-indicator {
    font-size: 13px;
    color: #666;
}

.n2qa-slider-current {
    font-weight: 600;
    color: #ff6b6b;
}

.n2qa-questions-slider {
    position: relative;
}

.n2qa-question-block {
    display: none;
}

.n2qa-question-block.active {
    display: block;
    animation: n2qa-fadeIn 0.3s ease;
}

@keyframes n2qa-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   ローディング
   ======================================== */
.n2qa-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* ========================================
   自分の活動表示
   ======================================== */
.n2qa-activity-section {
    margin-bottom: 20px;
}

.n2qa-activity-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff6b6b;
}

.n2qa-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.n2qa-activity-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.n2qa-activity-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.n2qa-activity-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

.n2qa-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.n2qa-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.n2qa-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.n2qa-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.n2qa-status-closed {
    background: #e5e7eb;
    color: #4b5563;
}

.n2qa-activity-empty {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 14px;
}

.n2qa-response-badge {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

.n2qa-activity-comment {
    font-size: 13px;
    color: #555;
    padding: 6px 0 0 12px;
    border-left: 2px solid #e0e0e0;
    margin-top: 6px;
}

/* ========================================
   レスポンシブ
   ======================================== */
/* 下スクロール中はにしQボタンを非表示 */
body.n2qa-scroll-hidden .n2qa-ask-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

@media (max-width: 600px) {
    .n2qa-ask-button {
        bottom: 120px;
        right: 15px;
        padding: 14px 18px;
        min-width: 48px;
        min-height: 48px;
    }

    .n2qa-ask-text {
        display: none;
    }

    .n2qa-modal-content {
        margin: 10px;
    }

    .n2qa-question-block {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .n2qa-question-text {
        font-size: 16px;
    }

    .n2qa-answer-form {
        flex-direction: column;
    }

    .n2qa-answer-form .n2qa-btn-primary {
        width: 100%;
    }

    .n2qa-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .n2qa-ask-prompt {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .n2qa-admin-link {
        margin-left: 0;
    }
}

/* ========================================
   ニックネーム readonly 状態
   ======================================== */
.n2qa-nickname-readonly {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.n2qa-nickname-notice {
    margin: 8px 0 0;
    font-size: 12px;
    color: #888;
}

.n2qa-nickname-notice a {
    color: #ff6b6b;
    text-decoration: underline;
}

/* ========================================
   回答プレビュー
   ======================================== */
.n2qa-answer-preview {
    margin: 16px 0;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid #48dbfb;
}

.n2qa-preview-card {
    margin-bottom: 10px;
}

.n2qa-preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.n2qa-preview-badge {
    font-size: 14px;
}

.n2qa-preview-author {
    color: #666;
    font-weight: 600;
}

.n2qa-preview-time {
    color: #aaa;
    font-size: 11px;
    margin-left: 8px;
}

.n2qa-comment-time {
    color: #aaa;
    font-size: 11px;
    margin-left: 6px;
}

.n2qa-preview-thanks {
    color: #ff6b6b;
    font-size: 11px;
}

/* プレビューヘッダー内のハートエリア - 名前の隣に表示 */
.n2qa-preview-header .n2qa-heart-area {
    margin-left: 0;
}

/* プレビュー編集ボタン（管理者用） */
.n2qa-edit-preview-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    color: #666;
    cursor: pointer;
    margin-left: auto;
}

.n2qa-edit-preview-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.n2qa-preview-comment {
    font-size: 15px;
    color: #2d3436;
    line-height: 1.6;
    word-break: break-word;
}

.n2qa-expand-answers-btn {
    background: none;
    border: none;
    color: #48dbfb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 0;
    transition: color 0.2s;
    display: block;
    width: 100%;
    text-align: center;
}

.n2qa-expand-answers-btn:hover {
    color: #1e90ff;
}

.n2qa-expand-answers-btn.expanded {
    display: none;
}

/* 展開時のプレビュー非表示 */
.n2qa-answer-preview.hidden {
    display: none;
}

/* ========================================
   管理者用：名前選択ドロップダウン
   ======================================== */
.n2qa-name-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.n2qa-name-select:focus {
    border-color: #ff6b6b;
    outline: none;
}

.n2qa-custom-name-input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
}

.n2qa-custom-name-input:focus {
    border-color: #ff6b6b;
    outline: none;
}

/* 質問モーダル内の管理者用名前選択 */
.n2qa-admin-name-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.n2qa-admin-name-row .n2qa-name-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 100px;
}

.n2qa-admin-name-row .n2qa-custom-name-input {
    flex: 1;
    width: auto;
    max-width: 200px;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .n2qa-answer-form-inline .n2qa-name-select,
    .n2qa-answer-form-inline .n2qa-custom-name-input {
        width: auto !important;
        max-width: none !important;
        flex: 0 1 auto;
    }

    .n2qa-answer-form-inline .n2qa-btn {
        flex: 1 1 100%;
        order: 4;
    }
}

/* ========================================
   もっと見るボタン
   ======================================== */
.n2qa-load-more-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.n2qa-load-more-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #333;
}

.n2qa-load-more-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

/* === 拒否（ブラックリスト）ボタン — 管理者のみ表示 === */
/* コメント・プレビュー側（編集/削除/返信と同じ系列の小さなボタン） */
.n2qa-blacklist-front {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 10px;
    color: #991b1b;
    cursor: pointer;
    margin-left: 2px;
}

.n2qa-blacklist-front:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.n2qa-blacklist-front.n2qa-blacklist-done {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #d1d5db;
    cursor: default;
}

/* 質問ヘッダ側は admin-btn のサイズを維持し色だけ拒否色に */
.n2qa-admin-btn.n2qa-blacklist-front {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: #991b1b;
    margin-left: 0;
}

.n2qa-admin-btn.n2qa-blacklist-front:hover {
    background: #fee2e2;
    border-color: #dc2626;
}
