﻿.btn-fixed {
    display: block;
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 1;
    padding: 15px 8px;
    border-radius: 2px;
    color: white;
    border: none;
    outline: none;
    /*background: #333;*/
    background-color: #d94f4f;
    text-decoration: none;
}

   /* .btn-fixed::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 5%;
        height: 100%;
        background-color: #D13631;
        transition: all 0.3s ease;
    }*/

    .btn-fixed:hover {
        background-color: #dc3545;
    }

.button-text {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 0 10px;
}
    /*.btn-fixed:hover {
        background: #d94f4f;
    }*/

.btn-style {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.btn-style i.fa {
    margin-right: 1rem;
}

.btn-flat {
    overflow: hidden;
    color: #000;
    font-size: clamp(0.9rem, 1.3vw, 2rem);
    font-weight: 700;
    padding: 4rem 8rem;
    border-radius: 0 !important;
    background: #FFF;
}

    .btn-flat span {
        position: relative;
    }

    .btn-flat i.fa {
        margin-right: 1rem;
        z-index: 1;
        position: relative; /* z-index を効かせるには必要 */
    }

    .btn-flat:before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        content: '';
        -webkit-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
        -webkit-transform: translateX(-96%);
        transform: translateX(-96%);
        background: #D13631;
    }

        .btn-flat:hover {
            color: #FFF;
        }

    .btn-flat:hover:before {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

a.btn-disable {
    overflow: hidden;
    padding: 1.2rem 4rem;
    color: #fff;
    border-radius: 0;
    background: #8C8C8C;
}

a.btn-flat-normal {
    overflow: hidden;
    padding: 1.2rem 4rem;
    color: #fff;
    border-radius: 0;
    background: #333;
}

    a.btn-flat-normal span, a.btn-disable span {
        position: relative;
    }

    a.btn-flat-normal:before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        content: '';
        -webkit-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
        -webkit-transform: translateX(-96%);
        transform: translateX(-96%);
        background: #D13631;
    }

    a.btn-flat-normal:hover:before {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

a.btn-flat-back {
    overflow: hidden;
    padding: 1.2rem 4rem;
    color: #000;
    border-radius: 0;
    background: #FFF;
    border: 1px solid #777777;
    margin-right: 30px;
}

.button-wrapper {
    text-align: center;
    margin: 40px 0; /* 上下にスペースを付けたい場合 */
}

.st-back-button {
    display: inline-block;
    padding: 10px 30px;
    color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #444444;
}

    .st-back-button:hover {
        background-color: #050505;
        border-color: #999;
    }

    .st-back-button i{
        margin-right: 10px;
    }
@media screen and (max-width: 1390px) {
    .btn-flat {
        padding: 2.5rem 4rem;
    }
}

@media screen and (max-width: 1200px) {
    .btn-flat {
        padding: 2.5rem 2rem;
    }
}

@media screen and (max-width: 768px) {
    .btn-flat {
        font-size: 1.3rem !important;
    }

    .btn-fixed {
        display: block;
        position: fixed;
        width: 100%;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px 0;
        border-radius: 0;
        color: white;
        border: none;
        outline: none;
        background-color: #d94f4f;
        text-decoration: none;
        z-index: 9999999;
    }

    .btn-style {
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
    }

    a.btn-flat-normal, a.btn-disable {
        padding: 1.2rem 2rem;
    }

    a.btn-flat-back {
        padding: 1.2rem 2rem;
    }
}
