
.hidden {
  display: none;
}

.step {
  /* padding: 0 var(--font-size_2); */
  /* margin: auto 0; */
  color: var(--black_color);
  height: 380px;
}

.step h2 {
  font-size: var(--font-size_2);
  font-weight: bold;
}

/* -------------------------------------------------- */
/*  * */
/* -------------------------------------------------- */
.price-simulator-container {
  flex: 1;
  display: flex;
  /* justify-content: center; */
  align-items: center;
  max-width: 1200px;
  min-height: 0;
  margin-top: var(--header_height);
  margin-bottom: var(--font-size_1);
  padding-top: calc(var(--font-size_1)*3);
  color: var(--black_color);
  text-align: center;
  flex-direction: column;
}


/* -------------------------------------------------- */
/*  ボタンスタイル*/
/* -------------------------------------------------- */
.select_btn {
  width: calc(100%/3);
  min-width: 120px;
  height: 60px;
  padding: var(--font-size_7);
  color: var(--black_color);
  background-color: var(--main_color_r);
  cursor: pointer;
  font-size: var(--font-size_4);
  font-weight: bold;
  text-align: center;
  border: 2px solid var(--black_color);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease all;
  z-index: 1;
}

.select_btn:before {
  /* transition: 0.5s all ease; */
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  bottom: 0;
  opacity: 0;
  content: "";
  background-color: var(--main_color_b);
  z-index: -1;
  border-radius: 7px;
}
/* .select_btn:hover {
  color: #fff;
} */
.select_btn:hover:before {
  transition: 0.5s all ease;
  left: 0;
  right: 0;
  opacity: 1;
}
.select_btn:active {
  transform: scale(0.9);
}
/* .select_btn: {
  transition: 0.5s all ease;
  left: 50%;
  right: 50%;
  opacity: 0;
} */

/* --------------------------- */
.select_btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--font-size_1);
}

/* step3 */
#step3 .select_btn:hover {
  transition: none;
  color: inherit;
}

/* step3内のselect_btnのクリック時の動きを設定 */
#step3 .select_btn:active:before,
#step3 .selected_btn:before {
  transition: 0.5s all ease;
  left: 0;
  right: 0;
  opacity: 1;
}
#step3 .select_btn:hover:before {
  transition: none;
  opacity: 0;
  left: 50%;
  right: 50%;
}

.selected_btn {
  transition: 1s all ease;
  background-color: var(--main_color_b);
}
/* .selected_btn:hover {
  transition: 0.5s all ease;
  color: var(--black_color);
} */


.step button {
  margin-top: var(--font-size_1);
}


/* -------------------------------------------------- */
/*  前へ計算ボタンスタイル*/
/* -------------------------------------------------- */
.privious-next-btns {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  /* gap: var(--font-size_1); */
  margin-top: var(--font-size_1);
}
/* 計算ボタンが表示されているときだけ両端配置 */
.privious-next-btns:has(.calculate_btn:not(.hidden)) {
  justify-content: space-between;
}

.calculate_btn {
  width: 160px;
  height: 60px;
  padding: var(--font-size_7);
  color: var(--black_color);
  background-color: var(--orange_color);
  cursor: pointer;
  font-size: var(--font-size_4);
  font-weight: bold;
  text-align: center;
  border: 2px solid var(--black_color);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease all;
  z-index: 1;
}

.prevBtn {
  width: 160px;
  height: 60px;
  padding: var(--font-size_7);
  color: var(--main_color_b);
  background: none;
  cursor: pointer;
  font-size: var(--font-size_4);
  font-weight: bold;
  text-align: center;
  border: none;
  position: relative;
  transition: 0.3s ease all;
}

.prevBtn:hover {
  opacity: 0.7;
}

/* -------------------------------------------------- */
/*  step4 */
/* -------------------------------------------------- */
.price {
  font-size: var(--font-size_4);
  font-weight: bold;
  margin: var(--font-size_2) auto 0;
  border-bottom: 1px solid var(--main_color_b);
  width: max-content;
}
.estimate-actions {
  margin-top: var(--font-size_0);
  display: flex;
  flex-direction: column;
  font-size: var(--font-size_5);
  gap: 16px;
  align-items: center;
}
.estimate-btn {
  display: flex;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: var(--font-size_4);
  font-weight: bold;
  text-decoration: none;
  color: var(--white_color);
  align-items: center;
}
/* .estimate-btn.line-btn {
} */
.line-btn-p {
  font-size: var(--font-size_4);
  background: #00b901;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--font-size_7);
  border-radius: 4px;
}
.line-btn img {
  margin-right: var(--font-size_7);
}
.estimate-btn.site-btn {
  background: var(--main_color_b, #007b9d);
}
.estimate-btn:hover {
  opacity: 0.8;
}

/* ------------------ モバイル用レスポンシブ ------------------ */
@media (max-width: 768px) {
  .price-simulator-container {
    padding: var(--font-size_0) var(--font-size_2) 0;
    max-width: 100%;
    margin-top: var(--header_height);
  }
  .step {
    height: auto;
    padding: 0 8px;
  }
  .step h2 {
    font-size: var(--font-size_3);
  }
  .select_btns {
    /* flex-direction: column; */
    gap: 12px;
  }
  .select_btn {
    /* width: 100%;
    min-width: unset; */
    font-size: var(--font-size_5);
    height: 48px;
    padding: 8px;
  }
  .privious-next-btns {
    margin-top: var(--font-size_0);
  }
  .calculate_btn,
  .prevBtn {
    /* width: 100%; */
    font-size: var(--font-size_5);
    height: 48px;
    padding: 8px;
  }
  .price {
    font-size: var(--font-size_5);
  }
  .estimate-actions {
    font-size: var(--font-size_5);
    gap: 12px;
  }
  .estimate-btn,
  .line-btn-p {
    font-size: var(--font-size_5);
    padding: 8px 12px;
    height: auto;
  }
}