body {
  margin-top: 20px;/* 上に20pxの余白を追加 */
}

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 画像コンテナ */
.m-lens-container {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  cursor: crosshair;
}

/* 拡大レンズ */
.m-lens {
  position: absolute;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  height: 100px;
  width: 100px;
  display: none;
  pointer-events: none;
}

.m-lens-container:hover .m-lens {
  display: block;
}

/* 画像の横並び配置 */
.image-container {
  display: flex;/* 横並び */
  justify-content: center;/* 中央寄せ */
  align-items: flex-end;/* 画像を下揃え */
  gap: 0px;/* 画像間のスペース */
  flex-wrap: nowrap;/* 画面が小さいときでも折り返さない */
}

.image-container.horizontal {
  flex-direction: row;
}

.image-container.vertical {
  flex-direction: column;
}

/* ズームエリア */
.zoom-area {
  display: none;
  position: fixed;
  width: 350px;
  height: 350px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.zoom-area.active {
  display: block;
}

/* モーダル */
#modal-container {
  display: none;
  position: fixed;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#modal-container>div {
  display: flex;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

#modal-container>div>img {
  width: 90vw;
  height: 90vh;
  object-fit: contain;
}

/* クリック可能な画像 */
img.popup {
  cursor: crosshair;
}

/* タッチデバイスでズーム機能を無効化 */
@media (hover: none) and (pointer: coarse) {

  .m-lens,
  .zoom-area {
    display: none !important;
  }
}

/* 画像を完全に重ねるためのコンテナ */
.Watermark-container {
  position: relative;
  width: 415px;
  height: 222.5px;
}

/* 画像を重ねて配置 */
.Watermark-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 415px;
  height: 222.5px;
  object-fit: contain;
  transition: opacity 0.3s ease-in-out;
}

/* スクロールバーを画像の下に配置 */
.scroll-container {
  width: 100%;
  min-height: 20px;
  overflow-x: auto;
  white-space: nowrap;
  background: transparent;
  margin-top: 10px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* スクロールバー用のダミー要素 */
.scroll-content {
  width: 300%;/* スクロール可能な幅を確保 */
  height: 10px;
  background: transparent;
}

/* WebKit系ブラウザのスクロールバー */
.scroll-container::-webkit-scrollbar {
  height: 10px;
  display: block;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: rgba(128, 128, 128, 0.8);
  border-radius: 5px;
}

.scroll-container::-webkit-scrollbar-track {
  background: rgba(200, 200, 200, 0.3);
}


.swipe-buttons {
  display: none;/* デフォルトでは非表示 */
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.swipe-buttons button {
  padding: 10px 20px;
  font-size: 20px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.swipe-buttons button:active {
  background-color: #555;
}

@media (hover: none) and (pointer: coarse) {
  .swipe-buttons {
    display: flex;/* タッチデバイスでのみ表示 */
  }

  .scroll-container {
    display: none !important;
  }
}

.m-lens-container img,
.Watermark-container img {
  display: block;
}

#custom-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
  display: none;
  pointer-events: none;
  z-index: 500;/* ズームエリアより下に設定 */
}


@media (hover: none) and (pointer: coarse) {
  #custom-tooltip {
    display: none !important;/* タッチデバイスではツールチップを非表示 */
  }
}

table {
  margin-left: 1%;/* 左側に1%の余白をつけて少し右へ移動 */
}

h1, h2, h3, h4, h5, h6 {
  margin-left: 1%; /* 左側に1%の余白を追加 */
}

.image-container {
  display: flex;
  justify-content: center; /* 水平方向に中央揃え */
  align-items: center; /* 垂直方向に中央揃え */
}

.cell {
  text-align: center; /* テキスト要素も中央揃え */
}

.cell img {
  display: block;
  margin: auto;
}

.indent1 {
  text-indent: -1em;
  padding-left: 1em;
}

.indent2 {
  text-indent: -2em;
  padding-left: 2em;
}