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

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

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

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #f8f9fa;
}

.nav-btn.active {
    background: #e74c3c;
    color: white;
}

.user-type-selector {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.2rem;
}

.user-type-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.user-type-btn:hover {
    color: #333;
}

.user-type-btn.active {
    background: #e74c3c;
    color: white;
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 600;
}

.corporate-view .page-header h2 {
    color: #2c3e50;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#keyword-search {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    min-width: 200px;
}

#keyword-search:focus {
    outline: none;
    border-color: #e74c3c;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

.toggle-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.toggle-filter input[type="checkbox"] {
    margin: 0;
}

/* Complaints Grid */
.complaints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.complaint-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.complaint-card.sold {
    opacity: 0.6;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.complaint-card.sold .complaint-title {
    color: #6c757d;
    text-decoration: line-through;
}

.corporate-view .complaint-card {
    border-left: 4px solid #3498db;
}

.complaint-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.complaint-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.complaint-category {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sold-badge {
    background: #6c757d;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.complaint-description {
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-profile {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #e74c3c;
}

.corporate-view .complaint-card .user-profile {
    background: #ecf0f1;
    border-left: 3px solid #3498db;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.complaint-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interview-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.complaint-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
}

.interview-duration {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.buy-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.corporate-view .buy-btn {
    background: #2980b9;
}

.corporate-view .buy-btn:hover {
    background: #1f618d;
}

.buy-btn:hover {
    background: #2980b9;
}

.buy-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Group Interview Styles */
.group-interview-card {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.group-interview-card .complaint-title {
    color: #2c3e50;
    font-weight: 700;
}

.group-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.participant-count {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.group-participants {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #3498db;
}

.group-participants h4 {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.participant-info {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
    padding-left: 1rem;
    position: relative;
}

.participant-info::before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.per-participant-price {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.buy-btn.group-btn {
    background: #2980b9;
    font-weight: 600;
}

.buy-btn.group-btn:hover {
    background: #1f618d;
}

.corporate-view .buy-btn.group-btn {
    background: #2471a3;
}

.corporate-view .buy-btn.group-btn:hover {
    background: #1b4f72;
}

/* Sell Form */
.sell-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sell-form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

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

.form-group small {
    color: #666;
    font-size: 0.9rem;
}

.submit-btn {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #c0392b;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.analytics-card h3 {
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.metric {
    font-size: 2rem;
    font-weight: 700;
    color: #e74c3c;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-user-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 3px solid #e74c3c;
}

.modal-user-info p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.primary {
    background: #e74c3c;
    color: white;
}

.btn.primary:hover {
    background: #c0392b;
}

.btn.secondary {
    background: #ecf0f1;
    color: #333;
}

.btn.secondary:hover {
    background: #d5dbdb;
}

.individual-view .corporate-only {
    display: none;
}

.corporate-view .individual-only {
    display: none;
}

.corporate-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.corporate-features h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.corporate-features ul {
    list-style: none;
    padding: 0;
}

.corporate-features li {
    padding: 0.5rem 0;
    color: #666;
}

.corporate-features li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    margin-right: 0.5rem;
}

.service-value {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.responsiveness-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.responsiveness-stars {
    color: #f39c12;
    font-size: 0.9rem;
}

.response-time {
    font-size: 0.7rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.interview-readiness {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #27ae60;
}

.attitude-indicator,
.pre-questions-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.attitude-indicator:last-child,
.pre-questions-indicator:last-child {
    margin-bottom: 0;
}

.label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.attitude {
    font-size: 0.8rem;
    color: #27ae60;
    font-weight: 600;
}

.pre-questions {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

.pre-questions.welcome {
    background: #d5f4e6;
    color: #27ae60;
}

.pre-questions.available {
    background: #fef9e7;
    color: #f39c12;
}

.pre-questions.limited {
    background: #fadbd8;
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .filters {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    #keyword-search {
        width: 100%;
        min-width: auto;
    }

    .filters select {
        flex: 1;
        width: 100%;
    }

    .complaints-grid {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }
}