body {
    font-family: "Arial", sans-serif;
    background-color: #fff;
    margin: 0;
    display: flex; /* 変更: flexboxを利用 */
    flex-direction: column; /* 変更: 子要素を縦方向に配置 */
    height: 100vh; /* 変更: 100%の高さ */
}

.header-logo {
    position: absolute;
    padding: 30px 40px;
    max-height: 41px;
    height: auto;
}

.login-container {
    width: 400px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: absolute; /* 追加: 絶対位置指定 */
    top: 50%; /* 追加: 上から50%の位置 */
    left: 50%; /* 追加: 左から50%の位置 */
    transform: translate(-50%, -50%); /* 追加: 要素の中央を基準に移動 */
    margin-bottom: 100px; /* login-containerの下に余白を追加 */
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #333;
}

.extra-links {
    text-align: center;
}

.extra-links a {
    font-size: 12px;
    color: #007bff;
    text-decoration: none;
}

.extra-links a:hover {
    text-decoration: underline;
}

.validation-error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.to_smilecollection {
    position: absolute;
    top: calc(50% + 216px); 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.to_smilecollection a {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

.to_smilecollection a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .login-container {
        width: 90% !important;           
        padding: 20px !important;          
        box-sizing: border-box;            
        left: 50%;                        
        top: 50%;
        transform: translate(-50%, -50%);   
    }
    .header-logo {
        padding: 20px 20px !important;     
    }
    .to_smilecollection {
        width: 90%;
    }
}

body.login-page .hamburger-menu .contact-link {
    display: none;
}