.research-title {
    margin-top: 150px;
    margin-left: 8%;
}

/* ===== サムネイルパネル ===== */
.thumbnail-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
  overflow: hidden;
  z-index: 1000;
  border-right: none;
}

/* ===== サムネイル1つ分（常に正方形） ===== */
.thumb {
  position: relative;
  width: 30px;/*70px;*/
  aspect-ratio: 1 / 1; /* ← ここが重要 */
  margin: 4px 0;
  cursor: pointer;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  overflow: hidden;
}

/* ===== 画像は枠の中にフィット ===== */
.thumb img {
  position: absolute;
  inset: 0;             /* ← 上下左右を0に */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 選択状態 ===== */
.thumb.active {
  transform: scale(1.3);
}

/* ===== 小さい画面での自動縮小 ===== */
@media (max-width: 900px) {
  .research-title {
      margin-top: 150px;
  }
  .thumbnail-panel {
    width: 30px;
    margin-left: 2%;
  }
  .thumb {
    width: 25px;  /* 高さも自動で同じになる */
  }
}
@media (max-height: 600px) {
  .research-title {
      margin-top: 80px;
  }
  .thumb {
    width: 25px;
    margin: 2px 0;
  }
}

.content {
  margin-left: 130px;
}

#video-section {
  margin-top: 8vh;
}

.custom-video-frame {
  height: 75vh;
  margin: 10vh auto 0;
  aspect-ratio: 1 / 2.69;
  overflow: hidden;
}

.custom-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .custom-video-frame {
    margin-top: 8vh;
    margin-bottom: 18vh;
    width: 25vh;
  }
}


/* ===== 静止画グリッド ===== */
#images-section {
  padding: 2vw;
  margin: 2vw auto 100px;
  background: transparent;
}

#image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* ← デフォルトは3列 */
  gap: 1.2vw;                               /* 上下左右の間隔 */
}

/* ===== ブレークポイント：小画面時に2列に変更 ===== */
@media (max-width: 768px) {
  #image-grid {
    grid-template-columns: repeat(2, 1fr); /* ← 小画面では2列固定 */
  }
}
#images-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== シンプル矢印ボタン（スムーズ回転版） ===== */
.jump-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

/* 矢印描画のための内部ラッパ */
.jump-btn .arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border-right: 2px solid #444;
  border-bottom: 2px solid #444;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
  transition: transform 0.4s ease;
}

/* ホバー時の軽い反応 */
.jump-btn:hover .arrow {
  border-color: #888;
}

/* 上向き（回転） */
.jump-btn.up .arrow {
  transform: translate(-50%, -50%) rotate(225deg);
}

/* 非表示時 */
.jump-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 小画面対応 */
@media (max-width: 600px) {
  .jump-btn {
    right: 16px;
    bottom: 16px;
    width: 24px;
    height: 24px;
  }
  .jump-btn .arrow {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
}



