html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
}
#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}
#unity-canvas {
    width: 100%;
    height: 100%;
    background: transparent;
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 10;
}
#loading-logo {
    position: absolute;
    top: 35vh;
    left: 50%;
    transform: translateX(-50%);
    width: 20vw;
    height: auto;
    z-index: 1;
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 85vh;
    position: relative;
    width: 80%;
}
#loading-text {
    position: absolute;
    bottom: calc(15vh + 0px);
    right: 10%;
    width: 25vw;
    height: auto;
    object-fit: contain;
    display: block;
    z-index: 2;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 80%;
}
#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}
.light #unity-progress-bar-empty {
    border-color: black;
}
.light #unity-progress-bar-full {
    background: black;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(0, 0, 0, 0.2);
  border-right: 1.1em solid rgba(0, 0, 0, 0.2);
  border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}
@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#banner1, #banner2 {
    display: none;
}

/* スマホ用スタイル */
@media screen and (max-width: 768px) {
    #loading-text {
        display: none !important;
    }
    #unity-loading-bar {
        display: none !important;
    }
    #loading-logo {
        width: 50vw !important;
    }
    #banner2 {
        display: block;
        position: absolute;
        bottom: 5vh;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 2;
    }
    #banner1 {
        display: block;
        position: absolute;
        bottom: calc(2vh + 2vh);
        left: 0;
        width: 100%;
        height: auto;
        z-index: 2;
        transform: translateY(calc(-100% - 2vh));
    }
}


