/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.header {
    background: #1e3a5f;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.nav a:hover {
    opacity: 1;
}

/* Main */
.main {
    flex: 1;
    padding: 40px 0;
}

h1 {
    color: #1e3a5f;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

h2 {
    color: #1e3a5f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary {
    background: #1e3a5f;
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: #2a4a73;
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.login-help {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Dashboard */
.welcome {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.dashboard-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.announcement-list {
    list-style: none;
}

.announcement-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item h3 {
    color: #1e3a5f;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.announcement-item p {
    color: #555;
    margin-bottom: 8px;
}

.announcement-item .meta {
    font-size: 0.85rem;
    color: #999;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.quick-link:hover {
    background: #e9ecef;
}

.quick-link .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Documents */
.document-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.document-table th,
.document-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.document-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #1e3a5f;
}

.document-table a {
    color: #1e3a5f;
    text-decoration: none;
}

.document-table a:hover {
    text-decoration: underline;
}

/* Profile */
.profile-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 500px;
}

.profile-info {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
}

.profile-info dt {
    font-weight: bold;
    color: #666;
}

.profile-info dd {
    color: #333;
}

/* Footer */
.footer {
    background: #1e3a5f;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

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

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .profile-info {
        grid-template-columns: 1fr;
    }
}
