/* 全体のセクションスタイル */
.contact-form-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.contact-form-container {
  max-width: 800px;
  width: 100%;
  padding: 40px 30px;
  margin: 0 auto;
}

/* 見出し */
.features-header-center {
  font-size: var(--fs__5l);
  text-align: center;
  margin-bottom: 20px;
}

.contact-description {
  font-size: var(--fs__l);
  margin-bottom: 30px;
  text-align: center;
}

/* 入力フォーム テーブル形式（CF7専用） */
table.CF7_table {
  width: 80%;
  margin: 0 auto;
  border: 3px solid #e5e5e5;
  border-collapse: separate;
  border-spacing: 0 0;
}

.CF7_table th,
.CF7_table td {
  padding: 15px;
  text-align: left;
  font-size: var(--fs__l);
  vertical-align: top;
  background-color: #fff;
}

.CF7_table td .form-control {
  margin-bottom: 0;
}

.CF7_table th {
  background-color: #ebedf5;
  width: 30%;
}

.CF7_table tr {
  border-top: none;
}

.single .entry-content table.CF7_table,
.page .entry-content table.CF7_table {
  display: table;
}

/* 入力欄 */
.CF7_table input,
.CF7_table textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  font-size: var(--fs__l);
  box-sizing: border-box;
}

.CF7_table ::placeholder {
  color: #797979;
  font-size: var(--fs__l);
}

/* 「必須」「任意」ラベル */
.CF7_req,
.CF7_unreq {
  font-size: var(--fs__xs);
  padding: 5px 8px;
  color: #fff;
  border-radius: 3px;
  margin-right: 1em;
}

.CF7_req {
  background: #f79034; /* オレンジ */
}

.CF7_unreq {
  background: #bdbdbd; /* グレー */
}

label {
  font-size: var(--fs__l);
  color: #333;
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  background: none;
}

/* 必須マークの自動表示 */
label.required::after {
  content: '*';
  color: #d00;
  font-weight: bold;
  margin-left: 0.3em;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #004d67;
  box-shadow: 0 0 5px rgba(0, 77, 103, 0.9);
  outline: none;
  transition: border-color 0.6s, box-shadow 0.6s, background-color 0.6s;
}

input[name="your-tel"] {
  ime-mode: disabled;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  table.CF7_table {
    width: 95%;
    border-spacing: 0 16px;
  }
  .CF7_table tr,
  .CF7_table td,
  .CF7_table th {
    display: block;
    width: 100%;
    line-height: 2.5em;
  }
  .CF7_table th {
    background-color: #ebedf5;
  }
}



/* ボタンスタイル */
.wpcf7 input.wpcf7-submit,
.CF7_btn button,
.form-group.buttons button {
  background-color: #004d67;
  border: none;
  color: #fff;
  font-size: var(--fs__l);
  font-weight: bold;
  padding: 10px 30px;
  margin: 10px;
  cursor: pointer;
  border-radius: 5px;
  width: 330px;
  height: auto;
}

.CF7_btn,
.form-group.buttons {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wpcf7-spinner {
  width: 0;
  margin: 0;
}

/* 確認画面で使う form-control（入力欄と共通スタイル） */
.form-control {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: var(--fs__l);
  background: #fff;
  color: #333;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  box-sizing: border-box;
  min-height: 48px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 30px;
}

/* 入力欄全体に適用 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  font-size: var(--fs__l);
  box-sizing: border-box;
  background: #fff;
}

.wpcf7-form ::placeholder {
  font-size: var(--fs__l);
  color: #797979;
}

.required-star {
  color: #d00;
  font-weight: bold;
  margin-left: 0.25em;
}
/* 通常状態（全てのラベルボタン） */
.form-input label span {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  border: 1px solid #d8d8d8;
  background-color: #fff;
  color: #004d67;
  transition: background-color 0.6s, color 0.6s;
}

/* ラジオ本体を非表示に */
.form-input input[type="radio"] {
  display: none;
}

/* 選択されたボタンの見た目（色だけ変更） */
.form-input input[type="radio"]:checked + span {
  background-color: #004d67;
  color: #fff;
}

.thanks-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.thanks-container {
  max-width: 700px;
  width: 100%;
  background: #fff;
  padding: 40px 30px;
  text-align: center;
  border-radius: 10px;
}

.thanks-title {
  font-size: var(--fs__4l, 3.4rem); /* カスタムプロパティ対応 */
  margin-bottom: 20px;
  color: #004d67;
  font-weight: bold;
}

.thanks-message {
  font-size: var(--fs__l, 1.8rem);
  margin-bottom: 40px;
  line-height: 1.8;
  color: #333;
}

.thanks-button {
  display: inline-block;
  background-color: #004d67;
  color: #fff;
  text-decoration: none;
  font-size: var(--fs__m, 1.6rem);
  padding: 12px 30px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.thanks-button:hover {
  background-color: #006d8c;
}
