html, body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    height: 100%;
    overflow: hidden;
}
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.left-pane {
  width: 50%;
  height: 100%;
  color: #fff;
  background: #2b2f33;
  padding: 10px;
  box-sizing: border-box;
/*  border-right: 5px solid #ccc; */
  overflow: hidden;
}

.right-pane {
  width: 50%;
  height: 100%;
/*  flex: 1; */
  background-color: #2b2f33;
  padding: 10px 10px 10px 0px;
  box-sizing: border-box;
  overflow: hidden;
}

.pdfarea {
  width: 100%;
  aspect-ratio: calc(210.0/(297.0 + 10.0));
  max-height: calc(100vh - 20px - 4px - 4px - 16pt);
  margin: auto;
  user-select: none; /* テキスト選択不可 */
  background: #e6e6e6;
  /*  border: 1px #fff; */
}

.logarea {
  width: 100%;
  aspect-ratio: calc(210.0/(297.0 + 10.0));
  max-height: calc(100vh - 20px - 4px - 4px - 16pt);
  margin: auto;
}

/* ボタンのスタイル */
.buttonRound {
  display: inline-block;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 24px;
  margin: 2px;
  padding: 4px 24px;
  font-family: sans-serif;
  font-size: 16px;
  color: #fff;
  text-align: center;
  overflow-wrap: anywhere;
  background-color: #6fa24a;
  border-radius: 24px; /* (buttonの高さ / 2) の値 */
  cursor: pointer;
  user-select: none; /* テキスト選択不可 */
}

@media (any-hover: hover) {
  .buttonRound {
    transition: background-color 0.2s;
  }    

  .buttonRound:hover {
    background-color: #8dc363;
  }

  .buttonRound:active {
    background-color: #54802f;
  }
}

/* タブのスタイル */
.tabs {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  white-space: nowrap;
/*   max-width: 600px; */
  margin: auto;
}

.tab-labels {
  display: flex;
  cursor: pointer;
  user-select: none; /* テキスト選択不可 */
  width: fit-content;
}

.tab-labels label {
  flex: 1;
  width: 100%;
  padding: 2px 24px;
  margin: 0px 1px 0px 0px;
  background: #4e545a;
  text-align: center;
  border-radius: 6px 6px 0px 0px;
  border-bottom: none;
  border-left: none;
  cursor: pointer;
  white-space: nowrap;  
}

.tab-labels label:hover {
  background: #6e747a;
}

input[type="radio"] {
  display: none;
}

.tab-content {
  border: none;
  padding: 0px;
  background: #ffffff;
  display: none;
}

#tab1:checked ~ .content #content1,
#tab2:checked ~ .content #content2{
  display: block;
}

#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"]{
  background: #fff;
  border-bottom: 1px solid #fff;
}

/* 行番号表示つきtextarea */
.editor-wrapper {
  position: relative;
  display: flex;
  border: 1px solid #ccc;
  font-family: monospace;
  height: 60vh;
  overflow: visible;
  overflow: hidden;
}

.line-numbers {
  position: relative;
  left: 0;
  top: 0;
  background-color: #f0f0f0;
  color: #666;
  padding-right: 5px;
  text-align: right;
  user-select: none;
  pointer-events: none;
  width: 40px;
  height: auto;
}

.editor {
  height: 100%;
  flex: 1;
  padding-left: 5px;
  border: none;
  resize: none;
  outline: none;
  font-size: 14px;
  line-height: 1.5;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #ffffff;
}

#mirror {
  visibility: hidden;
  position: absolute;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.5;
  padding-top: 0;
  width: calc(100% - 50px);
}

/* ファイルマネージャ関連 */
.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: monospace;
}

.file-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
}

.file-list li a {
  text-decoration: none;
  color: #333;
}

.file-list li:hover {
  background-color: #f0f0f0;
}

