.footer {
    margin-block-start: 12.5rem;
    padding-block: calc(80/1440*100vw) calc(40/1440*100vw);
    padding-inline: calc(40/1440*100vw);
    background: var(--black);
    color: var(--white);
}

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

.nav {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.nav a {
    transition: color .2s ease-out;
}

.logo {
    font-size: 3rem;
    font-size: calc(48/1440*100vw);
    font-weight: 600;
    line-height: 1;
}

.siteLinks ul,
.snsLinks ul {
    display: grid;
    gap: .625rem;
}

.snsLinks ul {
    grid-template-rows: repeat(2,max-content) 1fr max-content;
    height: 100%;
}

.siteLinks ul li,
.snsLinks ul li {
    display: flex;
    align-items: center;
}

.siteLinks ul li a,
.snsLinks ul li a{
    line-height: 1.1875;
}

.arrowBox {
    display: flex;
    gap: .3125rem;
}

.arrow {
    width: 0.88375rem;
    transform: rotate(-45deg);
}

.snsLinks ul li.last {
    grid-row: 4;
}

.pagetopBox {
    display: flex;
    align-items: end;
}

.pagetopBox a {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.txBox {
    display: grid;
    justify-items: end;
    margin-block-start: 4.0625rem;
    font-size: 6.5rem;
    font-size: calc(104/1440*100vw);
    font-weight: 600;
    line-height: 1.22115384615;
}

.txBox .tx {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    line-height: 1.22115384615;
}

.txBox img{
    height: 0;
    transition: height .4s ease-in-out, width .4s ease-in-out;
    transition-delay: .4s;
}

.txBox img.act {
    height: calc(1em - .122115em);
}





.footer .nav a:hover {
    color: #bbb;
}




@media (max-width: 767px) {

    .footer {
        margin-block-start: 5rem;
        padding-block: 2.5rem;
        padding-inline: calc(16/375*100vw);
    }

    .logo {
        grid-column: 1/3;
        font-size: 1.5rem;
    }

    .nav {
        grid-template-columns: repeat(2,1fr);
    }

    .siteLinks {
        grid-column: 1;
        grid-row: 2;
        margin-block-start: 5rem;
    }

    .snsLinks {
        grid-column: 2;
        grid-row: 2;
        margin-block-start: 5rem;
    }

    .pagetopBox {
        margin-block-start: 2.5rem;
    }

    .txBox {
        margin-block-start: 5rem;
        font-size: 2rem;
    }

    .txBox img {
        width: 0;
        height: 0;
        object-fit: cover;
    }
    
    .txBox img.act {
        width: 4.9375rem;
        height: 1.6875rem;
    }

    .txBox .tx {
        gap: .3125rem;
    }

    .footer small {
        display: grid;
        justify-items: center;
        margin-block-start: 1.25rem;
        line-height: 1.21428571429;
    }
}