/*POPUP CONTETS*/
body.hands_up{
    overflow: hidden;
}
body.hands_up #area_top{
    filter: blur(5px);
}
#popup_body{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    box-sizing:border-box;
    overflow:auto;
    background-color:rgba(0,0,0,0.60);
    text-align: center;
    z-index: 9998;
}
#popup_content{
    position:fixed;
    width: auto;
    box-sizing:border-box;
    margin:0 0 0 -15%;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    border-radius:10px;
    background:#fff;
    left:52%;
    top:25%;
    display:none;
    z-index: 9999;
    text-align: center;
}
.hands_up #popup_body,
.hands_up #popup_content{
    display: block;
}
#popup_content .popup_header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #ff679a;
    padding: 10px 15px;
    margin-bottom:20px;
    border-radius:10px 10px 0 0;
}
#popup_content .title{
    flex: 1;
    font-weight: bold;
    font-size:16px;
    color: #fff;
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}
#popup_content .icon{
    flex: 0 0 auto;
    margin: 0;
}
#popup_content .icon img{
    width: auto;
    height: 30px;
    max-width: 100%;
    display: block;
}
#popup_content .text{
    margin: 15px 5px 20px 5px;
    color: #000 !important;
}
#popup_content .button{
    display:-webkit-flex;
    display:-moz-flex;
    display:-ms-flex;
    display:-o-flex;
    display:flex;
    justify-content: center;
    align-items: center;
}
#popup_content .button p{
    margin: 0 10px 30px 10px;
    width: calc(50% - 20px);
}
#popup_content .button p input[type="button"],
#popup_content .button p a{
    -moz-appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: 100%;
    border: 1px solid;
    border-radius: 4px;
    padding: 15px 0;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    color: #fff;
}
#popup_content .button p input[type="button"]{
    background: #ff679a;
    border-color: #ff679a;
}
#popup_content .button p a{
    background: #888;
    border-color: #888;
}
#popup_content .button p input[type="button"]:hover,
#popup_content .button p a:hover{
    background: #fff;
}
#popup_content .button p input[type="button"]:hover{
    color: #ff679a;
}
#popup_content .button p a:hover{
    color: #888;
}

/* 広告エリア */
#popup_content .media {
    max-height: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 10px;
    box-sizing: border-box;
}
#popup_content .media img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 3px;
}
#popup_content .media iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto 5px;
}

@media (max-width: 640px) {
    /* iOSで overflow:hidden だけでは背景スクロールが止まらないため position:fixed で固定 */
    body.hands_up {
        position: fixed;
        width: 100%;
    }
    #popup_contents .popup_cont{
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        height: auto;
    }
    /*POPUP*/
    #popup_content{
        width:96%;
        margin:0 0 0 -23%;
        left:25%;
        top:10%;
        max-height: 80dvh;
        overflow: hidden;
    }
    #popup_content .popup_header{
        padding: 6px 10px;
        margin-bottom: 8px;
        gap: 8px;
    }
    #popup_content .title{
        font-size: 14px;
    }
    #popup_content .icon img{
        height: 26px;
    }
    #popup_content .text{
        margin: 8px 5px 10px 5px;
        font-size: 12px;
        line-height: 1.4;
    }
    /*#popup_content .button{*/
    /*    flex-wrap: wrap;*/
    /*}*/
    #popup_content .button p{
        margin: 0 4px 10px 4px;
        width: calc(50% - 8px);
    }
    #popup_content .button p input[type="button"],
    #popup_content .button p a{
        padding: 10px 0;
        font-size: 13px;
    }
    #popup_content .media {
        height: calc(100vh - 165px);
        height: calc(100dvh - 165px);
        max-height: calc(100vh - 165px);
        max-height: calc(100dvh - 165px);
    }
}

/*tablet*/
@media (min-width: 641px) and (max-width: 893px) {
    /*POPUP*/
    #popup_content .button p{
        max-width: 250px;
    }
}

/*PC*/
@media (min-width: 894px) {
    /*POPUP*/
    #popup_content .button p{
        max-width: 250px;
    }
}
