﻿body {
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
  background: #ffffff;
  font-family: Arial, 'Yu Gothic', 'Meiryo', sans-serif;
}

.excel-page {
  position: relative;
  background: #ffffff;
}

.excel-cell {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  padding: 2px 4px;
  white-space: pre-wrap;
  z-index: 10;
  overflow: hidden;
}

.normal-cell {
  border: none;
}

.table-cell {
  background-clip: padding-box;
}

.excel-image {
  position: absolute;
  object-fit: contain;
  z-index: 100;
}
.excel-cell a {
  color: inherit;
  font: inherit;
  text-decoration: inherit;
}

.excel-image-preview {
  position: absolute;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.excel-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1vh 1vw;
}

.image-preview-overlay.is-active {
  display: flex;
}

.image-preview-target {
  width: 98vw;
  height: 98vh;
  object-fit: contain;
  background: #fff;
}

.excel-image-preview {
  position: absolute;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 200;
}

@media screen and (max-width: 768px) {
  body {
    padding: 8px;
  }
}

