/* =================================================================
   CF7 Confirm Step 共通スタイル 完全版
================================================================= */

/* =================================================================
   共通ラッパー
================================================================= */
.cf7-confirm-wrap {
  width: 100%;
  box-sizing: border-box;
}

.cf7-confirm-wrap *,
.cf7-confirm-wrap *::before,
.cf7-confirm-wrap *::after {
  box-sizing: border-box;
}

/* =================================================================
   入力画面テーブル
================================================================= */
.cf7-confirm-wrap .cf7-input-table {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0.5em !important;
  border-top: 1px solid #999;
  border-left: 1px solid #999;
}

.cf7-confirm-wrap .cf7-input-table th,
.cf7-confirm-wrap .cf7-input-table td {
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
  vertical-align: middle;
  padding: 12px;
  min-width: 0;
}

/* 左列 */
.cf7-confirm-wrap .cf7-input-table th {
  width: 32%;
  text-align: left;
  font-weight: bold;
  font-size: 1em;
  line-height: 1.5;
  background: #f8f8f8;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 右列 */
.cf7-confirm-wrap .cf7-input-table td {
  width: 68%;
  background: #fff;
  line-height: 1.5;
  min-width: 0;
}

/* th内の見出し */
.cf7-confirm-wrap .cf7-input-table th .subject {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cf7-confirm-wrap .cf7-input-table th .content {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 1.02em;
  font-weight: bold;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* 入力文字に対するルールの表記 */
.cf7-confirm-wrap .cf7-input-table th .content .input-rule{
  font-size: 0.8em !important;
  font-weight: normal;
	color: #4169E1;	/* royalblue */
}
/* 必須表示 */
.cf7-confirm-wrap .require {
  display: inline;
  margin-left: 4px;
  color: #e55a3b;
  font-size: 0.95em;
  font-weight: bold;
  white-space: nowrap;
}

/* サブメッセージ */
.cf7-confirm-wrap .submessage {
  display: block;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  color: #777;
  font-size: 0.82em;
  font-weight: normal;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* th、td の中の p */
.cf7-confirm-wrap th p,
.cf7-confirm-wrap td p {
  margin: 0;
  width: 100%;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* =================================================================
   生年月日 横並び
================================================================= */
.cf7-input-table td.birthdate {
  padding-top: 8px;
  padding-bottom: 8px;
}

.cf7-input-table td.birthdate .birthdate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.cf7-input-table td.birthdate .birthdate-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.cf7-input-table td.birthdate .birthdate-item input,
.cf7-input-table td.birthdate .birthdate-item select {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  vertical-align: middle;
  box-sizing: border-box;
}

.cf7-input-table td.birthdate .birthdate-year input {
  width: 120px !important;
}

.cf7-input-table td.birthdate .birthdate-month select,
.cf7-input-table td.birthdate .birthdate-day select {
  width: 72px !important;
}

.cf7-input-table td.birthdate .birthdate-unit {
  display: inline-block;
  font-size: 1.3em;
  line-height: 1.3em;
  white-space: nowrap;
}

/* =================================================================
   採用エントリーフォーム 姓・名 横並び
================================================================= */
.cf7-input-table td.namepair {
  padding-top: 8px;
  padding-bottom: 8px;
}

.cf7-input-table td.namepair .namepair-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.cf7-input-table td.namepair .namepair-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
}

.cf7-input-table td.namepair .namepair-label {
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1.5;
}

.cf7-input-table td.namepair .namepair-item .wpcf7-form-control-wrap {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.cf7-input-table td.namepair .namepair-item input[type="text"] {
  display: block;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* =================================================================
   ラジオボタン・チェックボックス
================================================================= */
.cf7-confirm-wrap .wpcf7-form-control.wpcf7-radio .wpcf7-list-item,
.cf7-confirm-wrap .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item {
  display: block;
  margin: 0 0 6px 0;
  font-size: 1em;
  line-height: 1.5;
}

.cf7-confirm-wrap .wpcf7-form-control.wpcf7-radio .wpcf7-list-item:last-child,
.cf7-confirm-wrap .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item:last-child {
  margin-bottom: 0;
}

.cf7-confirm-wrap .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.cf7-confirm-wrap .wpcf7-list-item-label {
  position: relative;
  top: 1px;
  font-size: 1.3em;
  line-height: 1.6;
}

.cf7-confirm-wrap .wpcf7-list-item input[type="radio"],
.cf7-confirm-wrap .wpcf7-list-item input[type="checkbox"] {
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}

/* =================================================================
   入力部品
================================================================= */
.cf7-confirm-wrap input[type="text"],
.cf7-confirm-wrap input[type="email"],
.cf7-confirm-wrap input[type="tel"],
.cf7-confirm-wrap input[type="number"],
.cf7-confirm-wrap input[type="date"],
.cf7-confirm-wrap input[type="url"],
.cf7-confirm-wrap textarea,
.cf7-confirm-wrap select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid #ccc;
  color: #555;
  background: #fff;
  font-size: 0.92rem !important;
  line-height: 1.5;
}

.cf7-confirm-wrap textarea {
  resize: vertical;
  min-height: 120px;
}

.cf7-confirm-wrap ::placeholder {
  font-size: 0.88rem;
  color: #999;
}

/* =================================================================
   採用エントリーフォーム：テーブル外自由入力項目
================================================================= */
.cf7-confirm-wrap .entry-section-title {
  margin: 24px 0 12px;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: bold;
}

.cf7-confirm-wrap .entry-freefield {
  margin-top: 20px;
	padding-top: 1.5em;
}

.cf7-confirm-wrap .entry-freefield:first-of-type {
  margin-top: 0;
}

.cf7-confirm-wrap .entry-freefield .subject {
  display: block;
  margin-bottom: 4px;
  line-height: 1.5;

  background: none;
  border-bottom: solid 1px #4f4c4b;
  color: #4f4c4b;
  font-size: 1.25em;
  font-weight: bold;
  line-height: 1.2;
  color: #48512d;
  padding: 0 0 0.2em;
  margin: 0 0 12px;

}
.cf7-confirm-wrap .entry-freefield .subject p {
	margin-bottom: 0 !important;
}

.cf7-confirm-wrap .entry-freefield .subject .content {
  font-size: 1.02em;
  font-weight: bold;
  line-height: 1.5;
}

.cf7-confirm-wrap .entry-freefield .submessage {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-size: 0.82em;
  font-weight: normal;
  line-height: 1.5;
}

.cf7-confirm-wrap .entry-freefield textarea,
.cf7-confirm-wrap .entry-freefield input[type="text"],
.cf7-confirm-wrap .entry-freefield input[type="email"],
.cf7-confirm-wrap .entry-freefield input[type="tel"],
.cf7-confirm-wrap .entry-freefield input[type="number"],
.cf7-confirm-wrap .entry-freefield select {
  width: 100%;
  max-width: 100%;
}

.cf7-confirm-wrap .entry-freefield textarea {
  min-height: 160px;
}

.cf7-confirm-wrap .entry-freefield.cf7-agreement {
  margin-top: 24px;
  padding-top: 16px;
  /* border-top: 1px solid #ccc; */
}

/* 確認画面では元の自由入力項目を隠す */
form.wpcf7-form.is-confirm .entry-freefield {
  display: none;
}

/* 完了画面でも隠す */
form.wpcf7-form.is-complete .entry-freefield {
  display: none;
}

/* 確認画面と完了画面では見出しを隠す */
form.wpcf7-form.is-confirm .entry-section-title,
form.wpcf7-form.is-complete .entry-section-title {
  display: none;
}

/* スマホ */
@media (max-width: 767px) {
  .cf7-confirm-wrap .entry-section-title {
    margin: 20px 0 10px;
    font-size: 1.1rem;
  }

  .cf7-confirm-wrap .entry-freefield {
    margin-top: 16px;
  }

  .cf7-confirm-wrap .entry-freefield textarea {
    min-height: 140px;
  }
}

/* =================================================================
   エラー表示
================================================================= */
.cf7-confirm-wrap .wpcf7-not-valid {
  border-color: #dc3232 !important;
}

.cf7-confirm-wrap .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #dc3232;
  font-size: 0.88rem;
  line-height: 1.4;
}

/* =================================================================
   ボタンまわり
================================================================= */
.cf7-confirm-wrap .submit-container,
.cf7-confirm-wrap .cf7-button-row {
  position: relative;
  text-align: center;
  margin-top: 16px;
}

.cf7-confirm-wrap .cf7-confirm-trigger,
.cf7-confirm-wrap .cf7-confirm-back,
.cf7-confirm-wrap input[type="submit"],
.cf7-confirm-wrap button[type="submit"] {
  display: inline-block;
  min-width: 120px;
  padding: 10px 24px;
  border: 1px solid #666;
  background: #f5f5f5;
  color: #222;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.cf7-confirm-wrap .cf7-confirm-back {
  margin-right: 10px;
}

.cf7-confirm-wrap .cf7-confirm-trigger:disabled,
.cf7-confirm-wrap input[type="submit"]:disabled,
.cf7-confirm-wrap button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cf7-confirm-wrap .wpcf7-spinner {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* =================================================================
   確認画面
================================================================= */
.cf7-confirm-area {
  margin-top: 16px;
}

.cf7-confirm-lead {
  margin: 0 0 12px;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.5;
}

/* 確認画面テーブル */
.cf7-confirm-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 0;
  border-top: 1px solid #999;
  border-left: 1px solid #999;
}

.cf7-confirm-table th,
.cf7-confirm-table td {
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
  vertical-align: middle;
  padding: 12px;
  line-height: 1.5;
  min-width: 0;
}

/* 左列 */
.cf7-confirm-table th {
  width: 32%;
  text-align: left;
  background: #f8f8f8;
  font-weight: bold;
  font-size: 1em;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 右列 */
.cf7-confirm-table td {
  width: 68%;
  background: #fff;
  text-align: left;
  min-width: 0;
}

/* 確認画面内の見出し */
.cf7-confirm-table th .subject {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cf7-confirm-table th .content {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 1.02em;
  font-weight: bold;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 確認画面内の補足説明 */
.cf7-confirm-submessage {
  display: none;
}

.cf7-confirm-table .require {
  display: inline;
  margin-left: 4px;
}

/* 確認値表示 */
.cf7-confirm-value {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #222;
}

/* 入力画面では確認エリアを隠す */
form.wpcf7-form.is-input .cf7-confirm-area {
  display: none;
}

/* 確認画面では確認エリアを表示 */
form.wpcf7-form.is-confirm .cf7-confirm-area {
  display: block;
}

/* 確認画面では元の入力テーブルを隠す */
form.wpcf7-form.is-confirm .cf7-input-table {
  display: none;
}

/* 入力時だけ見せたい説明文 */
form.wpcf7-form.is-confirm .cf7-input-only {
  display: none;
}

/* 入力文字種説明文は確認画面と完了画面では見せない */
form.wpcf7-form.is-confirm .input-rule,
form.wpcf7-form.is-complete .input-rule{
  display:none;

}
/* =================================================================
   完了画面
================================================================= */
.cf7-complete-area {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 24px;
  border: 1px solid #999;
  background: #fff;
  text-align: center;
}

.cf7-complete-lead {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.5;
}

.cf7-complete-message {
  margin: 0;
  line-height: 1.7;
  font-size: 0.98rem;
}

form.wpcf7-form.is-complete .cf7-input-table,
form.wpcf7-form.is-complete .cf7-confirm-area,
form.wpcf7-form.is-complete .submit-container,
form.wpcf7-form.is-complete .cf7-input-only {
  display: none;
}

/* =================================================================
   個人情報保護方針 iframe
================================================================= */
.cf7-policy-frame {
  width: 100%;
  height: 240px;
  border: 1px solid #ccc;
  background: #fff;
}

.cf7-agreement {
  margin-top: 10px;
}

/* =================================================================
   ステップ画像
================================================================= */
.cf7-confirm-wrap .cf7-stepbar {
  max-width: 100%;
  height: auto;
}

/* =================================================================
   スマホ
================================================================= */
@media (max-width: 767px) {
  .cf7-confirm-wrap .cf7-input-table,
  .cf7-confirm-wrap .cf7-input-table tbody,
  .cf7-confirm-wrap .cf7-input-table tr,
  .cf7-confirm-wrap .cf7-input-table th,
  .cf7-confirm-wrap .cf7-input-table td,
  .cf7-confirm-table,
  .cf7-confirm-table tbody,
  .cf7-confirm-table tr,
  .cf7-confirm-table th,
  .cf7-confirm-table td {
    display: block;
    width: 100% !important;
  }

  .cf7-confirm-wrap .cf7-input-table,
  .cf7-confirm-table {
    border-left: 1px solid #999;
    border-right: 1px solid #999;
  }

  .cf7-confirm-wrap .cf7-input-table th,
  .cf7-confirm-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .cf7-confirm-wrap .cf7-input-table td,
  .cf7-confirm-table td {
    padding-top: 4px;
  }

  .cf7-confirm-wrap .cf7-confirm-back {
    margin-right: 8px;
    margin-bottom: 8px;
  }

  .cf7-confirm-wrap .cf7-confirm-trigger,
  .cf7-confirm-wrap .cf7-confirm-back,
  .cf7-confirm-wrap input[type="submit"],
  .cf7-confirm-wrap button[type="submit"] {
    min-width: 110px;
  }

  .cf7-input-table td.birthdate .birthdate-row,
  .cf7-input-table td.namepair .namepair-row {
    flex-wrap: wrap;
  }
}
