/* 口コミフォーム専用CSS */

.reviews {
    margin-top: 20px;
}

.review-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #1a4d3a;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-user {
    font-weight: 600;
    color: #1a4d3a;
}

.review-date {
    font-size: 14px;
    color: #666;
}

.review-rating {
    margin-bottom: 10px;
    font-size: 18px;
    color: #FFD700;
}

.review-text {
    line-height: 1.6;
    color: #555;
}

/* 口コミ投稿フォーム */
.review-form-container {
    background: #f0f8e8;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #4caf50;
}

.review-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a4d3a;
    margin-bottom: 20px;
    text-align: center;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1a4d3a;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #1a4d3a;
    outline: none;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    border-color: #1a4d3a;
    outline: none;
}

.rating-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #FFD700;
}

.submit-btn {
    background: #1a4d3a;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #155a42;
}

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

/* 投稿完了メッセージ */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-top: 20px;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .review-form-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .star {
        font-size: 20px;
    }
}