@charset "UTF-8";
/** --------------------------------------------------------------------------*
 * @file        モーダルモードでの alert()通知機能
 *
 * @author      Kuniaki Nakajima
 * @version     2.0.0
 *--------------------------------------------------------------------------- */

/*-------------------------------------------------------------------*/
/* パソコン用   (min-width:769px) */
@media screen and (min-width:769px){
    #modal {
        width: 50%;
        max-width: 500px;
    }
}
/*-------------------------------------------------------------------*/
/* タブレット用 (max-width:769px) */
@media screen and (min-width:641px) and (max-width:768px){
    #modal {
        width: 70%;
        max-width: 500px;
    }
}
/*-------------------------------------------------------------------*/
/* スマホ用     (max-width:640px) */
@media screen and (max-width:640px){
    #modal {
        width: 90%;
    }
}

/*-----------------------------------------*/
#modal {
    display: none;
    padding: 0.5em;
    background-color: white;
    border: 2px solid lightgray;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);   /* modalに影を作る */
    position:fixed;
    z-index: 10;                /* z-indexでmodalを一番上に位置させる */
}
#modalOverlay {
    display:none;
    width: 100%;
    height: 120%;
    background-color: #00000066;   
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;                 /* z-indexの数字を0と10の間の数字にし、bodyとmodalの真ん中に位置させる */
    /* backdrop-filter: blur(3px); */  /* 一番下のbody領域をぼやかす */
}

/*-----------------------------------------*/
#modal p {
    font-size: medium;
    text-align: left;
    margin: 5px 10px 5px 10px;
}
#modal .button {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 25px 3px 25px;
    text-decoration: none;
    background: #4a80ff;/*ボタン色*/
    color: #FFF;
    border-bottom: solid 4px #627295;
    border-radius: 3px;
    font-size: smaller;
}
#modal .button:active {
    /*ボタンを押したとき*/
    -webkit-transform: translateY(4px);
    transform: translateY(4px);/*下に動く*/
    border-bottom: none;/*線を消す*/
}
