/* 全体の背景とフォント */
body {
    font-family: "Segoe UI", sans-serif;
    background: #1e3a8a; /* 濃い青（明るさを保ちつつ深みのある色） */
    margin: 0;
    padding: 20px;
    color: #f0f4ff; /* 白に近い淡い青で読みやすく */
}

/* コンテナ（白背景で立体的に浮かせる） */
.container {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25); /* 立体感UP */
    color: #333; /* コンテナ内は濃いグレーで読みやすく */
}

/* タイトル */
h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #1e3a8a; /* 背景と統一した濃い青 */
}

/* ラベル */
label {
    margin-top: 15px;
    font-weight: bold;
    color: #1e3a8a;
}

/* 入力欄 */
input, textarea, select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
}

/* 入力欄フォーカス時 */
input:focus, textarea:focus, select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 4px rgba(74,144,226,0.4);
}

/* テキストエリア */
textarea {
    height: 90px;
}

/* ボタン共通 */
button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    color: white;
}

/* 更新ボタン */
button[onclick="updateUser()"] {
    background: #2563eb; /* 明るめの青 */
}

button[onclick="updateUser()"]:hover {
    background: #1d4ed8;
}

/* 削除ボタン */
.delete-btn {
    background: #e11d48;
}

.delete-btn:hover {
    background: #be123c;
}

/* 戻るボタン */
button[onclick="backList()"] {
    background: #475569;
}

button[onclick="backList()"]:hover {
    background: #334155;
}

/* メッセージ */
.message {
    text-align: center;
    color: #16a34a;
    margin-bottom: 10px;
}

.error {
    text-align: center;
    color: #dc2626;
    margin-bottom: 10px;
}

/* トップページ全体を中央に整える */
.top-container {
    width: 90%;
    max-width: 600px; /* 画面に収まる最大幅 */
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
}

/* ボタンを画面サイズに合わせて調整 */
.top-container button {
    width: 100%;
    max-width: 300px;
    padding: 14px;
    margin: 12px auto;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

.top-container button:hover {
    background: #1d4ed8;
}

/* スマホ対応（レスポンシブ） */
@media (max-width: 480px) {
    .top-container {
        width: 95%;
        padding: 15px;
    }

    .top-container button {
        font-size: 16px;
        padding: 12px;
    }
}

/* ログイン画面専用デザイン */
body.login-page {
    background: #1e3a8a; /* 濃い青背景 */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* 画面高さにフィット */
}

/* ログインフォームのコンテナ */
.login-container {
    width: 90%;
    max-width: 400px; /* 画面に収まるサイズ */
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    color: #333;
}

/* タイトル */
.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e3a8a;
}

/* 入力欄 */
.login-container input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
}

/* ボタン */
.login-container button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.login-container button:hover {
    background: #1d4ed8;
}

/* スマホ対応 */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 20px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
