@charset "UTF-8";

/* ------------------------------------------------------------
 独自リセット・共通スタイル
------------------------------------------------------------ */

body {
  font-family: "ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
  background: #e6e6e6;
  color: #333333;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition-duration: 0.2s;
}

ul, ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 18px;
}

p {
  margin: 30px auto;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

img {
  margin: auto;
}

.center {
  text-align: center;
}
.right {
  text-align: right;
}

small {
  font-size: 0.8rem;
  color: #999;
}

.bold {
  font-weight: bold;
}

.red {
  color: #ed1c24;
  font-weight: bold;
}
.marker {
  background-color: #ff9;
}
.font-size-M {
  font-size: 18px;
}
/* ------------------------------------------------------------
 body-wrapper
------------------------------------------------------------ */
.body-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  max-width: 500px;
  margin: auto;
  background-color: #fff;
}

/* ------------------------------------------------------------
 main
------------------------------------------------------------ */
.stars {
  position: relative;
  width: 100%;
  height: 110vh;
  background-image: linear-gradient(0deg, #00dedc, #115d89, #080f1c);
  overflow: hidden;
}

.star {
  position: absolute;
  display: block;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: twinkle 5s infinite;
}
@keyframes twinkle {
  0% {
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.cta {
  position: relative;
  animation: anime1 0.8s ease 0s infinite alternate;
  margin-bottom: 30px;
}
@keyframes anime1 {
  from {
    transform: scale(0.9,0.9);
  }
  to {
    transform: scale(1,1);
  }
}


/* ------------------------------------------------------------
 チャット
------------------------------------------------------------ */
.chat-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  height: calc(100vh - 50px - 50px - 220px - 40px);
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.message-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  width: 100%;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #b0c4de;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  background-image: url('../img/uranai.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bot-message-container .message-avatar {
  margin-right: 10px;
}

.user-message-container .message-avatar {
  margin-left: 10px;
  order: 2;
}

.message {
  padding: 10px 15px;
  border-radius: 15px;
  word-wrap: break-word;
  position: relative;
}

.bot-message {
  background-color: #d1c4e9;
  border-top-left-radius: 2px;
}

.user-message {
  background-color: #bbdefb;
  margin-left: auto;
  border-bottom-right-radius: 2px;
  text-align: left;
}

.bot-message-container {
  align-self: flex-start;
  margin-right: auto;
}

.user-message-container {
  align-self: flex-end;
  margin-left: auto;
}

.chat-options {
  padding: 15px 20px;
  width: 100%;
  max-width: 450px; /* チャットメッセージの幅に合わせる */
  margin: 20px auto; /* 上下の余白と中央寄せ */
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* 以下のposition関連のスタイルは全て削除 */
  /* position: fixed; */
  /* bottom: 0; */
  /* left: 0; */
  /* z-index: 1000; */
  /* border-radius: 0; */
  /* transform: none; */
  /* margin-top: 0; */
  /* margin-bottom: 0; */
  /* max-width: none; */
}

.chat-options button {
  background-color: #8a2be2;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  width: calc(100% - 20px);
  max-width: 400px;
  margin: 0 auto 10px auto;
  text-align: center;
}

.chat-options button:hover {
  background-color: #6a0dad;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: #b0c4de;
  border-radius: 4px;
}

/* ------------------------------------------------------------
 footer
------------------------------------------------------------ */

.footer {
  padding: 2rem 2rem 0 2rem;
  font-size: 15px;
  color: #999;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.footer a {
  color: #999;
}

.footer p {
  margin-top: 20px;
}


/* ------------------------------------------------------------
 以下運営者情報ページ
------------------------------------------------------------ */
.admin {
  max-width: 800px;
  padding-top: 20px;
  text-align: center;
  margin: auto;
  margin-bottom: 30px;

}
.admin_page {
  width: 80%;
  margin: auto;
  text-align: center;
  padding-bottom: 50px;
}

.admin_page h3 {
  padding: 0.5rem 2rem;
  border-left: 5px solid #000;
  background: #f4f4f4;
  margin-top: 30px;
  text-align: left;
}

.admin_page h4 {
  text-align: left;
  padding-left: 10px;
  font-size: 18px;
  margin-top: 20px;
}

.admin_page p {
  text-align: left;
  margin-top: 10px;
  padding-left: 10px;
  font-size: 16px;
}

.privacy_text {
  margin-top: 20px;
  border: solid 1px gray;
  padding: 10px;
  font-size: 12px;
  text-align: left;
}