@charset 'UTF-8';

.simulator h2 {
  background-color: #f599a0;
  padding: 20px 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: bold;
  line-height: 1.4;
  font-size: 36px;
  position: relative;
  margin-bottom: 60px;
}

.simulator h2 img:first-of-type {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(calc(-50% - 150px));
  width: 50px;
  object-fit: contain;
}

.simulator h2 img:last-of-type {
  position: absolute;
  top: 10px;
  right: 50%;
  transform: translateX(calc(50% + 150px));
  width: 50px;
  object-fit: contain;
}

.simulator-inner {
  background-color: #fef6eb;
  border: 2px solid #f599a0;
  max-width: 600px;
  padding: 50px 0 0;
  margin: 0 auto 40px;
  font-size: 20px;
  position: relative;
}

.simulator-inner h3 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 10;
  color: #ffffff;
  height: 40px;
  padding: 0 10px;
  font-size: 20px;
}

.simulator-inner h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f599a0;
  z-index: -1;
}

.simulator-inner h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  background-color: #ffffff;
  z-index: -2;
  width: 105%;
  height: 20px;
}

.simulator-inner h3 span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  z-index: 0;
  z-index: -1;
}

.simulator-inner h3 span::before {
  content: '';
  border-top: 20px solid transparent;
  border-right: 20px solid #f599a0;
  border-bottom: 20px solid transparent;
  position: absolute;
  left: -19px;
  z-index: -1;
}

.simulator-inner h3 span::after {
  content: '';
  border-top: 20px solid transparent;
  border-left: 20px solid #f599a0;
  border-bottom: 20px solid transparent;
  position: absolute;
  right: -19px;
  z-index: -1;
}

.simulator-choice {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 400px;
  margin: 0 auto 20px;
  font-size: 20px;
}

.simulator-choice label {
  margin-right: 20px;
  cursor: pointer;
  color: #717379;
}

.simulator-choice label input {
  margin-right: 10px;
}

.simulator-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  color: #717379;
  /* font-size: 24px; */
  font-size: 22px;
  margin-bottom: 40px;
  font-weight: bold;
}

.simulator-price input {
  padding: 10px;
  border: 1px solid #000;
  border-radius: 5px;
  font-size: 20px;
}

.simulator-submit {
  border-bottom: 5px solid #f599a0;
  border-radius: 100vh;
  background-color: #f599a0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto 30px;
  color: #fff;
  font-size: 24px;
  transition: all .3s;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: bold;
}

.simulator-submit img {
  margin: 0 20px;
  width: 20px;
}

.simulator-submit:hover {
  margin-top: 3px;
  border-bottom: 2px solid #f599a0;
}

.simulator-result {
  background-color: #f599a0;
  padding: 40px 0 20px;
}

.simulator-result-inner {
  max-width: 500px;
  position: relative;
  border: 3px solid #ffffff;
  padding: 30px;
  margin: 0 auto;
}

.simulator-result-inner p {
  position: absolute;
  display: block;
  color: #ffffff;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  background-color: #f599a0;
  white-space: nowrap;
}

#simulator-result-price {
  background-color: #fff;
  display: block;
  border-radius: 10px;
  padding: 20px;
}

.simulator > img {
  margin: 0 auto 40px;
  display: block;
  width: 100px;
}

.simulator-btn {
  border-bottom: 5px solid #218574;
  border-radius: 100vh;
  background-color: #43bf96;
  padding: 20px 50px 20px 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #fff;
  font-size: 32px;
  transition: all .3s;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: bold;
  white-space: nowrap;
}

.simulator-btn img:first-of-type {
  margin: 0 20px;
  height: 50px;
}

.simulator-btn img:last-of-type {
  margin: 0;
  height: 30px;
}

.simulator-btn:hover {
  margin-top: 3px;
  border-bottom: 2px solid #218574;
}

.simulator-caption {
  font-size: 16px;
  text-align: center;
  margin-bottom: 50px;
}

@media screen and (max-width: 700px) {
  .simulator-inner {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 30px;
  }
  .simulator-result {
    padding-left: 20px;
    padding-right: 20px;
  }
  .simulator-price {
    font-size: 20px;
    margin-bottom: 20px;
    justify-content: center;
  }
  .simulator-price input {
    font-size: 16px;
  }
  .simulator-choice {
    padding-left: 20px;
    font-size: 18px;
  }
  .simulator-submit {
    max-width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }
  .simulator-btn {
    font-size: 24px;
    max-width: calc(100% - 20px);
  }
  .simulator-btn img:first-of-type {
    height: 40px;
  }
  .simulator-caption {
    font-size: 12px;
  }
  .simulator > img {
    margin-bottom: 30px;
    width: 70px;
  }
}

@media screen and (max-width: 450px) {
  .simulator-inner {
    width: 95%;
    margin: auto;
    margin-bottom: 30px;
  }
  .simulator-price {
    font-size: 16px;
    margin-bottom: 20px;
    justify-content: center;
  }
}
