/*----------------------------------------------------
  base  
----------------------------------------------------*/
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  color: #000000;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "palt" 1;
  background: #0ca5df url(../img/bg01.png) no-repeat center center;
  background-size: cover;
  position: relative;
}
@media screen and (max-width: 799px) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media screen and (max-width: 799px) and (min-height: 451px) {
  body {
    height: 100dvh;
    background-image: url(../img/bg02.png);
  }
}
@media screen and (max-width: 549px) {
  body {
    font-size: 14px;
  }
}
body.spUser {
  width: 100dvw;
  overflow: hidden;
}

img {
  vertical-align: top;
  max-width: 100%;
}

/*----------------------------------------------------
  content
----------------------------------------------------*/
#debug {
  position: fixed;
  left: 20px;
  top: 10px;
  font-size: 12px;
  z-index: 2;
  display: none !important;
}

#container {
  min-width: 320px;
  z-index: 2;
  height: 100dvh;
  -js-display: flex;
  max-width: 100dvw;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
@media screen and (max-width: 799px) {
  #container {
    flex-direction: column;
    justify-content: center;
  }
}
@media screen and (max-height: 450px) {
  #container {
    width: 100dvw;
    flex-direction: row;
    justify-content: center;
  }
}

#movie {
  width: 100%;
  max-height: calc(100vh - 100px);
  flex-grow: 1;
  -js-display: flex;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
@media screen and (max-width: 799px) {
  #movie {
    flex-grow: unset;
  }
}
@media screen and (max-height: 450px) {
  #movie {
    max-height: calc(100dvh - 20px);
    flex-grow: inherit;
    width: auto;
  }
}
@media screen and (max-height: 450px) and (max-width: 799px) {
  #movie {
    flex-grow: 1;
  }
}

.main {
  width: 100%;
  padding: 0;
  margin: 0px auto;
  min-height: 400px;
  max-height: calc(100dvh - 20px);
  height: 100%;
  aspect-ratio: 15.9/9;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid #ffffff;
  background-color: black;
}
@media screen and (min-width: 1630px) {
  .main {
    width: auto;
    height: calc(100dvh - 20px);
  }
}
@media screen and (max-width: 1229px) {
  .main {
    width: 100%;
    height: auto;
  }
}
@media screen and (max-width: 939px) {
  .main {
    width: 100%;
    min-height: 200px;
  }
}
@media screen and (max-width: 799px) {
  .main {
    margin-bottom: 35px;
  }
}
@media screen and (max-height: 450px) {
  .main {
    margin: 20px auto 20px auto;
    height: calc(100dvh - 20px);
    min-height: 0;
    width: auto;
    max-width: 100%;
  }
}
@media screen and (max-height: 450px) and (max-width: 799px) {
  .main {
    height: auto;
    width: 100%;
  }
}

/*----------------------------------------------------
  #control
----------------------------------------------------*/
#control {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 10px;
  margin-right: 20px;
  margin-left: 10px;
  border-radius: 10px;
}
@media screen and (max-width: 799px) {
  #control {
    flex-direction: column;
    padding: 30px 20px 30px;
    width: 96%;
    margin: 0 auto;
    border-radius: 10px;
    justify-content: space-between;
  }
}
#control #btList {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}
@media screen and (max-width: 799px) {
  #control #btList {
    width: 267px;
    margin: -30px 0 40px;
    flex-wrap: wrap;
    flex-direction: row;
  }
}
#control #btList li {
  margin-bottom: 15px;
}
@media screen and (max-width: 799px) {
  #control #btList li {
    margin-top: 30px;
    margin-bottom: 0px;
  }
}
#control #btList li .bt {
  display: block;
  position: relative;
  width: 5vw;
  height: 5vw;
  max-width: 70px;
  max-height: 70px;
  min-width: 50px;
  min-height: 50px;
}
@media screen and (max-width: 799px) {
  #control #btList li .bt {
    width: 70px;
    height: 70px;
  }
}
#control #btList li .bt::after {
  content: "";
  width: 100%;
  height: 100%;
  top: 6px;
  border-radius: 10px;
  position: absolute;
  background-color: #be3fb9;
}
#control #btList li .bt .wrap {
  z-index: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ff57f8;
  border-radius: 10px;
  background-color: #ffffff;
  width: 100%;
  height: 100%;
}
@media screen and (min-width: 800px) {
  #control #btList li .bt .wrap:hover {
    top: 4px;
  }
}
#control #btList li .bt img {
  width: 72%;
}
#control #btList li .btImg::after {
  border-radius: 40%;
  background-color: #05587C;
  top: 5px;
}
#control #btList li .btImg .wrap {
  background-color: transparent;
  border-width: 0;
  border-radius: 20px;
}
#control #btList li .btImg .wrap img {
  width: 100%;
}
#control #btList li .bt2::after {
  background-color: #d88501;
}
#control #btList li .bt2.btImg::after {
  background-color: #A33E5D;
}
#control #btList li .bt2 .wrap {
  border-color: #fda603;
}
#control #btList li .bt3::after {
  background-color: #2197cc;
}
#control #btList li .bt3.btImg::after {
  background-color: #DB7519;
}
#control #btList li .bt3 .wrap {
  border-color: #29c0f8;
}
#control #btList li .bt4::after {
  background-color: #005a0e;
}
#control #btList li .bt4.btImg::after {
  background-color: #BC2034;
}
#control #btList li .bt4 .wrap {
  border-color: #019415;
}
#control #btList li .bt5::after {
  background-color: #e8af00;
}
#control #btList li .bt5.btImg::after {
  background-color: #CC5606;
}
#control #btList li .bt5 .wrap {
  border-color: #fcc924;
}
#control #btList li .bt6::after {
  background-color: #e21f1e;
}
#control #btList li .bt6.btImg::after {
  background-color: #1E6805;
}
#control #btList li .bt6 .wrap {
  border-color: #ff2e48;
}
#control #display {
  margin-top: 5px;
}
@media screen and (max-width: 799px) {
  #control #display {
    -js-display: flex;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
  }
}
#control #display .title {
  line-height: 120%;
  font-size: 12px;
  width: auto;
  text-align: center;
}
@media screen and (max-width: 799px) {
  #control #display .title {
    margin-right: 16px;
    padding-top: 5px;
  }
}
#control #display .switch {
  margin-top: 5px;
  background-color: #fd4c8d;
  width: 65px;
  height: 30px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 0 5px;
  transition: 0.6s;
  box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
#control #display .switch .status {
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  display: block;
  text-align: center;
  width: calc(100% - 22px);
  transition: 0.6s;
}
@media screen and (max-width: 799px) {
  #control #display .switch .status {
    width: calc(100% - 3px - 22px);
    font-size: 11px;
  }
}
#control #display .switch::after {
  content: "";
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 11px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  transition: 0.3s;
  right: auto;
  left: auto;
}
@media screen and (max-width: 799px) {
  #control #display .switch::after {
    width: 22px;
    height: 22px;
  }
}
@media screen and (min-width: 800px) {
  #control #display .switch:hover::after {
    right: 5px;
  }
}
#control #display .switch.off {
  background-color: #e3e3e0;
  flex-direction: row-reverse;
}
#control #display .switch.off .status {
  color: #666;
}
@media screen and (min-width: 800px) {
  #control #display .switch.off:hover::after {
    left: 5px;
    right: auto;
  }
}

/*----------------------------------------------------
  .spUser 
----------------------------------------------------*/
.spUser #spMode {
  display: inline;
}
@media screen and (max-height: 450px) {
  .spUser #spMode::after {
    content: " landscape";
  }
}

@media screen and (max-height: 450px) {
  .spUser #container {
    padding: max(env(safe-area-inset-right, 0px)) max(env(safe-area-inset-bottom, 0px));
  }
}

@media screen and (max-height: 450px) {
  #control {
    width: auto;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    height: calc(100dvh - 20px);
    margin: 0 10px 0 0;
    border-radius: 10px;
  }
}
@media screen and (max-height: 450px) {
  #control #btList {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100px;
    max-width: 100px;
    margin: -8px 0 20px;
  }
}
@media screen and (max-height: 450px) {
  #control #btList li {
    margin: 10px 0 0;
  }
}
@media screen and (max-height: 450px) {
  #control #btList li .bt {
    width: 43px;
    height: 43px;
    min-width: 0;
    min-height: 0;
  }
}
@media screen and (max-height: 450px) {
  #control #display {
    margin-left: 0;
  }
}
@media screen and (max-height: 450px) {
  #control #display .title {
    line-height: 120%;
    margin-right: 8px;
    font-size: 10px;
    width: auto;
    padding: 5px 0 2px;
  }
}
@media screen and (max-height: 450px) and (min-width: 800px) {
  #control #display .title {
    margin-right: 0px;
  }
}
@media screen and (max-height: 450px) {
  #control #display .switch {
    margin: 0 auto;
    width: 65px;
    height: 30px;
  }
  #control #display .switch::after {
    width: 22px;
    height: 22px;
    left: auto !important;
    right: auto !important;
  }
  #control #display .switch .status {
    font-size: 12px;
    width: calc(100% - 5px - 22px);
  }
}

/*----------------------------------------------------
  other
----------------------------------------------------*/
:root {
  --iconsize: 20%;
}

#emoteArea {
  height: 100%;
}

.movieWrap {
  position: relative;
  height: 100%;
  padding-left: 56.25%;
  overflow: hidden;
}

.movieWrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bottom-emote {
  position: absolute;
  width: auto;
  height: var(--iconsize);
}

.bottom-emote-animation {
  animation-name: bottom-emote-animation;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

/*----------------------------------------------------
  keyframes
----------------------------------------------------*/
@keyframes bottom-emote-animation {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 0.99;
    transform: translateY(calc(0px - var(--iconsize) * 2));
  }
  100% {
    opacity: 0;
    transform: translateY(0.01);
  }
}
.top-emote {
  position: absolute;
  width: auto;
  height: var(--iconsize);
}

.top-emote-animation {
  animation-name: top-emote-animation;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

@keyframes top-emote-animation {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 0.99;
    transform: translateY(calc(var(--iconsize) * 2));
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}
.left-emote {
  position: absolute;
  width: auto;
  height: var(--iconsize);
}

.left-emote-animation {
  animation-name: left-emote-animation;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

@keyframes left-emote-animation {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  20% {
    opacity: 0.99;
    transform: translateX(calc(var(--iconsize) * 2));
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}
.right-emote {
  position: absolute;
  width: auto;
  height: var(--iconsize);
}

.right-emote-animation {
  animation-name: right-emote-animation;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

@keyframes right-emote-animation {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  20% {
    opacity: 0.99;
    transform: translateX(calc(0px - var(--iconsize) * 2));
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}
