body {
  margin: 0;
  padding: 0;
}

video {
  display: block;
  width: 100%;
  margin: 0 auto 30px;
}

.chat-wrap {
  max-width: 650px;
  margin: 0 auto;
  background: #f5f7fa;
  min-height: 100vh;
  font-family: sans-serif;
  padding-bottom: 120px;
  box-sizing: border-box;
}

.chat-header img {
  width: 100%;
}

.chat-area {
  padding: 20px;
}

.message {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
}

.message.bot {
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.bot-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-right: 14px;
  border-radius: 50%;
  overflow: hidden;
}

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

.bubble {
  max-width: 80%;
  padding: 16px 24px;
  border-radius: 0 0 18px 0;
  line-height: 1.6;
  font-size: 18px;
}

.bot .bubble {
  background: #fff;
  color: #333;
  border-radius: 0 0 18px 0;
}

.user .bubble {
  background: #0b8f6a;
  color: #fff;
  border-radius: 18px 18px 0 18px;
}

.input-area {
  padding: 0 20px 140px;
}

.option-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.option-btn {
  display: block;
  width: 100%;
  background: #fff;
  border: 2px solid #ccc;
  color: #333;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
}

.option-btn:hover {
  background: #0b8f6a;
  color: #fff;
}

.option-btn.is-selected {
  background: #0b8f6a;
  color: #fff;
}

.text-input {
  width: 90%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 15px;
}

.submit-btn {
  width: 100%;
  background: #65b77c;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.submit-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
  opacity: .7;
}

.submit-btn:not(:disabled) {
  background: #0b8f6a;
  color: #fff;
}

.confirm-area {
  text-align: center;
  padding: 40px 20px;
}

.confirm-title {
  /* font-size: 36px; */
  font-weight: 700;
  margin-bottom: 24px;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #35b558;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
/*   margin-right: 12px; */
  vertical-align: middle;
}

.confirm-text {
  /* font-size: 20px; */
  /* font-weight: 700; */
  margin-bottom: 24px;
}

.confirm-box {
  max-width: 720px;
  margin: 0 auto 36px;
  padding: 40px 20px;
  border: 1px solid #ccc;
  border-radius: 22px;
  background: #fff;
  text-align: left;
}

.confirm-box dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 12px;
  column-gap: 40px;
  margin: 0;
}

.confirm-box dt,  
.confirm-box dd {
  /* font-size: 22px; */
  /* font-weight: 700; */
  margin: 0;
}

.confirm-submit {
  width: 100%;
  max-width: 520px;
  height: 88px;
  background: #fff;
  border: 1px solid #ccc;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
}

.error-text {
  min-height: 22px;
  margin: 6px 0 12px;
  color: #d93025;
  font-size: 14px;
  font-weight: 700;
}

.text-input.is-error {
  border-color: #d93025;
}

.confirm-area {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 60px 20px 120px;
}

.confirm-title {
  font-size: 28px;
  line-height: 1.5;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.check-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.confirm-submit {
  height: auto;
  min-height: 64px;
  padding: 16px;
  font-size: 22px;
}

@media screen and (max-width: 768px) {
  .confirm-area {
    padding: 40px 16px 140px;
  }

  .confirm-title {
    font-size: 24px;
  }

  .confirm-box {
    padding: 24px 16px;
  }

  .confirm-box dl {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .confirm-box dd {
    margin-bottom: 14px;
  }
}

html,
body {
  overflow-x: hidden;
}
/* 
#chatApp,
.chat-wrap,
.confirm-area,
.confirm-box {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
} */

.confirm-box {
  overflow-wrap: break-word;
  word-break: break-all;
}

@media screen and (max-width: 768px) {
  .confirm-area {
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

  .confirm-box {
/*     width: 100%; */
    padding: 24px 16px;
  }

  .confirm-box dl {
    display: block;
  }

  .confirm-box dt,
  .confirm-box dd {
    width: 100%;
    max-width: 100%;
  }

  .confirm-submit {
    width: 100%;
    max-width: 100%;
  }
}

/* PCではチャットボットを非表示 */
@media screen and (min-width: 769px) {
  #chatApp {
    display: none !important;
  }
}

/* SPではチャットボットを表示 */
@media screen and (max-width: 768px) {
  #chatApp {
    display: block !important;
  }
}
