/* sheet.scss */
button {
  border: none;
}

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

body.siteWide-BodyAction_Fixed {
  position: fixed;
  width: 100%;
}

@keyframes SheetBackgroundAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-webkit-keyframes SheetBackgroundAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes SheetAreaAnimation {
  0% {
    bottom: -100%;
  }
  20% {
    bottom: -100%;
  }
  100% {
    bottom: 0;
  }
}
@-webkit-keyframes SheetAreaAnimation {
  0% {
    bottom: -100%;
  }
  20% {
    bottom: -100%;
  }
  100% {
    bottom: 0;
  }
}
.sheet {
  -webkit-animation: SheetAreaAnimation 0.3s ease-out;
  animation: SheetAreaAnimation 0.3s ease-out;
  bottom: 0;
  position: fixed;
  width: 100%;
  z-index: 10000;
  font-size: 14px;
  background-color: #fff;
}
.sheet:after {
  -webkit-animation: SheetBackgroundAnimation 0.2s linear;
  animation: SheetBackgroundAnimation 0.2s linear;
  opacity: 1;
  content: "";
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.4);
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
  -webkit-transition: all 0.2s ease;
}

.sheet-header, .sheet-description, .sheet-contents, .sheet-footer {
  position: relative;
  z-index: 10001;
  background-color: #fff;
}

.sheet-description {
  padding: 12px 12px 6px;
  line-height: 1.2;
}

.sheet-contents {
  max-height: 220px;
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
}
.sheet-contents .sheetContent {
  box-align: center;
  -webkit-flex-align: center;
  flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.sheet-contents .sheetContent .sheetContent-text {
  overflow: hidden;
  display: table-cell;
  font-size: 14px;
  line-height: 44px;
  max-height: 44px;
}

.vertical.sheet-contents .sheetContent {
  display: -webkit-box;
  display: flex;
}
.vertical.sheet-contents .sheetContent .sheetContent-icon {
  display: block;
  -webkit-box-flex: 0;
  width: 44px;
  height: 44px;
  padding: 13px;
}
.vertical.sheet-contents .sheetContent .sheetContent-icon svg {
  width: 18px;
  height: 18px;
  fill: #4a4a4a;
}
.vertical.sheet-contents .sheetContent .sheetContent-text {
  -webkit-box-flex: 0;
}
.vertical.sheet-contents .sheetContent a.sheetContent-text {
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
  color: #333;
  font-size: 14px;
}

.horizontal.sheet-contents {
  display: -webkit-box;
  display: flex;
  padding: 8px;
}
.horizontal.sheet-contents .sheetContent {
  -webkit-box-flex: 0;
  display: block;
  width: 28%;
  min-width: 96px;
  height: 100%;
  padding: 8px;
}
.horizontal.sheet-contents .sheetContent[aria-disabled="true"] {
  opacity: .3;
}
.horizontal.sheet-contents .sheetContent[aria-disabled="true"] .sheetContent-icon span {
  box-shadow: none;
}
.horizontal.sheet-contents .sheetContent-icon {
  display: block;
  width: 60px;
  height: 60px;
  min-height: 60px;
  margin: 0 auto 4px;
  text-align: center;
}
.horizontal.sheet-contents .sheetContent-icon span {
  display: inline-block;
  width: 60px;
  height: 60px;
  background-repeat: no-repeat;
  background-size: 60px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}
.horizontal.sheet-contents .sheetContent-icon .iOSAppIcon, .horizontal.sheet-contents .sheetContent-icon .androidAppIcon, .horizontal.sheet-contents .sheetContent-icon .nicoboxIcon {
  background-image: url(../assets/img/icon_app.png);
}
.horizontal.sheet-contents .sheetContent-icon .iOSAppIcon {
  background-position: 0 0;
}
.horizontal.sheet-contents .sheetContent-icon .androidAppIcon {
  background-position: 0 -60px;
}
.horizontal.sheet-contents .sheetContent-icon .nicoboxIcon {
  background-position: 0 -120px;
}
.horizontal.sheet-contents .sheetContent-icon .twitterIcon, .horizontal.sheet-contents .sheetContent-icon .facebookIcon, .horizontal.sheet-contents .sheetContent-icon .lineIcon {
  background-image: url(../assets/img/icon_share.png);
}
.horizontal.sheet-contents .sheetContent-icon .twitterIcon {
  background-position: 0 0;
}
.horizontal.sheet-contents .sheetContent-icon .facebookIcon {
  background-position: 0 -60px;
}
.horizontal.sheet-contents .sheetContent-icon .lineIcon {
  background-position: 0 -120px;
}
.horizontal.sheet-contents .sheetContent-icon svg {
  width: 60px;
  height: 60px;
}
.horizontal.sheet-contents .sheetContent-text {
  color: #333;
  text-align: center;
  font-size: 14px;
  overflow: hidden;
  display: block;
  display: -webkit-box;
  max-height: 30.8px;
  font-size: 14px;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.sheet-header {
  padding: 12px;
  border-bottom: 1px solid #f1f1f1;
}
.sheet-header .sheet-title {
  overflow: hidden;
  display: block;
  display: -webkit-box;
  max-height: 47.6px;
  font-size: 14px;
  line-height: 1.2;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  font-weight: bold;
}

.sheet-footer button {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  background-color: #fff;
  color: #333;
  border-top: 1px solid #f1f1f1;
  font-size: 14px;
  text-align: center;
}

.sheet-header .videoSheet-caption {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}
.sheet-header .videoSheet-meta .videoSheet-title {
  overflow: hidden;
  display: block;
  display: -webkit-box;
  max-height: 47.6px;
  font-size: 14px;
  line-height: 1.2;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  font-weight: bold;
}
.sheet-header .videoSheet-meta .videoSheet-uploader {
  margin-top: 6px;
  display: -webkit-box;
  display: flexbox;
  display: flex;
  box-align: center;
  -webkit-flex-align: center;
  flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.sheet-header .videoSheet-meta .videoSheet-uploader img {
  -webkit-box-flex: 0;
  display: block;
  width: 28px;
  height: 28px;
  margin-right: 6px;
}
.sheet-header .videoSheet-meta .videoSheet-uploader .videoSheet-uploaderName {
  -webkit-box-flex: 0;
  color: #333;
  overflow: hidden;
  display: block;
  display: -webkit-box;
  max-height: 28px;
  font-size: 14px;
  line-height: 1;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

@-webkit-keyframes toastPop {
  0% {
    bottom: -100%;
  }
  100% {
    bottom: 0;
  }
}
@keyframes toastPop {
  0% {
    bottom: -100%;
  }
  100% {
    bottom: 0;
  }
}
.toast {
  position: fixed;
  z-index: 10005;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 46px;
  padding: 16px;
  text-align: center;
  box-sizing: border-box;
  -webkit-animation: toastPop 1s ease-out;
  animation: toastPop 1s ease-out;
}
.toast.success {
  background-color: #33BB44;
}
.toast.error {
  background-color: #E94649;
}
.toast .toast-message {
  font-size: 14px;
  line-height: 1;
  color: #fff;
}

@-webkit-keyframes loadingRotate {
  0% {
    -webkit-transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes loadingRotate {
  0% {
    -webkit-transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes loadingFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .2;
  }
  100% {
    opacity: 1;
  }
}
@keyframes loadingFade {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .2;
  }
  100% {
    opacity: 1;
  }
}
.loading {
  position: absolute;
  z-index: 10002;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
}

.loading-dots {
  position: absolute;
  z-index: 10003;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 48px;
  height: 48px;
  margin: auto;
  -webkit-animation: loadingFade, loadingRotate .8s linear infinite;
  animation: loadingFade, loadingRotate .8s linear infinite;
}
.loading-dots span {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
}
.loading-dots span.loading-dot1 {
  top: 3px;
  left: 19px;
  background-color: #333;
}
.loading-dots span.loading-dot2 {
  top: 7px;
  left: 30px;
}
.loading-dots span.loading-dot3 {
  top: 19px;
  left: 35px;
}
.loading-dots span.loading-dot4 {
  top: 30px;
  left: 30px;
}
.loading-dots span.loading-dot5 {
  top: 35px;
  left: 19px;
  background-color: #cacaca;
}
.loading-dots span.loading-dot6 {
  top: 30px;
  left: 8px;
  background-color: #979797;
}
.loading-dots span.loading-dot7 {
  top: 19px;
  left: 3px;
  background-color: #676767;
}
.loading-dots span.loading-dot8 {
  top: 7px;
  left: 8px;
  background-color: #343434;
}

@media only screen and (orientation: landscape) {
  .sheet {
    max-height: 231px;
  }
  .sheet .sheet-header .videoSheet-meta {
    display: -webkit-box;
    display: flex;
  }
  .sheet .sheet-header .videoSheet-meta .videoSheet-title {
    -webkit-box-flex: 0;
    width: 60%;
    max-width: 400px;
    overflow: hidden;
    display: block;
    display: -webkit-box;
    max-height: 30.8px;
    font-size: 14px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
  }
  .sheet .sheet-header .videoSheet-meta .videoSheet-uploader {
    -webkit-box-flex: 0;
    display: block;
    display: -webkit-box;
    width: 40%;
    max-width: 208px;
    margin-top: 0;
    margin-left: 10px;
  }
  .sheet .sheet-header .videoSheet-meta .videoSheet-uploader .videoSheet-uploaderThumbnail,
  .sheet .sheet-header .videoSheet-meta .videoSheet-uploader .videoSheet-uploaderName {
    display: inline-block;
    vertical-align: middle;
  }
  .sheet .sheet-header .videoSheet-meta .videoSheet-uploader .videoSheet-uploaderName {
    max-width: 174px;
    -webkit-line-clamp: initial;
  }
  .sheet .sheet-contents {
    display: flex;
    flex-wrap: wrap;
    max-height: 130px;
  }
  .sheet .vertical.sheet-contents .sheetContent {
    width: 50%;
  }
  .sheet .horizontal.sheet-contents .sheetContent {
    width: 20%;
  }
}
