select {
  max-width: 100%;
}

#maptop {
  height: 50px;
  background: #f8f9fa;
  border-bottom: solid 1px #aaa;
  /* padding: 10px 0; */
}
#navigation {
  height: 100%;
}
.h-100 {
  height: 100%;
}
#navigation a {
  margin: 0;
}

.logo-container img {
  max-height: 24px;
  margin: auto 20px;
}

#navigation ul.flags-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  max-height: 40px;
  gap: 0.5em;
  padding: 0;
  margin: 0 20px 0 0;
}

#navigation ul.flags-container li {
  width: 36px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid #888;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  cursor: pointer;
}

#navigation ul.flags-container li.selected {
  border: 3px solid blue;
}

#navigation ul.flags-container li img {
  height: auto;
  width: 100%;
  display: block;
}

.serach-form-container {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.serach-form-container select {
  max-width: 150px;
  padding: 7px;
  border: none;
  outline: none;
}

.serach-form-container form {
  width: 187px;
}

.serach-form-container input[type="search"] {
  flex-grow: 1;
  padding: 5px;
  border: none;
  outline: none;
  max-width: 150px;
}

.serach-form-container button {
  background-color: #eee;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
}

.serach-form-container button:hover {
  background-color: #ddd;
}

.bp_point {
  color: #f4b100;
}

.br_point {
  color: #259514;
}

.dx_point {
  color: 000099;
}

.grid-item {
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  /* background-color: #ddd; */
  background-color: #fefefe;
  border-radius: 0px;
  padding: 1px 2px;
  display: flex;
  align-items: center;
  /* max-height: 50px; */
  border: solid 1px #ccc;
  justify-content: flex-start;
  white-space: normal;
  text-overflow: ellipsis;
  flex-wrap: nowrap;
  width: 100%;
  /* padding-top: 10px; */
}

.grid-item:first-child {
  border-top: none;
}

.grid-item:last-child {
  border-bottom: none;
}

.grid-item .number {
  font-size: 16px;
  width: 36px;
  text-align: center;
}

.grid-item .grid-exhibitor-container {
  border-left: solid 1px #ccc;
  padding-top: 10px;
  padding-left: 1em;
  padding-right: 1em;
  /* width: calc(100% - 36px); */
  flex: 1;
  box-sizing: border-box;
}

.grid-item a {
  width: 100%;
  /* font-size: 1em; */
  font-size: 1rem;
  font-weight: bold;
  /* font-weight: normal; */
  text-decoration: none;
  color: #333;
  display: block;
  margin-bottom: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-sizing: border-box;
}

.did-item a {
  font-size: 0.875rem;
  font-weight: normal;
  margin-left: 0;
}

button.kyoto2023_enq_btn {
  border: solid 1px #333;
  border-radius: 15px;
  background: #9a0ec2;
  color: #fefefe;
  padding: 5px 10px;
  margin: 0px 20px;
}

button.kyoto2023_enq_btn:hover {
  background: orange;
  color: white;
  border: solid 1px #fefefe;
}

.sp-logo-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  height: 40px;
  width: auto;
  /* background-color: #fefefe; */
}

.sp-logo-container img {
  height: 40px;
  width: auto;
  margin-top: 5px;
  margin-left: 5px;
}

.close-container {
  /* position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  transition: opacity 0.5s ease; */
  font-size: 30px;
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: red;
  color: white;
  transition: opacity 0.5s ease;
}

.close-icon {
  width: 100%;
  height: 100%;
}

/* .search-result-container {
    position: absolute;
    background-color: rgba(240, 240, 240, 0.8);
    top: calc(50% + 20px);
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 480px;
    z-index: 9999;
    padding: 50px 0px 50px;
    transition: opacity 0.2s ease;
} */

.btn-container {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.btn {
  /* position: relative; */
  background: #fefefecc;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  z-index: 9999;
  right: 0;
  top: 0;
}

/*ボタン内側*/
.btn span {
  display: inline-block;
  transition: all 0.4s;
  /*アニメーションの設定*/
  position: absolute;
  right: 14px;
  height: 3px;
  border-radius: 2px;
  background: #333;
  width: 45%;
}

.btn span:nth-of-type(1) {
  top: 15px;
}

.btn span:nth-of-type(2) {
  top: 23px;
}

.btn span:nth-of-type(3) {
  top: 31px;
}

/*activeクラスが付与されると線が回転して×に*/

.btn.active span:nth-of-type(1) {
  top: 18px;
  right: 18px;
  transform: translateY(6px) rotate(-45deg);
  width: 30%;
}

.btn.active span:nth-of-type(2) {
  opacity: 0;
  /*真ん中の線は透過*/
}

.btn.active span:nth-of-type(3) {
  top: 30px;
  right: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}

div.mypage-link-btn {
  margin-right: 10px;
  height: 40px;
  cursor: pointer;
}

div.mypage-link-btn img {
  height: 40px;
  width: auto;
}

div.mypage-link-btn i {
  border: solid 2px #eaa206;
  color: #eaa206;
  border-radius: 1em;
  /* padding: 5px; */
  font-size: 20px;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
}

div.mypage-link-btn i:hover {
  color: #dce7ff;
  background-color: #888;
  border: solid 2px #dce7ff;
}

.result-select-container form {
  margin-left: 2em;
}

/* 初期状態でグレーアウトするスタイル */
.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* コンシェルジュモーダルの背景 */
.concierge-modal {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 30%;
  height: calc(100% - 50px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10001;
  display: flex;
  flex-direction: column;
}

.concierge-modal.hidden {
  display: none;
}

/* モーダルコンテンツ */
.concierge-modal-content {
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.concierge-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  justify-content: flex-end;
}

/* モーダルを閉じるボタン */
.concierge-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  font-weight: bold;
  box-sizing: border-box;
  cursor: pointer;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
  line-height: 100%;
}

/* コンシェルジュの主な内容エリア */
.concierge-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 画像とボタンを含むコンテナ */
.concierge-image-container {
  position: relative;
  flex: 1;
}

/* 画像のスタイル */
.concierge-image {
  width: auto;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.concierge-start-message-box {
  position: absolute;
  top: 42%;
  left: calc(-50% + 92px);
  transform: translateX(-50%);
  border: solid 1px #ccc;
  border-radius: 10px;
  width: 80%;
  background-color: #fefefe;
  padding: 10px 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  z-index: 100;
  /* 初期状態は透明 */
  animation: fadeIn 1s ease-out forwards, floatUp 1s ease-out forwards;
  transition: height 0.3s ease;
  height: 50px;
}
p#concierge-start-message {
  white-space: pre-line;
}

.fade-in-char {
  opacity: 0;
  display: inline-block;
  animation: fadeCharIn 0.5s ease forwards;
}

@keyframes fadeCharIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* 吹き出しの三角形部分 */
.concierge-start-message-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent #fefefe;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes floatUp {
  0% {
    transform: translate(-50%, 20px);
  }

  100% {
    transform: translate(-50%, 0);
  }
}

/* フェードアウト */
@keyframes fadeOut {
  0% {
    opacity: 1;
    display: block;
  }

  100% {
    opacity: 0;
    display: none;
  }
}

/* ボタンのグリッドレイアウト */
.concierge-button-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
}

/* 各ボタンのスタイル */
.concierge-button {
  background-color: transparent;
  background-image: url("/VR/img/keyboard_icon.png");
  background-size: cover;
  width: 50px;
  height: 50px;
  padding: 10px;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.concierge-button.active {
  /* background: #b34c00; */
  color: white;
}

.concierge-button.disabled {
  /* background: #ccc; */
  color: #666;
  cursor: not-allowed;
}

/* ホーバー時のスタイル */
.concierge-button:hover {
  /* background: #0056b3; */
  /* ホーバー時の背景色 */
}

/* フォーカス時のスタイル */
.concierge-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.5);
}

.concierge-button:active {
  transform: scale(0.95);
}

/* フッターエリア */
.concierge-footer {
  /* padding: 0 10px; */
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  height: 108px;
}

/* テキストエリアのコンテナ */
.textarea-container {
  position: relative;
  width: 100%;
}

/* テキストエリアのスタイル */
#concierge-textarea {
  font-size: 16px;
  width: 100%;
  /* height: 90px; */
  height: 100%;
  padding: 20px 60px 20px 30px;
  border-radius: 0;
  /* border: 1px solid #ccc; */
  border: 9px solid #4ea72e;
  box-sizing: border-box;
  resize: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#concierge-textarea:focus-visible {
  outline: #49d417 auto 1px;
}

/* 送信ボタンのスタイル */
.send-button {
  position: absolute;
  right: 15px;
  bottom: 50%;
  transform: translateY(50%);
  width: 56px;
  height: 56px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* アイコンのスタイル */
.send-button i {
  font-size: 28px;
}

textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.microphone-button {
  position: absolute;
  /* left: calc(100% - 5px); */
  right: 10px;
  /* transform: translateX(-100%); */
  top: -70px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #007bff;
  font-size: 20px;
  width: 60px;
  height: 60px;
  background-image: url(/VR/img/mic_icon.png);
  background-size: cover;
  border-radius: 50%;
  z-index: 999;
}

/* ホバー時 */
.microphone-button:hover {
  transform: scale(1.1);
}

.microphone-button:focus {
  outline: none;
}

/* アクティブ時 (クリック中) */
.microphone-button:active {
  transform: scale(0.95);
}

.microphone-button.pulsing {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px 10px rgba(76, 175, 80, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* ローディングアニメーションのスタイル */
.loading-animation {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid lightgray;
  border-top: 5px solid gray;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* モーダルのスタイル */
.search-result-container {
  display: none;
  position: fixed;
  /* background-color: rgba(240, 240, 240, 1); */
  background-color: rgba(255, 255, 255, 1);

  border: solid 10px #003366;
  /* outline: 2px solid #003366; */
  border-radius: 10px;

  /* top: calc(50% + 20px); */
  top: calc(50% + 25px);
  left: 0;
  /* -webkit-transform: translate(-50%, -50%); */
  transform: translate(0%, -50%);
  /* width: calc(70% - 40px); */
  width: 70%;

  height: calc(100% - 50px);
  /* max-height: calc(100vh - 96px); */
  z-index: 9999;
  padding: 20px;
  z-index: 5000;
  overflow: auto;
  box-sizing: border-box;
}
.search-result-inner {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  /* max-height: 100%; */
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  align-content: flex-start;
}

.grid-container {
  margin: 10px auto 0;
  width: 100%;
  /* max-width: 900px; */
  /* height: 424px; */
  height: 100%;
  /* max-height: calc(100vh - 264px); */
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  overflow-y: auto;
  align-content: flex-start;
  border-top: solid 2px #ccc;
  border-bottom: solid 2px #ccc;
  border-left: solid 1px #ccc;
  border-right: solid 1px #ccc;
}

div#result-count {
  margin: 0 auto;
  width: 100%;
  text-align: left;
  /* padding-left: 1rem; */
  padding-left: 0;
  padding-right: 1rem;
}
div#result-count h2 {
  text-align: center;
  height: 44px;
  line-height: 44px;
  font-size: 1.375rem;
  margin: 0 auto 10px;
  width: 188px;
  background-color: #f3b8b7;
}
div#result-count h3 {
  font-weight: normal;
  font-size: 0.875rem;
}
div#result-count h3 span {
  font-weight: bold;
  font-size: 1.125rem;
}
div#result-count p {
  font-size: 0.75rem;
}

.close-container {
  /* text-align: right; */
  cursor: pointer;
  text-align: center;
  line-height: 36px;
}

.did-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  margin-bottom: 5px;
}

.did-item {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  /* margin-right: 4px; */
  width: 100%;
  padding-left: 1.5rem;
}

#orientationMessage {
  display: none;
}

.concierge-image-container {
  width: calc(100% - 50px);
  margin: 0 auto;
  background-position: bottom center;
  background-size: contain;
  background-repeat: no-repeat;
}

.concierge-start-message-box {
  display: none;
}

@media screen and (max-width: 960px) {
  .concierge-modal {
    /* position: fixed;
    bottom: 0;
    right: 0;
    width: 100%; */
    width: 34%;
    height: calc(100% - 40px);
    /* backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    flex-direction: column; */
  }

  .concierge-image-container {
    background-position: bottom center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
  }
  .concierge-footer {
    padding: 0;
    height: 50px;
    z-index: 10000;
    /* padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 10px;
    left: 0;
    width: 60%; */
  }
  #concierge-textarea {
    height: 60px;
    padding: 8px 30px 8px 20px;
  }

  .send-button {
    right: 8px;
    width: 40px;
    height: 40px;
  }
  .send-button i {
    font-size: 20px;
  }
  .concierge-start-message-box {
    position: absolute;
    top: 40px;
    left: -70%;
    transform: translate(-50%, 0);
    border: solid 1px #ccc;
    border-radius: 10px;
    width: 120%;
    background-color: #fefefe;
    padding: 10px 18px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

    font-size: 14px;
    line-height: 1.5;

    opacity: 0;
    animation: fadeIn 1s ease-out forwards, floatUp 1s ease-out forwards;

    z-index: 20000;
  }

  .concierge-start-message-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fefefe;
  }
  .concierge-button.active {
    background: unset;
    color: white;
    background-color: transparent;
    background-image: url(/VR/img/keyboard_icon.png);
    background-size: cover;
  }

  .concierge-button:hover {
    background: unset;
    background-color: transparent;
    background-image: url(/VR/img/keyboard_icon.png);
    background-size: cover;
  }

  .search-result-container {
    display: none;
    position: fixed;
    /* background-color: rgba(240, 240, 240, 1); */
    border: solid 10px #003366;
    border-radius: 10px;
    /* top: 40px; */
    top: 0;
    left: 0;
    /* -webkit-transform: translate(0%, 0%); */
    transform: translate(0, 0);
    /* width: calc(66% - 20px); */
    width: 100%;
    /* height: calc(100% - 40px); */
    height: 100%;
    /* max-height: calc(100% - 40px); */
    padding: 8px 12px;
    z-index: 20000;
  }
  .grid-container {
    margin: 0 auto;
    margin-top: 8px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    align-content: flex-start;
    height: 100%;
    max-height: calc(100vh - 152px);
  }
}
