html, body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 全体の配置調整 */
#startARDiv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0px;
  height: 100svh;
  text-align: center;
}

#unity-container {
  position: absolute
}

#unity-container.unity-desktop {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%)
}

#unity-container.unity-mobile {
  width: 100%;
  height: 100%
}

#unity-canvas {
  background: #231F20
}

.unity-mobile #unity-canvas {
  width: 100%;
  height: 100%
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url('logo_vertical.png') no-repeat center;
  background-size: contain;
  margin: 20px 10px;
}

#kyastal-logo {
  width: 300px;
  height: 130px;
  background: url('logo_horizon.png') no-repeat center;
  background-size: contain;
}


/* テキストの行間調整 */
#accessMessage {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
  /* 行間を少し広めに設定 */
  text-align: center;
}

/* プログレスバーのスタイリング */
#unity-progress-bar-empty {
  width: 100%;
  height: 20px;
  /* プログレスバーの高さ */
  background-color: #e0e0e0;
  /* 背景色をグレーに */
  border-radius: 10px;
  /* 角を丸く */
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  /* 内側にわずかな影を追加 */
  margin-top: 20px;
  /* 上部に余白 */
}

#unity-progress-bar-full {
  height: 100%;
  background: linear-gradient(90deg, #333333 0%, #666666 100%);
  /* 緑から明るい緑のグラデーション */
  border-radius: 10px;
  /* 角を丸く */
  transition: width 0.4s ease;
  /* スムーズなアニメーション効果 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* プログレス部分に影を追加 */
}

#unity-footer {
  position: relative
}

.unity-mobile #unity-footer {
  display: none
}

#unity-webgl-logo {
  float: left;
  width: 204px;
  height: 38px;
  background: url('webgl-logo.png') no-repeat center
}

#unity-build-title {
  float: right;
  margin-right: 10px;
  line-height: 38px;
  font-family: arial;
  font-size: 18px
}

#unity-fullscreen-button {
  float: right;
  width: 38px;
  height: 38px;
  background: url('fullscreen-button.png') no-repeat center
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none
}

.cube {
  margin-bottom: 40px;
  width: 80px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 8s infinite linear;
}

.cube div {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid #ccc;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
}

/* 各面の定義と色の設定 */
.front {
  transform: rotateY(0deg) translateZ(40px);
  background-color: rgba(150, 150, 150, 0.95);
}

.back {
  transform: rotateY(180deg) translateZ(40px);
  background-color: rgba(120, 120, 120, 0.95);
}

.right {
  transform: rotateY(90deg) translateZ(40px);
  background-color: rgba(90, 90, 90, 0.95);
}

.left {
  transform: rotateY(-90deg) translateZ(40px);
  background-color: rgba(60, 60, 60, 0.95);
}

.top {
  transform: rotateX(90deg) translateZ(40px);
  background-color: rgba(30, 30, 30, 0.95);
}

.bottom {
  transform: rotateX(-90deg) translateZ(40px);
  background-color: rgba(10, 10, 10, 0.95);
}

/* 回転アニメーション */
@keyframes rotateCube {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }

  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* 回転アニメーション */
@keyframes rotateCube {
  from {
    transform: rotateX(0deg) rotateY(0deg);
  }

  to {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.ctaDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100svh; /* ビューポート全体を確保 */
  padding: 20px;
  text-align: center;
  background: #fffa;
  z-index: 99;
}

#logo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

/* レスポンシブ対応のためのロゴサイズ調整 */
#logo img {
  width: 20vw;
  /* ビューポートの幅の20% */
  max-width: 150px;
  /* 最大幅 */
  height: auto;
}

@media (max-width: 600px) {
  #logo img {
    width: 40vw;
    /* 画面が小さい場合は幅を40%にする */
  }
}

.stylish-button {
  font-size: 20px;
  padding: 15px 30px;
  margin: 20px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #333333, #555555);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ボタンホバー時のスタイル */
.stylish-button:hover {
  background: linear-gradient(135deg, #555555, #777777);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 8px 25px rgba(0, 0, 0, 0.35);
}

/* ボタン押下時のスタイル */
.stylish-button:active {
  transform: scale(0.98);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.2);
}



/* QRコードの位置調整 */
#qrcode {
  margin: 30px;
  /* QRコードの上に余白を追加 */
  display: flex;
  justify-content: center;
}


/* 全体の配置調整 */
#contact-info {
  padding: 20px;
}

#infoModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh; /* 動的に計算されたビューポートの高さを使用 */
  background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明にする */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.modal-content {
  position: relative;
  background-color: white;
  padding: 15px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80svh; /* モーダルの高さを動的に設定 */
  overflow-y: auto; /* コンテンツが多い場合にスクロールを有効にする */
  margin: auto;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  padding: 0;
}

.close-btn:hover {
  color: red;
}
