footer {
    width: 100%;
    position: relative;
    font-size: 1rem;
}

.footer-wrap {
    text-align: center;
}

.footer-wrap img {
    max-width: 250px;
    margin: 50px auto 30px;
}

.footer_link-wrap1 {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}

.footer_link-wrap1 a {
    padding: 5px;
    text-decoration: none;
    color: #808080;
}

.footer_link-wrap1 a:hover {
    opacity: 0.7;
    transition: 0.3s;
}

.footer_link-wrap1 span {
    padding-left: 10px;
}

.footer_link-wrap2 {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}

.footer_link-wrap2 a {
    padding: 5px;
    text-decoration: none;
    color: #808080;
}

.footer_link-wrap2 a:hover {
    opacity: 0.7;
    transition: 0.3s;
}

.footer_link-wrap2 span {
    padding-left: 10px;
}

@media (max-width: 768px) {
    footer {
        font-size: 0.9rem;
    }
    .footer-wrap img {
    max-width: 200px;
    margin-top: 30px;
    }
}

@media (max-width: 428px) {
    footer {
        font-size: 0.8rem;
    }
    .footer-wrap img {
    max-width: 175px;
    margin: 30px 0 10px 0;
    }
}

@media (max-width: 375px) {
    footer {
        font-size: 0.7rem;
    }
}

@media (max-width: 320px) {
    footer {
        font-size: 0.6rem;
    }
}

/*
コピーライト
*/
.copyright {
    color: #808080;
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}


/*
トップに戻るボタン
*/
.totop-button {
    position: absolute;
    /* z-index: -1; */
    bottom: 75px;
    right: 10vw;
    height: 50px;
    width: 50px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #051730;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    transition: all 0.5s;
    justify-content: center;
    align-items: center;
}
.totop-button::after {
    content: "トップに戻る";
    position: absolute;
    width: 150px;
    background-color: #051730;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 25px;
    top: -50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
    transform: scale(0);
}
.svg_top {
    transition: all 0.5s;
}
.totop-button:hover {
    transform: translateY(-3px);
    background-color: #051730;
}
.totop-button:hover .svg_top {
    fill: white;
    transform: scale(1.2);
}
.totop-button:hover::after {
    transform: scale(1);
}
.totop-button:active {
    transform: translateY(2px);
}

@media (max-width: 428px) {
    .totop-button {
    position: absolute;
    /* z-index: -1; */
    bottom: 120px;
    right: 10.5vw;
    height: 35px;
    width: 35px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #051730;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    transition: all 0.5s;
    justify-content: center;
    align-items: center;
    }
    .totop-button::after {
    content: "トップに戻る";
    position: absolute;
    width: 120px;
    background-color: #051730;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 25px;
    top: -50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
    transform: scale(0);
    }
}

@media (max-width: 320px) {
    .totop-button {
    position: absolute;
    /* z-index: -1; */
    bottom: 110px;
    right: 5vw;
    height: 35px;
    width: 35px;
    cursor: pointer;
    padding: 7px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #051730;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    transition: all 0.5s;
    justify-content: center;
    align-items: center;
    }
    .totop-button::after {
    content: "トップに戻る";
    position: absolute;
    width: 120px;
    background-color: #051730;
    color: #fff;
    font-size: 1em;
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 25px;
    top: -50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
    transform: scale(0);
    }
}