* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #f8fafc;
    color: #1a202c;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 300;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    background: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #4a5568;
}

.tab-button.active {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.tab-button:hover:not(.active) {
    background: #edf2f7;
    transform: translateY(-1px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4299e1;
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.btn-primary {
    background: #4299e1;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.idea-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.idea-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.idea-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.idea-category {
    background: #4299e1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.idea-description {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.7;
}

.rating-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.rating-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.criteria-item {
    text-align: center;
}

.criteria-label {
    font-weight: 500;
    margin-bottom: 10px;
    color: #4a5568;
}

.rating-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-rate {
    background: #48bb78;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-rate:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filters select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    min-width: 150px;
}

.result-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.result-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4299e1;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
}

.no-ideas,
.no-results {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 40px;
}

.access-denied {
    text-align: center;
    padding: 40px;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    margin: 20px 0;
}

.access-denied h3 {
    color: #c53030;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.access-denied p {
    color: #744210;
    margin-bottom: 20px;
    line-height: 1.6;
}

.evaluation-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.evaluation-guide {
    background: #f0f8ff;
    border-left: 4px solid #4299e1;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.evaluation-guide h4 {
    color: #2b6cb0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.evaluation-guide p {
    color: #2d3748;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.comment-form textarea {
    height: 100px;
    resize: vertical;
}

.evaluation-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.evaluations {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.evaluations h4 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.evaluation-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.evaluation-date {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 15px;
}

.evaluation-content .good-points,
.evaluation-content .improvement-points {
    margin-bottom: 15px;
}

.evaluation-content .good-points:last-child,
.evaluation-content .improvement-points:last-child {
    margin-bottom: 0;
}

.evaluation-content strong {
    color: #4a5568;
    display: block;
    margin-bottom: 5px;
}

.evaluation-content p {
    color: #2d3748;
    line-height: 1.6;
    margin-left: 10px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: all 0.4s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #e53e3e;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .rating-criteria {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
    }
}