/* fd-cf7-confirm.css — 確認画面とサンキュー表示（FRONT DESIGN）
   色は各サイトで --fd-cf7-accent を上書きする */
:root {
  --fd-cf7-accent: #333;
  --fd-cf7-line: #ddd;
}

.fd-cf7-input,
.fd-cf7-confirm,
.fd-cf7-thanks {
  transition: opacity .3s ease;
}
.fd-cf7-fading { opacity: 0; }
.fd-cf7-input[hidden],
.fd-cf7-confirm[hidden] { display: none !important; }

/* 個人情報の取り扱いへの同意（ボタンの真上・中央に寄せて見落とさないようにする） */
.fd-cf7-agree {
  clear: both;
  width: 100%;
  margin: 2em 0 28px;
  text-align: center !important;
  font-size: 16px;
  line-height: 1.8;
}

/* 求人：テーマのボタンが横幅いっぱい・高さ 113px・文字 13px と大きすぎて読みにくいので整える */
.footer-form-btn input.wpcf7-submit[type="submit"] {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  padding: 18px 24px;
  border: 0;
  border-radius: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: .2em;
  cursor: pointer;
}
.footer-form-btn input.wpcf7-submit[type="submit"]:disabled { opacity: .45; cursor: default; }
.fd-cf7-agree .wpcf7-list-item { margin: 0; }
.fd-cf7-agree input[type="checkbox"] { margin-right: .5em; vertical-align: middle; }
.fd-cf7-agree a { text-decoration: underline; }

/* 確認画面（テーマの文字の大きさ・変形に左右されないよう明示） */
.fd-cf7-confirm,
.fd-cf7-thanks__box {
  font-size: 16px;
  line-height: 1.8;
  color: #222;
  text-transform: none;
  letter-spacing: normal;
}
.fd-cf7-confirm:not([hidden]) ~ .wpcf7-response-output { display: none !important; }
/* 送信できたときはサンキュー表示を出すので、CF7 の「送信されました」欄は出さない（エラー時の欄は残す） */
form[data-fd-confirm].sent .wpcf7-response-output { display: none !important; }
.fd-cf7-confirm .fd-cf7-confirm__lead { margin: 0 0 1.5em; font-size: 16px; line-height: 1.8; }
.fd-cf7-confirm__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2em;
}
.fd-cf7-confirm__table th,
.fd-cf7-confirm__table td {
  padding: 1em;
  border-bottom: 1px solid var(--fd-cf7-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.fd-cf7-confirm__table th { width: 30%; font-weight: bold; }
.fd-cf7-confirm__table th,
.fd-cf7-confirm__table td { font-size: 16px; text-transform: none; }
.fd-cf7-confirm__table td { white-space: pre-wrap; word-break: break-word; }
.fd-cf7-confirm__btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fd-cf7-btn {
  min-width: 180px;
  padding: 14px 28px;
  border: 1px solid var(--fd-cf7-accent);
  background: #fff;
  color: var(--fd-cf7-accent);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  text-transform: none;
  cursor: pointer;
  border-radius: 4px;
}
.fd-cf7-btn--primary { background: var(--fd-cf7-accent); color: #fff; }
.fd-cf7-btn:disabled { opacity: .5; cursor: default; }

/* サンキュー表示（画面中央） */
.fd-cf7-thanks {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .55);
}
.fd-cf7-thanks[hidden] { display: none; }
.fd-cf7-thanks__box {
  width: 100%;
  max-width: 520px;
  padding: 40px 32px 32px;
  background: #fff;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.fd-cf7-thanks__title { margin: 0 0 1em; font-size: 20px; line-height: 1.6; font-weight: bold; }
.fd-cf7-thanks__text { margin: 0 0 2em; font-size: 16px; line-height: 1.8; text-align: left; }

@media (max-width: 600px) {
  .fd-cf7-confirm__table th,
  .fd-cf7-confirm__table td { display: block; width: auto; }
  .fd-cf7-confirm__table th { padding-bottom: 0; border-bottom: 0; }
  .fd-cf7-btn { min-width: 0; flex: 1 1 140px; }
}
