@charset 'UTF-8';

.err__image__content {
    width: 100vw;
    height: 100%;
}

.err__image__content img {
    width: 100%;
    height: 100vh; /* 画像の高さを自動調整 */
}

.err__container {
    width: 100%;    
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.err__text {
    margin:  0 auto;
}

.err__text p {
    font-size: 20px;
    text-align: center;
    font-weight: 800;
}

.err__subtext {
    padding-top: 40px;
}

.top__link {
    width: 100%;
    text-align: center;
    padding-top: 50px;
}

.top__link button {
    border-radius: 40px;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);    
    border: none;
    background-color: #FFFFFF;
    transition: all cubic-bezier(.73,0,.83,1)  .2s;
    
}

.top__link button:hover {
    box-shadow: none;
}

.top__link button a {
    text-decoration: none;
    padding: 15px 100px 15px 100px; 
    color: #333333;
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    border-radius: 40px;
}

.top__link button a p {
    font-weight: 800;
}

.top__link button a:hover {
    color: #FFFFFF;
    
}

.top__link button a::before {
    content: "";
    width: 200%;
    height: 200%;
    position: absolute;
    top: 0;
    left: -50%;
    z-index: -1;
    background: linear-gradient(to bottom right, #009ED3, #007FAA, #056187, #005EAC, #0459A0); /* 斜めのグラデーション */
    transform: rotate(45deg); 
    transform-origin: 0 0;
    transition: all cubic-bezier(.73,0,.83,1)  .2s;
}

.top__link button a:hover::before {
    transform: rotate(0);
}

@media screen and (max-width: 450px) {

    .err__text p {
        font-size: 16px;
    }

    .err__subtext p {
        font-size:14px;
    }
}
