.controls {
  padding: 12px;
  background: #f5f5f5;
}

#QUOTE {
  width: 100%;
  max-width: 1230px;
  padding: 0 15px;
  margin: auto;
}
.common-title-hp {
  text-align: center;
  padding: 6.25% 0 3.8%;
  padding: 120px 0 73px;
}
@media(max-width:768px) {
  .common-title-hp {
    padding: 12% 0;
  }
}
.quotebox {
  display: grid;
  grid-template-columns: 45% 50%;
  grid-template-columns: 540px 1fr;
  gap: 5%;
  justify-content: space-between;
}
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

@media(max-width:768px) {
  .quotebox {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}
.ttl_step {
  color: #009c8d;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  margin-bottom: 17px;
}
.ttl_step em {
  font-size: 28px;
  display: inline-block;
  margin-left: 2.17%;
  font-style: normal;
}
@media(max-width:768px) {
  .ttl_step em {
    font-size: 24px;
  }
}
.ttl_step_note {
  padding-left: 100px;
  font-size: 14px;
}
@media(max-width:768px) {
  .ttl_step_note {
    padding-left: 0;
  }
}
.ttl_step.ttl_step_margin {
  margin-bottom: 5px;
}
button,
input[type=text] {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.distance {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  width: 100%;
  position: relative;
}
.distance .distance_head {
  background: #009c8d;
  color: #FFF;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  padding: 8px 0 8px 9px;
}
.distance input {
  border: 1px solid #009c8d;
  width: 100%;
  height: 100%;
  padding: 0 10px;
  -webkit-appearance: none;
  border-radius: 0;
}
.distance__note {
  text-align: right;
  font-size: 14px;
}
.distance__note+.distance {
  margin-top: 19px;
}
.distance_arrow::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-top: 10px solid #009c8d;
  border-bottom: 0;
  position: absolute;
  left: 36px;
  bottom: -20px;
}
.distance_arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
  border-top: 10px solid #009c8d;
  border-bottom: 0;
  position: absolute;
  left: 36px;
  bottom: -34px;
}
#map {
  width: 100%;
  height: 420px;
}
.map_note {
  font-size: 14px;
  margin-top: 12px;
}
.campaign {
  width: 67%;
  margin: 75px auto 0;
}
@media(max-width:768px) {
  .campaign {
    width: 85%;
    margin: 30px auto 0;
  }
}
.campaign_bnr {
  display: block;
  position: relative;
}
.campaign_bnr:hover {
  @media (any-hover: hover) {
    opacity: 0.7;
  }
}
.campaign_bnr img {
  width: 100%;
}
.campaign_bnr .campaign_pop {
  position: absolute;
  width: 20%;
  top: -43%;
  right: -10%;
}
.campaign .campaign_note {
  font-size: 14px;
  text-align: center;
  margin-top: 14px;
}
@media(max-width:768px) {
  .campaign .campaign_note {
    margin-top: 0;
  }
}
.btn_calc {
  text-align: center;
  margin-top: 40px;
}
.calc-button {
  background: #009c8d;
  color: #FFF;
  font-size: 20px;
  font-weight: bold;
  padding: 14px;
  width: 100%;
  max-width: 358px;
  margin: auto;
  transition: 0.3s;
}
.calc-button:hover {
  @media (any-hover: hover) {
    background: #000;
    color: #FFF;
  }
}
.step+.step {
  margin-top: 44px;
}
.radiobox {
  display: grid;
  grid-template-columns: 23.33% 1fr;
  justify-content: space-between;
  width: 100%;
  margin-top: 30px;
}
@media(max-width:768px) {
  .radiobox {
    grid-template-columns: 1fr;
  }
}
.radiobox+.radiobox {
  margin-top: 30px;
}
.radiobox .radiobox_head {
  color: #009c8d;
  font-weight: bold;
  padding-top: 8px;
}
@media(max-width:768px) {
  .radiobox .radiobox_head {
    padding-top: 0;
    margin-bottom: 10px;
  }
}
.radiobox_square {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 1.35%;
}
.radiobox_square label {
  border: 1px solid #009c8d;
  border-radius: 5px;
  min-width: 32.43%;
  padding: 9.5px 10px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 0;
}
.radiobox_square label small {
  font-size: 12px;
}
@media(max-width:768px) {
  .radiobox_square label small {
    letter-spacing: -0.1em;
  }
}
.radiobox_body input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radiobox_body input[type="radio"]:checked+label {
  background: #009c8d;
  color: #FFF;
}
.radiobox_body select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  border: 1px solid #009c8d;
  border-radius: 5px;
  padding: 9.5px 10px;
  width: 100%;
  cursor: pointer;
  position: relative;
  color: #000 !important;
}
.radiobox_body select option {
  color: #000 !important;
}
.radiobox_truck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 1.35%;
}
@media(max-width:768px) {
  .radiobox_truck {
    gap: 0 1.35%;
  }
}
.radiobox_truck label {
  border: 1px solid #009c8d;
  aspect-ratio: 182/132;
  border-radius: 5px;
  padding: 8px;
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
}
@media(max-width:768px) {
  .radiobox_truck label {
    aspect-ratio: 0;
    min-height: 140px;
    min-height: 30vw;
  }
}
.radiobox_truck label .truck_img {
  width: 152px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
@media(max-width:768px) {
  .radiobox_truck label .truck_img {
    width: 65%;
    height: auto;
  }
}
.truck_note {
  font-size: 14px;
}
.select_deco {
  position: relative;
  width: 100%;
  max-width: 222px;
}
@media(max-width:768px) {
  .select_deco {
    max-width: 100%;
  }
}
.select_deco::before {
  content: '';
  width: 8px;
  height: 8px;
  border-top: solid 2px #009c8d;
  border-right: solid 2px #009c8d;
  position: absolute;
  right: 5%;
  top: 0;
  bottom: 0;
  margin: auto;
  transform: rotate(135deg);
}
.step2_note {
  margin: 40px 0 16px;
  text-align: right;
  font-size: 14px;
}
.link_txt {
  color: #009c8d;
  text-decoration: underline;
}
.link_txt:hover {
  @media (any-hover: hover) {
    text-decoration: none;
  }
}
.result {
  display: grid;
  grid-template-columns: 33.33% 1fr;
}
@media(max-width:768px) {
  .result {
    grid-template-columns: 1fr;
  }
}
.result .result_head {
  background: #009c8d;
  color: #FFF;
  font-weight: bold;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media(max-width:768px) {
  .result .result_head {
    padding: 15px 0;
  }
}
.result .result_body {
  background: #F0F9F8;
}
.result .result_body_item {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  /* margin-left: 25%;
  margin-left: 8%; */
  justify-content: center;
  position: relative;
}
@media(max-width:768px) {
  .result .result_body_item {
    padding: 10px 0;
  }
}
.result .result_body_item+.result_body_item::before {
  content: "";
  display: block;
  width: calc(100% + 8%);
  height: 1px;
  background: #009c8d;
  position: absolute;
  top: 0;
  left: -8%;
}
.result #distance {
  font-size: 40px;
}
@media(max-width:768px) {
  .result #distance {
    font-size: 30px;
  }
}
.result .symbol_km {
  font-size: 30px;
  margin-left: 2%;
}
@media(max-width:768px) {
  .result .symbol_km {
    font-size: 20px;
  }
}
.result .item__txt {
  /* min-width: 80px;
  text-align: right; */
  margin-right: 5%;
}
.result .price_wrap {
  color: #009c8d;
  font-size: 40px;
}
@media(max-width:768px) {
  .result .price_wrap {
    font-size: 30px;
  }
}
.result .tax {
  font-size: 16px;
  font-weight: normal;
}
.attention {
  background: #F0F9F8;
  padding: 40px 50px;
  margin: 60px 0 100px;
}
@media(max-width:768px) {
  .attention {
    padding: 20px 20px;
    margin: 60px 0;
  }
}
.attention .attention_ttl {
  font-size: 24px;
  font-weight: bold;
  color: #009c8d;
  margin-bottom: 34px;
}
@media(max-width:768px) {
  .attention .attention_ttl {
    font-size: 20px;
    margin-bottom: 20px;
  }
}
.attention .attention_box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media(max-width:768px) {
  .attention .attention_box {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.attention .attention_list li {
  position: relative;
  padding-left: 20px;
}
.attention .attention_list li::before {
  content: "■";
  display: block;
  color: #009c8d;
  position: absolute;
  left: 0;
  top: 0;
}
#errorMessage {
  color: red;
  text-align: center;
  font-weight: bold;
  margin: 10px 0;
}

/* アンカーリンク（車種セクション内） */
.truck_size_link {
  display: inline-block;
  margin-top: 10px;
  color: #009c8d;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid #009c8d;
  padding-bottom: 2px;
  transition: opacity 0.3s;
}
.truck_size_link::before {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  margin-right: 6px;
}
.truck_size_link:hover {
  @media (any-hover: hover) {
    opacity: 0.7;
  }
}

/* 車種別サイズ比較セクション */
.truck-size {
  margin: 0 0 100px;
  padding: 50px 0 0;
}
@media(max-width:768px) {
  .truck-size {
    margin: 0 0 60px;
    padding: 30px 0 0;
  }
}
.truck-size_ttl {
  font-size: 24px;
  font-weight: bold;
  color: #009c8d;
  text-align: center;
  margin-bottom: 16px;
}
@media(max-width:768px) {
  .truck-size_ttl {
    font-size: 20px;
  }
}
.truck-size_lead {
  text-align: center;
  font-size: 15px;
  color: #555;
  margin-bottom: 40px;
}
@media(max-width:768px) {
  .truck-size_lead {
    font-size: 14px;
    margin-bottom: 24px;
  }
}
.truck-size_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media(max-width:768px) {
  .truck-size_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.truck-size_card {
  border: 1px solid #cde8e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}
.truck-size_card:hover {
  @media (any-hover: hover) {
    box-shadow: 0 4px 20px rgba(0, 156, 141, 0.12);
  }
}
.truck-size_card_head {
  background: #009c8d;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  padding: 12px 0;
}
.truck-size_card_img {
  padding: 20px;
  background: #F0F9F8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.truck-size_card_img img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
}
@media(max-width:768px) {
  .truck-size_card_img {
    padding: 15px;
  }
  .truck-size_card_img img {
    max-height: 200px;
  }
}
.truck-size_card_spec {
  padding: 16px 20px;
}
.truck-size_card_spec dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 0;
}
.truck-size_card_spec dl div {
  display: flex;
  align-items: center;
  width: 50%;
}
@media(max-width:480px) {
  .truck-size_card_spec dl div {
    width: 100%;
  }
}
.truck-size_card_spec dt {
  font-size: 13px;
  font-weight: bold;
  color: #009c8d;
  min-width: 72px;
}
.truck-size_card_spec dd {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin: 0;
}
.truck-size_note {
  font-size: 14px;
  color: #777;
  text-align: center;
  margin-top: 24px;
}

/* 送信ボタン無効状態 */
.campaign_bnr:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* 計算ボタン ローディングスピナー */
.calc-button .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 計算ボタン 無効状態 */
.calc-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 計算完了状態 */
.calc-button.is-done {
  background: #2ecc71;
}