@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

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

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #1a1a1a;
}

.tab.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.filter-bar select {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
}

.proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.proposal-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.proposal-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

.proposal-card .status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.status.draft {
    background: #f0f0f0;
    color: #666;
}

.status.submitted {
    background: #e3f2fd;
    color: #1976d2;
}

.status.reviewed {
    background: #e8f5e9;
    color: #388e3c;
}

.proposal-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.proposal-card .company {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.proposal-card .student {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.proposal-card .excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.company-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.company-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.company-card .industry {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.company-card .description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
}

.close:hover {
    color: #1a1a1a;
}

#proposal-detail h2 {
    margin-bottom: 20px;
}

#proposal-detail .detail-section {
    margin-bottom: 20px;
}

#proposal-detail .detail-section h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

#proposal-detail .detail-section p {
    color: #1a1a1a;
    line-height: 1.6;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .proposals-grid,
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-bar {
        flex-direction: column;
    }
}

