@charset "utf-8";
/*original block*/
*{
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
    max-width: 100%;
    font-size: 100%;
}
:root{
    --maincolor:#00ac96;
    --subcolor:#BAE5D2;
    --highright:rgba(215,231,174,1.00);
    --sky:#3FBDE0;
}
html,body {
    font-size:18px;
    line-height:1.5;
	scroll-behavior: smooth;
    overflow-x: hidden;
    color: #49433E;
    background: var(--sky);
}
a,a img{
    text-decoration: none;
    color: var(--maincolor);
    transition: 0.3s;
    cursor: pointer;
}
a:hover img{
    opacity: 0.7s;
}


.cen{text-align: center;}
ul,ol,li{list-style: none;}
img{vertical-align: middle;}
button{cursor: pointer;background: none;border: none;color: var(--maincolor);transition: 0.3s;}

/*-------------オリジナル-------------*/

/*header*/
header{
    background: var(--sky);
}
.toplogo{
    display: flex;
    gap:1em;
    max-width: 980px;
    padding: 1em 0.5em 0;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}
.subpage .toplogo > p{
    width: 40%;
}

main{
    margin: 0 auto;
    padding: 2em;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    background: var(--sky) url("images/header.png") no-repeat center bottom / contain;
}
main.subpage{
    background: var(--sky);
    min-height: auto;
}

main > section{
    max-width: 980px;
    margin: 0 auto;
}

/*トップページ*/
.caution{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    border: 2px solid var(--maincolor);
    border-radius: 50%;
    color: #fff;
    background: var(--maincolor);
    margin: 1em auto;
    text-align: center;
}

#edt_Name{
    display: block;
    width: 50vw;
    max-width: 300px;
    padding: 0.7em 1em;
    border-radius: 0.3em;
    font-size: 16px;
    background: #fff;
    margin: 1em auto;
    transition: 0.2s;
    outline: 2px solid transparent;
}
#edt_Name:focus,#edt_Name:active{
    outline: 2px solid var(--maincolor);
}

.start_btn{
    max-width: 300px;
    width: 100%;
    cursor: pointer;
    outline: 0;
    padding: 0.8em;
    text-align: center;
    display: block;
    margin: 1em auto;
    font-size: 20px;
    border-radius: 0.3em;
    transition: 0.3s;
    border: 2px solid var(--maincolor);
    background: var(--highright);
    color: var(--maincolor);
    font-weight: bold;
}
.start_btn:hover{
    background: var(--maincolor);
    color: #fff;
}

.keywords_input{
    display: block;
    padding: 0.5em 0.8em;
    width: 100%;
    max-width: 900px;
    margin: 1em auto;
}

/*スキャンページ（Two）*/

#edt_UserName{
    font-size:40px;
}


#imagelist{
    width: 100%;
    max-width: 500px;
    margin: 2em auto;
    display: flex;
    gap:10px;
    flex-wrap: wrap;
    li{
        width: calc((100% - 10px) / 2);
        background: #fff;
        aspect-ratio: 1/1;

        /*&.is-active{
            display: block;
        }
        details{
            border-radius: 0.3em;
            overflow: hidden;

            summary{
                padding: 0.3em 0.5em;
                font-size: 130%;
                font-weight: bold;
                cursor: pointer;
            }
        }*/
    }
}

.btn_box{
    max-width: 500px;
    width: 100%;
    margin: 1em auto 0;
    display: flex;
    gap:0.5em;
    &.column{
        flex-direction: column;
    }
}
.btn{
    display: block;
    width: 100%;
    padding: 0.6em 0;
    border-radius: 0.3em;
    background: var(--maincolor);
    color: #fff;
    cursor: pointer;
    text-align: center;
}
.btn:hover{
    background: var(--highright);
    color: var(--maincolor);
}
.btn.disable{
    background: #ccc;
    color: #999;
    cursor: default;
    pointer-events: none;
    display: none;
}
.btn span,.btn button{
    display: flex;
    flex-direction: column;
    gap:0.2em;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    font-size: 115%;
    color: #fff;
    font-weight: bold;
    width: 100%;
}
.scan::before,.check::before{
    content: '';
    display: inline-block;
    height: 2em;
    width: 2em;
    transform: translateY(-2px);
}
.scan::before{
    background: url("images/scanicon.png") no-repeat center / cover;
}
.check::before{
    background: url("images/check.png") no-repeat center / cover;
}

#ImageContext:not(:empty){
    background: var(--subcolor);
    padding: 1em;
    margin: 2em auto;
    width: 100%;
    max-width: 980px;
    display: flex;
    gap:1em;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 1em;
}
#ImageContext:not(:empty)::before{
    content: '引換履歴';
    font-size: 1.3em;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5em;
}
#ImageContext img{
    width: calc((100% - 1em) / 2);
    height: auto;
}

.mapbox{
    border: 3px solid var(--maincolor);
    margin: 1em auto 0;
}
.spot_box{
    margin: 1em auto 2em;
    border-radius: 0.5em;
    .spot_btn{
        background: #fff;
        padding: 10px 20px;
        font-size: 1.1rem;
        font-weight: bold;
        border-radius: 3em;
        border: 2px solid var(--maincolor);
        margin-bottom: 0.5em;
    }

    .spot_list{
        margin-top: 1em;
        display: flex;
        flex-wrap: wrap;
        gap: 1em 0.5em;
        li{
            background: #fff;
            padding: 1em;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0.5em;
            border-radius: 0.5em;

            h3{font-size: 110%;}

            .map_btn{
                background: var(--maincolor);
                display: block;
                text-align: center;
                padding: 0.3em;
                color: #fff;
                border-radius: 2em;
            }
        }
    }
}

.mini_btn{
    background: var(--subcolor);
    color: var(--maincolor);
    padding: 0.3em;
    display: block;
    text-align: center;
    width: calc((100% - 0.5em) / 2);
}



.alert{
    font-size: 1.2em;
    font-weight: bold;
    margin: 2em auto;
    color: #fff;
    line-height: 1.8;

    rp,rt{font-size: 0.5rem;font-weight: normal;}
}
p.voice{
    background: #fff;
    font-weight: bold;
    font-size: 110%;
    padding: 2em 1em;
    border-radius: 0.5em;
    width: 100%;
    max-width: 600px;
    margin: 2em auto;
    position: relative;
    line-height: 1.8;
    
    rp,rt {
        font-size: 0.5rem;
        font-weight: normal;
    }

    &::before{
        content: '';
        display: block;
        background: #fff;
        width: 1.5em;
        height: 1em;
        clip-path: polygon(50% 0,0 100%,100% 100%);
        position: absolute;
        bottom: calc(100% - 1px);
        left: 50%;
        translate: -50% 0;
    }

    &.rotate::before{
        bottom: auto;
        top: calc(100% - 1px);
        rotate: 180deg;
    }

    &.animate{
        opacity: 0;
    }
    &.animation:not(.rotate){
        animation: slide-down 1s forwards;
    }
    &.rotate.animation{
        animation: slide-up 1s forwards;
    }
}

#kero_message,#kero_image{
    cursor: pointer;
}
#kero_image{
    width: fit-content;
    max-width: 80%;
    margin: 0 auto;
}


/*three（引換ページ）*/
.panel.window{
    max-width: 980px;
    padding: 3em;
}

#edtDate{
    font-size: 25px;
    text-align: center;
    padding: 0.3em;
}

#dialog1{
    max-width: 600px;
    margin: 2em auto;
    padding: 1em;
    position: relative;
    background: #fff;
    color: var(--maincolor);
    .alert{
        color: var(--maincolor);
        margin: 1em 0;
        br{
            display: block;
        }
    }
    #imagelist {
        margin: 0 auto;
        background: #fff;
    }

    &.used{
        filter: grayscale(100);
        &::after{
            content: '使用済み';
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #ccc;
            font-size: 100px;
            font-weight: bold;
            color: #fff;
            position: absolute;
            text-align: center;
            left: 50%;
            top: 50%;
            translate: -50% -50%;
            opacity: 0.8;
        }
    }
}
main.congra{
    padding: 1em;
}

.post_btn{
    text-align: center;
    .twitter-share-button{
        width: fit-content;
        background: #000;
        padding: 0.5em 1em;
        color: #fff;
        border: 2px solid #000;
        font-size: 1.1em;
        border-radius: 0.5em;

        &:hover{
            background: #fff;
            color: #000;
        }
    }
}



.menubox{
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 2em;
    height: fit-content;
    width: 100%;
    background: rgba(255,255,255,0.8);
    transform: translateY(100%);
    transition: 0.3s;
    z-index: 10;
}
.menubox.open{
    transform: translateY(0);
}
.menu{
    width: 100%;
    max-width: 350px;
    position: static;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: none;
    border: none;
}
.menu li{
    width: calc((100%) / 3);
    padding: 0.5em;
}
.menu li a:hover{opacity: 0.7;}
.box_close{
    position: absolute;
    top: 40px;
    right: 40px;
    display: block;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.box_close::before,.box_close::after{
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--maincolor);
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin:center; 
}
.box_close::before{
    rotate:45deg;
}
.box_close::after{
    rotate:-45deg;
}


/*ダイアログ*/
.dialog_window{
    min-height: 30vh;
    width: 90%;
    max-width: 500px;
    background: #fff;
    padding: 2em;
    display: flex;
    flex-direction: column;
    gap:2em;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    box-shadow: 0 0 20px 10px #dcdcdc;
    margin: 0 auto;
    font-size: 16px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 5;
}
.dialog_window::before{
    height: 100vh;
    width: 100vw;
    background: rgba(255,255,255,0.6);
    position: fixed;
    z-index: -1;
}
.dialog_window.open{
    opacity: 1;
    visibility: visible;
}
.dialog_window.open::before{
    content: '';
}
.dialog-flex{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap:0.5em;
    justify-content: center;
}
.button_dialog{
    display: block;
    width: fit-content;
    border: 1px solid #ccc;
    padding: 0.5em 1em;
    text-align: center;
    border-radius: 3px;
}
.button_dialog:hover button,.button_dialog:active button,
.button_dialog:hover,.button_dialog:active{
    background: var(--maincolor);
    color: #fff;
}


/*ズーム表示用*/
.zoom{
    cursor: pointer;
    transition: 0.3s;
}
.zoom:hover{
    opacity: 0.8;
}
#zoombox{
    position: fixed;
    top:50%;
    left: 0;
    transform: translateY(-50%);
    max-width: 100vw;
    max-height: 110vh;
    width: 100vw;
    height: 110vh;
    background: rgba(0,0,0,0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}
#zoombox.zoomon{
    display: flex;
    opacity: 1;
    visibility: visible;
}
#zoomimg{
    max-height: 80%;
    max-width: 80%;
    z-index: 101;
}
#zoomtxt{
    cursor: auto;
}
#zoombox br{display: none;}
#zoomtxt{text-align: center;}
#zoombox span{display: block;}


/*スキャンウィンドウ*/
main.scanpage{
    background: var(--sky);

    #video-container{
        margin-top: 1em;
        text-align: center;
        max-width: 100%;
        #qr-video{
            width: 100%;
            max-width: 600px;
            position: relative;
        }
    }
}



footer{
    background: var(--sky);
}
.copy{
    margin: 0;
    padding: 0.7em;
    text-align: center;
    background: var(--maincolor);
    color: #fff;
    font-size: 12px;
}


@media(max-width:599px){
    
    body{font-size: 14px;}
    .toplogo{
        flex-direction: column;
        gap:0.5em;
        padding: 1em 0 0;
        max-width: 120px;
    }
    .toplogo img{
        width: 100%;
    }
    #edt_Name{width: 100%;}
    #edtDate,#edt_UserName{
        font-size: 24px;
    }
    #dialog1{margin-bottom: 2em;}

    .alert{
        text-align: left;
        br{display: none;}
    }
}


