/* フッター設定 */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* テキスト */
main p,
main img {
    transform: skewX(30deg);
}

main h2 {
    padding-top: 80px;
    font-size: 3.2em;
}

.main_btn_section p {
    font-size: 1.3em;
    line-height: 1.3em;
    font-weight: bold;
}

@media screen and (max-width: 1024px) {
    .main_btn_section p {
        font-size: 1.5vw;
    }
}

@media screen and (max-width: 767px) {
    .main_btn_section p {
        font-size: 4vw
    }

    main h2 {
        font-size: 2em;
    }
}

/* ボタンのマウスオーバーをリセット */
.main_btn_section a:hover {
    color: white;
}

.main_btn_section {
    background-image: url(../img/top-back-img.png);
    background-size: cover;
    background-position: center;
}

@media screen and (max-width: 767px) {
    .main_btn_section {
        background-image: url(../img/top-back-img_sp.png);
    }
}

.main_btn {
    display: flex;
    flex-direction: row;
    width: 70vw;
    max-width: 800px;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
    padding-top: 5vw;
    padding-bottom: 50vh;
}

.main_btn_inn {
    transform: skewX(-30deg);
}


.main_btn_inn {
    position: relative;
    display: inline-block;
    /* width: 30vw;
    max-width: 350px;
    height: 20vw;
    max-height:210px; */
    margin: 0px 20px;
    background: linear-gradient(black, #3E3A39);
    /* border: 1px solid #f8f8f8; */
    /*アニメーションの指定*/
    transition: all 0.3s;
}

.main_btn_inn span {
    display: block;

}

/*横線の設定*/
.main_btn_inn::before,
.main_btn_inn::after {
    content: "";
    /*絶対配置で線の位置を決める*/
    position: absolute;
    /*線の形状*/
    width: 100%;
    height: 2px;
    background: #f8f8f8;
    /*アニメーションの指定*/
    transition: all 0.2s linear;
}

/*縦線の設定*/
.main_btn_inn span::before,
.main_btn_inn span::after {
    content: "";
    /*絶対配置で線の位置を決める*/
    position: absolute;
    /*線の形状*/
    width: 2px;
    height: 100%;
    background: #f8f8f8;
    /*アニメーションの指定*/
    transition: all 0.2s linear;
}

/*hoverした際、線が縦横100%伸びる*/
.main_btn_inn:hover::before {
    background: #E60012;
    width: 100%;
}

.main_btn_inn:hover::after {
    background: linear-gradient(to right, #f8f8f8, #E60012);
    width: 100%;
}

.main_btn_inn:hover span::before {
    background: #E60012;
    height: 100%;
}

.main_btn_inn:hover span::after {
    background: #E60012;
    height: 100%;
}

/*== 左下⇒右下⇒右上⇒左上⇒左下に枠線が伸びて塗りに */

/*左下から右下へ伸びる横線*/
.bordercircle::after {
    left: 0;
    bottom: 0;
}

/*右下から上へ伸びる縦線*/
.bordercircle span::after {
    right: 0;
    bottom: 0;
    transition-delay: 0.2s;
}

/*右上から左上へ伸びる横線*/
.bordercircle::before {
    right: 0;
    top: 0;
    transition-delay: 0.4s;
}

/*左上から左下へ伸びる横線*/
.bordercircle span::before {
    left: 0;
    top: 0;
    transition-delay: 0.6s;
}

.main_btn_inn img {
    margin-top: 30px;
    margin-bottom: 20px;
}

.main_btn_inn p {
    margin-bottom: 20px;
}

@media screen and (max-width: 1024px) {
    .main_btn_inn img {
        margin-top: 3vw;
        margin-bottom: 2vw;
    }

    .main_btn_inn p {
        margin-bottom: 2vw;
    }
}

@media screen and (max-width: 767px) {
    .main_btn {
        flex-direction: column;
    }

    .main_btn_inn {
        width: 60vw;
        height: 40vw;
        margin-bottom: 8vw;
        margin-left: auto;
        margin-right: auto;
    }

    .main_btn_inn img {
        margin-top: 4vw;
        margin-bottom: 4vw;
    }

    .main_btn_inn p {
        margin-bottom: 3vw;
    }
}