.site-lower {
    width: 100%;
    background-color: #edf1f2;
}

.site-lower__inner {
    width: min(1200px, calc(100% - var(--page-gutter)));
    display: grid;
    grid-template-areas:
        "brand menu"
        "description menu";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 24px;
    margin-inline: auto;
    padding: 52px 0;
}

.site-footer__logo {
    grid-area: brand;
    justify-self: start;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #405e70;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .08em;
    white-space: nowrap;
    text-decoration: none;
    transition: color .22s ease;
}

.site-footer__mark {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.site-footer__description {
    grid-area: description;
    max-width: 540px;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.site-footer__menu {
    grid-area: menu;
    align-self: center;
    min-width: 0;
    padding-left: 48px;
}

.site-footer__menu-label {
    margin: 0 0 10px 5px;
    color: #496a7e;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .16em;
    pointer-events: none;
    user-select: none;
}

.footer-navigation {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 20px;
    margin: 0;
    padding: 14px 0 14px 5px;
    list-style: none;
}

.footer-navigation::before,
.footer-navigation::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 14px;
    background-image: radial-gradient(circle, #71899a 2px, transparent 2.2px);
    background-repeat: repeat-x;
    background-position: left center;
    background-size: 9px 4px;
    content: "";
}

.footer-navigation::before {
    top: 0;
}

.footer-navigation::after {
    bottom: 0;
}

.footer-navigation li {
    white-space: nowrap;
}

.footer-navigation a {
    position: relative;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.footer-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: #71899a;
    content: "";
    opacity: 0;
    transition: opacity .1s ease;
}

.footer-navigation a:focus-visible::after {
    opacity: 1;
    transition-duration: .18s;
}

@media (min-width: 960px) {
    .footer-navigation {
        column-gap: 0;
    }

    .footer-navigation li {
        display: flex;
        align-items: center;
    }

    .footer-navigation li + li::before {
        width: 1px;
        height: 12px;
        margin-inline: 10px;
        background-color: #777;
        content: "";
    }
}

@media (min-width: 960px) and (max-width: 1099.98px) {
    .site-lower__inner {
        column-gap: 24px;
    }

    .site-footer__menu {
        padding-left: 24px;
    }
}

.site-footer__bottom-wrap {
    width: 100%;
    background: #dde5e8;
}

.site-footer__bottom {
    width: min(1200px, calc(100% - var(--page-gutter)));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-inline: auto;
    padding: 18px 0;
}

.site-footer__legal {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.site-footer__policy,
.site-footer__sitemap {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.site-footer__copyright {
    grid-column: 3;
    justify-self: end;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.9;
    text-align: right;
}

.back-to-top {
    --button-pulse-color: rgb(73 106 126 / 35%);
    --button-pulse-color-clear: rgb(73 106 126 / 0%);
    --button-pulse-size: 12px;

    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 99;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dee2;
    border-radius: 50%;
    background: #f7f9fa;
    color: #71899a;
    font-size: 0;
    text-decoration: none;
    transition: opacity .24s ease,
        transform .36s cubic-bezier(.22, 1, .36, 1),
        border-color .36s ease, background-color .36s ease;
}

.js .back-to-top {
    visibility: hidden;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
}

.js .back-to-top.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top::before {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    transform: rotate(45deg);
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
}

@media (max-width: 959.98px) {
    .site-lower__inner {
        grid-template-areas:
            "brand"
            "description"
            "menu";
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
        row-gap: 0;
    }

    .site-footer__logo {
        font-size: 20px;
    }

    .site-footer__mark {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .site-footer__description {
        max-width: 620px;
        margin-top: 18px;
    }

    .site-footer__menu {
        align-self: stretch;
        margin-top: 40px;
        padding: 0;
    }

    .footer-navigation {
        display: grid;
        justify-items: start;
        gap: 4px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (hover: hover) {
    .footer-navigation a:hover::after {
        opacity: 1;
        transition-duration: .18s;
    }

    .site-footer__policy:hover,
    .site-footer__sitemap:hover {
        color: #777;
        text-decoration: underline;
    }

    .back-to-top:hover,
    .js .back-to-top.is-visible:hover {
        border-color: #b8c7cd;
        transform: translateY(0);
        animation: button-pulse .9s ease;
    }
}

.back-to-top:focus-visible,
.js .back-to-top.is-visible:focus-visible {
    border-color: #b8c7cd;
    background-color: #fff;
    transform: translateY(0);
}

.site-footer__logo:active {
    color: #496a7e;
}

.footer-navigation a:active {
    color: #405e70;
}

@media (max-width: 359.98px) {
    .site-footer__bottom {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 6px;
    }

    .site-footer__legal {
        align-self: stretch;
        justify-content: flex-start;
    }
}

.back-to-top:active,
.js .back-to-top.is-visible:active {
    border-color: #aebfc6;
    background-color: #dde5e8;
    transform: scale(.98);
}
