/*----------------------------------------
株式会社アルターのフッターCSS
footer.css
----------------------------------------*/

/*-------------------------------------------
フッタ
-------------------------------------------*/
footer {
    position: relative;
    margin: 0;
    background-color: #fff;
    width: 100%;
}
.footer__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer__company-container{
    background: var(--footer-bg-color);
}
.footer__company-inner {
    padding: 15px 20px;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.footer__address {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.2rem
}

.footer__group-container {
    background-color: #e5e5e5;
    padding: 40px 20px;
}

.footer__group-inner {

}
.footer__group-headding{
    margin: 0 0 20px 0;
    color: #000;
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: 0.1rem
}

.footer__group-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer__group-link {
    display: block;
}

.footer__group-link:hover {
    cursor: pointer;
    opacity: 0.8;
}

.footer__group-item {
    margin: 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 0 0 0 0;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.footer__group-name {
    width: 100%;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    color: #000;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.1rem
}

.footer__group-name img {
    height: 25px;
    width: auto;
    margin: 0 10px 0 0;
}

.footer__group-text {
    margin: 0;
    padding: 10px 0 0 0;
    color: #000;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.1rem
}

.footer__policy-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
}
.footer__link {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    color: #666666;
}

.footer__copy {
    margin: 0 0 20px 0;
    padding: 0 10px 0 10px;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    color: #666666;
    text-align: center;
}

/* pc */
@media screen and (min-width: 768px) {
    footer {
        position: relative;
        margin: 0;
        background-color: #fff;
        width: 100%;
    }
    .footer__inner {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .footer__company-container{
        background: var(--footer-bg-color);
    }
    .footer__company-inner {
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer__address {
        color: #fff;
        font-size: 1.2rem;
        font-weight: 400;
        line-height: 1.8;
        letter-spacing: 0.2rem
    }


    .footer__group-container {
        background-color: #e5e5e5;
        padding: 40px 20px;
    }

    .footer__group-inner {
        max-width: 1080px;
        margin: 0 auto;
    }
    .footer__group-headding{
        margin: 0 0 20px 0;
        color: #000;
        font-size: 2.8rem;
        font-weight: 400;
        line-height: 1.0;
        letter-spacing: 0.1rem
    }

    .footer__group-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer__group-link {
        display: block;
    }

    .footer__group-link:hover {
        cursor: pointer;
        opacity: 0.8;
    }

    .footer__group-item {
        flex: 1 1 calc((100% - 30px) / 3);
        max-width: calc((100% - 30px) / 3);
        margin: 0;
        padding: 10px;
        background-color: #fff;
        border-radius: 0 0 0 0;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.3);
        margin-top: 10px;
        box-sizing: border-box;
    }

    .footer__group-name {
        width: 100%;
        padding: 0 0 10px 0;
        border-bottom: 1px solid #000;
        display: flex;
        align-items: center;
        color: #000;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0.1rem
    }

    .footer__group-name img {
        height: 25px;
        width: auto;
        margin: 0 10px 0 0;
    }

    .footer__group-text {
        margin: 0;
        padding: 10px 0 0 0;
        color: #000;
        font-size: 1.3rem;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0.1rem
    }

    .footer__policy-container {
        display: flex;
        flex-direction: row;
        gap: 40px;
    }
    .footer__link {
        font-size: 1.2rem;
        letter-spacing: 0.2rem;
        color: #666666;
    }
    .footer__copy {
        margin: 0;
        font-size: 1.2rem;
        letter-spacing: 0.2rem;
        color: #666666;
    }

}

/*
========================================
    トップに戻るボタン
=========================================
*/
/*リンクを右下に固定*/
.footer__page-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10000;
    /*   はじめは非表示*/
    opacity: 1;
    display: block;
    transform: translateY(100px);

}

.footer__page-top--none {
    display: none;
}

.footer__page-top-link {
    display: inline-block;
}

.footer__page-top-icon {
    width: 35px;
    height: 35px;

}

.footer__page-top-icon:hover path {
    fill: #3E3E3E;
}

/* 上に上がる動き*/
.footer__page-top--up-move {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*下に下がる動き*/
.footer__page-top--down-move {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(100px);
    }
}

/* pc */
@media screen and (min-width: 768px) {
    footer {
        margin: 0;
        /* padding: 15px 0; */
    }
    .footer__inner {
        margin: 0 auto 0 auto;
        /* max-width: 1280px; */
    }   
    .footer__company-container {
        margin: 0;
        /* max-width: 1280px; */
    }
    .footer__company-inner {
        padding: 38px calc((100vw - 1080px) / 2);
    }

    .footer__address {
        font-size: 1.6rem;
    }
    .footer__link-container {
        display: flex;
        flex-direction: row;
        padding: 0 calc((100vw - 1080px) / 2) 30px calc((100vw - 1080px) / 2); 
    }
    .footer__link {
        font-size: 1.6rem;
    }
    .footer__copy {
        font-size: 1.6rem;
        margin: 0 0 0 auto;
        padding: 0;
    }
    
    /*
    ========================================
        トップに戻るボタン
    =========================================
    */
    .footer__page-top {
        right: 20px;
    }
    .footer__page-top-icon {
        width: 50px;
        height: 50px;
    }

}

