/* General body styles */
body {
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 0;
  font-family: Arial, sans-serif;
  text-align: center;
  min-height: 50vh;
}

img {
  -webkit-touch-callout: none;
  -webkit-user-select:none;
  -moz-touch-callout:none;
  -moz-user-select:none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-drag: none;
  touch-callout:none;
  user-select:none;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 65vw; /* 画面の高さに合わせる */
  margin: 0 auto;
  overflow: hidden;
  filter: brightness(50%);
}

.slideshow img {
  width: 100%;
  display: none;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.slideshow img.active {
  display: block;
  opacity: 1;
}

/* Top navigation bar styles */
.top-nav {
  background: rgba(255, 255, 255, 0.8);
  padding: 1.7vw 0 1vw 0;
  position: fixed;
  top: 0;
  width: 100%;
  transition: transform 0.6s ease-in-out;
  transform: translateY(-100%);
  z-index: 1000;
}

.top-nav.show {
  transform: translateY(0); /* Show when scrolled up */
}

/* Navigation bar styles */
.top-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.top-nav li {
  margin: 0 1.5vw;
}

.top-nav a {
  color: black;
  text-decoration: none;
  font-size: 2.25vw;
  padding: 1vw;
  display: inline-block;
}

.top-nav a:hover {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.5), rgba(255, 99, 71, 0.5));
  color: black;
  border-radius: 5px;
}



/* Styles for the dates */
.dates {
  border: 2px solid black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
  border-radius: 50px;
  display: inline-block;
  margin: 2vw 6vw;
  font-size: 4vw;
  background-color: #ffffff;
}


/* Unordered list styles */
ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

ul.menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Menu item styles */
ul.menu button {
  width: 40vw;
  height: 18vw;
  margin: 1.6vw 1vw;
  box-sizing: border-box;
  font-size: 4vw;
  border: 0 solid black;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 10px 5px;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.5), rgba(255, 99, 71, 0.5));
  text-decoration: none;
  color: black;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
}

ul.menu button:hover {
  background-image: linear-gradient(to left, rgba(175, 255, 159, 0.5), rgba(199, 255, 240, 0.5));
}

.menu li {
  margin: 6vw 2vw 0 2vw;
}


/* Image container styles */
.image-container {
  position: relative;
  text-align: center;
  max-width: 100%;
  margin: auto;
}

.image-container img {
  max-width: 100%;
  height: auto;
  pointer-events: none;
}


.image-container h1 {
  position: absolute; /* 位置を絶対配置に */
  top: 25vw; /* 画像の中心に配置 */
  left: 50%;
  width: 100%;
  color: white;
  transform: translate(-50%, -50%); /* 中心に移動 */
  font-size: 8vw; /* フォントサイズを調整 */
}

.image-container h2 {
  position: absolute;
  top: 35vw;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%); /* 中心に移動 */
  font-size: 7vw; /* フォントサイズを調整 */
  color: white;
}

.image-container .theme {
  text-align: center;
}



.image-container .theme p {
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Heading styles */
h3 {
  margin-top: 20px;
}

/* Navigation styles */
nav {
  position: relative;
}

.how-to-access  h1{
  margin: 10vw 0 5vw 0;
  font-size: 3vw;
}


.how-to-access a {
  color: black;
  text-decoration: none;
  padding: 2vw 4vw; /* 上下と左右に余裕を持たせてタップしやすく */
  border: 2px solid #333; /* ボタンのように見せるための境界線 */
  display: inline-block; /* パディング全体がリンクとして機能 */
  border-radius: 8px; /* 角を丸くしてボタンらしく */
  background-color: #f7f7f7; /* 背景色を追加してボタン風に */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* 少し影をつけて立体的に */
  transition: background-color 0.3s ease; /* 背景色の変化にアニメーション */
}

.how-to-access a:hover {
  background-color: #f0f0f0; /* ホバー時の背景色を設定 */
}

.how-to-access a:active {
  background-color: #d0d0d0; /* タップ時に少し暗くして押した感じを出す */
}

.how-to-access p {
  margin: 10vw 0;
  font-size: 2.5vw;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* 幅を100%に設定 */
  height: 100%; /* 高さを100%に設定 */
  background: rgba(255, 255, 255, 0); /* 背景は透明 */
  pointer-events: none; /* クリックイベントを無効化 */
}

.floor {
  margin: 8vw 0 5vw 0;
  font-size: 2vw;
}

.floor-map img {
  height: auto;
  width: 80%;
  margin-bottom: 100px;
}

.floor-map h2 {
  margin-top: 1vw;
}
.floor-list {
  display: flex;
  flex-direction: column;
  justify-content: center; /* アイテムを均等に配置 */
  margin-top: 7vw;
  width: 10vw;
  background-color: #f5f5f5;
  height: auto; /* ビューポートの高さに対する割合で調整 */
  padding: 0;
  border-right: 1px solid #ddd;
  position: fixed;
  box-sizing: border-box;
  align-items: center;
}

.floor-list h2 {
  font-size: 2.5vw;
  margin-bottom: 3vw;
}

.floor-list ul {
  display: flex; /* flexに変更してliを均等に配置 */
  flex-direction: column; /* 縦にアイテムを並べる */
  list-style-type: none;
  padding: 0;
  margin: 1.5vw 0;
  gap: 2vw;
}

.floor-list li {
  margin: 1vw 0;
}


.floor-list ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 2.5vw;
}

.floor-list ul li a:hover {
  color: orangered;
}


.floor-map {
  flex-grow: 1;
  padding: 20px;
}


/* Footer styles */
footer {
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.5), rgba(255, 99, 71, 0.5));
  margin-top: 4vw;
  color: white;
  padding: 5px;
  text-align: center;
  position: relative;
  bottom: 0;
  width: auto;
  font-size: 1vw;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .top-nav ul {
    justify-content: center; /* ナビゲーションを中央に配置 */
  }



  .dates {
    font-size: 3vw; /* 日付のフォントサイズを調整 */
  }

  ul.menu button {
    width: 90%; /* ボタンの幅を画面幅に合わせる */
    height: 15vh; /* ボタンの高さを調整 */
    font-size: 3.5vw; /* ボタンのフォントサイズを調整 */
  }

  .image-container img {
    width: 100%; /* 画像を画面幅いっぱいに表示 */
    height: auto; /* アスペクト比を維持 */
  }

  .image-container h1 {
    font-size: 6vw; /* フォントサイズを調整 */
  }

  .image-container .theme h2 {
    font-size: 5vw; /* テーマ見出しサイズを調整 */
  }
}

@media screen and (max-width: 480px) {
  .top-nav ul {
    justify-content: center; /* ナビゲーションを中央に配置 */
  }

  ul.menu button {
    width: 95%; /* ボタンの幅を画面幅に合わせる */
     /* ボタンの高さを調整 */
    font-size: 3vw; /* ボタンのフォントサイズを調整 */
  }

  .image-container img {
    width: 100%; /* 画像を画面幅いっぱいに表示 */
    height: auto; /* アスペクト比を維持 */
  }

  .slideshow {
    height: auto; /* 画面の高さに合わせる */
  }

  .image-container h1 {
    font-size: 7vw; /* 見出しサイズを調整 */
  }

  .image-container .theme h2 {
    font-size: 6vw; /* テーマ見出しサイズを調整 */
  }
  .floor-list {
    margin-top: 12vw;
    width: 14vw;
    padding: 0;
  }

  .floor-list ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 3.5vw;
  }

  .floor-list li {
    margin: 3vw 0;
  }
}
