/* =====  ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background-color: #f9fcff;
  box-sizing: border-box;
}

/* =====  ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #f8fbff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
}

.logo {
  height: 45px;
  display: block;
}

/*  */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  margin-left: auto;
  padding: 10px;
  z-index: 1100;
}

/*  */
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333; /*   */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/*  */
.side-menu {
  position: fixed;
  top: 0;
  right: -250px;  /*   */
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: -3px 0 8px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1000;
}

.side-menu.open {
  right: 0;  /*   */
}

.side-menu ul {
  list-style: none;
  margin: 80px 0 0;
  padding: 0;
}

.side-menu li {
  padding: 15px 25px;
  border-bottom: 1px solid #eee;
}

.side-menu a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

.side-menu a:hover {
  color: #4CAF50;
}

/*  */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 1050;
}
.overlay.active {
  display: block;
}

/* =====  ===== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /*  */
  margin-top: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #f9fcff;
  padding-bottom: 80px; /*  */
}

/* =====  ===== */
.notice {
  background: #FFF2E0;
  border-top: 2px solid #FFB347;
  color: #444;
  font-size: 13px;
  line-height: 1.5;
  margin: 60px auto 0 auto; /*  60px */
  padding: 10px 15px;
  text-align: left;
  max-width: 700px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* =====  ===== */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  max-width: 700px;     /*   */
  margin: 0 auto;       /*   */
  box-sizing: border-box;
}
.msg {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.4;
}
.msg.user {
  background: #d9f7c6;
  margin-left: auto;
  text-align: right;
}
.msg.assistant {
  background: #ffffff;
  margin-right: auto;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* =====  ===== */
.chat-form {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  background: #f9fcff;
  padding: 8px;
  box-sizing: border-box;
  z-index: 900; /*  */
}
.chat-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
  min-height: 42px;
  max-height: 150px;
}
.chat-form button {
  margin-left: 8px;
  background: #85c1e9;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.chat-form button:hover {
  background: #5dade2;
}

/* ===== GIF ===== */
/*   */
#loading {
  position: fixed;         /*  absolutefixed */
  bottom: 50px;            /*   */
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* GIF */
#loading img {
  width: 80px;
  height: auto;
  animation: slowFloat 3s ease-in-out infinite; /*   */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/*  */
#loading p {
  margin-top: 6px;
  color: #888;
  font-size: 14px;
}

/*  */
@keyframes slowFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* =====  ===== */
@media (max-width: 600px) {
  .header {
    height: 55px;
    padding: 0 10px;
  }
  .logo {
    height: 40px;
  }
  .chat-form textarea {
    font-size: 18px;
  }
}

.send-btn .plane {
  width: 24px;
  height: 24px;
  fill: #fff; /*   */
  transform: translate(-2px, 0);
}


.otherbox {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  max-width: 700px;     /*   */
  margin: 0 auto;       /*   */
  box-sizing: border-box;
}

.other-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px); /*  */
  margin-top: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #f9fcff;
  padding-bottom: 80px; /*  */
}
main {
  padding-top: 100px; /*  */
  text-align: center;
  font-size: 18px;
}