/* 1つ目の -ボタンを非表示にするだけ */
#repeatable-wrapper .repeatable-item:first-child .remove-item {
  display: none;
}

/* 共通ボタンスタイル */
#repeatable-wrapper .remove-item,
#add-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* 固定幅 */
  height: 40px; /* 固定高さ */
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background: #27a7de;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#repeatable-wrapper .remove-item:hover,
#add-item:hover {
  background: #156587;
}

/* 追加ボタンは下に少し margin を付ける */
#add-item {
  margin-top: 10px;
}

.remove-item {
  margin-top: 10px;
}

#confirm-btn {
  width: 240px;
  height: 55px;
  border-radius: 100px;
  border: none;
  color: #fff;
  font-weight: 400;
  background-color: #2ea7e0;
  font-size: 18px;
  -webkit-appearance: none;
}

#back-btn {
  width: 240px;
  height: 55px;
  border-radius: 100px;
  border: none;
  color: #fff;
  font-weight: 400;
  background-color: #2ea7e0;
  font-size: 18px;
  -webkit-appearance: none;
}

.wpcf7-submit {
  width: 240px;
  height: 55px;
  border-radius: 100px;
  border: none;
  color: #fff;
  font-weight: 400;
  background-color: #2ea7e0;
  font-size: 18px;
  -webkit-appearance: none;
}

#confirm-btn:hover,
#back-btn:hover,
.wpcf7-submit {
  cursor: pointer;
}

#confirm-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}

#confirm-content thead {
  background-color: #0073aa; /* メイン色 */
  color: #fff;
}

#confirm-content th,
#confirm-content td {
  border: 1px solid #ddd;
  padding: 10px 15px;
  text-align: left;
}

#confirm-content tr:nth-child(even) {
  background-color: #f9f9f9; /* 交互色 */
}

#confirm-content th {
  font-weight: bold;
}

.repeatable-item {
  margin-bottom: 16px;
  padding: 0px 16px 16px 16px;
  border-radius: 4px;
}

/* 偶数番目の .repeatable-item にグレー背景を適用 */
#repeatable-wrapper .repeatable-item:nth-child(even) {
  background-color: #f7f7f7;
}

/* テーブルを包む親要素に overflow-x を付ける */
#confirm-content {
  overflow-x: auto;
}

/* テーブル自体に min-width を付けると幅を保てる */
#confirm-content table {
  min-width: 800px; /* 適宜調整 */
  border-collapse: collapse;
}

/* スマホで見やすく */
#confirm-content table th,
#confirm-content table td {
  padding: 8px;
  border: 1px solid #333;
  text-align: left;
  font-size: 14px;
}
#confirm-content table th {
  white-space: nowrap;
}

.form-submit {
  margin-top: 60px auto o auto;
  display: flex;
  flex-direction: row; /* 横並び */
  justify-content: center; /* 中央寄せ */
  align-items: center; /* 縦方向も中央寄せ */
  gap: 12px;
}

.form-submit div {
  padding: 12px;
}

.secondary {
  display: none;
}

.wrapper .form-wrap .form-input input[type='tel'] {
  width: 100% !important;
}

.wrapper .form-wrap .form-input textarea {
  height: 80px !important;
}

#confirm-content h3 {
  margin-bottom: 16px;
}

.form-button-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.8); /* 黒50%透明 */
}

.form-submit {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.8); /* 黒50%透明 */
}

.confirm-table {
  margin-bottom: 120px !important;
}

.wrapper .form-wrap {
  margin-bottom: 120px !important;
}
