#fixed_nav ul li:nth-child(2) a,
.header ul li:nth-child(2) a {
    color: #FF4D4D;
}

.container_button {
    position: fixed;
    bottom: 100px;
    right: 32px;
}

.container_button ul {
    list-style: none;
    text-align: center;
}

.container_button ul li {
    margin-bottom: 40px;
}

.container_button ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 800;
    font-size: 18px;
}

.header__link.is-active {
    position: relative;
    color: #FF4D4D;
}

.header__link.is-active::after {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #333;
    position: absolute;
    border-radius: 50px;
    top: 32%;
    left: -18px;
}

.header__link.is-active::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #333;
    position: absolute;
    bottom: -8px;
}

.firstview p {
    text-align: center;
    font-size: 20px;
    margin: 120px auto 0;
    line-height: 48px;
}

.firstview ul {
    padding: 0;
    list-style: none;
    display: flex;
    max-width: 900px;
    margin: 180px auto;
    justify-content: space-between;
}

.firstview ul li a {
    display: inline-block;
    overflow: hidden;
    position: relative;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 20px;
    background-color: #fff;
    padding: 24px 40px;
    border-radius: 0px;
    background-color: rgba(255, 255, 255, 0.34);
    box-shadow: rgba(0, 0, 0, 0.3) 2px 8px 8px;
    border: 1px rgba(255, 255, 255, 0.4) solid;
    border-bottom: 1px rgba(40, 40, 40, 0.35) solid;
    border-right: 1px rgba(40, 40, 40, 0.35) solid;
}

/*キラッと光る*/
.firstview ul li a::before {
    content: '';
    /*絶対配置でキラッと光るの位置を決める*/
    position: absolute;
    top: 0;
    left: -75%;
    /*キラッと光る形状*/
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
    transform: skewX(-25deg);
}

/*hoverした際の移動のアニメーション*/
.firstview ul li a:hover::before {
    animation: shine 0.7s;
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.gallery {
    width: 70vw;
    margin: 120px auto;
}
.gallery_title {
    text-align: center;
    margin-bottom: 24px;
}
.gallery h1 {
    position: relative;
    text-align: center;
    font-size: 34px;
    border: #333 1px solid;
    display: inline-block;
    padding: 0.2em 1em;
    backdrop-filter: blur(1px);
    box-shadow: 5px 5px 0px #333;
}
.gallery ul {
    padding: 0;
    flex-wrap: wrap;
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0 auto 160px;
}

.gallery ul li {
    position: relative;
    width: calc(580px - 13vw);
    height: 380px;
    margin: 2px;
}

.gallery ul li::before,
.gallery ul li::after {
    z-index: 10;
    content: "";
    /*絶対配置で線の位置を決める*/
    position: absolute;
    background: #fffb00;
    /*線の形状*/
    width: 0;
    height: 4px;
    /*アニメーションの指定*/
    transition: all 0.2s linear;
}

.gallery ul li::before {
    right: 0;
    bottom: 0;
}

.gallery ul li::after {
    left: 0;
    top: 0;
}


.gallery ul li span {
    display: block;
}

.gallery ul li span::before,
.gallery ul li span::after {
    z-index: 10;
    content: "";
    /*絶対配置で線の位置を決める*/
    position: absolute;
    background: #fffb00;
    /*線の形状*/
    width: 4px;
    height: 0;
    /*アニメーションの指定*/
    transition: all 0.1s linear;
}

.gallery ul li span::before {
    left: 0;
    bottom: 0;
}

.gallery ul li span::after {
    right: 0;
    top: 0;
}
.gallery ul li:hover::before,
.gallery ul li:hover::after {
    width: 100%;
}

.gallery ul li:hover::after {
    transition-delay: 0s;
    /*すぐ線を出現させる*/
}

.gallery ul li:hover::before {
    transition-delay: 0.3s;
    /*線の出現を0.3秒遅らせる*/
}

.gallery ul li:hover span::before,
.gallery ul li:hover span::after {
    height: 100%;
}

.gallery ul li:hover span::before {
    transition-delay: 0.5s;
    /*線の出現を0.5秒遅らせる*/
}

.gallery ul li:hover span::after {
    transition-delay: 0.2s;
    /*線の出現を0.2秒遅らせる*/
}
.gallery ul li img {
    width: calc(580px - 13vw);
    height: 380px;
    object-fit: cover;
    transition: .3s ease-in-out;
    overflow: hidden;
}

.link_text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .3s ease-in-out;
}
.link_text p {
    position: relative;
    font-weight: 900;
    font-size: 18px;
    color: #ffffff;
    padding: .5em 1em;
    border: 2px solid #fffb00;
    transition: .5s ;
}
.link_text p::after {
    position: absolute;
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    top:30%;
    right: 5px;
    transform: rotate(45deg);
    border-right: 2px  #fffb00 solid;
    border-top: 2px #fffb00 solid;
    transition: .5s all;
}

.link_text:hover {
    transition: all 0.5s;
    opacity: 1;
}
.link_text:hover.link_text p::after {
    animation: link_hover 2.5s infinite;
}


.gallery_signage li a span img {
    object-position: 70% 50%;
}



@keyframes link_hover {
    0% {
        right: 5px;
    }
    50% {
        right: -20px;
    }
    100% {
        right: 5px;
    }
}

@media(max-width:1000px) {
    .container_button {
        bottom: 100px;
        right: 8px;
    }

    .container_button ul li {
        margin-bottom: 24px;
    }

    .container_button ul li a {
        font-size: 16px;
    }

    .firstview p {
        text-align: center;
        font-size: 14px;
        margin: 0px auto;
        width: 80vw;
        line-height: 24px;
    }

    .firstview p span {
        margin: 0;
        font-size: 12px;
    }

    .firstview ul {
        text-align: center;
        display: block;
        width: 95vw;
        margin: 40px auto 0;
        padding: 0;
    }

    .firstview ul li {
        margin-bottom: 64px;
    }

    .firstview ul li a {
        font-size: 16px;
        padding: 1em;
        background-color: #ffffff60;
    }
    .gallery {
        width: 90vw;
        margin: 40px auto;
    }
    .gallery h1 {
        font-size: 28px;
        backdrop-filter: none;
    }
}