/* 全体設定 */
body {
    margin: 0;
    font-family: "Yu Gothic", "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ヘッダー */
header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 20px;
    font-weight: bold;
}

/* サイドメニュー */
nav {
    width: 220px;
    background: #34495e;
    color: white;
    height: 100vh;
    padding-top: 20px;
    position: fixed;
    top: 60px; /* ヘッダーの高さ分 */
}

nav a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    background: #3d566e;
}

/* メインコンテンツ */
main {
    margin-left: 240px;
    padding: 20px;
}

/* 現在のページを強調 */
nav a.active {
    background: #3d566e;
}

/* 検索ボックス */
.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-box button {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-box button:hover {
    background: #2980b9;
}

/* 社員一覧テーブル */
.employee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.employee-table th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.employee-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.employee-table tr:hover {
    background: #f0f8ff;
}

/* 詳細ボタン */
.detail-btn {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

.detail-btn:hover {
    background: #2980b9;
}

/* 詳細カード */
.detail-card {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
}

/* ヘッダー部分（写真＋名前） */
.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

/* テーブル */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.detail-table th {
    width: 150px;
    background: #f0f0f0;
    padding: 10px;
    text-align: left;
    font-weight: bold;
}

.detail-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* ボタン */
.detail-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.edit-btn {
    background: #3498db;
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
}

.edit-btn:hover {
    background: #2980b9;
}

.back-btn {
    background: #7f8c8d;
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
}

.back-btn:hover {
    background: #707b7c;
}

/* 編集フォーム */
.edit-form {
    background: white;
    padding: 20px;
    border-radius: 6px;
    max-width: 800px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edit-form h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}

/* 入力行 */
.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-row label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-row input,
.form-row select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* ボタン */
.edit-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.save-btn {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.save-btn:hover {
    background: #1e8449;
}

.cancel-btn {
    background: #7f8c8d;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}

.cancel-btn:hover {
    background: #707b7c;
}