/*メインのCSS*/
body {
  margin: 0;
  overflow: hidden;
  height: 100dvh;
  width: 100dvw;
  background-color: #3e2e28;
  color: #362004;
  font-family: sans-serif;
}

img {
  object-fit: contain;
}

#loader-container {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  opacity: 1;
  transition: opacity 1s ease;
  z-index: 99999;
}

.loader {
  --d: 30px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  color: #25b09b;
  box-shadow:
    calc(1*var(--d)) calc(0*var(--d)) 0 0,
    calc(0.707*var(--d)) calc(0.707*var(--d)) 0 1px,
    calc(0*var(--d)) calc(1*var(--d)) 0 2px,
    calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px,
    calc(-1*var(--d)) calc(0*var(--d)) 0 4px,
    calc(-0.707*var(--d)) calc(-0.707*var(--d))0 5px,
    calc(0*var(--d)) calc(-1*var(--d)) 0 6px;
  animation: l27 1s infinite steps(8), hueRotate 10s infinite linear;
}

@keyframes l27 {
  100% {
    transform: rotate(1turn)
  }
}

@keyframes hueRotate {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

canvas {
  display: block;
  margin: 0;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: -9999;
}

.cloud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.3), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(0, 255, 0, 0.3), transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(0, 0, 255, 0.3), transparent 50%),
    radial-gradient(circle at 30% 50%, rgba(255, 255, 0, 0.3), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 0, 255, 0.3), transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(0, 255, 255, 0.3), transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(128, 0, 128, 0.3), transparent 50%);
  opacity: 0.1;
  /* 影の透明度を調整 */
}

#canvas.filter {
  filter: blur(5px);
  /* ぼかしの程度を調整 */
}

#current-location {
  display: none;
  position: absolute;
  top: 30px;
  /* 適切な位置に調整してください */
  left: 0px;
  width: auto;
  max-width: 500px;
  padding: 15px 0;
  padding-right: 40px;
  text-align: center;
  z-index: 1000;
  font-size: large;
  color: #fff;
  box-shadow: -2px 2px 2px rgba(0, 0, 0, 0.5);
  animation: slideInFromLeft 0.5s ease forwards;
}

#current-location::before {
  content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect y="4" width="24" height="2" fill="%23fff"/%3E%3Crect y="11" width="24" height="2" fill="%23fff"/%3E%3Crect y="18" width="24" height="2" fill="%23fff"/%3E%3C/svg%3E');
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  left: 10px;
  /* 一番左に配置 */
  top: 50%;
  /* 親要素の垂直方向で中央に配置 */
  transform: translateY(-50%);
  /* アイコンが垂直方向で正確に中央に配置されるように調整 */
  width: 24px;
  /* アイコンの幅を固定 */
  height: 24px;
  /* アイコンの高さを固定 */
  color: #FFFFFF;
  /* fillカラーを指定 */
  animation: switchIcon 8s infinite;
}

@keyframes switchIcon {
  0% {
    content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect y="4" width="24" height="2" fill="%23fff"/%3E%3Crect y="11" width="24" height="2" fill="%23fff"/%3E%3Crect y="18" width="24" height="2" fill="%23fff"/%3E%3C/svg%3E');
    transform: rotateY(0deg) translateY(-50%);
  }

  40% {
    content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect y="4" width="24" height="2" fill="%23fff"/%3E%3Crect y="11" width="24" height="2" fill="%23fff"/%3E%3Crect y="18" width="24" height="2" fill="%23fff"/%3E%3C/svg%3E');
    transform: rotateY(0deg) translateY(-50%);
  }

  50% {
    content: url('data:image/svg+xml,%3Csvg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="color: %23FFFFFF;"%3E%3Cpath d="M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z"  fill="%23fff"/%3E%3C/svg%3E');
    transform: rotateY(180deg) translateY(-50%);
  }

  90% {
    content: url('data:image/svg+xml,%3Csvg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" style="color: %23FFFFFF;"%3E%3Cpath d="M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z"  fill="%23fff"/%3E%3C/svg%3E');
    transform: rotateY(180deg) translateY(-50%);
  }

  100% {
    content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Crect y="4" width="24" height="2" fill="%23fff"/%3E%3Crect y="11" width="24" height="2" fill="%23fff"/%3E%3Crect y="18" width="24" height="2" fill="%23fff"/%3E%3C/svg%3E');
    transform: rotateY(360deg) translateY(-50%);
  }
}

#current-location span {
  display: inline-block;
  position: relative;
  padding-bottom: 1px;
  margin-left: 50px;
}

#current-location span::after {
  content: '';
  /* 擬似要素の内容を空にする */
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  /* 下線の高さを設定 */
  background: linear-gradient(to right, #888, #fff, #888);
  /* シンプルなグラデーションでシックに */
  border-radius: 1px;
  /* 下線の端を少し丸くする */
}

#current-location::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #362004;
  border-top: 3px solid #b9a786;
  border-bottom: 3px solid #b9a786;
  clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 0% 100%);
  z-index: -1;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    transform: scaleX(1);
    transform-origin: left;
    opacity: 1;
  }
}

#player-container {
  display: none;
  position: absolute;
  top: 30px;
  /* 適切な位置に調整してください */
  right: 10px;
  min-width: 20%;
  width: auto;
  max-width: 35%;
  height: 60px;
  text-align: center;
  z-index: 1000;
  font-size: large;
  font-weight: bold;
  color: #362004;
  background-color: #b9a786;
  clip-path: polygon(0% 0%, 2px 25%, 0% 50%, 2px 75%, 0% 100%,
      25% calc(100% - 2px), 50% 100%, 75% calc(100% - 2px), 100% 100%,
      calc(100% - 2px) 75%, 100% 50%, calc(100% - 2px) 25%, 100% 0%,
      75% 2px, 50% 0%, 25% 2px);
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  animation: paperOpen 0.5s ease-out;
}

@keyframes paperOpen {
  from {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

#player-container a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid #362004;
  width: auto;
  max-width: calc(100% - 20px);
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes liquidExpand {
  from {
    clip-path: circle(0% at 0% 0%);
  }

  to {
    clip-path: circle(150% at 0% 0%);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #36200488;
  z-index: 2000;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: clip-path 2s ease-in-out;
  /* クリップパスのアニメーションをスムーズに */
}

#content-links {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  /* リンクを縦に並べる */
  justify-content: center;
  align-items: center;
  pointer-events: none;
  white-space: nowrap;
}

.content-link {
  display: inline-block;
  width: 100%;
  /* 横幅を100%にして中央揃えに */
  height: auto;
  /* 高さはコンテンツに合わせる */
  margin: 15px 0;
  /* リンク間の間隔 */
  padding: 0;
  /* パディングを追加してクリックしやすく */
  pointer-events: auto;
  color: #b9a786;
  font-weight: bold;
  font-size: xx-large;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
  /* 拡大時のアニメーション */
}

.content-link:hover,
.content-link:active {
  transform: scale(1.05);
  /* 5% 大きくする */
}

a[data-target="QuestBoard"]::after,
a[data-target="BulletinBoard"]::after {
  content: "►";
  /* ▶アイコンを表示 */
  font-size: 18px;
  /* アイコンのサイズ */
  position: absolute;
  /* 絶対位置指定 */
  left: -25px;
  /* 左側に配置（調整が必要な場合があります） */
  top: 50%;
  /* 親要素の垂直方向で中央に配置 */
  transform: translateY(-50%);
  /* 垂直方向で正確に中央に配置 */
  opacity: 0;
  /* 初期状態でアイコンを隠す */
  pointer-events: none;
}

/* 親要素にrelative positionを設定する必要があります */
a[data-target="QuestBoard"],
a[data-target="BulletinBoard"] {
  position: relative;
  /* 相対位置指定 */
}

/* QuestBoard用のアニメーション */
a[data-target="QuestBoard"]::after {
  animation: questBlink 5s infinite;
  /* アニメーションを設定 */
}

/* BulletinBoard用のアニメーション */
a[data-target="BulletinBoard"]::after {
  animation: bulletinBlink 5s infinite;
  /* アニメーションを設定 */
}

/* QuestBoard用のアニメーション設定 */
@keyframes questBlink {
  0% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  10% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  20% {
    opacity: 1;
    /* 点滅中の表示 */
  }

  30% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  40% {
    opacity: 1;
    /* 点滅中の表示 */
  }

  50% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  100% {
    opacity: 0;
    /* 点滅終了で非表示 */
  }
}

/* BulletinBoard用のアニメーション設定 */
@keyframes bulletinBlink {
  0% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  50% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  60% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  70% {
    opacity: 1;
    /* 点滅中の表示 */
  }

  80% {
    opacity: 0;
    /* 点滅中の表示 */
  }

  90% {
    opacity: 1;
    /* 点滅中の表示 */
  }

  100% {
    opacity: 0;
    /* 点滅終了で非表示 */
  }
}

.next-content-name {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: #36200488;
  color: white;
  padding: 10px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  writing-mode: vertical-rl;
}

#next-content-name::before,
#next-content-name::after {
  content: attr(data-arrow);
  margin: 5px 0;
  animation: glowAnimation 1s ease infinite;
}

@keyframes glowAnimation {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: 1;
  /* canvasの前面に表示するためのz-index */
  width: 100vw;
  /* 画面の100%の幅に設定 */
  height: 100vh;
  /* 画面の100%の高さに設定 */
  justify-content: center;
  /* 左右中央に配置 */
  align-items: center;
  /* 上下中央に配置 */
}

#content.show {
  animation: fadeIn 0.3s ease-in forwards;
}

#content section {
  display: none;
  height: 100%;
  /* セクションの高さを100%に設定 */
  width: 100%;
  justify-content: center;
  /* 左右中央に配置 */
  align-items: center;
  /* 上下中央に配置 */
  margin: auto;
  text-align: center;
  flex-wrap: wrap;
  overflow: hidden;
}

#content #Entrance {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*各コンテンツのCSS*/

/*エントランス*/
#enter {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* 縦方向に要素を並べる */
  align-items: center;
  /* 横方向の中央揃え */
  justify-content: center;
  /* 縦方向の中央揃え */
}

#enter h1 {
  color: #fff;
  width: 100%;
  margin: 0 auto;
  padding: 20% 0;
  font-size: clamp(40px, 5vw, 500px);
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
    /* 光彩の影 */
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 30px rgba(255, 255, 255, 0.4);
  color: #fff;
  animation: shine 2s;
  animation-delay: 0.5s;
}

@keyframes shine {
  0% {
    background-position: -100% 0;
    color: #fff;
    /* 最初は真っ白 */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6),
      0 0 30px rgba(255, 255, 255, 0.4);
    /* 光彩 */
  }

  50% {
    color: transparent;
    /* 光のエフェクトに合わせて文字の色を透明に */
    text-shadow: 0 0 20px rgba(255, 255, 255, 1),
      0 0 30px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(255, 255, 255, 0.6);
    /* 強い光彩 */
  }

  100% {
    background-position: 100% 0;
    color: #fff;
    /* 最終的に再び真っ白 */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6),
      0 0 30px rgba(255, 255, 255, 0.4);
    /* 光彩 */
  }
}

/*受付*/
.nemo {
  position: absolute;
  height: 75vh;
  bottom: -20vh;
  animation: fadeIn 1s ease-in-out forwards;
}

/* リンクのスタイル */
#ReceptionCounter .slider .slider-link {
  display: block;
  text-decoration: none;
  /* リンクの下線を削除 */
}

/*クエストボード*/
.slideshow {
  list-style-type: none;
  padding: 0;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: calc(50% - 10px);
  grid-gap: 20px;
  /* 画像間のスペース */
  width: 80%;
  max-width: 1000px;
  height: 50%;
  max-height: 50%;
}

.slideshow li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: auto;
  opacity: 0;
}

.slide-content {
  text-align: center;
  padding: 0;
  background-color: #b9a786;
  color: #362004;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.slide-content::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid #362004;
  pointer-events: none;
}

.slide-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 2;
  /* 要素の上に表示されるように設定 */
  opacity: 0.5;
  /* グラデーションの透過度 */
}

.recommend-label {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 50px;
  height: 50px;
  bottom: 5px;
  /* 左下に配置 */
  right: 5px;
  /* 左から10pxの位置 */
  padding: 0;
  color: #f00;
  /* テキストの色 */
  font-weight: bold;
  border: 2px solid #f00;
  /* 赤い縁取り */
  border-radius: 50%;
  font-size: x-small;
  opacity: 0.7;
  z-index: 10;
  /* 他の要素より上に表示 */
  transform: rotate(15deg);
  /* 45度右に傾ける */
  transform-origin: center;
  pointer-events: none;
}

.quest-label {
  position: absolute;
  /* タイトルを絶対位置に設定 */
  top: 10px;
  /* 垂直中央に配置 */
  left: 50%;
  /* 水平中央に配置 */
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
  background-color: #b9a786;
  padding: 0 10px;
}

.slide-title {
  width: calc(100% - 20px);
  position: absolute;
  /* タイトルを絶対位置に設定 */
  top: calc(50% + 10px);
  /* 垂直中央に配置 */
  left: 50%;
  /* 水平中央に配置 */
  transform: translate(-50%, -50%);
  font-size: large;
  font-weight: bold;
  pointer-events: none;
  word-break: keep-all;
}

.sway {
  animation: sway 1s ease-in-out forwards;
  animation-delay: var(--random-delay);
}

@keyframes sway {
  0% {
    transform-origin: center top 0;
    transform: rotate(0deg);
    opacity: 0;
  }

  25%,
  75% {
    transform: rotate(5deg);
  }

  50% {
    transform: rotate(-5deg);
  }

  100% {
    transform-origin: center top 0;
    transform: rotate(0deg);
    opacity: 1;
  }
}

.slideshow li img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  margin: auto;
  display: block;
  /* 画像をブロック要素として扱う */
}

.selected {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transform: scale(1.05);
  z-index: 100;
  border: 2px solid rgba(255, 255, 0, 0.5);
}

button.prev,
button.next {
  /* 左右のボタンのスタイル */
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  outline: none;
  padding: 10px;
  z-index: 1;
}

button.prev {
  left: 0;
}

button.next {
  right: 0;
}

.message-box {
  position: absolute;
  width: 95%;
  max-width: 1500px;
  height: 15%;
  bottom: 5%;
  border: solid 3px #362004;
  border-radius: 10px;
  background-color: rgba(223, 207, 168, 0.8);
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: large;
  font-weight: bold;
}

.message-box button {
  position: absolute;
  bottom: 5%;
  transform: translateX(-50%);
  left: 50%;
  background-color: rgba(25, 16, 8, 0.7);
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: medium;
  margin: 0;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: none;
  border: none;
  white-space: nowrap;
}

#going-text {
  position: absolute;
  bottom: 5%;
  right: 5px;
  font-size: medium;
  animation: blink 2s infinite;
  user-select: none;
  cursor: pointer;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

#coming-soon-button {
  opacity: 0.3;
}

#image-container {
  position: relative;
  width: 50vw;
  height: 50vh;
  overflow: visible;
  transform: rotate(-22.5deg);
}

.image-item {
  position: absolute;
  transition: transform 0.5s;
  max-width: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  -webkit-user-drag: none;
  -moz-user-drag: none;
}

/*掲示板*/
#game-container {
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 30vh;
  /* 高さをビューの高さに依存 */
  width: 80vw;
  max-width: 700px;
  /* 幅をビューの幅に依存 */
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  /* 中央に配置 */
}

#question-container {
  flex: 1;
  display: grid;
  --gap-size: 5px;
  gap: var(--gap-size);
  height: 100%;
  width: 100%;
  /* 最大幅を指定して中央に寄せる */
  margin: auto;
  /* 中央に配置 */
  padding: auto;
  place-items: center;
}

#question-container.single {
  grid-template-columns: 1fr;
  grid-auto-rows: 95%;
}

#question-container.grid-2x2 {
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: calc(50% - var(--gap-size));
}

#question-container img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

#question-container.grid-2x2 img:nth-child(1) {
  margin-bottom: 0;
  margin-right: 0;
}

#question-container.grid-2x2 img:nth-child(2) {
  margin-bottom: 0;
  margin-left: 0;
}

#question-container.grid-2x2 img:nth-child(3) {
  margin-top: 0;
  margin-right: 0;
}

#question-container.grid-2x2 img:nth-child(4) {
  margin-top: 0;
  margin-left: 0;
}

#input-container {
  background-color: #b9a786;
  width: 80%;
  max-width: 700px;
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  gap: 10px;
  margin-bottom: 20px;
  clip-path: polygon(0% 0%, 2px 25%, 0% 50%, 2px 75%, 0% 100%,
      25% calc(100% - 2px), 50% 100%, 75% calc(100% - 2px), 100% 100%,
      calc(100% - 2px) 75%, 100% 50%, calc(100% - 2px) 25%, 100% 0%,
      75% 2px, 50% 0%, 25% 2px);
}

#input-container p {
  width: 100%;
  text-align: center;
  margin: 0;
  font-weight: bold;
}

#input-container .input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#answer-input {
  width: 70%;
  height: 40px;
  /* 高さを20pxから40pxに調整 */
  padding: 10px;
  font-size: 16px;
  margin: 10px;
  box-sizing: border-box;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #362004;
  border-radius: 0 50px/50px 10px;
  color: #362004;
  font-family: "Zen Kurenaido", sans-serif;
  font-weight: bold;
}

#answer-input::placeholder {
  font-family: sans-serif;
}

#answer-input:focus {
  outline: none;
}

#check-answer-button {
  width: 30%;
  height: 40px;
  /* 高さを20pxから40pxに調整 */
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  margin: 10px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 5px;
  font-weight: normal;
  background-color: rgba(25, 16, 8, 0.7);
  color: white;
}

#result-message {
  font-size: 18px;
}

.VHmodal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
  z-index: 9999;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.VHmodal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: transparent;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  max-width: 80%;
  /* Could be more or less, depending on screen size */
  white-space: nowrap;
  color: white;
  font-weight: bold;
  font-size: x-large;
  text-align: center;
}

#VHmodal-message {
  margin: 0;
  font-size: medium;
}

.VHclose {
  position: absolute;
  --size: 28px;
  top: calc(-2 * var(--size));
  right: calc(-1 * var(--size));
  color: #aaa;
  float: right;
  font-size: var(--size);
  font-weight: bold;
}

.VHclose:hover,
.VHclose:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeInModal 0.5s forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(1.05);
    /* 少し大きくして、スムーズな入り方に */
  }

  to {
    opacity: 1;
    transform: scale(1);
    /* 元のサイズに戻す */
  }
}

.image-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  display: block;
  width: 90%;
  max-height: 90vh;
}

.image-modal .close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.image-modal .close:hover,
.image-modal .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

#prankImg {
  width: 70%;
  max-height: 70%;
}

#SecretRoom {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.heart {
  position: absolute;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}

#luminescence {
  opacity: 1;
}

.heart svg {
  width: 100%;
  height: 100%;
  fill: rgba(0, 204, 255, 0.8);
  /* ネオン効果の色 */
  filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.8));
}


.dark-mode {
  filter: brightness(50%) contrast(80%) sepia(20%);
}

.heart:focus,
.heart:active {
  outline: none;
  box-shadow: none;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
}

#contact_link {
  list-style: none;
  /* リストのデフォルトのドットを削除 */
  padding: 0;
  /* パディングを削除 */
  margin: 0;
  /* マージンを削除 */
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* カード間のスペース */
  max-width: 600px;
  /* カードの最大幅 */
  margin: 20px auto;
  /* 上下の余白と中央揃え */
  width: 95%;
}

.card-link {
  text-decoration: none;
  /* リンクの下線を削除 */
  color: inherit;
  /* リンクの色を親要素から継承 */
}

.card {
  display: flex;
  align-items: center;
  /* アイコンとコンテンツを垂直方向に中央揃え */
  background-color: #b9a786ee;
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  /* 角を丸くする */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* 軽い影を付ける */
  padding: 16px;
  /* 内側の余白 */
  gap: 16px;
  /* アイコンとコンテンツ間のスペース */
}

.icon {
  width: 40px;
  /* アイコンの幅 */
  height: 40px;
  /* アイコンの高さ */
  user-select: none;
}

.card-content {
  display: flex;
  flex-direction: column;
}

.link-text {
  text-decoration: none;
  /* 下線を削除 */
  margin-bottom: 8px;
  /* テキストと次の要素間の余白 */
  text-align: left;
  /* 左揃え */
  font-weight: bold;
  user-select: none;
}

.card-content p {
  margin: 0;
  /* パラグラフの余白を削除 */
  text-align: left;
  user-select: none;
}

/* トピックスリスト */
.topics {
  width: 80%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  color: white;
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3e2e28ee;
  border-radius: 10px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.topic {
  margin: 5px auto;
}

.topic-list {
  width: 100%;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 5px;
}

/* 各トピックのスタイル */
.topic-item {
  padding: 10px 15px;
}

/* トピックタイトル */

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topic-title {
  font-size: 18px;
  margin: 0;
  color: #333;
  flex: 1;
  text-align: left;
  color: white;
}

.topic-title a {
  text-decoration: none;
  color: white;
}

/* 公開予定日のスタイル */
.topic-date {
  font-size: 10px;
  color: #666;
  white-space: nowrap;
  text-align: right;
}



