a {
  color: #1E90FF;
  text-decoration: none;
}
body {
  background: #0d0d0d;
}

html {
  width: 100%;
  height: 100%;
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.spotlight {
  position: fixed; /* スクロールに追従するように固定配置 */
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(150, 0, 60, 0.6), rgba(0, 0, 0, 0) 70%);
  filter: blur(30px);
  border-radius: 50%;
  opacity: 0.7;
  animation: moveSpotlight 20s linear infinite; /* アニメーションを20秒でループ */
}

.spotlight:nth-child(1) {
  top: calc(50% + var(--scroll-top, 0px)); /* 初期位置とスクロール量を合わせて調整 */
  left: 30%;
  background: radial-gradient(circle, rgba(255, 0, 120, 0.6), rgba(0, 0, 0, 0) 70%);
  animation-duration: 5s;
}

.spotlight:nth-child(2) {
  top: calc(40% + var(--scroll-top, 0px)); /* 初期位置とスクロール量を合わせて調整 */
  left: 50%;
  background: radial-gradient(circle, rgba(0, 60, 255, 0.6), rgba(0, 0, 0, 0) 70%);
  animation-duration: 6s;
}

.spotlight:nth-child(3) {
  top: calc(50% + var(--scroll-top, 0px)); /* 初期位置とスクロール量を合わせて調整 */
  left: 70%;
  background: radial-gradient(circle, rgba(200, 120, 0, 0.6), rgba(0, 0, 0, 0) 70%);
  animation-duration: 8s;
}

.spotlight:nth-child(4) {
  top: calc(60% + var(--scroll-top, 0px)); /* 初期位置とスクロール量を合わせて調整 */
  left: 40%;
  background: radial-gradient(circle, rgba(0, 200, 0, 0.4), rgba(0, 0, 0, 0) 70%);
  animation-duration: 10s;
}

@keyframes moveSpotlight {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  25% {
    transform: translate(calc(-50% + 30px), calc(-50% + 30px)) scale(1.5);
  }
  50% {
    transform: translate(calc(-50% - 30px), calc(-50% + 30px)) scale(1.5);
  }
  75% {
    transform: translate(calc(-50% - 30px), calc(-50% - 30px)) scale(1.5);
  }
}

.container {
  position: relative;
  z-index: 2;
}


form {
  margin-top: 20px;
}

.form-control, .btn {
  border: none;
  border-radius: 5px;
}

.form-control:focus, .btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}


.thumbnail-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.thumbnail {
  display: flex;
  flex-direction: column; 
  border-radius: 8px 8px 0 0 ; 
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.thumbnail img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.thumbnail:hover img {
  transform: scale(1.1);
}

.thumbnail:hover .like-icon {
  transform: none; 
}

.like-button:hover .like-icon {
  transform: scale(1.2);
}

.overlay {
  position: relative; /* 画像の下に配置 */
  background-color: #222; /* グレー系の半透明背景 */
  color: white; /* 文字色を白に */
  padding: 8px; /* 内側の余白 */
  border-radius: 0 0 8px 8px; /* 下部の角を丸める */
  text-align: left;
  width: 100%;
  z-index: 10;

}

.overlay .icon-image {
  width: 40px; /* アイコンのサイズ */
  height: 40px;
  flex-shrink: 0; /* 縮小されないように */
}

.overlay div {
  flex-grow: 1;
  min-width: 0;
  overflow: hidden;
}

.overlay p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.overlay h3 {
  margin-top: 0;
}

.overlay p {
  margin-bottom: 0;
}


.thumbnail-container {
  position: relative;
  display: inline-block;
}

.like-container {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px;
  border-radius: 5px;
  z-index: 9; 
}

.like-icon {
  width: 15px !important;
  height: 15px;
  cursor: pointer;
  transition: transform 0.3s ease; /* アニメーションのスムーズな効果 */
  border: none; /* 枠線を削除 */
}

.like-count {
  margin-right: 5px;
  margin-left: 5px;
  font-size: 14px;
}

.like-button {
  border: none; /* 枠線を削除 */
  background: none; /* 背景を削除 */
  padding: 0; /* パディングを削除 */
  cursor: pointer; /* ポインタを表示 */
}

.like-button:focus {
  outline: none; /* フォーカス時の枠線を削除 */
}

 .thumbnail .prompt-icon {
    position: absolute;
    top: -5px;
    left: -15px;
    width: 70px;
    height: 50px;
	z-index: 10;
  }


.icon-header {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* スクロールバー全体 */
::-webkit-scrollbar {
    width: 8px;  /* 幅 */
    height: 8px; /* 横スクロールバーの高さ */
}

/* スクロールバーのつまみ（ドラッグ部分） */
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6a11cb, #2575fc); /* グラデーションでクールな色合いに */
    border-radius: 10px; /* 丸みをつける */
}

/* スクロールバーの背景 */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1); /* 背景に薄いグレーを設定 */
    border-radius: 10px;
}

.btn-gradient {
    background: linear-gradient(45deg, #ff4d88, #ff0055);
    color: #fff;
    font-weight: bold;
    padding: 6px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-gradient:hover {
    box-shadow: 0 0 12px rgba(255, 77, 136, 0.9);
}

.btn-secondary {
  background-color: #333;
  color: white;
  border: 1px solid #555;
}

.btn-secondary:hover {
  background-color: #444;
  border-color: #666;
}
.btn-secondary:focus {
  outline: none; 
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
 }

.transparent-box {
    background-color: #1e1e1e; 
    padding: 20px;
    border-radius: 10px; 
    width: 100%; 
    margin-bottom: 20px;
}

.btn-gradient1 {
    border: none;
    color: black;
}
.btn-gradient2 {
    background: linear-gradient(to right, #ff4d88, #ff0055);
    border: none;
    color: white;
    transition: box-shadow 0.3s ease-in-out;
}