/* コメント機能のスタイル */

/* コメントセクション */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

.comments-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color, #333);
}

/* コメント一覧 */
.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-header {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: bold;
    color: var(--text-color, #333);
}

.comment-date {
    color: #999;
}

.comment-content {
    line-height: 1.6;
    color: var(--text-color, #333);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* コメント投稿フォーム */
.comment-form {
    background-color: #fafafa;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.comment-form-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color, #333);
}

.comment-form-group {
    margin-bottom: 15px;
}

.comment-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-color, #333);
}

.comment-form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.comment-form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
    box-sizing: border-box;
}

.comment-form-submit {
    background-color: var(--primary-color, #6a5acd);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.comment-form-submit:hover {
    background-color: var(--accent-color, #8a2be2);
}

.comment-form-notice {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    line-height: 1.5;
}

.comment-form-notice strong {
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* メッセージ表示 */
.comment-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
}

.comment-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.comment-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .comment-form {
        padding: 15px;
    }
    
    .comment-form-input,
    .comment-form-textarea {
        font-size: 16px; /* iOSのズーム防止 */
    }
}
