header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  color: #333;
  height: 80px;
  padding: 0 20px;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

nav li {
  margin: 0 10px;
}

nav li a {
  font-weight: bold;
  color: #6495ED;
  text-decoration: none;
  font-size: 20px;
}

nav li a span {
  color: #696969;
  font-size: 15px;
}

.logo {
  height: 60px;
}

.logo img {
  height: 100%;
}

.service>ul {
  display: none;
  position: absolute;
  background: #fff;
  padding: 10px;
}

.service:hover>ul {
  display: block;
}

.service li {
  display: block;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  background-image: url("images/bk.webp");
  background-repeat: repeat;
  background-size: 100%;
}

.page-wrapper {
  box-sizing: border-box;
  flex-direction: column;
  height: 100%;
  margin-top: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-head {
  padding: 20px 20px 0px 20px;
}

.page-head h1 {
  color: #6495ED;
  flex: 1 1 auto;
  margin: 0;
  font-size: 32px;
  line-height: 40px;
}

.page-header b {
  color: #1E90FF;
}

.chat-container {
  padding: 20px;
}

.page-warning p {
  color: gray;
  font-size: 14px;
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 0px 20px 20px 20px;
}

.page-ad {
  text-align: center;
}

.chat-box {
  background-color: #f2f2f2;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow-y: scroll;
  height: 500px;
}

.chat-message {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.chat-message p {
  margin: 0;
  padding: 0;
}

.chat-message span {
  color: gray;
  font-size: 14px;
}

.chat-input {
  display: flex;
  margin-top: 20px;
  padding: 0.5em 1em;
  color: #5d627b;
  background: white;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
  border-radius: 10px;
}

.chat-input textarea {
  width: 100%;
  height: 80px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 3px ;
  border-radius: 4px;
  font-size: 16px;
  resize: none;
}

.chat-input button {
  background-color: #6495ED;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #1E90FF;
}

.assistant {
  color: #1E90FF;
}

.assistant p {
  margin-block-start: 0;
  margin-block-end: 0;
}

.assistant ul {
  list-style: none;
  padding-inline-start: 0;
}

.intro-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.intro-container img {
  width: 50%;
  min-width: 300px;
}

.page-footer {
  color: black;
  padding: 20px;
  text-align: center;
  margin-top: 100px;
}

#loader {
  font-size: 25px;
  text-align: center;
}

#slider {
  height: 300px;
  position: relative;
}

#slider div {
  position: absolute;
  transition: opacity 1s ease-in-out;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ボタン、リンクなどクリック可能な要素同士のスペースを開ける */
.button_space button,
.button_space a {
  margin-right: 10px;
}


/* コンテンツの幅を変更する */
.wrapper {
  max-width: 100%;
  /* 親要素の最大幅を画面幅に合わせる */
}

.css-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.center-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hidden {
  display: none;
}

/* タブレット用以下 */
@media (max-width: 767px) {
  nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    margin-right: 20px;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 24px;
  }
  
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #6495ED;
    position: absolute;
    top: 50%;
  }
  
  .menu-toggle span:before,
  .menu-toggle span:after {
    display: block;
    content: "";
    width: 100%;
    height: 3px;
    background-color: #6495ED;
    position: absolute;
  }
  
  .menu-toggle span:before {
    top: -10px;
  }
  
  .menu-toggle span:after {
    top: 10px;
  }
  
  .menu-toggle.active span {
    background-color: transparent;
  }
  
  .menu-toggle.active span:before {
    top: 0;
    transform: rotate(45deg);
  }
  
  .menu-toggle.active span:after {
    top: 0;
    transform: rotate(-45deg);
  }

  nav.active {
    display: block;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    background-color: #fff;
    padding: 10px;
    text-align: center;
  }

  nav.active ul {
    display: block;
  }

  nav.active ul li ul li {
    margin: 3px 0;
  }

  nav.active li {
    margin: 10px 0;
  }

  .service ul {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  }

  .chat-input textarea {
    height: 60px;
  }

}