/* 【最新版のlogarea.css】 */

/* デフォルト（PC・ノート・大型画面） */
#logArea {
  display: block;
  flex-direction: column;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 65vw;
  max-width: 900px;
  min-width: 0;
  min-height: 0;
  max-height: 85vh;
  background: rgba(32,32,32);
  color: #fff;
  border-radius: 22px;
  /* z-index: 20; */
  box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.4);
  font-size: 48px;
  bottom: 5vh;
  overflow: hidden;
}

/* ログエリアサイズ切替（親にだけ指定） */
.logarea-large #logArea {
  height: 85vh;
  min-height: 85vh;
  max-height: 85vh;
}
.logarea-medium #logArea {
  height: 55vh;
  min-height: 55vh;
  max-height: 55vh;
}
.logarea-small #logArea {
  height: 25vh;
  min-height: 25vh;
  max-height: 25vh;
}


/* その他サブスタイル（スクロール/注意書き領域などは既存でOK） */
.logAreaScroll {
  max-width: 100%;
  height: 100%;
  overflow-y: auto;
  display: block;
}

.logText {
  display: flex;
  flex-direction: column;
  padding: 0 14px 0 14px;
}

/* 注意書きエリア */
#transcribeNotice {
  width: 65vw;
  max-width: 900px;
  margin: 0px auto 0;
  padding: 0px 0px;
  font-size: 15px;
  line-height: 1.6;
  color: #ffffff;
  border-radius: 8px;
  text-align: center;
  z-index: 998;
}


/* タブレット/iPad縦持ち */
@media (max-width: 950px) and (orientation: portrait) {
  #logArea {
    width: 85vw;
    max-width: 650px;
    max-height: 80vh;
    border-radius: 18px;
    font-size: 48px;
  }
  .logarea-large #logArea {
    height: 80vh !important;
    min-height: 80vh !important;
    max-height: 80vh !important;
  }
  #transcribeNotice {
    width: 85vw;
    max-width: 700px;
  }
}


/* iPad横持ち・小型ノートPC対応 */
@media (max-width: 1366px) and (orientation: landscape) {
  #logArea {
    width: 65vw;
    max-width: 650px;
    max-height: 80vh;
    border-radius: 20px;
    font-size: 48px;
  }
  .logarea-large #logArea {
    height: 80vh !important;
    min-height: 80vh !important;
    max-height: 80vh !important;
  }
  #transcribeNotice {
    width: 80vw;
    max-width: 800px;
  }
}


/* スマホ大きめ */
@media (max-width: 768px) {
  #logArea {
    width: 95vw;
    max-width: 500px;
    max-height: 68vh;
    font-size: 34px;
    border-radius: 14px;
  }
  .logarea-large #logArea {
    height: 68vh !important;
    min-height: 68vh !important;
    max-height: 68vh !important;
  }
  #transcribeNotice {
    width: 95vw;
    max-width: 500px;
    font-size: 12px;
  }
}


/* スマホ小さめ */
@media (max-width: 600px) and (orientation: portrait) {
  #logArea {
    width: 95vw;
    max-width: 500px;
    max-height: 68vh;
    font-size: 34px;
    border-radius: 14px;
  }
  .logarea-large #logArea {
    height: 68vh !important;
    min-height: 68vh !important;
    max-height: 68vh !important;
  }
  #transcribeNotice {
    width: 95vw;
    max-width: 500px;
    font-size: 12px;
  }
}

@media screen and (orientation: landscape) and (max-width: 900px) {
  #logArea {
    width: 65vw;
    max-width: 650px;
    max-height: 80vh;
    border-radius: 20px;
    font-size: 48px;
  }
  .logarea-large #logArea {
    height: 52vh !important;
    min-height: 52vh !important;
    max-height: 52vh !important;
  }
  .logarea-medium #logArea {
    height: 45vh !important;
    min-height: 45vh !important;
    max-height: 45vh !important;
  }
  .logarea-small #logArea {
    height: 35vh !important;
    min-height: 35vh !important;
    max-height: 35vh !important;
  }
  #transcribeNotice {
    width: 80vw;
    max-width: 800px;
    font-size: 12px;
  }
}


/* スクロールバー装飾（必要ならラッパーにも適用） */
.logAreaScroll::-webkit-scrollbar {
  width: 7px !important;
  background: rgba(32,32,32) !important;
}
.logAreaScroll::-webkit-scrollbar-thumb {
  background: #888 !important;
  border-radius: 9px !important;
  border: none !important;
}
