/* =============================================
   login_signup.css  (redesign - JS触らず)
   ============================================= */

li { list-style: none; padding-left: 0; }
input:focus { outline: none; }

/* other.js が body に背景画像をセットするので background は残す */
body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== ヘッダー ===== */
header {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    /* 背景画像に溶け込むよう半透明 */
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.25);
    box-sizing: border-box;
}
.app-icon { display: flex; align-items: center; }
.app-icon img { height: 22px; }
.header-content {
    display: flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
}
#contact {
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 36px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(1,29,69);
    border-radius: 8px;
    transition: .2s;
}
#contact:hover { background: rgba(1,29,69,.08); }
.change-signup-login {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    background: rgb(1,29,69);
    color: #fff;
    transition: .2s;
}
.change-signup-login:hover { background: #ffa500; }

/* ===== メイン ===== */
main {
    width: 100%;
    min-height: 100vh;
    padding-top: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 32px;
    box-sizing: border-box;
}

/* ===== カード ===== */
.login-signup {
    width: 390px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(1,29,69,.12), 0 1px 4px rgba(1,29,69,.06);
    border: 1px solid rgba(255,255,255,0.6);
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    box-sizing: border-box;
}
.login-signup::-webkit-scrollbar { display: none; }

.login-signup-header {
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 6px;
    letter-spacing: -.3px;
    text-align: center;
    color: rgb(1,29,69);
}
.signup-subtitle {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin: 0 0 22px;
}

/* ===== フォーム ===== */
#signup-form-inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}
.signup-login-form { width: 100%; }

.sginup-feeld-name {
    margin: 0 0 5px;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    color: rgb(1,29,69);
}
.sginup-feeld-name-password {
    width: 100%;
    margin: 12px 0 6px;
}

/* name-mail */
.name-mail {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}
.name-mail input,
.name-mail .signup-form-input {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.7);
    box-shadow: 2px 2px 6px rgba(1,29,69,.08), -1px -1px 4px rgba(1,29,69,.04);
    padding: 0 12px;
    font-size: 14px;
    color: rgb(1,29,69);
    margin-bottom: 10px;
    font-family: inherit;
    transition: .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.name-mail input:focus,
.name-mail .signup-form-input:focus {
    box-shadow: 0 0 0 2px rgba(255,165,0,.45);
    background: #fff;
}

/* パスワード2段 */
.passwords {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.7);
    box-shadow: 2px 2px 6px rgba(1,29,69,.08), -1px -1px 4px rgba(1,29,69,.04);
    margin-bottom: 10px;
    box-sizing: border-box;
}
.passwords input,
.passwords .signup-form-input {
    width: 100%;
    height: 44px;
    border: none;
    background: none;
    padding: 0 12px;
    font-size: 14px;
    color: rgb(1,29,69);
    font-family: inherit;
    display: block;
    box-sizing: border-box;
    -webkit-appearance: none;
}
#password-2 { border-top: 1px solid rgba(1,29,69,.1) !important; }
#password-1:focus, #password-2:focus { background: rgba(255,255,255,0.5); }

/* remember & forgot */
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 4px 0 16px;
    flex-wrap: wrap;
    gap: 6px;
}
.remember-row p {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: rgb(1,29,69);
}
/* 旧コードの <p> ブロック (ログイン画面) */
.signup-login-form p:has(#remember) {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 13px;
    width: 100%;
}
#password-forget {
    font-size: 12px;
    color: rgba(1,29,69,.5);
    font-weight: 600;
    text-align: right;
    width: 100%;
    display: block;
    margin: 2px 0 14px;
    transition: .2s;
    letter-spacing: -.3px;
}
#password-forget:hover { color: #ffa500; }

/* ===== ボタン ===== */
.login-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 100px;
    background: rgb(1,29,69);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
    margin-bottom: 14px;
    -webkit-appearance: none;
    touch-action: manipulation;
}
.login-submit:hover { background: #ffa500; }
.login-submit:active { transform: scale(.98); }

.signup-submit {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 100px;
    background: rgb(1,29,69);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
    margin-bottom: 14px;
    -webkit-appearance: none;
    touch-action: manipulation;
}
.signup-submit:hover { background: #ffa500; }
.signup-submit:active { transform: scale(.98); }

/* ===== OR仕切り（既存クラス名維持） ===== */
.google-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}
.google-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(1,29,69,.15);
}
.google-divider-text {
    font-size: 12px;
    color: rgba(1,29,69,.4);
    white-space: nowrap;
}

/* ===== Googleボタン（既存クラス名維持） ===== */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 46px;
    border-radius: 100px;
    border: 1px solid rgba(1,29,69,.2);
    background: rgba(255,255,255,0.85);
    color: rgb(1,29,69);
    font-weight: 600;
    font-size: 14px;
    transition: .2s;
    text-decoration: none;
    box-sizing: border-box;
    touch-action: manipulation;
    margin-bottom: 14px;
}
.google-login-btn:hover { background: #fff; border-color: rgba(1,29,69,.4); }
.google-login-btn:active { transform: scale(.98); }
.google-login-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== 切り替えリンク ===== */
.switch-link {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 4px 0 0;
    width: 100%;
    line-height: 1.6;
}
.switch-link a {
    color: rgb(1,29,69);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.switch-link a:hover { color: #ffa500; }

/* ===== パスワード条件（imgタグ維持） ===== */
.passwortd-condition { width: 100%; margin-bottom: 10px; }
.passwortd-condition ul { margin: 0 0 8px; padding: 0; }
.passwortd-condition-list {
    display: flex;
    align-items: center;
    height: 22px;
    font-size: 12px;
    gap: 6px;
    justify-content: left;
    width: 150px;
    margin: 0 auto;
}
.passwortd-condition-list img { height: 14px; flex-shrink: 0; }
.passwortd-condition-list span { color: #ccc; transition: .2s; }
.terms_of_use {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    margin: 4px 0 0;
}
.terms_of_use a { color: #ffa500; font-weight: 700; text-decoration: underline; }
.terms_of_use input { accent-color: rgb(1,29,69); width: 14px; height: 14px; flex-shrink: 0; }

/* ===== エラー ===== */
.signup-error {
    font-size: 13px;
    color: #d12b2b;
    font-weight: 600;
    margin: 4px 0 8px;
    width: 100%;
}

/* ===== その他（既存維持） ===== */
.reset-suc-mark { height: 100px; }
.back-login {
    background: rgb(1,29,69);
    color: #fff;
    width: 70%;
    height: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: .2s;
}
.back-login:hover { background: orange; }

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
    header { padding: 0 14px; height: 52px; }
    main { padding-top: 52px; align-items: flex-start; padding-bottom: 24px; }
    .login-signup {
        width: calc(100% - 24px);
        max-width: 400px;
        padding: 24px 20px;
        border-radius: 18px;
        max-height: none;
        margin-top: 12px;
    }
    .login-signup-header { font-size: 19px; }
    #contact { display: none; }
    .change-signup-login { padding: 0 14px; font-size: 13px; }
}

@media (max-width: 390px) {
    .login-signup { padding: 20px 16px; }
    .login-signup-header { font-size: 17px; }
}
