.page__title--default {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 2rem;
  color: var(--text-color);
}

.CF7_container {
  margin: 0 auto;
  padding: 1rem 3rem;
  background: #fff;
  border-radius: 10px;
  width: 800px;
}

.CF7_table {
  width: 100%;
  border-collapse: collapse;
}

.CF7_table th {
  text-align: left;
  font-size: 0.9em;
  padding-bottom: 5px;
  color: var(--text-color);
  width: 30%;
}

/* 必須ラベル */
.CF7_req {
  font-size: 0.8em;
  padding: 2px 6px 3px 6px;
  background: #b80000; /* ダークブルー */
  color: #fff;
  border-radius: 3px;
  margin-left: 10px;
}

.CF7_table tr {
  border-bottom: 1px solid #ddd; /* 区切り線 */
}

/* 入力欄スタイル */
.CF7_table td {
  width: 70%;
  padding: 2rem 0;
}

.CF7_table tr:last-child td {
  border-bottom: none;
}

.CF7_table input,
.CF7_table textarea,
.CF7_table select {
  width: 100%;
  padding: 10px;
  border: none;
  background: #f0f0f0;
  border-radius: 5px;
  font-size: 0.8rem;
  transition: 0.3s;
  box-sizing: border-box;
  display: block;
  font-family: inherit;
}

.CF7_table textarea {
  resize: none;
}

.CF7_table input:focus,
.CF7_table textarea:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 230, 0.3);
}

/* プレースホルダーの色 */
.CF7_table ::placeholder {
  color: #aaa;
}

/* 送信ボタン */
.CF7_btn {
  text-align: center;
  margin-top: 2rem;
}

.wpcf7-submit {
  border: none;
  font-size: 1.1em;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
  color: var(--secondary-color);
  background: transparent;
  font-family: inherit;
}

.wpcf7-submit:hover {
  background-color: var(--secondary-color);
  color: #fff;
}

@media screen and (max-width: 800px) {
  .CF7_container {
    width: 90vw;
    margin: 0 auto;
    padding: 1rem;
  }

  .CF7_table tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: none;
    margin-top: 1.5rem;
  }

  .CF7_table th,
  .CF7_table td {
    font-size: 0.8em;
    width: 100%;
    padding: 0;
  }

  .CF7_table input,
  .CF7_table textarea,
  .CF7_table select {
    font-size: 0.8rem;
    padding: 8px;
  }
}