/*------------------------------------
  オンライン面談のページ
-------------------------------------*/
#Skyway {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

#videoFiled {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.otherVideo {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  background: #fffcfc;
}

#myVideo-Items {
  width: 320px;
  min-width: 25%;
  margin-left: 1.5rem;
}

.userVideo {
  position: relative;
  width: 100%;
  font-size: 14px;
  line-height: 1.2;
  background: var(--lightGray);
}

.otherVideo > .userVideo:not(:only-child) {
  width: calc((100% - 0.8rem) / 2);
}

.otherVideo > .userVideo:nth-of-type(n + 3) {
  margin-top: 0.8rem;
}

.userVideo::before {
  content: "";
  display: block;
  padding-top: calc(9 / 16 * 100%);
}

.userVideo video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 1.5em);
  object-fit: cover;
}

#roomItem {
  margin-top: 2.5rem;
}

#chooseTalkMode {
  text-align: center;
}

#chooseTalkMode p {
  display: inline-block;
}

#chooseTalkMode .talkMode,
#js-room-id {
  background: var(--White);
  border: 1px solid var(--Gray);
  border-radius: 6px;
}

#chooseTalkMode .talkMode {
  padding: 3px 6px;
  font-size: calc(1em - 2px);
}
#chooseTalkMode .talkMode:not(.current) {
  background: var(--lightGray);
}

#js-room-id {
  display: block;
  width: 90%;
  max-width: 400px;
  padding: 0.5rem 1rem;
  margin: 1.5rem auto 0;
}

#talkButtons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto 0;
}

#talkButtons button {
  padding: 6px 20px;
  color: var(--White);
  line-height: 1;
  white-space: nowrap;
  border-radius: 0.5rem;
}
#talkButtons button#js-join-trigger {
  background: #2FA538;
}
#talkButtons button#js-leave-trigger {
  margin-left: 1rem;
  background: #BF2B10;
}

#talkButtons button i {
  font-size: 1rem;
  vertical-align: middle;
}
#talkButtons button#js-leave-trigger i {
  transform: rotate(135deg);
}

#talkButtons button span {
  margin-left: 4px;
  font-size: 0.75rem;
}

#messageField {
  width: calc(100% - (1rem + 1px) * 2);
  max-width: 960px;
  padding: 1rem;
  margin: 3rem auto 0;
  background: var(--lightPink);
  border-radius: 6px;
}

#messagePreviwe {
  width: calc(100% - 1rem * 2);
  height: 200px;
  padding: 1rem;
  border: 1px solid var(--Pink);
}

#js-messages {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
}

#messageInput {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.5rem;
}

#js-local-text {
  padding: 0.5rem 1rem;
  width: 400px;
  border: 1px solid var(--lightGray);
  border-radius: 6px;
}

#js-send-trigger {
  width: 80px;
  margin-left: 1rem;
  color: var(--White);
  text-align: center;
  background: var(--darkPink);
  border-radius: 6px;
}

#Skyway small#js-meta {
  margin-top: 3rem;
}



@media screen and (max-width: 799px) {
  #videoFiled {
    flex-direction: column;
  }

  #myVideo-Items {
    width: 100%;
    margin-left: unset;
  }

  .myVideo {
    width: 80%;
    max-width: 400px;
    margin: 1.5rem auto 0;
  }
}


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


  .otherVideo > .userVideo:not(:only-child) {
    width: 100%;
  }

  .otherVideo > .userVideo + .userVideo {
    margin-top: 0.8rem;
  }

  #chooseTalkMode {
    font-size: 14px;
  }

  #messageInput {
    flex-direction: column;
  }

  #js-local-text {
    width: calc(95% - 1rem * 2);
  }

  #js-send-trigger {
    margin-top: 1.2rem;
    margin-left: 0;
  }
}


@media screen and (max-width: 399px) {
  #js-local-text {
    width: calc(100% - 1rem * 2);
  }
}