/*------------------------------------*\
    
    Page Footer CSS

    Page footer...........The main page footer.

\*------------------------------------*/

.page-footer {
    margin-top: auto; /* used to affix footer at bottom of page */
    background-color: var(--color-primary);
    padding: 80px 0 calc(53px + 60px);
}

.back-to-top:hover .back-to-top__label {
    color: var(--color-secondary);
}

@media (min-width: 768px) {
    .page-footer {
        padding: 80px 0 53px;
    }
}

@media (min-width: 1025px) {
    .page-footer {
        padding: 86px 0 56px;
    }
}

.page-footer strong {
    font-size: 20px;
    letter-spacing: 0.03em;
    font-family: var(--font-secondary);
    color: var(--color-secondary);
    display: block;
    margin-bottom: 15px;
}

@media (min-width: 1025px) {
    .page-footer strong {
        margin-bottom: 23px;
    }
}

.page-footer a {
    font-size: 16px;
    color: var(--color-white);
    display: inline-block;
    position: relative;
}

.page-footer a:not(.footer-logo):before {
    content: "";
    display: block;
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    background-color: var(--color-secondary);
    transition: transform 0.25s ease-in-out;
}

@media (min-width: 1025px) {
    .page-footer a:not(.footer-logo):hover:before {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.page-footer p {
    color: var(--color-white);
}

.footer-upper__wrapper {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .footer-upper__wrapper {
        text-align: center;
    }   
}

@media (min-width: 1025px) {
    .footer-upper__item:not(.footer-upper__item--last):not(:first-child) {
        margin-left: 126px;
    }

    .footer-upper__item {
        width: auto;
    }

    .footer-upper__item--last {
        width: 436px;
        margin-left: auto;
    }
}

@media (max-width: 1025px) {
    .footer-upper__item:first-child {
        width: 40%;
        padding-right: 44px;
    }

    .footer-upper__item:nth-child(2) {
        width: 60%;
        padding-left: 44px;
    }

    .footer-upper__item:nth-child(3),
    .footer-upper__item:nth-child(4) {
        display: none;
    }

    .footer__contact {
        margin-top: 45px;
    }
}

@media (max-width: 767px) {
    .footer__contact {
        margin-top: 40px;
        margin-bottom: 55px;
        order: 0;
    }

    .footer__subscribe,
    .footer__sns,
    .footer__button {
        order: 1;
    }

    .footer-upper__item:first-child {
        width: 100%;
        padding-right: 0;
    }

    .footer-upper__item:nth-child(2) {
        width: 100%;
        padding-left: 0;
        display: flex;
        flex-direction: column;
    }
}

.footer-logo {
    width: 180px;
    display: block;
}

@media (min-width: 1025px) {
    .footer-logo {
        width: 231px;
        margin-bottom: 32px;
    }
}

.footer-logo img {
    width: 100%;
    height: auto;
}

.footer-upper__contact-info p,
.footer-upper__contact-info p a {
    color: var(--color-white);
}

.footer-upper__contact-info p a {
    line-height: 1.5em;
}

@media (max-width: 1025px) {
    .footer-upper__contact-info p a:not(:last-child) {
        border-right: 2px solid var(--color-secondary);
        padding-right: 10px;
    }

    .footer-upper__contact-info p a:not(:first-child) {
        padding-left: 10px;
    }
}

.footer-upper__contact-info p {
    line-height: 1.8em;
    margin: 0 0 0;
}
.footer-upper__contact-info p br {
    display: none;
}

@media (min-width: 1025px) {
    .footer-upper__contact-info p {
        margin: 0 0 25px;
    }

    .footer-upper__contact-info p br {
        display: block;
    }
}

.footer__form form {
    display: flex;
    align-self: center;
    width: 100%;
}

.footer__form label {
    display: block;
    flex: 1;
}

.footer__form input {
    width: 100%;
}

.footer__form input::placeholder {
    color: var(--color-white);
}

.footer__form .btn {
    padding: 17px 30px;
}

.footer__form .btn span:after {
    position: relative;
    right: 3px;
    top: 1px;
}

@media (min-width: 1025px) {
    .footer__form .btn span:after {
        display: none;
    }
}

@media (max-width: 1025px) {
    .footer__form .btn {
        font-size: 0;
        padding: 0;
        height: 51px;
        width: 51px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.footer__sns {
    list-style-type: none;
    padding: 0;
    margin: 30px 0 35px;
}

@media (min-width: 1025px) {
    .footer__sns {
        margin: 30px 0 0;
    }
}

.footer__sns li {
    display: inline-block;
    vertical-align: middle;
}

.footer__sns li:not(:last-child) {
    margin-right: 20px;
}

.footer__sns a {
    width: 34px;
    height: 34px;
    background-color: var(--color-quaternary);
    color: var(--color-white);
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.footer__sns a,
.footer__sns a i {
    display: flex;
    align-self: center;
    justify-content: center;
    position: relative;
}

.footer__sns a i {
    z-index: 1;
}

.footer__sns a:before {
    display: none;
}

.footer__sns a:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    position: absolute;
    top: -100%;
    left: -100%;
    transition: top 0.3s ease-in-out,
                left 0.3s ease-in-out;
}

@media (min-width: 1025px) {
    .footer__sns a:hover {
        transform: scale(1.2);
    }

    .footer__sns a:hover:after {
        top: 0;
        left: 0;
    }
}

.footer__links,
.footer__quick-links .menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.footer__links li:not(:last-child),
.footer__quick-links .menu > .menu-item:not(:last-child) {
    margin-bottom: 20px;
}

.footer__button {
    text-align: center;
}

@media (min-width: 768px) {
    .footer__button {
        text-align: left;
    }
}

.footer-lower {
    margin-top: 60px;
}

@media (min-width: 1025px) {
    .footer-lower {
        margin-top: 85px;
    }
}

.footer-lower__wrapper {
    display: block;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-lower__wrapper {
        text-align: left;
    }
}

@media (min-width: 1025px) {
    .footer-lower__wrapper {
        text-align: left;
        display: flex;
        justify-content: space-between;
    }
}

.footer-lower__wrapper p {
    margin: 0 0 0 5px;
    display: inline;
}

.footer-lower__wrapper small,
.footer-lower__wrapper p a {
    display: inline-block;
    color: var(--color-white);
    font-size: 14px;
}

.footer-lower__wrapper p a {
    margin-right: 3px;
}

@media (min-width: 768px) {
    .footer-lower__wrapper small,
    .footer-lower__wrapper p a {
        font-size: 16px;
    }
}