@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #fff;
}

button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
}

.chat-wrapper {
  display: flex;
  height: 100vh;
}

.main {
      background: white;
      border: 1px solid #ccc;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 20px;
    }
.card-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
.welcome-screen {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 40px 0px 20px;
}

#wakayama_img1 {
  width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.icon-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 90px;
  height: 90px;
  padding: 0;
  border: 1px solid #EAEAEA;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.icon-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-images.character-row {
  gap: 15px;
  margin-bottom: 30px;
}

.intro-message {
  font-size: 18px;
  line-height: 1.0;
  margin-bottom: 20px;
  white-space: pre-line;
  max-width: 484px;
}

.input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-bottom: 16px;
}

.input-box {
  flex: 1;
  background: white;
  border-radius: 30px;
  padding: 10px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #ccc;
}

.input-box textarea {
  width: 100%;
  font-size: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  line-height: 24px;
  max-height: calc(24px * 7);
  overflow-y: auto;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.button-group {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.send,
.mic {
  width: 48px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
}

.send {
  background-image: url('./imgs/wakayama3_0.png');
}

.mic {
  background-image: url('./imgs/mic-off.png');
}

.mic.recording {
  background-image: url('./imgs/mic-on.png');
}

.quick-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-start {
  width: 180px;
  height: 60px;
  border: none;
  padding: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.btn-toilet {
  background-image: url('./imgs/wakayama4_0.png');
}

.btn-exit {
  background-image: url('./imgs/wakayama4_1_0.png');
}

.btn-train {
  background-image: url('./imgs/wakayama5_0.png');
}

.banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 20px;
  padding: 20px 0;
}

.hotspot-btn {
  width: 120px;
  height: 120px;
  padding: 0;
  border: 1px solid #EAEAEA;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hotspot-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.hotspot-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 480px) {
  .welcome-screen {
    justify-content: flex-start;
  }

  .icon-btn {
    width: 60px;
    height: 60px;
  }

  .icon-images {
    gap: 10px;
    margin-bottom: 15px;
  }

  .intro-message {
    font-size: 16px;
  }

  .input-row {
    max-width: 320px;
  }

  .quick-start {
    width: 100px;
  }

  #wakayama_img1 {
  width: 450px;
  height: auto;
}

.banner-container {
    gap: 15px;
  }
}

@media screen and (max-width: 360px) {
  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .hotspot-btn {
    width: 65px;
    height: 65px;
  }

  .quick-start {
    width: 90px;
  }
  .intro-message {
    max-width: 320px;
  }

  #wakayama_img1 {
  width: 350px;
  height: auto;
}
}

/* --- ✅ モバイル画面の幅別アイコンのサイズ調節 --- */
@media screen and (min-width: 361px) and (max-width: 379px) {
  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .hotspot-btn {
    width: 70px;
    height: 70px;
  }

  #wakayama_img1 {
  width: 350px;
  height: auto;
}

.intro-message {
  max-width: 350px;
}
}

@media screen and (min-width: 380px) and (max-width: 399px) {
  .icon-btn {
    width: 46px;
    height: 46px;
  }

  .hotspot-btn {
    width: 75px;
    height: 75px;
  }

  #wakayama_img1 {
  width: 375px;
  height: auto;
}

.intro-message {
  max-width: 360px;
}
}

@media screen and (min-width: 400px) and (max-width: 420px) {
  .icon-btn {
    width: 50px;
    height: 50px;
  }

  .hotspot-btn {
    width: 80px;
    height: 80px;
  }

  #wakayama_img1 {
  width: 395px;
  height: auto;
}

.intro-message {
  max-width: 380px;
}
}

@media screen and (min-width: 421px) and (max-width: 449px) {
  .icon-btn {
    width: 54px;
    height: 54px;
  }

  .hotspot-btn {
    width: 85px;
    height: 85px;
  }


  #wakayama_img1 {
  width: 415px;
  height: auto; 
}

.intro-message {
  max-width: 400px;
}
}
