*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: YakuHanJP, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.lp-page {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
}

@media screen and (min-width: 751px) {
  .lp-page {
    max-width: 500px;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  }
}

/* ---- Header ---- */
.lp-header {
  padding: 2.8% 0;
  text-align: center;
}

.lp-header__logo {
  width: 36%;
  height: auto;
}

/* ---- Hero ---- */
.lp-hero {
  margin: 0;
  padding: 0;
}

.lp-hero__heading {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.lp-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Chat area ---- */
.lp-chat {
  padding: 9.3% 8% 8%;
  background: #eef8e1;
}

.lp-chat__form {
  width: 100%;
}

.err_box_1 {
  display: none;
  margin-bottom: 2.6%;
  padding: 1.6% 2.13%;
  border-radius: 1.067vw;
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  color: #c0392b;
  font-size: 3vw;
}

@media screen and (min-width: 751px) {
  .err_box_1 {
    font-size: 14px;
    border-radius: 5.33px;
  }
}

.err_box_1 p {
  margin: 0 0 4px;
}

.err_box_1 p:last-child {
  margin-bottom: 0;
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 10vw;
}

@media screen and (min-width: 751px) {
  .chat-container {
    gap: 50px;
  }
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-message__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.67vw;
}

@media screen and (min-width: 751px) {
  .chat-message__body {
    gap: 13.33px;
  }
}

.chat-bubble {
  position: relative;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: clamp(14px, 3.7vw, 15px);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-bubble--image {
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.chat-bubble__image {
  display: block;
  width: 100%;
  height: auto;
}

.chat-message--bot .chat-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 16px;
  border: 7px solid transparent;
  border-right-color: #fff;
}

.chat-message--bot .chat-bubble--image::before {
  display: none;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 2.8vw;
  padding: 4.4% 14.3%;
  border-radius: 4.53vw;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 751px) {
  .chat-options {
    gap: 14px;
    border-radius: 22.67px;
  }
}

.chat-option-btn {
  width: 100%;
  padding: 6% 0;
  border: none;
  border-radius: 4vw;
  background: linear-gradient(90deg, #208154 0%, #2aac70 100%);
  color: #fff;
  font-size: 4vw;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

@media screen and (min-width: 751px) {
  .chat-option-btn {
    border-radius: 22px;
    font-size: 20px;
  }
}

.chat-option-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.chat-option-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.chat-option-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.chat-option-btn.is-selected {
  opacity: 1;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ---- Form ---- */
.chat-form-area {
  margin-top: 6.4%;
}

.chat-form-field + .chat-form-field {
  margin-top: 6.8%;
}

.chat-form-label {
  display: flex;
  align-items: center;
  margin-bottom: 2%;
  font-size: 3.73vw;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}

@media screen and (min-width: 751px) {
  .chat-form-label {
    font-size: 18.67px;
  }
}

.label-required {
  display: inline-block;
  margin-right: 3%;
  padding: 0 2.93%;
  border-radius: 50vw;
  background: #ef1200;
  color: #fff;
  font-size: 3.2vw;
  font-weight: 700;
  vertical-align: middle;
}

@media screen and (min-width: 751px) {
  .label-required {
    font-size: 16px;
  }
}

.chat-form-input {
  width: 100%;
  padding: 2.933% 4.53%;
  border: 0px solid #ffffff;
  border-radius: 2.5vw;
  background: #fff;
  font-size: 4vw;
  line-height: 1.4;
}

@media screen and (min-width: 751px) {
  .chat-form-input {
    font-size: 20px;
    border-radius: 12.5px;
  }
}

.chat-form-input:focus {
  outline: none;
  border: 1px solid #2e8b57;
  box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

.chat-submit-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.chat-submit-btn__image {
  display: block;
  width: 100%;
  height: auto;
}

.chat-submit-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.chat-submit-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.chat-submit-area {
  margin-top: 8.53%;
}

.lp-consent {
  margin: 5.6% 8.8% 0 13.7%;
  font-size: 4.267vw;
  line-height: 1.5;
  text-align: left;
  position: relative;
}

@media screen and (min-width: 751px) {
  .lp-consent {
    font-size: 21.3px;
  }
}


.lp-consent::before {
  content: "※";
  position: absolute;
  left: -7%;
  top: 0;
  margin-right: 0.533%;
  font-size: 4.267vw;
  font-weight: 700;
}

@media screen and (min-width: 751px) {
  .lp-consent::before {
    font-size: 21.3px;
  }
}

.lp-submit-notes {
  margin-top: 3.6%;
}

.lp-submit-notes p {
  margin: 0;
  font-size: 2.67vw;
  line-height: 1.5;
}

@media screen and (min-width: 751px) {
  .lp-submit-notes p {
    font-size: 13.35px;
  }
}

.lp-submit-notes a {
  color: #2e8b57;
}

/* ---- Footer ---- */
footer {
  line-height: 1.8;
  padding: 1em;
  text-align: center;
  color: #fff;
  background-color: #85705a;
}

.f_link {
  font-size: 3vw;
}

@media screen and (min-width: 751px) {
  .f_link {
    font-size: 13px;
  }
}

.f_link a {
    color: #fff;
}

.copyright {
  font-size: 3.73vw;
}

@media screen and (min-width: 751px) {
  .copyright {
    font-size: 14px;
  }
}