#bd_under .button_div,
#bd_under .button_div input{
    text-align: center;
    margin: 0 auto;
}
#bd_under .button_div input:hover{
    cursor: pointer;
}
#bd_under .button_div input[type="submit"]{
    padding-left: 48px;
}

#bd_under #wpmem_login,
#bd_under #wpmem_reg, #bd_under fieldset,
#bd_under #wpmem_login fieldset,
#bd_under #wpmem_reg,
#bd_under #wpmem_reg fieldset
{
    max-width: 500px;
}


#wpmem_login_form{
    display: none !important;
}

#wpmem_login,
.custom-login-footer{
    display: none;
}

.wpmem_msg + div + ul{
    display: none;
}

.custom-btn-container .btn{
    margin: 40px auto 0;
}

#bd_under #wpmem_msg,
#bd_under .wpmem_msg{
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #00A690;
    background-color: #daf5f2;
}


#bd_under .wpmem_msg.is-error br + br{
    display: none;
}

#bd_under #wpmem_reg .div_text,
#bd_under #wpmem_login .div_text{
    margin-bottom: 24px;
}

#bd_under #sec_list > ul{
    display: flex;
    justify-content: center;
    gap: 24px;
}
#bd_under #sec_list > ul li{
    display: block;
    max-width: 300px;
    width: 100%;
}

#bd_under #sec_list > ul li a{
    display: block;
    max-width: 300px;
    width: 100%;
    text-align: center;
    background-color: #009985;
    color: #fff;
    padding: 40px 16px;
    font-size: 20px;
    border-radius: 6px;
    border: 1px solid #009985;
    transition: 0.3s;
}

#bd_under #sec_list > ul li a:hover{
    background-color: #fff;
    color: #009985;
    text-decoration: none;
}
@media screen and (max-width: 480px) {
    #bd_under #sec_list > ul{
        display: block;
    }
    #bd_under #sec_list > ul li{
        margin: 0 auto;
    }
    #bd_under #sec_list > ul li + li{
        margin-top: 24px;
    }

    #bd_under #sec_list > ul li a{
        padding: 24px 16px;
        font-size: 16px;
    }
}

.custom-btn-container + ul{
    margin-top: 80px;
}


/* 下部の「*必須項目」を非表示にする */
#wpmem_reg #wpmem_profile_form .req-text {
    display: none !important;
}

/* 「*」を非表示にして、その後に「必須」という文字を追加する */
#wpmem_reg #wpmem_profile_form label span.req {
    font-size: 0; /* 元の「*」を消す */
}

#wpmem_reg #wpmem_profile_form label span.req::after,
#wpmem_reg #wpmem_profile_form label[for="confirm_email"]::after {
    content: "必須";
    background: #ff0000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 5px 6px 3px;
    margin-left: 8px;
    margin-bottom: 8px;
    line-height: 1;
    display: inline-block;
}
#wpmem_reg #wpmem_profile_form label[for="confirm_email"]::after {
    margin-left: 0;
}
#nicknameText{
    padding-left: 1em;
    text-indent: -1em;
    margin: 40px auto 0;
    width: fit-content;
}



#bd_under .wpmem_msg.is-error{
    border: 1px solid #ff4d4d;
    background-color: #fff5f5;
    padding: 24px;
    border-radius: 4px;
    margin: 24px auto;
}
/* 入力欄の親要素 */
#sec_list form div {
    position: relative;
    margin-bottom: 15px;
}

/* パスワード入力欄に右側の余白を作る */
#sec_list input[type="password"],
#sec_list input[type="text"][name*="password"] {
    padding-right: 40px;
    width: 100%;
    box-sizing: border-box;
    height: 42px;
}

/* 目のアイコンの土台 */
.pwd-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 目の形（CSS描画） */
.pwd-toggle i {
    position: relative;
    width: 18px;
    height: 12px;
    border: 2px solid #666;
    border-radius: 50% 50%;
    display: block;
}
.pwd-toggle i::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* 非表示状態（斜線を入れるなど） */
.pwd-toggle.is-visible::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 20px;
    background: #666;
    transform: rotate(45deg);
}

/* 表示状態のときは斜線を消す等の調整 */
.pwd-toggle:not(.is-visible)::after {
    display: none;
}