@charset 'UTF-8';

.simulator h2 {
  background-color: #f1a239;
  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 #f1a239;
  max-width: 600px;
  padding: 50px 10px 20px;
  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: #f1a239;
  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 #f1a239;
  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 #f1a239;
  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,
.simulator-price-sp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 400px;
  margin: 0 auto;
  color: #717379;
  font-size: 24px;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.simulator-submit,
.simulator-submit-sp {
  border-bottom: 5px solid #d9691e;
  border-radius: 100vh;
  background-color: #f1a239;
  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,
.simulator-submit-sp img {
  margin: 0 20px;
  width: 20px;
}

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

.simulator-result,
.simulator-result-sp {
  background-color: #f1a239;
  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: #f1a239;
  white-space: nowrap;
}

#simulator-result-price,
#simulator-result-price-sp {
  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;
  } */

  .pd {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 30px;
  }

  .simulator-result,
  .simulator-result-sp {
    padding-left: 20px;
    padding-right: 20px;
  }

  .simulator-price,
  .simulator-price-sp {
    font-size: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 20px;
  }

  .simulator-price input,
  .simulator-price-sp input {
    font-size: 16px;
  }

  .simulator-choice {
    padding-left: 20px;
    font-size: 18px;
  }

  .simulator-submit,
  .simulator-submit-sp {
    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;
  }
}

/*-----------------
sp用シミュレーター
------------------*/
@media screen and (max-width: 700px) {
  .sp_img .simulator-inner h3::before {
    background-color: #ff9f02;
}
.sp_img .simulator-inner h3 span::before {
  border-right: 20px solid #ff9f02;
}
.sp_img .simulator-inner h3 span::after {
    border-left: 20px solid #ff9f02;
}
.sp_img .simulator-inner h3::after {
  content: none;
}
  .sp_img.simulator {
    margin-bottom: 50px;
  }
  /* .sp_img .simulator-inner {
    margin-top: 50px;
    padding: 34px 10px 10px;
    margin-bottom: 10px;
    border: 2px solid #ff9f02;
  } */

  .sp_img .pd {
    margin-top: 50px;
    padding: 34px 10px 10px;
    margin-bottom: 10px;
    border: 2px solid #ff9f02;
}

  /* .sp_img .simulator-result-inner-sp {
    margin-top: 0;
    margin-bottom: 40px;
    background: #fff;
    padding: 10px;
  } */

  .sp_img .simulator-inner>p {
    margin-bottom: 20px;
    font-size: 32px;
    color: #ff9f02;
    font-weight: bold;
  }

  .sp_img .simulator-price-sp {
    padding-left: 0;
    padding-right: 0;
  }

  .sp_img .simulator-price-sp p {
    font-size: 16px;
  }

  .sp_img .simulator-price-sp select {
    width: 50%;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
  }

  .sp_img .simulator-price-sp input {
    width: 50%;
  }

  .sp_img #errorMsg {
    color: red;
    font-size: 12px;
  }

  .sp_img .simulator-submit-sp {
    margin-bottom: 10px;
    background-color: #ff6401;
    border-bottom: 5px solid #b64803;
    padding: 16px 0;
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
  }
  
  .sp_img .simulator-submit-sp img {
    margin: 0 0 0 10px;
    width: 20px;
}
  .sp_img .simulator-result-sp {
    padding-top: 20px;
    background-color: #fff;
  }

  .sp_img .simulator-result-sp>img {
    margin: 16px auto 0;
    display: block;
    width: 70px;
  }

  .sp_img .simulator-result-inner {
    border: 3px solid #ff9f02;
    padding: 36px 0;
  }

  .sp_img .simulator-result-inner p {
    color: #ff9f02;
    background-color: #fff;
  }

  .sp_img .simulator-result-title {
    background-color: #ff9f02;
    color: #fff;
    margin-bottom: 20px;
    padding: .4em 0;
  }

  .sp_img #simulator-result-price-sp {
    color: #ea3323;
    font-size: 46px;
    font-weight: bold;
    padding: 0;
    display: inline-block;
    background: linear-gradient(transparent 70%, #ffd49b 70%);
    border-radius: unset;
  }

  .sp_img .simulator-caption {
    margin-bottom: 0;
  }

  .sp_img .fv_cta img {
    width: 100%;
  }
}

/*シミュレーターポップアップ*/
.simulator-result-inner-sp {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.simulator-result-sp {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 90%;
  width: 360px;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 0px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #fff;
  cursor: pointer;
  z-index: 1000000;
}