body {
    background-color: #fffaf0;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0px;
    padding: 40px 20px;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding-bottom: 25px;
}

.hero-image {
    width: 500px;
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-title {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-family: 'Patrick Hand', cursive;
    color: #333;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    margin-bottom: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    padding: 50px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.form-group {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    padding-left: 10px; /* ← 入力欄と揃える */
    font-size: 1em;
    color: #333;
    text-align: left; /* ← これを追加！ */
}

.form-group input {
    width: 100%;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.password-toggle input {
    padding-right: 40px; /* アイコンのスペース確保 */
    padding-bottom: 25px
}

.toggle-icon {
    position: absolute;
    top: 25%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
}
.toggle-icon:hover {
    color: #555;
}

button[type="submit"] {
    background-color: #ff6f61;
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 1.5em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: block; /* ブロックにすることでmargin autoが効く */
    margin: 20px auto 50px; /* 上・左右・下のマージン指定 */
}

button[type="submit"]:hover {
    background-color: #ff8a75;
}

.line-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2em;
    }

    .login-form {
        padding: 20px 15px;
    }

    button[type="submit"] {
        font-size: 1.2em;
        padding: 10px 20px;
    }

    .toggle-icon {
        font-size: 1em;
    }
}
