/* お客様の声フロントエンド用CSS */

/* 投稿フォーム */
.svpm-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.svpm-form-field {
    margin-bottom: 20px;
}

.svpm-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.svpm-form-field input[type="text"],
.svpm-form-field input[type="email"],
.svpm-form-field select,
.svpm-form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* レース選択のオプション文字位置調整 */
.svpm-form-field select {
    font-family: 'Courier New', 'MS Gothic', monospace;
}

.svpm-form-field select option {
    font-family: 'Courier New', 'MS Gothic', monospace;
    padding: 2px 4px;
    text-align: left;
}

.svpm-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.svpm-form-field input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.svpm-form-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.svpm-required {
    color: #d63638;
}

/* 送信ボタン */
.svpm-submit-button {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.svpm-submit-button:hover {
    background: #005a87;
}

.svpm-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 通知メッセージ */
.svpm-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.svpm-notice-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.svpm-notice-warning {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.svpm-notice-error {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.svpm-notice-info {
    background-color: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* 投稿一覧 */
.svpm-voice-list {
    max-width: 1000px;
    margin: 0 auto;
}

.svpm-voice-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.svpm-voice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.svpm-voice-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.svpm-voice-nickname {
    font-weight: bold;
    color: #0073aa;
}

.svpm-voice-race {
    color: #d63638;
}

.svpm-voice-date {
    color: #999;
}

.svpm-voice-content {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.svpm-voice-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.svpm-voice-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s;
}

.svpm-voice-image:hover {
    transform: scale(1.05);
}

/* 画像モーダル */
.svpm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.svpm-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.svpm-modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.svpm-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* ページネーション */
.svpm-pagination {
    text-align: center;
    margin: 30px 0;
}

.svpm-pagination a,
.svpm-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
}

.svpm-pagination a:hover {
    background: #f5f5f5;
}

.svpm-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .svpm-form-container {
        padding: 10px;
    }
    
    .svpm-voice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .svpm-voice-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .svpm-voice-images {
        justify-content: center;
    }
    
    .svpm-voice-image {
        max-width: 150px;
        max-height: 150px;
    }
}

/* アニメーション */
.svpm-fade-in {
    animation: svpm-fadeIn 0.5s ease-in;
}

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

/* フォーカス状態 */
.svpm-form-field input:focus,
.svpm-form-field select:focus,
.svpm-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* エラー状態 */
.svpm-form-field.error input,
.svpm-form-field.error select,
.svpm-form-field.error textarea {
    border-color: #d63638;
}

.svpm-error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
}
