body {
  margin: 0;
  background: #111;
  font-family: sans-serif;
  overscroll-behavior: none;
}

/* ギャラリー */
#gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
  padding: 2vh 0;
}

/* 見開き */
.spread {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 95vh;
  gap: 0vh;
}

/* ページ */
.page {
  position: relative;
  overflow: visible;
}

/* 画像 */
.page img {
  height: 95vh;
  width: auto;
  display: block;
}

/* セリフエリア */
.area {
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  min-width: 30px;
  min-height: 30px;
}

/* セリフ、補足文 */
.text {
  position: absolute;
  top: 0;
  left:0;

  background: rgba(255, 241, 161, 0.9);
  color: black;
  padding: 8px;
  border: solid;
  border-width: 1px;
  border-radius: 6px;
  border-color:black;

  display: none;
  white-space: pre-wrap;
  max-width: 1200px;

  z-index: 10;

  user-select: text;
  cursor: text;
}

.note {
  color: #585858;
  font-size: 0.9em;
}

/* 表示 */
.area:hover .text {
  display: block;
}

.area:active .text {
  display: block;
}

/* スマホ */
@media (max-width: 768px) {
  #gallery {
    gap: 20px;
  }

  .spread {
    flex-direction: column-reverse; 
    height: auto;
    gap: 10px;
  }

  .page img {
    width: 100%;
    height: auto;
  }

}