/* =========================================
   Petal Note
   Record.css
========================================= */


/* ---------- リセット ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}



/* ---------- 全体 ---------- */

body{

    font-family:"Zen Maru Gothic",sans-serif;

    background:#f7f4ee;

    color:#444;

    overflow:hidden;

}



/* ---------- 背景 ---------- */

.background{

    position:fixed;

    inset:0;

    background-image:

    linear-gradient(
        rgba(255,250,245,.35),
        rgba(255,250,245,.35)
    ),

    url("images/background.jpg");


    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    z-index:-2;

    animation:bgZoom 25s ease-in-out infinite alternate;

}



.background::after{

    content:"";

    position:absolute;

    inset:0;

    backdrop-filter:blur(2px);

}




/* ---------- メインカード ---------- */


.container{


    width:390px;

    height:760px;


    background:rgba(255,255,255,.92);


    backdrop-filter:blur(18px);



    border-radius:38px;



    box-shadow:

    0 25px 60px rgba(0,0,0,.12),

    0 8px 20px rgba(0,0,0,.08);



    position:absolute;


    top:50%;

    left:50%;


    transform:translate(-50%,-50%);



    display:flex;


    flex-direction:column;


    justify-content:center;


    align-items:center;


    text-align:center;



    padding:45px;



}





/* ---------- タイトル ---------- */


.title{


    font-family:"Cormorant Garamond",serif;


    font-size:48px;


    color:#7d6958;


    font-weight:600;


    letter-spacing:2px;


    margin-bottom:15px;



    animation:fadeUp 1.2s ease;


}





/* ---------- 説明 ---------- */


.subtitle{


    color:#777;


    font-size:15px;


    line-height:2;


    margin-bottom:30px;


}




/* =========================================
   ボタン
========================================= */


.button-group{


    width:100%;


    display:flex;


    flex-direction:column;


    gap:16px;


}




.action-btn{


    border:none;


    background:white;


    padding:17px;



    border-radius:22px;


    font-size:15px;


    font-weight:500;



    color:#af8c8e;



    cursor:pointer;



    box-shadow:

    0 8px 20px rgba(0,0,0,.08);



    transition:.3s;



}




.action-btn:hover{


    transform:translateY(-4px);


    background:#fff5f0;


}





/* =========================================
   プレビュー
========================================= */


.preview-box{


    margin-top:25px;


}




#previewImage{


    display:none;



    width:260px;


    max-width:85vw;



    border-radius:25px;



    box-shadow:


    0 10px 25px rgba(0,0,0,.12);



    animation:fadeUp .6s ease;


}






/* =========================================
   OKボタン
========================================= */


.ok-btn{


    display:none;


    margin-top:25px;


    padding:13px 50px;



    border:none;



    border-radius:999px;



    background:#af8c8e;



    color:white;



    font-size:14px;



    letter-spacing:2px;



    cursor:pointer;



    transition:.3s;



}



.ok-btn:hover{


    opacity:.8;


}




/* =========================================
   ハンバーガーボタン
========================================= */


.menu-btn{


    position:fixed;


    top:35px;


    left:35px;



    background:none;



    border:none;



    font-size:30px;



    color:#6e5d4f;



    cursor:pointer;



    z-index:1000;



    transition:.3s;


}



.menu-btn:hover{


    opacity:.6;


}





/* =========================================
   サイドメニュー
========================================= */


#sideMenu{


    position:fixed;



    left:-280px;


    top:0;



    width:260px;



    height:100vh;



    background:rgba(255,255,255,.95);



    backdrop-filter:blur(18px);



    box-shadow:

    8px 0 35px rgba(0,0,0,.08);



    transition:.45s;



    z-index:999;



    padding-top:90px;


}





#sideMenu.open{


    left:0;


}




/* ---------- メニュータイトル ---------- */


.menu-header{


    position:absolute;



    top:28px;



    left:28px;



}





.menu-header h2{


    font-family:"Cormorant Garamond",serif;



    font-size:30px;



    color:#7d6958;



    font-weight:600;



}







/* ---------- メニューリンク ---------- */


#sideMenu a{


    display:block;



    padding:18px 35px;



    color:#666;



    text-decoration:none;



    font-size:16px;



    font-weight:500;



    transition:.3s;


}



#sideMenu a:hover{


    color:#af8c8e;



    background:#fff3eb;



    padding-left:45px;


}





/* ---------- オーバーレイ ---------- */


#overlay{


    position:fixed;



    inset:0;



    background:rgba(0,0,0,.18);



    opacity:0;



    visibility:hidden;



    transition:.4s;



    z-index:998;


}



#overlay.show{


    opacity:1;



    visibility:visible;


}






/* ---------- CLOSE ---------- */


.close-btn{


    position:absolute;



    bottom:40px;



    left:30px;



    width:190px;



    padding:12px 0;



    border:none;



    border-radius:30px;



    background:#af8c8e;



    color:white;



    font-size:14px;



    letter-spacing:2px;



    cursor:pointer;



}






/* =========================================
   アニメーション
========================================= */


@keyframes fadeUp{


from{

    opacity:0;

    transform:translateY(25px);

}


to{

    opacity:1;

    transform:translateY(0);

}


}





@keyframes bgZoom{


from{

    transform:scale(1);

}


to{

    transform:scale(1.08);

}


}





/* =========================================
   スマホ対応
========================================= */


@media(max-width:600px){



body{

    overflow:auto;

}



.container{


    width:100%;


    min-height:100vh;


    height:auto;



    border-radius:0;



    box-shadow:none;



    padding:60px 30px;


}




.title{


    font-size:40px;


}




.menu-btn{


    top:20px;


    left:20px;


    font-size:24px;


}




#previewImage{


    width:90%;


}



}