@charset "utf-8";

/*共通
------------------------------*/
img{max-width:100%;height:auto;transition:0.3s;}
.hover a:hover img{opacity:0.8;}
.inner{max-width:980px;padding:0 20px;}
.item_wrap{display:block;}
.sec_title{text-align: center;}

.sp640{display: block;}
.pc640{display: none;}
@media (min-width:641px) {
    .sp640{display: none;}
    .pc640{display: block;}
}

/*header
-----------------------------*/
.header {
    margin-bottom: 20px;
}
.header .inner{padding:10px 0 6px;text-align: center;}
.logo img{width: 170px;}

@media (min-width:641px) {
    .header{padding:20px 20px 0;}
    .header .inner{max-width:1100px;text-align: left;}
    .logo img{width: 230px;}
} 
@media (min-width:991px) {
    .logo img{width: 280px;}

}

/*main
-----------------------------*/

.main{
    margin-top: 10px;
    position: relative;
    z-index: 1;
}
.main::before{
    content: '';
    width: 100%;
    height: 10px;
    background: url('../images/border.png');
    background-size: auto 100%;
    top:-10px;
    position:absolute;
    z-index: 2;
}

@media (min-width:641px) {
    .main{
        margin-top: 0px;
        position: relative;
        background: url('../images/main_bk.jpg') no-repeat;
        background-size: 100% auto;
        width: 100%;
        height: 100%;
        aspect-ratio: 1000 / 425
    }
    .main_image{
        position: absolute;
        width: 86%;
        left: 50%;
        transform: translateX(-45%);
        -webkit-transform: translateX(-45%);
        -ms-transform: translateX(-45%);
        top: 4%;
    }
    .main::before{display: none;}

}


.wrap01{
    background: url('../images/sp/wrap01.jpg') no-repeat;
    background-size: 100% 100%;
    padding-bottom: 40px;
}

@media (min-width:641px) {
    .wrap01{
        background: url('../images/wrap01.jpg') no-repeat;
        background-size: auto 100%;
        padding:40px 0px;
        position: relative;
    }
    .wrap01::before{
        content: '';
        position: absolute;
        top: 0;
        width: 100%;
        height: 3px;
        background: url('../images/wrap01bar.svg');
        background-size: auto 100%;
    }
    .wrap01::after{
        content: '';
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 3px;
        background: url('../images/wrap01bar.svg');
        background-size: auto 100%;
    }
}
@media (min-width:1241px) {
    .wrap01{
        background-size: 100% auto;
    }
}
/*
section#chance
------------------------*/
section#chance  h1{
    background: #FFF;
    text-align: center;
    margin-bottom: 20px;
}
.gitfcontainer{
    display: flex;
    align-content: space-between;
    flex-wrap: wrap;
}
    .gitfcontainer .item{
        width: 100%;
    }
    .gitfcontainer .item[class*=card]{
        height:auto;
        margin-bottom: 20px;
        order: 1;
        align-items: center;
        justify-content: center;
    }
        .gitfcontainer .item[class*=card] > img{
            width: 100%;
        }
    .gitfcontainer .item[class*=chance]{
        height:auto;
        margin-bottom: 20px;
        order: 0;
        align-items: center;
        justify-content: center;
    }

@media (min-width:641px) {

    section#chance  h1{
        max-width: 980px;
        margin: 0 auto 20px;
    }
    .gitfcontainer{
        width: 100%;
        justify-content:flex-start; 
    }
        .gitfcontainer .item{
            width: calc( 50% - 10px );
            
        }
        .gitfcontainer .item[class*=card]{
            order: 0;
            width: calc( 39% - 10px );
        }
        .gitfcontainer .item[class*=chance]{
            order: 1;
            width: calc( 61% - 10px );
        }
       
    section#chance {
        padding-top: 20px;
    }
}
.wrap02{
    background-image: url('../images/wrap02.svg?111');
    background-size: 100% auto;
    padding: 40px 0;
}
@media (min-width:641px) {
    .wrap02{
        background-size: 50% auto;
    }
}

.inner[class*=solid]{
    background: #FFF;
    width: 90%;
    border-radius: 10px;
    padding:80px 20px 20px;
    box-shadow: 4px 5px 15px -2px rgba(94, 4, 3, 0.3)
}
.titlebar{
    position: absolute;
    width: 98%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    top: 3%;
}
@media (min-width:641px) {
    .inner[class*=solid]{
        padding:100px 20px 20px;
    }
    .titlebar{
        width: 95%;
        max-width: 1030px;
    }
}
@media (min-width:951px) {
    .inner[class*=solid]{
        padding:130px 20px 20px;
    }
}
/*
section#howto
------------------------*/
#howto{
    position: relative;
    margin-bottom: 40px;
}

#howto p.memo{
    color: #4F4C4B;
    margin-top: 14px;
    font-size: 1.0rem;
    font-weight: bold;
}

@media (min-width:641px) {
    #howto p.memo{
        color: #4F4C4B;
        font-size: 1.4rem;
        margin-top: 14px;
        font-weight: bold;
        text-align: center;
    }
}

/*
section#stepflow
--------------------------*/
#stepflow{
    position: relative;
}


ul.flow li{
    margin: 0;
    padding: 0;
    position: relative;
}
ul.flow li:nth-child(2),
ul.flow li:nth-child(3){
    padding-top: 25px;
}
ul.flow li:nth-child(1)::after{display: none;}
ul.flow li:nth-child(2)::after,
ul.flow li:nth-child(3)::after{
    content: '';
    position: absolute;
    background: url('../images/sp/arrow.svg') no-repeat;
    width: 80px;
    height: 35px;
    left: 50%;
    margin-left: -40px;
    top: 0px;
}


/*フッター
------------------------------*/
.footer{background:#FFF;}
.footer .inner{padding:40px 20px 20px;}
.footer_copyright{text-align:center;font-size:1.2rem;}
.footer_copyright i{margin-right:2px;}

@media (max-width:799px){
	.footer .inner{padding:15px;}
	.footer_mes{margin-bottom:20px;}
}

/*ページの先頭
------------------------------*/
.pagetop{position:fixed;right:20px;bottom:40px;cursor:pointer;z-index:3;display:none;}
.pagetop img{transition:0.3s;}
.hover .pagetop:hover img{opacity:0.8}

@media (max-width:799px){
	.pagetop{right:15px;bottom:15px;}
	.pagetop img{width:60px;}
}