body {
    margin: 0;
    font-family: sans-serif;
}

canvas {
    display: block;
    position: relative;
    z-index: 1;
}

.buttons {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    background-color: rgba(0, 255, 255, 0);
    border: solid 2px white;
    color: white;
    text-shadow: 1px 2px 3px #000000;
    box-shadow: 1px 2px 3px #000000a9;
    cursor: pointer;
}

.k1:hover {
    border: solid 2px aqua;
    color: aqua;
    text-shadow: 1px 2px 3px #ffffff;
    box-shadow: 1px 2px 3px #00e5ffa9;
}

.k1.active {
    border: solid 2px aqua;
    color: aqua;
    text-shadow: 1px 2px 3px #ffffff;
    box-shadow: 1px 2px 3px #00e5ffa9;
}

.k2:hover {
    border: solid 2px #ff0000;
    color: #ff0000;
    text-shadow: 1px 2px 3px #ffffff;
    box-shadow: 1px 2px 3px #ff0000a9;
}

.k2.active {
    border: solid 2px #ff0000;
    color: #ff0000;
    text-shadow: 1px 2px 3px #ffffff;
    box-shadow: 1px 2px 3px #ff0000a9;
}

#pc-link {
    display: block;
}

#phone-link {
    display: none;
}

h1 {
    font-family: 'Sawarabi Mincho';
    text-shadow: 1px 2px 3px #ffffff;
    top: 50%;
    width: 100%;
    /* text-align: center; */
    color: #333;
    z-index: 10;
}

.hed0 {
    height: 100vh;
    position: absolute;
    z-index: 99;
}

.hed0 h1 {
    margin-top: 50vh;
    margin-left: 10vh;
}

.view-taiou {
    position: fixed;
    top: 0;
    z-index: 99;
    width: 10%;
}

#update {
    font-size: 140%;
    text-align: center;
}

.main {
    padding-top: 2%;
}

.main p {
    padding-right: 2%;
}

#hz1 {
    color: white;
    text-shadow: none;
}

#pz1 {
    padding-bottom: 18%;
    margin-bottom: 0;
}

#hdeu {
    float: left;
    width: 45%;
    padding-right: 2%;
}

#gaiyou {
    background-color: #000000;
    color: white;
    background-image: url(../img/bg_head1.png);
    background-repeat: no-repeat;
    background-position: right top;
}

#dev {
    background-color: #dfdfdf;
    background-image: url(../img/bg_head1.png);
    background-repeat: no-repeat;
    background-position: right top;
    color: #333;
    text-shadow: #fff 2px 2px 2px;
    padding-bottom: 0%;
}

.devi {
    background-image: url(../img/dev2.png);
    background-size: 20%;
    background-repeat: no-repeat;
    background-position: right bottom;
    padding-bottom: 3%;
    padding-left: 5%;
    padding-bottom: 5%;
}

#hdeu {
    float: left;
    width: 45%;
}


#eng {
    background-image: url(../img/bg_head.png);
    background-repeat: no-repeat;
    background-position: right top;
    /* display: flex; */
    flex-wrap: wrap;
}

#eng video {
    float: right;
    width: 45%;
    margin-right: 4%;
}

#eng p {
    padding-left: 5%;
    padding-bottom: 5%;
    width: 40%;
}

#eng .r-logo {
    margin-left: -4%;
    margin-bottom: 1%;
    padding-right: 50%;
    width: 50%;
    float: none;
}

#ert {
    font-family: Orbitron;
}

.links {
    padding: 1% 1% 0% 1%;
    line-height: 5px;
    font-size: 120%;
    display: inline-block;
    color: #008eec;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    transition: color 0.3s ease;
}

.links::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #008eec;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease, transform-origin 0s;
}

.links:hover {
    /* color: #ddd; */
    font-weight: bold;
    /* text-shadow: 1px 3px 3px rgba(0, 2, 150, 0.712); */
}

.links:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.4s ease, transform-origin 0s;
}

@media screen and (max-width: 590px) {
    .hed0 {
        height: 0vh;
        position: relative;
        z-index: 99;
    }

    .hed0 h1 {
        margin-top: 80vh;
        margin-left: 0vh;
        position: absolute;
        width: 70%;
        right: 0%;
        bottom: 0%;
    }

    .view-taiou {
        right: 0%;
        width: 20%;
    }

    #pc-link {
        display: none;
    }

    #phone-link {
        display: block;
    }

    #hdeu {
        width: 94%;
        margin-top: 10%;
        padding: 3%;
    }

    #hz1,
    #pz1 {
        padding: 3%;
        width: 94%;
    }


    #eng .r-logo {
        padding-top: 15%;
        width: 100%;
        padding-right: 0;
    }

    #eng video {
        float: right;
        width: 91%;
        margin-right: 4%;
    }

    #eng p {
        padding-left: 5%;
        padding-bottom: 5%;
        width: 92%;
    }
}