/* モーダルのスタイル */
.modal {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  z-index: 100; /* 他のコンテンツより上に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.7); /* 背景色を半透明に */
  overflow: auto;
}

/* モーダルのコンテンツ */
.modal-content {
  background-color: #fff;
  padding: 20px;
  width: 50%;
  max-width: 1080px;
  box-sizing: border-box;
  border-radius: 30px;
  position: relative;
  margin: 0 auto;
}
@media screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

/* 閉じるボタン */
.close {
  color: #ffffff;
  font-size: 20px;
  background-color: #111111;
  border-radius: 100px;
  font-weight: bold;
  position: absolute;
  top: 40px;
  right: 40px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media screen and (max-width: 700px) {
  .close {
    top: 20px;
    right: 20px;
  }
}

.close:hover,
.close:focus {
  color: #ffffff;
  background-color: #777777;
  cursor: pointer;
}

.ast {
  color: #ff0000;
}
.modal-form button {
  background-color: #24aa5a;
  font-size: 24px;
  font-weight: bold;
  border-radius: 40px;
  width: 400px;
  height: 80px;
  max-width: 100%;
  color: #fff;
  transition: all 0.6s cubic-bezier(0.01, 1.69, 0.99, 0.94);
  position: relative;
  display: block;
  margin: 0 auto;
}
.modal-form button:not(:disabled):hover {
  box-shadow: 3px 4.9px 16px rgba(167, 255, 202, 0.6);
  letter-spacing: 3px;
  transition: 0.3s;
  width: 420px;
}
.modal-form button:disabled {
  background-color: #808080;
}
.modal-form button:disabled:hover {
  cursor: initial;
}
.cost-calculation-copy {
  font-size: 20px;
  margin-top: 10px;
  text-align: center;
  position: relative;
  padding-bottom: 285px;
}
.cost-calculation-copy:after {
  max-width: 100%;
  width: 356px;
  height: 255px;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  background: url(../img/cost-calculation.png) no-repeat;
  background-size: contain;
  background-position: 50% 50%;
}
.modal-form {
  margin-top: 20px;
}
.cost-calculation-form-error {
  color: #ff0000;
  font-weight: bold;
}
.modal-form .form-group {
  margin-top: 40px;
}
.modal-form input[type="email"],
.modal-form input[type="text"],
.modal-form select {
  background-color: #f8f8f8;
  border: solid 1px #dedede;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 16px;
  height: 64px;
  margin-top: 14px;
  padding: 10px 20px;
}
.cost-calculation-form-input::placeholder {
  color: #c5c5c5;
}
.cost-calculation-form-input-radio {
  margin-top: 14px;
  display: flex;
  gap: 45px;
}
.modal-form label {
  font-size: 20px;
  font-weight: bold;
}
@media screen and (max-width: 700px) {
  .modal-form label {
    font-size: 16px;
  }
}
.cost-calculation-section {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1080px;
  padding: 60px 80px 60px;
  width: 100%;
}
.cost-calculation-section h2 {
  color: #111111;
}
@media screen and (max-width: 700px) {
  .cost-calculation-section h2 .main-title {
    font-size: 22px;
  }
}
@media screen and (max-width: 700px) {
  .cost-calculation-section {
    padding: 40px 20px;
  }
}
.modal-fixed-btn {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 99;
  width: 58px;
  background: #f4db22;
  color: #111111;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  padding: 0px 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 220px;
  justify-content: center;
  border: none;
}
.modal-fixed-btn:hover {
  transform: scale(1.1);
  transition: 0.3s;
}
.modal-fixed-btn span {
  background-color: #24aa5a;
  border-radius: 6px;
  color: #fff;
  padding: 5px 0;
  margin-bottom: 10px;
  width: 40px;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.1em;
  box-sizing: border-box;
}
.modal-fixed-btn strong {
  writing-mode: vertical-rl;
  font-size: 18px;
  letter-spacing: 0.2em;
}
