/* サイドメニュー */
#sp-fixed-menu {
  opacity: 1;
  transition: opacity 0.3s ease;
}

#sp-fixed-menu.in-form {
  opacity: 0;
}

/* フォーム */
.form-group {
  margin-bottom: 1.5rem;
}

.wpcf7-not-valid-tip {
  margin-top: 0.25rem;
}

.form-group label {
  display: inline-block;
  margin-bottom: 0.5rem;
}

@media screen and (min-width: 640px) {
  .form-group label {
    font-size: 1.125rem;
  }
}

.form-group p {
  margin-bottom: 0.5rem;
}

@media screen and (min-width: 1024px) {
  .form-group {
    margin-bottom: 2rem;
  }
  .text-form p {
    margin-bottom: 0;
  }
  .text-form p {
    display: flex;
  }
  .text-form label {
    margin-bottom: 0;
    width: 35%;
  }
  .text-form .wpcf7-form-control-wrap {
    width: 65%;
  }

  .check-form {
    display: flex;
  }
  .check-form p:first-child {
    margin-bottom: 0;
    width: 35%;
  }
}

.required {
  margin-left: 0.25rem;
  color: red;
}

.form-control,
input[type="url"],
input[type="email"],
input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid white;
  padding: 0.25rem 0.5rem;
  background: rgb(222, 222, 222);
  color: #0e0e0e;
}

/* チェックボックスのデザイン */
.checkbox-control {
  display: flex;
  flex-direction: column;
}
/* 各ラベル（選択肢） */
.checkbox-control label,
.privacy label {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 30px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  user-select: none;
}

.wpcf7-list-item.last label {
  margin-bottom: 0;
}

/* 標準のチェックボックスを非表示 */
.checkbox-control input[type="checkbox"],
.privacy input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* カスタムチェックボックス外枠 */
.checkbox-control label::before,
.privacy label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-color: rgb(222, 222, 222);
  transition: all 0.2s ease;
}

/* チェックされたときのマーク（✓） */
.checkbox-control input[type="checkbox"]:checked + span::after,
.privacy input[type="checkbox"]:checked + span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 6px;
  height: 12px;
  border: solid #0e0e0e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ラベル内のテキスト部分 */
.checkbox-control span,
.privacy label span {
  display: inline-block;
  margin-left: 10px;
}

.privacy {
  text-align: center;
  margin-top: 3rem;
}

/* ボタンとスピナーをラップするコンテナ */
.btn-wrapper {
  display: flex;
  justify-content: center; /* 中央に揃える */
  align-items: center; /* 垂直方向に中央揃え */
  gap: 10px; /* ボタンとスピナーの間隔 */
  margin-top: 30px;
}

/* 送信ボタン */
.btn {
  display: inline-block;
  background-color: rgb(222, 222, 222);
  color: #0e0e0e;
  padding: 0.5rem 3rem;
  cursor: pointer;
  margin-left: 72px;
}

.btn:hover {
  background-color: #005177;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #dc3232;
}
