.site--footer {
    font-size: var(--farallon-text-size-small);
    padding: 20px 80px;
    border-top: 1px dotted var(--farallon-border-color);
    color: var(--farallon-text-light);
    &__content {
        display: flex;
        align-items: center;
    }

    &__info {
        display: none;
        text-align: center;
        color: var(--farallon-text-light);

        a {
            text-decoration: underline;

            &:hover {
                color: var(--farallon-hover-color);
            }
        }

        &.active {
            display: block;
        }
    }
    .copyright {
        margin-left: auto;
        display: flex;
        align-items: center;

        svg {
            fill: var(--farallon-text-light);
            margin-left: 8px;
            cursor: pointer;
            &:hover {
                fill: var(--farallon-hover-color);
            }
        }
    }

    nav {
        ul {
            display: flex;
            align-items: center;

            li {
                margin-right: 10px;

                a {
                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
        }
    }

    &__sns {
        display: flex;
        align-items: center;

        a {
            margin: 0 12px 0 0;
            display: flex;
        }

        svg {
            fill: var(--farallon-text-color);
            width: 18px;
            height: 18px;

            &:hover {
                fill: var(--farallon-hover-color);
            }

            &.sns {
                fill: none;
                stroke: var(--farallon-text-color);

                &:hover {
                    stroke: var(--farallon-hover-color);
                    fill: none;
                }
            }

        }
    }
}

.fixed--theme {
    position: fixed;
    right: 10px;
    top: 40%;
    display: flex;
    flex-direction: column;
    height: max-content;
    box-shadow: 0 0 0 1px var(--farallon-border-color);
    background-color: var(--farallon-background-white);
    border-radius: 999rem;
    width: max-content;
    padding: 3px;
    span {
        width: 32px;
        height: 32px;
        cursor: pointer;
        border-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        color: var(--farallon-text-gray-lightest);

        &:hover {
            color: var(--farallon-text-color);
        }

        &.is-active {
            color: var(--farallon-text-color);
            background-color: var(--farallon-background-gray);
        }

        margin-bottom: 5px;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

@media (max-width: 768px) {
    .site--footer__content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-right: 3.5%;
        padding-left: 3.5%;

        .copyright {
            margin-left: 0;
        }

        nav {
            margin-bottom: 10px;
        }
    }

    .fixed--theme {
        top: auto;
        bottom: 100px;
    }
}

@keyframes toTop {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.backToTop {
    .svgIcon {
        width: 17px;
        height: 17px;
        fill: var(--farallon-main-color);
        animation: toTop 1s ease-in infinite alternate;
    }

    &:hover {
        .svgIcon {
            fill: var(--farallon-hover-color);
            animation-play-state: paused;
        }
    }

    position: fixed;
    bottom: 25px;
    right: -25px;
    cursor: pointer;

    &.is-active {
        right: 25px;
    }

    background-color: var(--border-color);
    z-index: 10;
    transition: all 0.3s ease;
}

.footer--bar {
    padding: 0 40px;
    padding-top: 30px;

    .widget-card-content {
        font-size: 24px;
        font-weight: bold;
        line-height: 1.2;
    }

    .widget-card-description {
        color: var(--farallon-text-gray);
        font-size: 18px;
    }

}

@media (max-width: 414px) {
    .footer--bar {
        padding: 0 0px;

        .widget-card-content {
            font-size: 18px;
        }

        .widget-card-description {
            font-size: 14px;
        }
    }
}

.heading-title {
    font-size: 16px;
    font-weight: bold;
}

.widget_links {
    font-size: var(--farallon-text-size-small);
    color: var(--farallon-text-light);
    .blogroll {
        padding: 5px 0;
        display: flex;
        flex-wrap: wrap;

        li {
            margin-right: 15px;
            margin-bottom: 15px;

            a {
                &:hover {
                    color: var(--farallon-hover-color);
                    text-decoration: underline;
                }
            }
        }
    }
}

.widget--category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px;
    padding-top: 15px;
    &--item {
        display: flex;
        flex-direction: column;
        position: relative;
        height: 100px;
    }

    &--image {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: 5px;
    }

    &--title {
        font-size: 14px;
        font-weight: bold;
        color: #fff;
        position: relative;
        // margin-top: 10px;
    }

    &--meta {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        &::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
            border-radius: 5px;
        }
        &:hover {
            &::before {
                background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
            }
        }
    }
}

@media (max-width: 768px) {
    .widget--category {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 414px) {
    .widget--category {
        grid-template-columns: repeat(1, 1fr);
    }
}
