/* footerのスタイル */
footer{
    display: grid;
    grid-template-columns: 200px 1fr 1fr 200px;
    grid-template-rows: auto 40px auto auto;
    grid-template-areas: 
        "slide slide slide slide"
        ". . . ."
        "logo access access access"
        "copyright copyright copyright copyright";
    background-color: white;
    margin: 80px 0 0 0;
}
footer .logo{
    grid-area: logo;
    justify-self: flex-end;
    transform: translateY(10px);
}
footer .logo a{
    display: block;
    padding: 20px 0 50px 50px;
}
footer .logo img{
    width: 150px;
}
footer .access{
    grid-area: access;
    justify-self: flex-start;
    align-content: center;
}
footer .access p{
    font-size: 12px;
    line-height: 1.5;
}
footer .access a{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    color: var(--page_text_color);

}
footer .access .icon{
    color: var(--page_text_color);
    width: 20px;
    height: 20px;
    margin: 0 5px 0 10px;
    align-self: center;
    grid-column: 1/2;
    grid-row: 1/3;
    transition: color 0.3s ease-in, transform 0.3s ease-in;
    /* transform: translateY(-3px); */
}
footer .access a:hover .icon{
    color: red;
    transform: translateY(3px);
}
footer a{
    text-decoration: none;
}
footer .btn{
    width: 300px;
    height: 100px;
    z-index: 200;
    align-self: center;
    transform: translateY(30px);
}
footer .btn :is(h2, p, a){
    color: white;
}
footer .btn a{
    width: 100%;
    height: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    position: relative;
}
footer .btn .icon{
    width: 30px;
    height: 30px;
    grid-column: 1/2;
    grid-row: 1/3;
    align-self: center;
    justify-self: flex-end;
    margin: 0 10px 0 0;
}
footer .btn h2{
    font-size: 20px;
    font-weight: var(--wb);
    align-self: flex-end;
}
footer .btn p{
    padding: 5px 0 0 20px;
    font-weight: var(--wb);
}
footer .btn.time{
    grid-row: 1/3;
    grid-column: 2/3;
    justify-self: flex-end;
    background: var(--grad5);
    /* background: var(--main_color); */
    margin: 0 20px 0 0;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;

    padding: 10px 20px;
    box-sizing: border-box;
}
footer .btn.time :is(.icon, h2, p){
    transform: translateX(-10px);
}
footer .btn.contact{
    grid-row: 1/3;
    grid-column: 3/4;
    background: var(--grad5);
    /* background: var(--main_color); */
    margin: 0 0 0 20px;
    position: relative;
}
footer .btn.contact::before{
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--select_color);
    transform: scaleY(0);
    transition: transform 0.2s ease-in;
}
footer .btn.hover.contact::before{
    transform: scaleY(1);
}
footer .btn.contact a{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
}
.copy_right{
    /* color: white; */
    color: var(--main_color);
    justify-self: end;
    align-self: end;
    grid-area: copyright;
    font-size: 10px;
    padding: 10px 20px;
}
footer .text_slider{
    grid-area: slide;
    width: 100%;
    /* overflow: hidden; */
}
footer .text_slider_wrapp{
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: TextSlider 30s linear infinite;
}

.text_slider p{
    flex-shrink: 0;
    font-size: 120px;
    color: var(--main_color);
    font-weight: var(--wb);
    padding: 0 50px;
    opacity: 0.2;
}
@keyframes TextSlider{
    0%{
        transform: translateX(0%);
    }
    100%{
        transform: translateX(-50%);
    }
}


@media (max-width:900px){
    footer{
        grid-template-columns: 100cqw;
        grid-template-rows: auto auto auto auto auto auto;
        grid-template-areas: 
        "slide"
        "btn1"
        "btn2"
        "access"
        "logo"
        "copyright";
        justify-items: center;
        padding: 0 0 60px 0;
    }
    footer .btn{
        width: 250px;
        height: 70px;
        grid-column: auto;
        grid-row: auto;
        transform: none;
    }
    footer .btn h2{
        font-size: 14px;
    }
    footer .btn p{
        font-size: 14px;
    }
    footer .logo{
        justify-self: auto;
        margin: 20px 0 0 0;
        transform: translateY(0);
    }
    footer .logo a{
        padding: 0;
    }
    footer .access{
        justify-self: auto;
    }
    footer .access .icon{
        margin: 0 5px 0 0;
    }
    .copy_right{
        justify-self: auto;
    }
    footer .btn.time{
        grid-area: btn1;
        justify-self: center;
        margin: 0;
    }
    footer .btn.contact{
        grid-area: btn2;
        margin: 20px 0 30px 0;
        justify-self: auto;
    }
    .text_slider p{
        font-size: 30px;
        padding: 0 20px;
    }
}