/* =====================
   全体
===================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Noto Sans JP",sans-serif;
}

body{

    min-height:100vh;

    background:
            radial-gradient(circle at top left,
            #b9f0ff,
            transparent 40%),

            radial-gradient(circle at bottom right,
            #b8f5d5,
            transparent 40%),

            linear-gradient(135deg,
            #eafcff,
            #edfff6);

    padding:20px 18px 100px;

    color:#29436d;
}


/* =====================
   メイン
===================== */

.container{

    width:100%;

    max-width:390px;

    margin:auto;

}


/* =====================
   上部
===================== */

.top-bar{

    display:flex;

    justify-content:flex-start;

    align-items:center;

    margin-bottom:5px;

}


.back-link{

    display:inline-flex;

    align-items:center;

    gap:6px;

    padding:8px 16px;

    border-radius:999px;

    background:#ffffff;

    border:1.5px solid #bfe9f7;

    font-size:13px;

    font-weight:700;

    color:#3bb6d8;

    text-decoration:none;

    box-shadow:0 4px 10px rgba(80,170,200,.15);

    transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;

}

.back-link:hover{

    background:linear-gradient(135deg,#65d8ff,#59ca8d);

    border-color:transparent;

    color:#ffffff;

    transform:translateY(-1px);

    box-shadow:0 8px 18px rgba(80,200,150,.3);

}

.back-link:active{

    transform:translateY(0);

    box-shadow:0 4px 10px rgba(80,200,150,.2);

}



/* =====================
   タイトル
===================== */

h1{

    text-align:center;

    font-size:26px;

    margin-bottom:10px;

    color:#284575;

}

.page-desc{

    text-align:center;

    font-size:13px;

    color:#6d7c92;

    line-height:1.7;

    margin-bottom:20px;

}



/* =====================
   カード
===================== */

.profile-card{

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(10px);

    border-radius:25px;

    padding:30px 25px;

    text-align:center;

    box-shadow:
            0 8px 25px rgba(80,130,170,.15);

}



/* =====================
   入力フォーム
===================== */

.edit-form{

    text-align:left;

}


.field-label{

    display:block;

    font-size:13px;

    font-weight:bold;

    color:#607492;

    letter-spacing:1px;

    margin:18px 0 6px;

}


.field-label:first-child{

    margin-top:0;

}


.field-hint{

    font-size:11px;

    color:#9bacc6;

    margin-top:5px;

}


.field-error{

    font-size:12px;

    color:#e0577c;

    font-weight:bold;

    margin-top:5px;

    min-height:14px;

}


.form-error{

    text-align:center;

    background:#fff0f4;

    border:1px solid #f6c6d4;

    border-radius:10px;

    padding:0;

    min-height:0;

    white-space:pre-line;

}

.form-error:empty{

    display:none;

}

.form-error:not(:empty){

    padding:10px 12px;

    margin-bottom:16px;

}


.text-input{

    width:100%;

    border:1px solid #cfe9f5;

    border-radius:12px;

    padding:12px 14px;

    font-size:14px;

    color:#405675;

    background:#f8fdff;

    font-family:inherit;

    outline:none;

    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


.text-input:focus{

    border-color:#65cdf7;

    background:#ffffff;

    box-shadow:0 0 0 4px rgba(101,205,247,.15);

}


.text-input.input-error{

    border-color:#f2a7bd;

    background:#fff6f8;
}

.text-input.input-error:focus{

    box-shadow:0 0 0 4px rgba(224,87,124,.15);
}


/* パスワード入力欄＋表示切り替えボタン */
.password-field{

    position:relative;

}

.password-field .text-input{

    padding-right:44px;

}

.toggle-password{

    position:absolute;

    right:6px;

    top:50%;

    transform:translateY(-50%);

    width:32px;

    height:32px;

    border:none;

    background:transparent;

    color:#9bacc6;

    font-size:15px;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:color .2s ease;
}

.toggle-password:hover{

    color:#65cdf7;
}



/* =====================
   変更ボタン（他ページの更新ボタンと同じ配色）
===================== */

.update-btn{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:6px;

    margin-top:26px;

    width:100%;

    padding:13px;

    border:none;

    border-radius:999px;

    background:linear-gradient(135deg,#65d8ff,#59ca8d);

    color:#ffffff;

    font-size:15px;

    font-weight:700;

    letter-spacing:.03em;

    cursor:pointer;

    box-shadow:0 8px 20px rgba(80,200,150,.35);

    transition:transform .2s ease, box-shadow .2s ease;
}


.update-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 26px rgba(80,200,150,.45);
}


.update-btn:active{

    transform:translateY(0);

    box-shadow:0 6px 14px rgba(80,200,150,.3);
}



/* =====================
   確認・完了ポップアップ
===================== */

.modal-overlay{

    position:fixed;

    inset:0;

    background:rgba(30,50,60,.45);

    backdrop-filter:blur(2px);

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px;

    z-index:2000;

}

.modal-overlay[hidden]{

    display:none;

}

.modal-box{

    width:100%;

    max-width:300px;

    background:#ffffff;

    border-radius:22px;

    padding:26px 22px 22px;

    text-align:center;

    box-shadow:0 20px 40px rgba(0,0,0,.2);

    animation:modal-pop .18s ease;

}

@keyframes modal-pop{

    from{

        transform:scale(.92);

        opacity:0;

    }

    to{

        transform:scale(1);

        opacity:1;

    }

}

.modal-text{

    font-size:15px;

    font-weight:bold;

    color:#284575;

    margin-bottom:20px;

}

.modal-actions{

    display:flex;

    gap:10px;

}

.modal-btn{

    flex:1;

    padding:11px;

    border-radius:999px;

    border:none;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.modal-btn:active{

    transform:translateY(0);

}

.modal-btn-cancel{

    background:#ffffff;

    border:1.5px solid #cfe9f5;

    color:#6d7c92;

}

.modal-btn-cancel:hover{

    background:#f3fbff;

}

.modal-btn-primary{

    background:linear-gradient(135deg,#65d8ff,#59ca8d);

    color:#ffffff;

    box-shadow:0 8px 18px rgba(80,200,150,.35);

}

.modal-btn-primary:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 24px rgba(80,200,150,.45);
}



/* =====================
   フッター
===================== */


.footer{

    position:fixed;

    bottom:0;

    left:0;

    width:100%;

    height:75px;


    background:rgba(255,255,255,.9);

    backdrop-filter:blur(12px);


    display:flex;

    justify-content:space-around;

    align-items:center;


    box-shadow:
            0 -5px 20px rgba(0,0,0,.08);

}



.footer-item{

    flex:1;

    text-align:center;

    text-decoration:none;

    color:#62748d;

    font-size:12px;

}


.footer-item i{

    display:block;

    font-size:22px;

    margin-bottom:4px;

}



/* 投稿ボタン */

.post-circle{

    width:58px;

    height:58px;

    margin:-30px auto 5px;


    border-radius:50%;


    background:
            linear-gradient(135deg,
            #65d8ff,
            #59ca8d);


    display:flex;

    justify-content:center;

    align-items:center;


    color:white;

    font-size:25px;


    box-shadow:
            0 8px 20px rgba(80,200,150,.35);

}


.active{

    color:#39b7d8;

}