/*
Theme Name: BusinessPress Child
Description: BusinessPress Child Theme
Author: Twonet
Template: businesspress
Version: 1.0.0
*/

/* ここから子テーマ独自のCSS */


/* ==========================================================================
   Event Entry Form - Rich Design Styles (for Child Theme style.css)
   ========================================================================== */

/* フォーム全体のカードコンテナ */
.wpcf7 .wpcf7-form {
  max-width: 780px;
  margin: 24px auto;
  padding: 36px 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  color: #1e293b;
  font-size: 15px;
  line-height: 1.7;
  box-sizing: border-box;
}

.wpcf7 .wpcf7-form *,
.wpcf7 .wpcf7-form *::before,
.wpcf7 .wpcf7-form *::after {
  box-sizing: border-box;
}

/* セクション見出し */
.wpcf7 .wpcf7-form h3 {
  margin: 40px 0 20px;
  padding: 8px 14px;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(90deg, #eff6ff 0%, rgba(239, 246, 255, 0) 100%);
  border-left: 5px solid #2563eb;
  border-radius: 0 6px 6px 0;
  letter-spacing: 0.03em;
}

.wpcf7 .wpcf7-form h3:first-of-type {
  margin-top: 0;
}

/* 段落・項目間の余白 */
.wpcf7 .wpcf7-form > p,
.wpcf7 .wpcf7-form .wpcf7cf_group > p {
  margin: 0 0 20px;
}

.wpcf7 .wpcf7-form label,
.wpcf7 .wpcf7-form p > strong {
  display: inline-block;
  width: 100%;
  font-weight: 600;
  color: #1e293b;
}

/* 必須バッジ */
.wpcf7 .wpcf7-form .required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  vertical-align: middle;
}

/* 注釈・例文テキスト */
.wpcf7 .wpcf7-form small {
  display: inline-block;
  margin: 4px 0 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #64748b;
}

/* テキスト・メール・電話・セレクト・テキストエリア共通 */
.wpcf7 .wpcf7-form input[type="text"],
.wpcf7 .wpcf7-form input[type="email"],
.wpcf7 .wpcf7-form input[type="tel"],
.wpcf7 .wpcf7-form select,
.wpcf7 .wpcf7-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 .wpcf7-form input[name="your-zip"],
.wpcf7 .wpcf7-form select[name="your-pref"] {
  max-width: 260px;
}

.wpcf7 .wpcf7-form textarea {
  min-height: 110px;
  resize: vertical;
}

.wpcf7 .wpcf7-form input[type="text"]:focus,
.wpcf7 .wpcf7-form input[type="email"]:focus,
.wpcf7 .wpcf7-form input[type="tel"]:focus,
.wpcf7 .wpcf7-form select:focus,
.wpcf7 .wpcf7-form textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* ラジオボタン（カード型選択肢） */
.wpcf7 .wpcf7-form .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.wpcf7 .wpcf7-form .wpcf7-radio .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-form .wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.wpcf7 .wpcf7-form .wpcf7-radio .wpcf7-list-item label:hover {
  border-color: #60a5fa;
  background: #f8fafc;
}

.wpcf7 .wpcf7-form .wpcf7-radio input[type="radio"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #2563eb;
  cursor: pointer;
}

/* 選択中カード強調 */
.wpcf7 .wpcf7-form .wpcf7-radio .wpcf7-list-item label:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* 満席・無効時のカード表示 */
.wpcf7 .wpcf7-form .wpcf7-radio .wpcf7-list-item.eem-option-full label,
.wpcf7 .wpcf7-form .wpcf7-radio .wpcf7-list-item label:has(input:disabled) {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.8;
}

/* 見学会の時間選択サブグループ（階層が分かりやすい枠） */
.wpcf7 .wpcf7-form [data-id="g-tour-time"] {
  margin: 12px 0 20px 10px;
  padding: 16px 18px;
  background: #f8fafc;
  border-left: 4px solid #60a5fa;
  border-radius: 0 10px 10px 0;
}

/* 注意書きボックス */
.wpcf7 .wpcf7-form .eem-note-box {
  margin: 8px 0 22px;
  padding: 12px 16px;
  background: #f8fafc;
  border-left: 4px solid #64748b;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
}

/* 合計金額サマリーカード */
.wpcf7 .wpcf7-form .eem-price-summary {
  margin: 30px 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 2px solid #2563eb;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.wpcf7 .wpcf7-form .eem-price-summary h4 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #bfdbfe;
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
}

.wpcf7 .wpcf7-form .eem-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 15px;
  color: #334155;
}

.wpcf7 .wpcf7-form .eem-price-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px solid #93c5fd;
  font-size: 20px;
  font-weight: 800;
  color: #1e40af;
}

/* 個人情報同意チェックボックス */
.wpcf7 .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
  width: 100%;
}

.wpcf7 .wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wpcf7 .wpcf7-form .wpcf7-acceptance label:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.wpcf7 .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #2563eb;
  flex-shrink: 0;
}

/* 送信ボタン */
.wpcf7 .wpcf7-form input[type="submit"],
.wpcf7 .wpcf7-form button[type="submit"] {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 28px auto 8px;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.wpcf7 .wpcf7-form input[type="submit"]:hover:not(:disabled),
.wpcf7 .wpcf7-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36);
}

.wpcf7 .wpcf7-form input[type="submit"]:disabled,
.wpcf7 .wpcf7-form button[type="submit"]:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: wait;
  opacity: 0.85;
}

.wpcf7 .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

/* バリデーションエラー＆送信結果メッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
}

.wpcf7 .wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 16px 20px !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #ecfdf5;
  border: 1.5px solid #10b981 !important;
  color: #065f46;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background: #fffbeb;
  border: 1.5px solid #f59e0b !important;
  color: #92400e;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background: #fef2f2;
  border: 1.5px solid #ef4444 !important;
  color: #991b1b;
}

/* スマホ向けレスポンシブ調整 */
@media (max-width: 640px) {
  .wpcf7 .wpcf7-form {
    padding: 22px 16px;
    border-radius: 10px;
  }

  .wpcf7 .wpcf7-form h3 {
    font-size: 17px;
    margin: 30px 0 16px;
  }

  .wpcf7 .wpcf7-form input[name="your-zip"],
  .wpcf7 .wpcf7-form select[name="your-pref"] {
    max-width: 100%;
  }

  .wpcf7 .wpcf7-form .eem-price-summary {
    padding: 18px 16px;
  }

  .wpcf7 .wpcf7-form .eem-price-total {
    font-size: 18px;
  }
}

/* ==========================================================================
   2-Step Confirmation UI Styles (style.css 末尾に追記)
   ========================================================================== */

/* 上部ステップバー */
.eem-step-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
}

.eem-step-bar .eem-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.eem-step-bar .eem-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.eem-step-bar .eem-step.is-active {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}

.eem-step-bar .eem-step.is-active span {
  background: #2563eb;
}

.eem-step-bar .eem-step.is-done {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.eem-step-bar .eem-step.is-done span {
  background: #10b981;
}

/* 入力チェックエラー */
.eem-client-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #dc2626;
}

/* 確認ボタン・戻るボタン */
.eem-step-actions {
  margin-top: 24px;
  text-align: center;
}

.eem-btn-confirm {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eem-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36);
}

.wpcf7 .wpcf7-form .eem-actions-confirm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.wpcf7 .wpcf7-form .eem-actions-confirm input[type="submit"] {
  margin: 0;
  flex: 1 1 240px;
  max-width: 320px;
}

.eem-btn-back {
  flex: 0 1 210px;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.eem-btn-back:hover:not(:disabled) {
  background: #e2e8f0;
}

/* 確認内容テーブル */
.eem-confirm-panel {
  margin-bottom: 20px;
}

.eem-confirm-lead {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: #475569;
}

.eem-confirm-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}

.eem-confirm-table th,
.eem-confirm-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.65;
}

.eem-confirm-table th {
  width: 32%;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.eem-confirm-table td {
  background: #ffffff;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

.eem-confirm-table tr.eem-confirm-total-row th,
.eem-confirm-table tr.eem-confirm-total-row td {
  background: #eff6ff;
  color: #1e40af;
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .eem-confirm-table th,
  .eem-confirm-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
  }
  .eem-confirm-table th {
    border-bottom: none;
    padding-bottom: 4px;
    font-size: 13px;
  }
  .eem-confirm-table td {
    padding-top: 4px;
  }
  .wpcf7 .wpcf7-form .eem-actions-confirm {
    flex-direction: column-reverse;
  }
  .eem-btn-back,
  .wpcf7 .wpcf7-form .eem-actions-confirm input[type="submit"] {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
}

