@charset "UTF-8";
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
}

.viewer-panel {
  max-height: 70vh;
  overflow: auto;
}

.app {
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: 120px;
  background: #fff;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-header input[type=file] {
  width: 100%;
}

.page-list {
  overflow: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-btn {
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s;
}

.page-btn:hover {
  background: #f0f7ff;
}

.page-btn.active {
  background: #dbeafe;
  border-color: #60a5fa;
  font-weight: bold;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.toolbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#prevBtn, #nextBtn,
.toolbar input[type=number] {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.toolbar button {
  cursor: pointer;
}

.viewer-wrap {
  flex: 1;
  overflow: auto;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pdf-page-wrap {
  position: relative;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  margin-bottom: 24px;
}

canvas {
  display: block;
}

.textLayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 1;
  line-height: 1;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  transform-origin: 0 0;
  z-index: 2;
}

.textLayer span,
.textLayer br {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0 0;
}

.textLayer ::selection {
  background: rgba(0, 120, 215, 0.3);
}

.status {
  margin-left: auto;
  font-size: 14px;
  color: #555;
}

.empty {
  color: #666;
  background: #fff;
  padding: 24px;
  border: 1px dashed #ccc;
  border-radius: 12px;
}

.viewer-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column; /* これが重要 */
  align-items: center;
}

.textLayer {
  position: absolute;
  inset: 0;
  line-height: 1;
}

.textLayer span {
  position: absolute;
  white-space: pre;
  cursor: text;
}

.mtl-20 {
  margin-left: 10px;
}

.paragraph-list {
  height: 600px;
  overflow-y: auto;
}

.paragraph-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.paragraph-item:hover {
  background: #f5f5f5;
}

.paragraph-item.active {
  background: #dceeff;
}

.paragraph-index {
  font-weight: bold;
  margin-right: 6px;
}

.paragraph-text {
  font-size: 13px;
}

.diff-panel {
  font-family: monospace;
}

.diff-delete {
  background: #ffe4e4;
  color: #c00;
  font-weight: bold;
}

.diff-insert {
  background: #ffe4e4;
  color: #c20000;
  font-weight: bold;
}

.paragraph-diff {
  background: #ffe4e4;
  color: #c20000;
  font-weight: bold;
}

.paragraph-notfound {
  background: #ffff60;
  color: #a00000;
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
}

.diff-table td {
  border: 1px solid #ccc;
  padding: 8px;
  vertical-align: top;
  font-family: monospace;
  white-space: pre-wrap;
}

.diff-cell {
  white-space: pre-wrap;
  font-size: 80%;
  width: 50%;
  max-width: 50%;
}

/*# sourceMappingURL=style.css.map */
