body {
  margin: 0;
  /* background-image: linear-gradient(150deg, rgba(72, 115, 139, 0.2), rgb(66, 95, 99)); */
  background-blend-mode: screen;
  background-repeat: no-repeat;
  font-family: "yu gothic", sans-serif;
  font-size: 18px;
  line-height: 30px;
  overscroll-behavior: none;
}

canvas {
  display: block;
}


/* リンククリックを無効化 */
.disable-link a {
  pointer-events: none;
}

/* モーダル外をタップして閉じる動作を無効化 */
.disable-link .modal-overlay {
  pointer-events: none;
}



/* ポップアップウィンドウの基本スタイル */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 30, 30, 0.9);
  padding: 8px;
  border-radius: 20px !important;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 500px;
  width: auto;
  max-width: 110%;
}

/* ポップアップウィンドウの小サイズ */
.popup.small {
  max-width: 400px;
}


.popup-content {
  text-align: center;
}

.popup-contentm {
  text-align: center;
  display: flex;
}

.flex-item:nth-child(1) {
  width: 200px;
}


p.place {
  font-size: x-large;
  font-weight: bold;
  padding: 20px;
}

p.cr {
  font-size: small;
}

.line {
  border: 1px solid rgb(255, 255, 255);
  /* 太さ1px、実線、色は黒 */
}


a.btn_03 {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  max-width: 140px;
  margin: auto;
  padding: 1rem 1.3rem;
  font-weight: bold;
  border: 1px solid #ffffff;
  color: #27acd9;
  background: #5c5c5c;
  /* border-radius: 3vh; */
  border-radius: 20px;
  transition: 0.2s;
}

a.btn_03:hover {
  color: #1b1b1b;
  background: #888888;
  text-decoration: none;
}


/* アイコンのテンプレート */
.icon-k {
  /* position: absolute;
    top: 10px;
    left: 30px; */
  width: 15px;
  height: 20px;
  display: inline-block;
  background-image: url('/virtual/virtualrobotpark/assets/images/world/icon_p.png');
  /* アイコン画像のパス */
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-m {
  width: 20px;
  height: 15px;
  display: inline-block;
  background-image: url('/virtual/virtualrobotpark/assets/images/world/icon_m.png');
  /* アイコン画像のパス */
  background-size: contain;
  background-repeat: no-repeat;
}

.text-title {
  font-size: large;
  font-weight: bold;
}


/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #ffffff;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ポップアップ内の画像 */
.popup-image {
  max-width: 80%;
  height: auto;
  margin-bottom: 5px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* URLリンク */
.popup a {
  text-decoration: none;
  color: #ffffff;
  /* font-weight: bold; */
  /* font-size: medium; */
}

.popup a:hover {
  text-decoration: underline;
}



.progress-bar-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#progress-bar {
  width: 25%;
  margin-top: 0.5%;
  height: 2%;
}

label {
  color: white;
  font-size: 1.2rem;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
}

.popup-image {
  max-width: 100%;
  height: auto;
}

.popup-container {
  padding: 8px;
  overflow: hidden;
}

.popup-header-content {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 0px;
}

.popup-header-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  cursor: pointer;
}

.popup-header-icon {
  width: 28px;
  height: 28px;
  color: white;
}

.popup-header-title {
  font-size: 24px;
  font-weight: bold;
  color: white;
  width: 100%;
  text-align: center;
}

.popup-header-underline {
  position: absolute;
  bottom: 0;
  height: 1px;
  width: 97%;
  background-color: white;
  margin-left: -10px;
}

.popup-metaverse-content {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.popup-metaverse-image-wrapper {
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 20px;
  background-color: #f0f0f0;
  border: 2px solid white;
}

.popup-metaverse-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  flex-grow: 1;
}

.popup-metaverse-link-wrapper {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.popup-metaverse-link-name {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
  justify-content: center;
  text-align: center;
  margin-top: 32px;
}

.popup-spot-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.popup-spot-name-wapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.popup-spot-name {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
  justify-content: center;
}

.popup-spot-link {
  font-size: medium;
}

.popup-spot-image-wapper {
  width: 330px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
  margin-top: 8px;
}

.popup-spot-image-item {
  width: 100%;
}

.popup-spot-image-item>img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}


@media all and (max-width: 900px) {
  body {
    margin: 0;
    background-blend-mode: screen;
    background-repeat: no-repeat;
    font-family: "yu gothic", sans-serif;
    overscroll-behavior: none;
  }

}


@media all and (max-width: 400px) {
  body {
    margin: 0;
    background-blend-mode: screen;
    background-repeat: no-repeat;
    font-family: "yu gothic", sans-serif;
    line-height: 25px;
    overscroll-behavior: none;
  }

  .popup-spot-image-wapper {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 8px;
  }

}

@media all and (max-height: 450px) {

  .popup-spot-link {
    font-size: small;
  }

  .popup-spot-name {
    font-size: 18px;
  }

  .popup-spot-image-item>img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
  }

  
}
