.form-required:after {
    content: "(必須)";
    font-size: 12px;
    color:red;
    margin-left: 5px;
}
.agree-terms-of-service-container {
    margin-top: 25px;
    font-size: 14px;
}
/* 元々のチェックボックスデザインは非表示にする */
input[type=checkbox] {
    display: none;
}
#username-warning {
    font-size: 13px;
    text-align: left;
}

#password-rules {
    min-width: 400px;
    padding: 0;
    list-style-type: none;
    text-align: left;
}

#password-rules li {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px; /* Adds space between the list items for clarity */
}

#password-rules li.invalid {
    color: red;
}
#password-rules li.valid {
    color: green;
}
.label-container {
    display: flex;
    justify-content: space-between;
    margin-right: 10px;
}
.label-footnote {
    color: darkgray;
}
.popup {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color:black;
    text-align: left;
    z-index: 10;
}
.label-footnote:hover #popup_name {
    display: block;
}
.label-footnote:hover #popup_pw {
    display: block;
}
.label-footnote:hover #popup_pw_confirm {
    display: block;
}
@media (max-width: 667px) {
    .popup {
        width: 90%;
        left: 5%;
        transform: translateY(-85px);
    }
}