/* tower/css/tower-estimate-result.css */
.page-tower-estimate-result {
  padding-top: var(--site-header-offset, 80px);
  overflow-x: auto;
}

@media all and (max-width: 768px) {
  .page-tower-estimate-result {
    margin-top: 0;
    padding-top: 0;
  }
}

.estimate-result-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: #4a545d;
}

.estimate-result-customer {
  margin-bottom: 5rem;
}

.estimate-result-customer .spec-label {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #4a545d;
}

.estimate-result-customer .spec-value {
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
  color: #4a545d;
}

.estimate-result-divider {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 2rem;
}

.estimate-result-conditions {
  margin-top: 4rem;
}

.estimate-result-conditions .spec-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4a545d;
  margin-bottom: 0.8rem;
}

.estimate-result-conditions .spec-value {
  font-size: 1.6rem;
  color: #4a545d;
  margin-bottom: 1.6rem;
}

.estimate-result-conditions .result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.6rem;
}

.estimate-result-conditions .result-table th,
.estimate-result-conditions .result-table td {
  padding: 1.2rem;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 1.5rem;
  color: #4a545d;
}

.estimate-result-conditions .result-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.estimate-result-conditions .result-table td {
  background-color: #fff;
}

.estimate-result-conditions #result_options_table td {
  white-space: nowrap;
  border: none;
  background: transparent;
  padding: 0.4rem 0;
}

.estimate-result-conditions #result_options_table td:first-child {
  width: 46%;
  text-align: left;
}

.estimate-result-conditions #result_options_table td:nth-child(2) {
  width: 28%;
  text-align: right;
}

.estimate-result-conditions #result_options_table td:nth-child(3) {
  width: 26%;
  text-align: right;
}

.estimate-result-conditions #result_options_table {
  border-collapse: separate;
  border-spacing: 0;
}

.estimate-result-price-box {
  border: 1px solid #e0e0e0;
  border-radius: 0.8rem;
  padding: 4rem;
  max-width: 68rem;
  margin: 6rem auto;
}

.estimate-result-okinawa-note {
  border: 1px solid #d7dee5;
  border-radius: 0.8rem;
  background: #f6f8fa;
  color: #4a545d;
  font-size: 1.6rem;
  line-height: 1.8;
  max-width: 68rem;
  margin: 6rem auto;
  padding: 3.2rem;
}

.price-total-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.price-total-row .price-label {
  font-size: 2.2rem;
  font-weight: 700;
  color: #4a545d;
}

.price-total-row .price-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: #4a545d;
  letter-spacing: 0.1rem;
}

.estimate-result-price-divider {
  border-bottom: 1px solid #e0e0e0;
  margin: 2rem auto;
  max-width: 85%;
}

.price-sub-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1.2rem;
}

.price-sub-row .price-sub-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: #4a545d;
  width: 14rem;
  text-align: right;
}

.price-sub-row .price-sub-value {
  font-size: 1.6rem;
  font-weight: 400;
  color: #4a545d;
  width: 16rem;
  text-align: right;
}

.back-btn {
  color: #222c34 !important;
  text-indent: 0 !important;
  letter-spacing: normal !important;
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 10rem;
  position: relative;
  height: 5.8rem;
  padding: 0 2.4rem 0 0.8rem;
  min-width: 32rem;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px 0 #DEE4EA;
}

.back-btn:hover {
  background: #fff;
  border-color: #d5d5d5;
  color: #222c34;
  opacity: 0.92;
}

.back-btn::before {
  content: '';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  background: #eb3b3b;
  background-image: none;
  color: #fff !important;
  font-size: 2.2rem;
  font-weight: 400;
  flex-shrink: 0;
  margin-right: 2rem;
  position: static;
  transform: none;
  background-image: url(../../img/tower/icon-feather-arrow-right.svg);
  background-size: 1rem;
  background-position: center;
  background-repeat: no-repeat;
  rotate: 180deg;
}

/* レスポンシブ */
@media all and (max-width: 768px) {
  .estimate-result-header {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .estimate-result-price-box {
    padding: 3rem 2rem;
  }

  .estimate-result-okinawa-note {
    padding: 2.4rem 2rem;
    font-size: 1.5rem;
  }

  .price-total-row {
    flex-direction: column;
    gap: 1rem;
  }

  .price-total-row .price-label,
  .price-total-row .price-value {
    font-size: 2rem;
  }

  .price-sub-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 2rem;
  }

  .price-sub-row .price-sub-label,
  .price-sub-row .price-sub-value {
    width: auto;
    text-align: left;
  }

  .back-btn {
    width: 100%;
    min-width: auto;
    height: 5.2rem;
    padding: 0 1.8rem 0 0.6rem;
    font-size: 1.4rem;
  }

  .back-btn::before {
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    min-height: 4rem;
    font-size: 2rem;
    margin-right: 1.5rem;
  }
}