/*スクロールありの場合はフッターはポディション解除とbodyの高さを調整*/
body {
    height: 100%;
    overflow-y: auto;
}

.footer {
    position: initial;
    margin-top: 5em;
}

/*ここからメイン*/
.warp {
    margin: 10px auto 0;
    width: 90%;
    max-width: 900px;
    background: #ffffffb5;
    padding: 3em;
    box-sizing: border-box;
    line-height: 1.5;
}

.warp h1 {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 1em;
}

.warp h2 {
    font-size: 26px;
    margin-bottom: 0.5em;
    margin-top: 2em;
    font-weight: bold;
}

.set-existence {
    list-style: none;
}

.set-existence li {
    display: inline-block;
    margin-right: 1em;
    padding: 1em 2em;
    background: #CBCBCB;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
}

.set-existence li.active {
    border: 5px solid #555555;
}

.selectinput,
.textinput {
    border: none;
    border-bottom: 1px solid #000;
    background: initial;
    width: 100%;
    font-size: 18px;
    padding: 1em;
    box-sizing: border-box;
}

.nemebox {
    display: flex;
}

.nemebox .textinput {
    width: 49%;
}

.nemebox .textinput:last-child {
    margin-left: 2%;
}

.textarea {
    width: 100%;
    height: 300px;
    font-size: 18px;
    border: none;
    background: #E3E3E3;
    border-radius: 10px;
    padding: 1em;
    box-sizing: border-box;
}

.btnbox {
    width: 60%;
    margin: auto;
}

.btnbox input {
    max-width: 350px;
    text-align: center;
    display: inline-block;
    margin: 1%;
    width: 46%;
    box-sizing: border-box;
    padding: 1em;
    border: none;
    background: #555555;
    color: #fff;
}

.btnbox input:nth-child(1),
.btnbox .submit {
    background: #555555;
    color: #fff;
}

.btnbox input:nth-child(2),
.btnbox .back input {
    background: #CBCBCB;
    color: #000;
    cursor: pointer;
}

/*確認画面*/
.confirm {
    max-width: 800px;
    margin: 1em auto;
}

.confirm>dl {
    display: flex;
}

.confirm dt,
.confirm dd {
    border: 1px solid #555555;
}

.confirm dt {
    width: 20%;
    padding: 1em;
    text-align: center;
    background: #555555;
    color: #fff;
}

.confirm dd {
    width: 80%;
    padding: 1em;
}

.confirmbtn {
    display: flex;
}

.confirmbtn .confirm {
    width: 100%;
}

.confirmbtn .back,
.confirmbtn .submit {
    width: 90%;
    margin: 0 5%;
}

.confirmbtn input {
    width: 100%;
    text-align: center;
}

/*サンクスページ*/
.img img{
    width: 100%;
}

.btnback{
    width: 90%;
    max-width: 350px;
    margin: 1em auto;
}
.btnback a{
    display: block;
    width: 90%;
    text-align: center;
    padding: 5%;
    background: #000;
    color: #fff;
}

/*850px以下　SP・Tab表示処理*/
@media screen and (max-width: 850px) {
    .warp {
        padding: 1em;
    }

    .btnbox {
        width: 100%;
    }

    .confirm {
        width: 90%;
    }

    .confirm>dl {
        display: block;
    }

    .confirm dt,
    .confirm dd {
        width: 100%;
        box-sizing: border-box;
    }
}