@charset "UTF-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    width: 100%;
    height: 100dvh;
    display: block;
    background-image: url(../images/back-image.jpg);
    background-size: cover;
    font-family: 'Arial', sans-serif;
    z-index: 0;
}

body::before {
    content: '';
    background: inherit;
    /*.bgImageで設定した背景画像を継承する*/
    -webkit-filter: blur(3px);
    -moz-filter: blur(3px);
    -o-filter: blur(3px);
    -ms-filter: blur(3px);
    filter: blur(3px);
    position: absolute;
    /*ブラー効果で画像の端がボヤけた分だけ位置を調整*/
    inset: 0;
    z-index: -1;
    /*重なり順序を一番下にしておく*/
}

header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 9dvh;
    z-index: 100;
}

#navBar {
    margin-left: 10px;
}

#navBar div {
    width: 30px;
    border: 2px solid #000;
    box-shadow: 0 0 0 1px white;
    margin: 8px;
}

#wrap {
    width: 100%;
    height: 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-end;
}

#closeBtn {
    width: fit-content;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

#closeBtn div:nth-child(1),
#closeBtn div:nth-child(2) {
    width: calc(30px * 1.414);
    border: 2px solid #000;
    margin: -2px;
    position: relative;
    top: 50%;
}

#closeBtn div:nth-child(1) {
    rotate: -45deg;
}

#closeBtn div:nth-child(2) {
    rotate: 45deg;
}

aside {
    position: absolute;
    top: 0;
    left: -100%;
    overflow: hidden;
    width: 100%;
    height: inherit;
    display: flex;
    z-index: 1000;
}

.menu {
    width: 30%;
    height: 100%;
    background-color: #929292;
}

#bg {
    width: 70%;
    height: 100%;
}

aside.show {
    animation: slideIn 0.7s forwards;
}

aside.hide {
    animation: slideOut 1s forwards;
}

@keyframes slideIn {
    0% {
        left: -100%
    }

    100% {
        left: 0;
    }
}

@keyframes slideOut {
    0% {
        left: 0;
    }

    100% {
        left: -100%;
    }
}

header img {
    width: 50px;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0));
}

.profile a {
    display: flex;
    align-items: center;
    background-color: white;
    color: black;
    text-decoration: none;
    border: 3px solid black;
    border-radius: 100px;
    gap: 10px;
    padding-right: 10px;
}

.profile a:hover {
    background-color: lightgrey;
}

.profile a.gest {
    pointer-events: none;
}

@media screen and (max-width: 500px),
screen and (max-height: 480px) {
    body {
        background-position: 1000px;
    }

    .menu {
        width: 60%;
    }

    #bg {
        width: 40%;
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    body {
        min-height: auto;
        height: auto;
        background-position: 0 0;
        position: static;
    }

    body::before {
        background-position: 0 0;
    }

    .menu {
        width: 30%;
    }

    #bg {
        width: 70%;
    }

    .container {
        flex-direction: column;
        justify-content: flex-start;
        padding: 20px;
    }

    .card {
        min-height: auto;
        translate: 0;
    }
}