@charset "utf-8";

.estimateHead {
  background: url(../img/img_estimate.png) no-repeat center;
  background-size: cover;
  height: 464px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 210px;
  box-sizing: border-box;
}
@media screen and (max-width: 767px) {
  .estimateHead {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
}
.estimateHead__title {
  display: flex;
  align-items: center;
  gap: 0 16px;
  font-size: 4rem;
  font-weight: bold;
  color: #FFFFFF;
}
@media screen and (max-width: 767px) {
  .estimateHead__title {
    display: block;
    font-size: 3rem;
  }
}
.estimateHead__title > span {
  display: block;
  width: 72px;
  padding: 17px 18px;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
}
@media screen and (max-width: 767px) {
  .estimateHead__title > span {
    margin: 0 auto 10px;
  }
}
.estimateHead__title > span > img {
  display: block;
  width: 34px;
  height: 37px;
}
.estimateHead > p {
  max-width: 686px;
  font-size: 1.6rem;
  color: #FFFFFF;
  margin-top: 14px;
}
@media screen and (max-width: 767px) {
  .estimateHead > p {
    margin-top: 20px;
  }
}

/* estimatePage */
.estimatePage {
  background-color: #F3F3F3;
  padding: 80px 56px 135px;
}
@media screen and (max-width: 767px) {
  .estimatePage {
    padding: 40px 20px 70px;
  }
}
.estimatePage__contents {}
.estimatePage__contents:nth-of-type(n + 2) {
  margin-top: 160px;
}
@media screen and (max-width: 767px) {
  .estimatePage__contents:nth-of-type(n + 2) {
    margin-top: 60px;
  }
}
.estimatePage__title {
  position: relative;
  font-size: 3.2rem;
  font-weight: bold;
  padding-bottom: 48px;
}
@media screen and (max-width: 767px) {
  .estimatePage__title {
    font-size: 2.2rem;
    padding-bottom: 20px;
  }
}
.estimatePage__title::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #555555;
}

.estimateList {
  padding-inline-start: 0;
  margin: 0;
}
.estimateList > li {
  position: relative;
  padding: 48px 0;
}
@media screen and (max-width: 767px) {
  .estimateList > li {
    padding: 20px 0;
  }
}
.estimateList > li::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #555555;
}
.estimateList h3 {
  font-size: 1.8rem;
  font-weight: bold;
}
.estimateItem {
  padding-inline-start: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  margin-top: 24px;
}
@media screen and (max-width: 767px) {
  .estimateItem {
    gap: 15px;
  }
}
.estimateItem > li {
  display: inline-block;
}
.textRadio {
  display: flex;
  align-items: center;
  min-height: 70px;
  background-color: #E3E3E3;
  border-radius: 8px;
  border: 1px solid #333333;
  cursor: pointer;
  transition: opacity 300ms ease-out;
}
@media screen and (max-width: 767px) {
  .textRadio {
    min-height: 0;
  }
}
.textRadio:hover {
  opacity: 0.7;
}
.textRadio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 23px;
  border: 1px solid #333333;;
  border-radius: 50%;
  background-color: #FFFFFF;
  position: relative;
  cursor: pointer;
  outline: none;
}
@media screen and (max-width: 767px) {
  .textRadio input[type="radio"] {
    width: 17px;
    height: 15px;
    margin: 0 10px;
  }
}
.textRadio input[type="radio"]:checked {
  background-color: #2C91FC;
  border-color: #2C91FC;
}
.textRadio input[type="radio"]:checked::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.textRadio p {
  display: flex;
  align-items: center;
  width: 261px;
  min-height: 72px;
  font-size: 1.6rem;
  padding: 5px 24px;
  background-color: #FFFFFF;
  border-radius: 0 8px 8px 0;
  box-sizing: border-box;
  border-left: 1px solid #333333;
}
@media screen and (max-width: 767px) {
  .textRadio p {
    width: calc(100% - 30px);
    padding: 5px 10px;
    min-height: 0;
  }
}

.estimatePage .btnFrame {
  margin-top: 120px;
}
@media screen and (max-width: 767px) {
  .estimatePage .btnFrame {
    margin-top: 40px;
  }
}

/* amountPage */
.amountPage {
  background: #F3F3F3;
  padding-top: 60px;
  padding-right: 20px;
  padding-bottom: 135px;
  padding-left: 20px;
}
@media screen and (max-width: 767px) {
  .amountPage {
    padding: 40px 20px 70px;
  }
}
.amountPage .btnFrame {
  margin-top: 40px;
}
.amountPage__inner {
  max-width: 1224px;
  margin: 0 auto;
}
.amountPage__title {
  font-size: 3.2rem;
  font-weight: bold;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .amountPage__title {
    font-size: 2.0rem;
  }
}
.amountPage__text {
  font-size: 1.6rem;
  text-align: center;
  margin-top: 20px;
}

.amountContents {}
.amountContents__text {
  position: relative;
  font-size: 1.6rem;
  margin-top: 30px;
  line-height: 2;
  padding-bottom: 28px;
}
.amountContents__text::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #333333;
}
.amountEstimated {
  position: relative;
  display: flex;
  align-items: center;
  height: 104px;
  padding: 20px 24px;
  background-color: #FFFFFF;
  box-sizing: border-box;
  margin-top: 38px;
}
.amountEstimated__label {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  display: inline-block;
  font-size: 1.6rem;
  font-weight: bold;
  color: #FFFFFF;
  background-color: #48A782;
  padding: 5px 12px;
  white-space: nowrap;
}
.amountEstimated__text {
  width: 100%;
  font-size: 4.8rem;
  font-weight: bold;
  color: #48A782;
  padding: 0 170px;
  text-align: center;
}
.amountEstimated__text > em {
  font-size: 6.4rem;
  font-weight: bold;
  color: #48A782;
  font-style: normal;
}
@media screen and (max-width: 767px) {
  .amountEstimated {
    flex-direction: column;
    justify-content: flex-end;
    height: 150px;
  }
  .amountEstimated__label {
    top: 20px;
    transform: none;
  }
  .amountEstimated__text {
    font-size: 3.0rem;
    padding: 0;
  }
  .amountEstimated__text > em {
    font-size: 3.8rem;
  }
}
.amountItem {
  background-color: #E3E3E3;
  padding: 32px;
  margin-top: 32px;
}
@media screen and (max-width: 767px) {
  .amountItem {
    padding: 20px;
  }
}
.amountItem > h2 {
  position: relative;
  font-size: 1.6rem;
  font-weight: bold;
  padding-bottom: 27px;
}
@media screen and (max-width: 767px) {
  .amountItem > h2 {
    padding-bottom: 20px;
  }
}
.amountItem > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #FFFFFF;
}
.amountItem__contents {
  display: flex;
  gap: 0 49px;
  margin-top: 27px;
}
@media screen and (max-width: 767px) {
  .amountItem__contents {
    flex-direction: column;
    gap: 15px 0;
    margin-top: 20px;
  }
}
.amountItem__text {
  font-size: 1.5rem;
}
.amountItem__text > em {
  font-style: normal;
}
.amountItem__text > span {
  display: inline-block;
  min-width: 88px;
  font-weight: bold;
  border: 1px solid #000;
  padding: 6px 10px;
  margin-right: 16px;
  box-sizing: border-box;
  text-align: center;
}
.btnFrame {
  text-align: center;
}
.btnFrame a ,
.btnFrame button {
  display: inline-flex;
  align-items: center;
  min-width: 360px;
  height: 83px;
  font-size: 2.4rem;
  font-weight: bold;
  padding: 24px 115px 24px 24px;
  color: #FFFFFF;
  box-sizing: border-box;
  transition: opacity 300ms ease-out;
  border: none;
  justify-content: center;
}
.btnFrame a:hover ,
.btnFrame button:hover {
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0.8;
}
.btnFrame a::after ,
.btnFrame button::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 23px;
  top: 0;
  bottom: 0;
  right: 25px;
  margin: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../img/icon/icon_arrow-right.svg');
  transition: all 0.5s;
}
@media screen and (max-width: 767px) {
  .btnFrame a ,
  .btnFrame button {
    font-size: 1.8rem;
    min-width: 0;
    width: 100%;
    height: 60px;
    padding: 10px 60px 10px 20px;
  }
}
.btnFrame--orange a ,
.btnFrame--orange button {
  background-color: #F2795A;
}
.btnFrame--yellow a ,
.btnFrame--yellow button {
  background-color: #CBBB86;
}
.btnFrame--wide a ,
.btnFrame--wide button {
  min-width: 432px;
}

@media screen and (max-width: 767px) {
  .btnFrame--wide a ,
  .btnFrame--wide button {
    min-width: 0;
    max-width: 100%;
  }
}

/* Contact Form 7 バリデーションエラー表示の修正 */
.wpcf7-form .wpcf7-not-valid-tip {
  /* エラーメッセージの基本スタイル */
  display: block !important;
  color: #d32f2f !important;
  font-size: 14px !important;
  margin-top: 8px !important;
  padding: 4px 8px !important;
  background-color: #ffebee !important;
  border: 1px solid #ffcdd2 !important;
  border-radius: 4px !important;
  position: relative !important;
  z-index: 10 !important;
}

/* 工事内容チェックボックス専用のエラーメッセージ調整 */
.cf7-checkbox-group + .wpcf7-not-valid-tip,
.wpcf7-form-control-wrap[data-name="q_construction_detail"] .wpcf7-not-valid-tip {
  /* チェックボックスグループの下に表示 */
  display: block !important;
  margin-top: 16px !important;
  clear: both !important;
  width: 100% !important;
  position: static !important;
}

/* チェックボックス全体のレイアウト調整 */
.cf7-checkbox-group {
  position: relative;
  z-index: 1;
}

/* エラーメッセージが表示されている時のチェックボックスグループの調整 */
.wpcf7-form-control-wrap[data-name="q_construction_detail"].wpcf7-not-valid {
  /* エラー時の境界線調整 */
  border-bottom: none !important;
  padding-bottom: 8px !important;
}

/* エラーメッセージのレスポンシブ対応 */
@media screen and (max-width: 767px) {
  .wpcf7-form .wpcf7-not-valid-tip {
    font-size: 12px !important;
    padding: 6px 10px !important;
    margin-top: 12px !important;
  }
  
  .cf7-checkbox-group + .wpcf7-not-valid-tip,
  .wpcf7-form-control-wrap[data-name="q_construction_detail"] .wpcf7-not-valid-tip {
    margin-top: 20px !important;
  }
}
