body {
    font-family: "Helvetica", "Arial", sans-serif;
    /* 背景色を画像に合わせて調整 */
    background: #C0CEE6;
    display: flex;
    justify-content: center; /* 主軸（横方向）で中央寄せ */
    align-items: center; /* 交差軸（縦方向）で中央寄せ */
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* ★ これが重要：意図しないスクロールを完全に禁止する */
    /* モバイルブラウザでの挙動を安定させるため、位置も固定 */
    position: fixed;
    top: 0;
    left: 0;
}

.login-container {
    background-color: white;
    /* 枠線を細く、薄い色に変更 */
    border: 1px solid #ddd;
    padding: 30px;
    width: 380px;
    /* 影を大きく、柔らかく */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 15px; /* 角をより丸く */
}

h2 {
    text-align: center;
    margin-bottom: 25px; /* タイトルの下に少しスペースを追加 */
    font-size: 27px;
    color: #333;
}

label {
    display: block;
    margin-top: 15px; /* ラベルの上のスペースを増やす */
    margin-bottom: 5px;
    font-size: 17px;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    /* 枠線を細く、色を調整 */
    border: 1px solid #ccc;
    border-radius: 5px; /* 角を丸く */
    margin-bottom: 5px; /* 次の要素との間隔を調整 */
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #0078D7; /* フォーカス時に青い枠線 */
    outline: none;
}

#login-btn-link {
    display: block;
    text-decoration: none; /* リンクの下線を消す */
    margin-top: 25px; /* パスワード入力欄とボタンの間のマージン */
}

button {
    width: 100%;
    padding: 12px;
    background-color: #0078D7;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px; /* 文字を少し大きく */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 軽い影で立体感を出す */
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #005fa3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.links {
    margin-top: 25px; 
    text-align: center;
}

.links a {
    text-decoration: none;
    color: #0078D7;
    font-size: 18px; /* 文字サイズを少し小さく */
    display: block; 
    padding: 3px 0; /* 上下のパディングで間隔を空ける */
    transition: color 0.3s;
}

.links a:hover {
    text-decoration: underline;
    color: #005fa3;
}

/* 768px以下の画面（スマホ）に適用するスタイル */
@media (max-width: 768px) {
    .login-container {
        width: 85%; /* スマホでは幅を広げる */
        padding: 20px;
    }
    body {
        font-size: 15px;
    }
    h2 {
        font-size: 24px;
    }
    button {
        padding: 10px;
        font-size: 17px;
    }
    .links a {
        font-size: 16px;
    }
}

/* 375px以下の画面（小型スマホ）に適用するスタイル */
@media (max-width: 375px) {
    body {
        font-size: 12px;
    }
    input[type="text"],
    input[type="password"] {
        padding: 8px;
    }
}

.help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #6C757D;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: opacity 0.3s;
}

.help-btn:hover {
    opacity: 0.8;
    background-color: #5A6268;
}