/**
 * 独立認証ページ用CSS
 * Nike風シンプルデザイン
 */

/* ========================================
   ページ全体
======================================== */
body .auth-page-container,
.page .auth-page-container,
.page-template .auth-page-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    padding: 135px 20px 40px 20px !important;
}

body .auth-page-content,
.page .auth-page-content,
.page-template .auth-page-content {
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
}

body .auth-form-wrapper,
.page .auth-form-wrapper,
.page-template .auth-form-wrapper {
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ========================================
   タイトル
======================================== */
body .auth-page-title,
.page .auth-page-title,
.page-template .auth-page-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-align: center !important;
    margin: 0 0 54px 0 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
}

/* タイトル下の装飾線（swpm-edit-profile-form::before が既に表示するため非表示） */
body .auth-title-divider,
.page .auth-title-divider,
.page-template .auth-title-divider {
    display: none !important;
}

/* お問い合わせフォーム用のタイトル下装飾線（swpm-edit-profile-formと同じデザイン） */
body .auth-form-container .swpm-contact-form::before,
.page .auth-form-container .swpm-contact-form::before,
.page-template .auth-form-container .swpm-contact-form::before {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 4px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    margin: 0 auto 50px !important;
    border-radius: 2px !important;
}

/* ========================================
   説明文
======================================== */
body .auth-description,
.page .auth-description,
.page-template .auth-description {
    font-size: 15px !important;
    color: #757575 !important;
    text-align: center !important;
    line-height: 1.5 !important;
    margin: 0 0 34px 0 !important;
    letter-spacing: 0 !important;
}

/* ========================================
   成功メッセージ
======================================== */
body .auth-success-banner,
.page .auth-success-banner,
.page-template .auth-success-banner {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background-color: #e7f7e7 !important;
    border: 1px solid #4caf50 !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
}

body .auth-success-banner .success-icon,
.page .auth-success-banner .success-icon,
.page-template .auth-success-banner .success-icon {
    flex-shrink: 0 !important;
}

body .auth-success-banner span,
.page .auth-success-banner span,
.page-template .auth-success-banner span {
    font-size: 14px !important;
    color: #2e7d32 !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* ========================================
   フォーム
======================================== */
body .auth-form-container,
.page .auth-form-container,
.page-template .auth-form-container {
    margin-bottom: 0 !important;
}

/* ラベル */
body .auth-form-container label,
.page .auth-form-container label,
.page-template .auth-form-container label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111111 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0 !important;
}

/* 入力フィールド */
body .auth-form-container input[type="text"],
.page .auth-form-container input[type="text"],
.page-template .auth-form-container input[type="text"],
body .auth-form-container input[type="email"],
.page .auth-form-container input[type="email"],
.page-template .auth-form-container input[type="email"],
body .auth-form-container input[type="password"],
.page .auth-form-container input[type="password"],
.page-template .auth-form-container input[type="password"],
body .auth-form-container .swpm-registration-widget-form input[type="text"],
.page .auth-form-container .swpm-registration-widget-form input[type="text"],
.page-template .auth-form-container .swpm-registration-widget-form input[type="text"],
body .auth-form-container .swpm-registration-widget-form input[type="email"],
.page .auth-form-container .swpm-registration-widget-form input[type="email"],
.page-template .auth-form-container .swpm-registration-widget-form input[type="email"],
body .auth-form-container .swpm-registration-widget-form input[type="password"],
.page .auth-form-container .swpm-registration-widget-form input[type="password"],
.page-template .auth-form-container .swpm-registration-widget-form input[type="password"],
body .auth-form-container form.swpm-form input[type="text"],
.page .auth-form-container form.swpm-form input[type="text"],
.page-template .auth-form-container form.swpm-form input[type="text"],
body .auth-form-container form.swpm-form input[type="email"],
.page .auth-form-container form.swpm-form input[type="email"],
.page-template .auth-form-container form.swpm-form input[type="email"],
body .auth-form-container form.swpm-form input[type="password"],
.page .auth-form-container form.swpm-form input[type="password"],
.page-template .auth-form-container form.swpm-form input[type="password"] {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 17px !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", sans-serif !important;
    color: #111111 !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 3px !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .auth-form-container input[type="text"]::placeholder,
.page .auth-form-container input[type="text"]::placeholder,
.page-template .auth-form-container input[type="text"]::placeholder,
body .auth-form-container input[type="email"]::placeholder,
.page .auth-form-container input[type="email"]::placeholder,
.page-template .auth-form-container input[type="email"]::placeholder,
body .auth-form-container input[type="password"]::placeholder,
.page .auth-form-container input[type="password"]::placeholder,
.page-template .auth-form-container input[type="password"]::placeholder {
    color: #8d8d8d !important;
}

body .auth-form-container input[type="text"]:hover,
.page .auth-form-container input[type="text"]:hover,
.page-template .auth-form-container input[type="text"]:hover,
body .auth-form-container input[type="email"]:hover,
.page .auth-form-container input[type="email"]:hover,
.page-template .auth-form-container input[type="email"]:hover,
body .auth-form-container input[type="password"]:hover,
.page .auth-form-container input[type="password"]:hover,
.page-template .auth-form-container input[type="password"]:hover,
body .auth-form-container .swpm-registration-widget-form input[type="text"]:hover,
.page .auth-form-container .swpm-registration-widget-form input[type="text"]:hover,
.page-template .auth-form-container .swpm-registration-widget-form input[type="text"]:hover,
body .auth-form-container .swpm-registration-widget-form input[type="email"]:hover,
.page .auth-form-container .swpm-registration-widget-form input[type="email"]:hover,
.page-template .auth-form-container .swpm-registration-widget-form input[type="email"]:hover,
body .auth-form-container .swpm-registration-widget-form input[type="password"]:hover,
.page .auth-form-container .swpm-registration-widget-form input[type="password"]:hover,
.page-template .auth-form-container .swpm-registration-widget-form input[type="password"]:hover,
body .auth-form-container form.swpm-form input[type="text"]:hover,
.page .auth-form-container form.swpm-form input[type="text"]:hover,
.page-template .auth-form-container form.swpm-form input[type="text"]:hover,
body .auth-form-container form.swpm-form input[type="email"]:hover,
.page .auth-form-container form.swpm-form input[type="email"]:hover,
.page-template .auth-form-container form.swpm-form input[type="email"]:hover,
body .auth-form-container form.swpm-form input[type="password"]:hover,
.page .auth-form-container form.swpm-form input[type="password"]:hover,
.page-template .auth-form-container form.swpm-form input[type="password"]:hover {
    border-color: #cccccc !important;
}

body .auth-form-container input[type="text"]:focus,
.page .auth-form-container input[type="text"]:focus,
.page-template .auth-form-container input[type="text"]:focus,
body .auth-form-container input[type="email"]:focus,
.page .auth-form-container input[type="email"]:focus,
.page-template .auth-form-container input[type="email"]:focus,
body .auth-form-container input[type="password"]:focus,
.page .auth-form-container input[type="password"]:focus,
.page-template .auth-form-container input[type="password"]:focus,
body .auth-form-container .swpm-registration-widget-form input[type="text"]:focus,
.page .auth-form-container .swpm-registration-widget-form input[type="text"]:focus,
.page-template .auth-form-container .swpm-registration-widget-form input[type="text"]:focus,
body .auth-form-container .swpm-registration-widget-form input[type="email"]:focus,
.page .auth-form-container .swpm-registration-widget-form input[type="email"]:focus,
.page-template .auth-form-container .swpm-registration-widget-form input[type="email"]:focus,
body .auth-form-container .swpm-registration-widget-form input[type="password"]:focus,
.page .auth-form-container .swpm-registration-widget-form input[type="password"]:focus,
.page-template .auth-form-container .swpm-registration-widget-form input[type="password"]:focus,
body .auth-form-container form.swpm-form input[type="text"]:focus,
.page .auth-form-container form.swpm-form input[type="text"]:focus,
.page-template .auth-form-container form.swpm-form input[type="text"]:focus,
body .auth-form-container form.swpm-form input[type="email"]:focus,
.page .auth-form-container form.swpm-form input[type="email"]:focus,
.page-template .auth-form-container form.swpm-form input[type="email"]:focus,
body .auth-form-container form.swpm-form input[type="password"]:focus,
.page .auth-form-container form.swpm-form input[type="password"]:focus,
.page-template .auth-form-container form.swpm-form input[type="password"]:focus {
    border-color: #111111 !important;
}

/* フォームグループの間隔 */
body .auth-form-container .swpm-form-group,
.page .auth-form-container .swpm-form-group,
.page-template .auth-form-container .swpm-form-group,
body .auth-form-container p,
.page .auth-form-container p,
.page-template .auth-form-container p {
    margin-bottom: 14px !important;
}

/* swpm-form-rowの間隔（SWPMのインラインスタイルと統一） */
body .auth-form-container .swpm-form .swpm-form-row,
.page .auth-form-container .swpm-form .swpm-form-row,
.page-template .auth-form-container .swpm-form .swpm-form-row {
    margin-bottom: 0.8rem !important;
}

body .auth-form-container .swpm-form .swpm-submit-section,
.page .auth-form-container .swpm-form .swpm-submit-section,
.page-template .auth-form-container .swpm-form .swpm-submit-section {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* selectフィールド */
body .auth-form-container select.swpm-form-field,
.page .auth-form-container select.swpm-form-field,
.page-template .auth-form-container select.swpm-form-field {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 40px 0 17px !important;
    font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", sans-serif !important;
    color: #111111 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 3px !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .auth-form-container select.swpm-form-field:hover,
.page .auth-form-container select.swpm-form-field:hover,
.page-template .auth-form-container select.swpm-form-field:hover {
    border-color: #cccccc !important;
}

body .auth-form-container select.swpm-form-field:focus,
.page .auth-form-container select.swpm-form-field:focus,
.page-template .auth-form-container select.swpm-form-field:focus {
    border-color: #111111 !important;
}

/* textareaフィールド */
body .auth-form-container textarea.swpm-form-field,
.page .auth-form-container textarea.swpm-form-field,
.page-template .auth-form-container textarea.swpm-form-field {
    width: 100% !important;
    padding: 12px 17px !important;
    font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", sans-serif !important;
    color: #111111 !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 3px !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    resize: vertical !important;
    min-height: 120px !important;
    line-height: 1.6 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .auth-form-container textarea.swpm-form-field:hover,
.page .auth-form-container textarea.swpm-form-field:hover,
.page-template .auth-form-container textarea.swpm-form-field:hover {
    border-color: #cccccc !important;
}

body .auth-form-container textarea.swpm-form-field:focus,
.page .auth-form-container textarea.swpm-form-field:focus,
.page-template .auth-form-container textarea.swpm-form-field:focus {
    border-color: #111111 !important;
}

body .auth-form-container textarea.swpm-form-field::placeholder,
.page .auth-form-container textarea.swpm-form-field::placeholder,
.page-template .auth-form-container textarea.swpm-form-field::placeholder {
    color: #8d8d8d !important;
}

/* 必須マーク */
body .auth-form-container .swpm-required-indicator,
.page .auth-form-container .swpm-required-indicator,
.page-template .auth-form-container .swpm-required-indicator {
    color: #d32f2f !important;
    margin-left: 2px !important;
}

/* お問い合わせフォーム成功メッセージ */
body .auth-form-container .swpm-contact-success,
.page .auth-form-container .swpm-contact-success,
.page-template .auth-form-container .swpm-contact-success {
    text-align: center !important;
    padding: 40px 20px !important;
}

body .auth-form-container .swpm-contact-success .swpm-success-icon,
.page .auth-form-container .swpm-contact-success .swpm-success-icon,
.page-template .auth-form-container .swpm-contact-success .swpm-success-icon {
    margin-bottom: 20px !important;
}

body .auth-form-container .swpm-contact-success h3,
.page .auth-form-container .swpm-contact-success h3,
.page-template .auth-form-container .swpm-contact-success h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin: 0 0 12px 0 !important;
}

body .auth-form-container .swpm-contact-success p,
.page .auth-form-container .swpm-contact-success p,
.page-template .auth-form-container .swpm-contact-success p {
    font-size: 15px !important;
    color: #757575 !important;
    margin: 0 !important;
}

/* ========================================
   ボタン
======================================== */
body .auth-form-container input[type="submit"],
.page .auth-form-container input[type="submit"],
.page-template .auth-form-container input[type="submit"],
body .auth-form-container button[type="submit"],
.page .auth-form-container button[type="submit"],
.page-template .auth-form-container button[type="submit"] {
    width: 100% !important;
    height: 40px !important;
    padding: 0 24px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", sans-serif !important;
    color: #ffffff !important;
    background-color: #111111 !important;
    border: none !important;
    border-radius: 30px !important;
    cursor: pointer !important;
    outline: none !important;
    transition: opacity 0.2s ease !important;
    margin-top: 20px !important;
    letter-spacing: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body .auth-form-container input[type="submit"]:hover,
.page .auth-form-container input[type="submit"]:hover,
.page-template .auth-form-container input[type="submit"]:hover,
body .auth-form-container button[type="submit"]:hover,
.page .auth-form-container button[type="submit"]:hover,
.page-template .auth-form-container button[type="submit"]:hover {
    opacity: 0.8 !important;
}

body .auth-form-container input[type="submit"]:active,
.page .auth-form-container input[type="submit"]:active,
.page-template .auth-form-container input[type="submit"]:active,
body .auth-form-container button[type="submit"]:active,
.page .auth-form-container button[type="submit"]:active,
.page-template .auth-form-container button[type="submit"]:active {
    opacity: 0.7 !important;
}

body .auth-form-container input[type="submit"]:disabled,
.page .auth-form-container input[type="submit"]:disabled,
.page-template .auth-form-container input[type="submit"]:disabled,
body .auth-form-container button[type="submit"]:disabled,
.page .auth-form-container button[type="submit"]:disabled,
.page-template .auth-form-container button[type="submit"]:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

/* ========================================
   フッターリンク
======================================== */
body .auth-footer-links,
.page .auth-footer-links,
.page-template .auth-footer-links {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding-top: 32px !important;
    border-top: none !important;
    font-size: 13px !important;
}

body .auth-text-muted,
.page .auth-text-muted,
.page-template .auth-text-muted {
    color: #757575 !important;
    letter-spacing: 0 !important;
}

body .auth-link,
.page .auth-link,
.page-template .auth-link {
    color: #111111 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    transition: opacity 0.2s ease !important;
}

body .auth-link:hover,
.page .auth-link:hover,
.page-template .auth-link:hover {
    opacity: 0.7 !important;
}

body .auth-link-separator,
.page .auth-link-separator,
.page-template .auth-link-separator {
    color: #cccccc !important;
    user-select: none !important;
}

/* ========================================
   エラー・成功メッセージ（SWPM）
======================================== */
body .auth-form-container .swpm-registration-form-message,
.page .auth-form-container .swpm-registration-form-message,
.page-template .auth-form-container .swpm-registration-form-message,
body .auth-form-container .swpm-login-form-message,
.page .auth-form-container .swpm-login-form-message,
.page-template .auth-form-container .swpm-login-form-message,
body .auth-form-container .swpm-reset-pw-form-message,
.page .auth-form-container .swpm-reset-pw-form-message,
.page-template .auth-form-container .swpm-reset-pw-form-message {
    padding: 12px 16px !important;
    margin-bottom: 16px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* エラー */
body .auth-form-container .swpm-registration-form-message.swpm-error,
.page .auth-form-container .swpm-registration-form-message.swpm-error,
.page-template .auth-form-container .swpm-registration-form-message.swpm-error,
body .auth-form-container .swpm-login-form-message.swpm-error,
.page .auth-form-container .swpm-login-form-message.swpm-error,
.page-template .auth-form-container .swpm-login-form-message.swpm-error,
body .auth-form-container .swpm-reset-pw-form-message.swpm-error,
.page .auth-form-container .swpm-reset-pw-form-message.swpm-error,
.page-template .auth-form-container .swpm-reset-pw-form-message.swpm-error {
    background-color: #fef2f2 !important;
    border: 1px solid #ef4444 !important;
    color: #991b1b !important;
}

/* 成功 - パスワードリセット成功メッセージと同じスタイルを適用（下部で定義） */

/* ========================================
   チェックボックス
======================================== */
body .auth-form-container .swpm-remember-me,
.page .auth-form-container .swpm-remember-me,
.page-template .auth-form-container .swpm-remember-me {
    display: flex !important;
    align-items: center !important;
    margin: 14px 0 !important;
}

body .auth-form-container .swpm-remember-me input[type="checkbox"],
.page .auth-form-container .swpm-remember-me input[type="checkbox"],
.page-template .auth-form-container .swpm-remember-me input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
    accent-color: #111111 !important;
}

body .auth-form-container .swpm-remember-me label,
.page .auth-form-container .swpm-remember-me label,
.page-template .auth-form-container .swpm-remember-me label {
    display: inline !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #757575 !important;
    cursor: pointer !important;
}

/* 利用規約チェックボックス */
body .auth-form-container .swpm-tos-accept,
.page .auth-form-container .swpm-tos-accept,
.page-template .auth-form-container .swpm-tos-accept {
    display: flex !important;
    align-items: flex-start !important;
    margin: 14px 0 !important;
}

body .auth-form-container .swpm-tos-accept input[type="checkbox"],
.page .auth-form-container .swpm-tos-accept input[type="checkbox"],
.page-template .auth-form-container .swpm-tos-accept input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    margin-top: 2px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    accent-color: #111111 !important;
}

body .auth-form-container .swpm-tos-accept label,
.page .auth-form-container .swpm-tos-accept label,
.page-template .auth-form-container .swpm-tos-accept label {
    display: inline !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #757575 !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
}

/* 必須マーク */
body .auth-form-container .swpm-required,
.page .auth-form-container .swpm-required,
.page-template .auth-form-container .swpm-required {
    color: #d32f2f !important;
    margin-left: 2px !important;
}

/* ========================================
   SWPMフォームのスタイルリセット
======================================== */
body .swpm-login-widget-form,
.page .swpm-login-widget-form,
.page-template .swpm-login-widget-form,
body .swpm-reset-pw-form,
.page .swpm-reset-pw-form,
.page-template .swpm-reset-pw-form,
body .swpm-registration-widget-form,
.page .swpm-registration-widget-form,
.page-template .swpm-registration-widget-form,
body #swpm-pw-reset-form,
.page #swpm-pw-reset-form,
.page-template #swpm-pw-reset-form,
body .swpm-reset-form,
.page .swpm-reset-form,
.page-template .swpm-reset-form,
body form[class*="swpm-reset"],
.page form[class*="swpm-reset"],
.page-template form[class*="swpm-reset"],
body form[id*="swpm"][id*="reset"],
.page form[id*="swpm"][id*="reset"],
.page-template form[id*="swpm"][id*="reset"] {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .swpm-login-widget-form::before,
.page .swpm-login-widget-form::before,
.page-template .swpm-login-widget-form::before,
body #swpm-pw-reset-form::before,
.page #swpm-pw-reset-form::before,
.page-template #swpm-pw-reset-form::before,
body .swpm-reset-form::before,
.page .swpm-reset-form::before,
.page-template .swpm-reset-form::before,
body .swpm-registration-widget-form::before,
.page .swpm-registration-widget-form::before,
.page-template .swpm-registration-widget-form::before,
body .swpm-registration-form::before,
.page .swpm-registration-form::before,
.page-template .swpm-registration-form::before {
    margin-bottom: 50px !important;
}

/* SWPMフォーム内の「パスワードをお忘れですか？」を非表示 */
body .swpm-login-widget-form .swpm-forgot-pass-link,
.page .swpm-login-widget-form .swpm-forgot-pass-link,
.page-template .swpm-login-widget-form .swpm-forgot-pass-link,
body .swpm-login-widget-form a[href*="reset"],
.page .swpm-login-widget-form a[href*="reset"],
.page-template .swpm-login-widget-form a[href*="reset"] {
    display: none !important;
}

/* SWPMフォーム内の「会員について」を非表示 */
body .swpm-login-widget-form .swpm-join-us-link,
.page .swpm-login-widget-form .swpm-join-us-link,
.page-template .swpm-login-widget-form .swpm-join-us-link,
body .auth-form-container .swpm-join-us-link,
.page .auth-form-container .swpm-join-us-link,
.page-template .auth-form-container .swpm-join-us-link,
body .swpm-login-widget-form a[href*="membership"],
.page .swpm-login-widget-form a[href*="membership"],
.page-template .swpm-login-widget-form a[href*="membership"],
body .swpm-login-widget-form a[href*="membership-info"],
.page .swpm-login-widget-form a[href*="membership-info"],
.page-template .swpm-login-widget-form a[href*="membership-info"],
body .auth-form-container a[href*="membership"],
.page .auth-form-container a[href*="membership"],
.page-template .auth-form-container a[href*="membership"],
body .auth-form-container a[href*="membership-info"],
.page .auth-form-container a[href*="membership-info"],
.page-template .auth-form-container a[href*="membership-info"] {
    display: none !important;
}

/* ========================================
   SWPMのデフォルトメッセージをログインページと同じスタイルで表示
======================================== */
body .auth-form-container .swpm-reset-pw-success-box,
.page .auth-form-container .swpm-reset-pw-success-box,
.page-template .auth-form-container .swpm-reset-pw-success-box,
body .auth-form-container .swpm-registration-success-msg,
.page .auth-form-container .swpm-registration-success-msg,
.page-template .auth-form-container .swpm-registration-success-msg,
body .auth-form-container .swpm-registration-form-message.swpm-success,
.page .auth-form-container .swpm-registration-form-message.swpm-success,
.page-template .auth-form-container .swpm-registration-form-message.swpm-success,
body .auth-form-container .swpm-registration-success-message,
.page .auth-form-container .swpm-registration-success-message,
.page-template .auth-form-container .swpm-registration-success-message,
body .auth-form-container div[style*="green"],
.page .auth-form-container div[style*="green"],
.page-template .auth-form-container div[style*="green"],
body .auth-form-container div[style*="#4CAF50"],
.page .auth-form-container div[style*="#4CAF50"],
.page-template .auth-form-container div[style*="#4CAF50"],
body .auth-form-container > div[style]:not(.swpm-contact-success),
.page .auth-form-container > div[style]:not(.swpm-contact-success),
.page-template .auth-form-container > div[style]:not(.swpm-contact-success) {
    /* デフォルトスタイルをリセット */
    all: unset !important;

    /* ログインページと同じ緑色バナースタイル */
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    background-color: #d1fae5 !important;
    border: 1px solid #059669 !important;
    border-radius: 8px !important;
    padding: 14px 18px 14px 50px !important;
    margin: 0 0 24px 0 !important;
    font-size: 14px !important;
    color: #065f46 !important;
    line-height: 1.6 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    text-align: left !important;
    box-shadow: none !important;
}

/* 成功アイコンを追加（円形チェックマーク） */
body .auth-form-container .swpm-reset-pw-success-box::before,
.page .auth-form-container .swpm-reset-pw-success-box::before,
.page-template .auth-form-container .swpm-reset-pw-success-box::before,
body .auth-form-container .swpm-registration-success-msg::before,
.page .auth-form-container .swpm-registration-success-msg::before,
.page-template .auth-form-container .swpm-registration-success-msg::before,
body .auth-form-container .swpm-registration-form-message.swpm-success::before,
.page .auth-form-container .swpm-registration-form-message.swpm-success::before,
.page-template .auth-form-container .swpm-registration-form-message.swpm-success::before,
body .auth-form-container .swpm-registration-success-message::before,
.page .auth-form-container .swpm-registration-success-message::before,
.page-template .auth-form-container .swpm-registration-success-message::before,
body .auth-form-container div[style*="green"]::before,
.page .auth-form-container div[style*="green"]::before,
.page-template .auth-form-container div[style*="green"]::before,
body .auth-form-container div[style*="#4CAF50"]::before,
.page .auth-form-container div[style*="#4CAF50"]::before,
.page-template .auth-form-container div[style*="#4CAF50"]::before,
body .auth-form-container > div[style]::before,
.page .auth-form-container > div[style]::before,
.page-template .auth-form-container > div[style]::before {
    content: '✓' !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    background-color: #059669 !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    position: absolute !important;
    left: 18px !important;
    top: 14px !important;
}

/* チェックマークの背景色を確実に緑色にする（最優先） */
body .auth-form-container .swpm-registration-success-message::before {
    background-color: #059669 !important;
    background: #059669 !important;
}

/* 内部のdivをリセット */
body .auth-form-container .swpm-reset-pw-success-box > div,
.page .auth-form-container .swpm-reset-pw-success-box > div,
.page-template .auth-form-container .swpm-reset-pw-success-box > div,
body .auth-form-container .swpm-registration-success-msg > div,
.page .auth-form-container .swpm-registration-success-msg > div,
.page-template .auth-form-container .swpm-registration-success-msg > div,
body .auth-form-container .swpm-registration-form-message.swpm-success > div,
.page .auth-form-container .swpm-registration-form-message.swpm-success > div,
.page-template .auth-form-container .swpm-registration-form-message.swpm-success > div {
    all: unset !important;
    display: block !important;
    color: #065f46 !important;
    line-height: 1.6 !important;
}

/* 登録成功メッセージのメールアドレス表示部分 */
body .auth-form-container .swpm-registration-success-msg > div:nth-child(2),
.page .auth-form-container .swpm-registration-success-msg > div:nth-child(2),
.page-template .auth-form-container .swpm-registration-success-msg > div:nth-child(2),
body .auth-form-container .swpm-registration-form-message.swpm-success > div:nth-child(2),
.page .auth-form-container .swpm-registration-form-message.swpm-success > div:nth-child(2),
.page-template .auth-form-container .swpm-registration-form-message.swpm-success > div:nth-child(2) {
    margin-top: 4px !important;
    font-size: 13px !important;
    opacity: 0.9 !important;
}

/* Processing messageを非表示 */
.swpm_pass_reset_processing_msg_section,
#swpm_pass_reset_processing_msg {
    display: none !important;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 480px) {
    body .auth-page-container,
    .page .auth-page-container,
    .page-template .auth-page-container {
        padding: 30px 16px !important;
    }

    body .auth-page-content,
    .page .auth-page-content,
    .page-template .auth-page-content {
        max-width: 100% !important;
    }

    body .auth-page-title,
    .page .auth-page-title,
    .page-template .auth-page-title {
        font-size: 22px !important;
        margin-bottom: 24px !important;
    }

    body .auth-description,
    .page .auth-description,
    .page-template .auth-description {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    body .auth-footer-links,
    .page .auth-footer-links,
    .page-template .auth-footer-links {
        flex-direction: column !important;
        gap: 10px !important;
        padding-top: 24px !important;
    }

    body .auth-link-separator,
    .page .auth-link-separator,
    .page-template .auth-link-separator {
        display: none !important;
    }
}

/* ========================================
   会員登録完了メッセージ - パスワードリセットと同じスタイル
   注意: swpm-reset-pw-success-boxと全く同じ設定を適用
======================================== */
/* 成功メッセージのコンテナ自体は552-591行で既に設定済み */
/* チェックマークも594-627行で既に設定済み */

/* 内部のdivは swpm-reset-pw-success-box と同じシンプルな設定のみ */
body .auth-form-container .swpm-registration-success-message > div,
.page .auth-form-container .swpm-registration-success-message > div,
.page-template .auth-form-container .swpm-registration-success-message > div {
    all: unset !important;
    display: block !important;
    color: #065f46 !important;
    line-height: 1.6 !important;
}

/* テーマのstyle.cssで設定されている .swpm-success-title を上書き */
body .auth-form-container .swpm-registration-success-message .swpm-success-title,
.page .auth-form-container .swpm-registration-success-message .swpm-success-title,
.page-template .auth-form-container .swpm-registration-success-message .swpm-success-title,
body .auth-form-container .swpm-success-title,
.page .auth-form-container .swpm-success-title,
.page-template .auth-form-container .swpm-success-title {
    all: unset !important;
    display: block !important;
    color: #065f46 !important;
    line-height: 1.6 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    margin: 0 !important;
    text-align: left !important;
}

/* ========================================
   会員登録ページ: メールアドレス表示スタイル
======================================== */
/* JavaScriptで追加されるメールアドレス */
body .auth-form-container .registration-email,
.page .auth-form-container .registration-email,
.page-template .auth-form-container .registration-email {
    font-size: 13px !important;
    color: #065f46 !important;
    opacity: 0.9 !important;
    margin-top: 4px !important;
    line-height: 1.6 !important;
}

/* ========================================
   プロフィール編集ページ追加スタイル
======================================== */
/* プロフィール編集フォームの枠を削除（他のページに影響しないよう明確に指定） */
body .auth-page-container .swpm-edit-profile-form,
.page .auth-page-container .swpm-edit-profile-form,
.page-template .auth-page-container .swpm-edit-profile-form {
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* プロフィール編集フォームのタイトル下の間隔 */
body .auth-page-container .swpm-edit-profile-form::before,
.page .auth-page-container .swpm-edit-profile-form::before,
.page-template .auth-page-container .swpm-edit-profile-form::before {
    margin-bottom: 50px !important;
}

/* アバター表示スタイル（Gravatar用） */
.swpm-avatar-row {
    margin-bottom: 24px !important;
    padding-bottom: 24px !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

.avatar-preview-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
}

.avatar-preview {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #e5e5e5 !important;
}

.avatar-help-text {
    color: #757575 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

.avatar-help-text p {
    margin: 0 0 8px 0 !important;
}

.avatar-help-text a {
    color: #111111 !important;
    text-decoration: underline !important;
}

/* プロフィール画像のタイトルラベルは通常のラベルスタイル */
body .auth-form-container .swpm-form-avatar-label-wrap label,
.page .auth-form-container .swpm-form-avatar-label-wrap label,
.page-template .auth-form-container .swpm-form-avatar-label-wrap label,
body .swpm-form-avatar-label-wrap label {
    all: unset !important;
    display: block !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111111 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0 !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    cursor: default !important;
    text-transform: none !important;
    box-shadow: none !important;
    line-height: normal !important;
}

/* プロフィール編集の成功メッセージ（登録成功と同じスタイル） */
body .auth-form-container .swpm-profile-update-success,
.page .auth-form-container .swpm-profile-update-success,
.page-template .auth-form-container .swpm-profile-update-success {
    all: unset !important;
    display: block !important;
    background-color: #ecfdf5 !important;
    background: #ecfdf5 !important;
    border: 1px solid #6ee7b7 !important;
    border-radius: 8px !important;
    padding: 16px 16px 16px 48px !important;
    margin: 0 0 24px 0 !important;
    position: relative !important;
    color: #065f46 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* プロフィール編集成功メッセージのチェックマーク */
body .auth-form-container .swpm-profile-update-success::before,
.page .auth-form-container .swpm-profile-update-success::before,
.page-template .auth-form-container .swpm-profile-update-success::before {
    content: "✓" !important;
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background-color: #059669 !important;
    background: #059669 !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 12px !important;
}

/* ========================================
   プロフィール編集: 会員レベル表示を非表示
======================================== */
body .auth-form-container .swpm-profile-membership-level-row,
.page .auth-form-container .swpm-profile-membership-level-row,
.page-template .auth-form-container .swpm-profile-membership-level-row,
body .auth-form-container .swpm-membership-level-row,
.page .auth-form-container .swpm-membership-level-row,
.page-template .auth-form-container .swpm-membership-level-row {
    display: none !important;
}


/* ========================================
   退会機能
======================================== */
.withdrawal-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.withdrawal-trigger {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.withdrawal-trigger:hover {
    color: #e74c3c;
}

/* 退会モーダル */
.withdrawal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.withdrawal-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: withdrawal-modal-appear 0.25s ease;
}

@keyframes withdrawal-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.withdrawal-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.withdrawal-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.withdrawal-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.withdrawal-modal-header svg {
    margin-bottom: 12px;
}

.withdrawal-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.withdrawal-modal-body {
    margin-bottom: 24px;
}

.withdrawal-modal-body p {
    font-size: 15px;
    color: #333;
    margin: 0 0 16px 0;
    text-align: center;
}

.withdrawal-warnings {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fef2f2;
    border-radius: 8px;
    padding: 16px 16px 16px 20px;
}

.withdrawal-warnings li {
    font-size: 13px;
    color: #991b1b;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.withdrawal-warnings li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.withdrawal-modal-actions {
    display: flex;
    gap: 12px;
}

.withdrawal-cancel-btn,
.withdrawal-confirm-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.withdrawal-cancel-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.withdrawal-cancel-btn:hover {
    background: #e8e8e8;
}

.withdrawal-confirm-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.withdrawal-confirm-btn:hover {
    background: #c0392b;
}

.withdrawal-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .withdrawal-modal-content {
        padding: 24px 20px;
    }

    .withdrawal-modal-actions {
        flex-direction: column;
    }
}

/* 退会ボタン（インライン版） */
.withdrawal-trigger-inline {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    color: #757575;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.withdrawal-trigger-inline:hover {
    color: #e74c3c;
}

/* 旧スタイルの退会セクションを非表示 */
.withdrawal-section {
    display: none;
}

/* プレミアム解約ボタン */
.cancel-subscription-trigger {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    color: #757575;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cancel-subscription-trigger:hover {
    color: #f59e0b;
}

/* フッターリンク2行目 */
.auth-footer-links-secondary {
    margin-top: 8px;
}

/* プレミアム解約モーダルの情報リスト */
.cancel-subscription-info {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fffbeb;
    border-radius: 8px;
    padding: 16px 16px 16px 20px;
}

.cancel-subscription-info li {
    font-size: 13px;
    color: #92400e;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.cancel-subscription-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f59e0b;
}

/* プレミアム解約確認ボタン（オレンジ系） */
.cancel-subscription-confirm-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f59e0b;
    color: #fff;
    border: none;
}

.cancel-subscription-confirm-btn:hover {
    background: #d97706;
}

.cancel-subscription-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   会員登録フォームバリデーションエラー
======================================== */
/* SWPMサーバーサイドバリデーションエラー */
body .auth-form-container #swpm_message.swpm_error,
.page .auth-form-container #swpm_message.swpm_error,
.page-template .auth-form-container #swpm_message.swpm_error,
body .auth-form-container .swpm_error,
.page .auth-form-container .swpm_error,
.page-template .auth-form-container .swpm_error {
    font-size: 13px !important;
    color: #dc2626 !important;
    background: #fff !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
}

body .auth-form-container .swpm_error ul,
.page .auth-form-container .swpm_error ul,
.page-template .auth-form-container .swpm_error ul {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body .auth-form-container .swpm_error ul li,
.page .auth-form-container .swpm_error ul li,
.page-template .auth-form-container .swpm_error ul li {
    font-size: 13px !important;
    color: #dc2626 !important;
    padding: 4px 0 !important;
}

/* jQuery Validation Engine のエラーメッセージ */
body .auth-form-container .formError .formErrorContent,
.page .auth-form-container .formError .formErrorContent,
.page-template .auth-form-container .formError .formErrorContent {
    background: #fff !important;
    color: #dc2626 !important;
    font-size: 13px !important;
    border: 1px solid #dc2626 !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15) !important;
}

body .auth-form-container .formError .formErrorArrow div,
.page .auth-form-container .formError .formErrorArrow div,
.page-template .auth-form-container .formError .formErrorArrow div {
    background: #fff !important;
    border-left-color: #dc2626 !important;
    border-right-color: #dc2626 !important;
}
