.wrap_img {
  overflow: hidden;
}

.prev_area {
  position: relative;
  margin: auto;
  width: 100vw;
  background: rgb(235, 235, 235);
  overflow: hidden;
}

.prev_area_pc {
  height: 100%
}

.prev_area_mobile {
  height: calc(100vh - clamp(4.8rem, 2vw, 6rem));
}

.content_area {
  position: relative;
}

.img_def {
  cursor: pointer;
  background-color: white;
  user-select: none;
  position: absolute;
  /* user-drag: none; */
  -webkit-user-drag: none;
  -moz-user-select: none;
}

.drag_input {
  position: absolute;
}


/* --------------- 画像内入力項目関連のスタイル --------------- */
.formatInput {
  font-size: 8pt;
}

/* セレクトボックス */
select.formatInput {
  /* デフォルトの矢印を非表示にする */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* オリジナルの矢印画像を設定する */
  background-image: url(../img/select_arrow_gray.png);
  background-size: 10px 10px, 20px 10px;
  /* 右側真ん中に表示する */
  background-position: right 5% bottom 50%;
  background-repeat: no-repeat;
}

/* セレクトボックス */
select.formatInput.tooltip {
  /* デフォルトの矢印を非表示にする */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* オリジナルの矢印画像を設定する */
  background-image: url(../img/select_arrow_gray.png), linear-gradient(-45deg, #f00 5px, transparent 0);
  background-size: 10px 10px, 20px 10px;
  /* 右側真ん中に表示する */
  background-position: right 5% bottom 50%, right 0% bottom 0%;
  background-repeat: no-repeat;
}

/* テキストエリア */
textarea.formatInput {
  /* テキストエリアの拡大・縮小を無効にする */
  resize: none;
}

/* インプットボックス（type="time" or type="date"） */
input.formatInput.icon-delete::-webkit-calendar-picker-indicator {
  display: none;
}

/* インプットボックス（type="number"） */
input[type="number"].formatInput,
input[type="text"][inputmode="decimal"].formatInput {
  text-align: right;
}

input[type="number"].formatInput::-webkit-inner-spin-button,
input[type="number"].formatInput::-webkit-outer-spin-button {
  /* スピンボックスを非表示にする */
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Google Chrome でも 10px 以下の文字サイズで表示されるように scale を指定する */
/* input[type="time"].formatInput::-webkit-datetime-edit-hour-field,
input[type="time"].formatInput::-webkit-datetime-edit-text,
input[type="time"].formatInput::-webkit-datetime-edit-minute-field {
    display: inline-block;
    transform: scale(0.6);
    padding: 1px 0;
} */

/* インプットボックス（type="file"） */
.input {
  display: none;
}

.uploadArea {
  border: 1px solid #000;
  /* background-color: #dcdcdc; */
  background-color: #FFFFAA;
  /* position:relative; */
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.imageArea {
  background-color: #FFFFAA;
  position: relative;
  display: none;
  width: 97%;
  height: 97%;
  min-height: 24px;
}

.uploadButton {
  position: absolute;
  border-radius: 30%;
}

.fileDeleteButton {
  width: 24px;
  height: 24px;
  background: url(../img/close_gray.svg);
  border-radius: 50%;
  border: 1px solid transparent;
  font-size: 0;
  cursor: pointer;
}

.uploadFileArea {
  width: 100%;
  height: 100%;
  background: #FFFFAA;
  text-align: center;
  margin: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uploadLink {
  font-size: 1.4rem;
  letter-spacing: 0.2rem;
  cursor: pointer;
  color: rgb(52, 152, 219);
  align-self: center;
  text-decoration: none;
}

.img {
  object-fit: contain;
  padding-top: 5px;
  min-width: 50%;
  max-width: 90%;
  min-height: auto;
  max-height: 90%;
}

/* 読み取りモード時の写真エリア（読み取り専用表示 + 操作不可） */
.uploadArea.readonly-upload,
.uploadArea.readonly-upload .imageArea,
.uploadArea.readonly-upload .uploadFileArea {
  background-color: var(--readonly-color) !important;
}

.uploadArea.readonly-upload .uploadLink,
.uploadArea.readonly-upload .fileDeleteButton {
  pointer-events: none;
  cursor: default;
}

.affected {
  /* background-color: bisque !important; */
  background-color: moccasin !important;
}

/* ------------------------------------------------------ */