.form-section {
  background-color: #ff7f50;
  color: #fff;
  padding: 1em;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1em;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1em;
  font-size: 1em;
}

#confirmBtn {
  display: block;              /* インライン → ブロック要素に */
  width: 100%;                 /* 横幅いっぱいに */
  box-sizing: border-box;      /* padding含めて幅制御 */
  background-color: #ff7f50;
  color: #fff;
  padding: 0.8em;
  font-size: 1.1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 1em;
  text-align: center;
}

#confirmBtn:hover {
  opacity: 0.9;
}

/* モーダル背景 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* JSで表示時にflexにする */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* モーダル内のボックス */
.modal-content {
  background: #ffffff;
  padding: 2em;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  animation: fadeInUp 0.3s ease-out;
}

.cf7-hidden {
  display: none !important;
}

/* モーダル内テキスト整形 */
.modal-content p {
  margin-bottom: 1em;
}

/* モーダル内ボタン */
#sendBtn, #closeBtn {
  background-color: #ff7f50;
  color: #fff;
  padding: 0.6em 1.5em;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.8em;
}

#sendBtn:hover, #closeBtn:hover {
  opacity: 0.85;
}

.wpcf7-not-valid {
  margin-bottom: 0 !important;
}

.is-hidden {
  display: none;
}
