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

body {
    font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
    background: #f5f6fa;
    color: #333;
}

header {
    background: #1a73e8;
    color: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header h1 { font-size: 20px; padding: 16px 0; white-space: nowrap; }

nav { display: flex; gap: 4px; }
nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 20px 16px;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
nav a:hover, nav a.active {
    color: white;
    border-bottom-color: white;
}

main { padding: 24px; max-width: 1200px; margin: 0 auto; }

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    text-align: center;
}
.stat-card h3 { font-size: 13px; color: #666; margin-bottom: 8px; }
.stat-number { font-size: 32px; font-weight: bold; color: #1a73e8; }

.section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.section-header h2 { font-size: 16px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.table th { background: #fafafa; font-weight: 600; color: #555; }
.table tr:hover td { background: #f8f9ff; }
.table tr:last-child td { border-bottom: none; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.btn-primary { background: #1a73e8; color: white; }
.btn-primary:hover { background: #1557b0; }
.btn-success { background: #34a853; color: white; }
.btn-success:hover { background: #2d8f47; }
.btn-danger { background: #ea4335; color: white; }
.btn-danger:hover { background: #c62828; }
.btn-sm { padding: 4px 10px; font-size: 12px; background: #e8f0fe; color: #1a73e8; }
.btn-sm:hover { background: #d2e3fc; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.2); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #1e8e3e; border: 1px solid #b7dfbf; }
.alert-error { background: #fce8e6; color: #c5221f; border: 1px solid #f5b7b1; }

.text-center { text-align: center; color: #999; padding: 32px !important; }

.write-btn-area {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.write-btn-area p { font-size: 13px; color: #666; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.page-header h2 { font-size: 20px; }

.form-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid #eee; }

@media (max-width: 768px) {
    .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    header { flex-direction: column; align-items: flex-start; gap: 0; }
}
