:root{
    --brand: var(--wp--preset--color--brand);
    --ink: var(--wp--preset--color--ink);
    --muted: var(--wp--preset--color--muted);
    --danger: var(--wp--preset--color--danger);
    --ok: var(--wp--preset--color--ok);
  }
  
/* 全体 */
.apply-wrap { 
  max-width: 900px; 
  margin-inline: auto; 
  padding: 0 20px; 
  width: 100%;
}
.apply-wrap .entry-title, .apply-wrap h1.post-title, .apply-wrap .wp-block-post-title { display:none; }
  
  /* ステップ表示（任意：ページ上部に設置する見出しに適用想定）
     例： [stepbar] をブロック/HTMLで差し込む or パターン化しておく */
  .form-steps{display:flex;gap:8px;align-items:center;margin:0 0 24px}
  .form-steps__item{padding:6px 10px;border-radius:999px;background:#f2f5f7;color:#666;font-weight:600;font-size:13px}
  .form-steps__item.is-active{background:var(--brand);color:#fff}
  .page-slug-入力01 .form-steps__item[data-step="1"],
  .page-slug-input01 .form-steps__item[data-step="1"],
  .page-slug-入力02 .form-steps__item[data-step="2"],
  .page-slug-input02 .form-steps__item[data-step="2"],
  .page-slug-内容確認 .form-steps__item[data-step="3"],
  .page-slug-confirm .form-steps__item[data-step="3"],
  .page-slug-送信完了 .form-steps__item[data-step="4"],
  .page-slug-thanks .form-steps__item[data-step="4"]{background:var(--brand);color:#fff}
  
  /* ===== CF7 基本 ===== */
  .wpcf7 form { display:block; }
  .wpcf7-form { display:grid; gap:16px; }
  .wpcf7-form p { margin:0; }
  
  /* ラベル/行 */
  .cf7-row { display:grid; grid-template-columns: 180px 1fr; gap:12px; align-items:start; }
  @media (max-width:720px){ .cf7-row { grid-template-columns:1fr; } }
  
  .cf7-label { color:var(--ink); font-weight:700; line-height:1.4; }
  .cf7-label .req { color:var(--danger); margin-left:4px; font-weight:700; }
  
  /* 入力 */
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="number"], input[type="date"], select, textarea {
    width:100%; padding:10px 12px; border:1px solid #cfd6dc; border-radius:6px; background:#fff;
    font-size:16px; line-height:1.6; transition:border-color .15s, box-shadow .15s;
  }
  textarea { min-height:140px; }
  input:focus, select:focus, textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
  
  /* ラジオ/チェック */
  .wpcf7-radio, .wpcf7-checkbox { display:flex; gap:16px; flex-wrap:wrap; }
  .wpcf7-list-item { margin:0; }
  .wpcf7-list-item label { display:flex; align-items:center; gap:6px; }
  
  /* エラーメッセージ */
  .wpcf7-not-valid-tip { color:var(--danger); font-size:13px; margin-top:6px; }
  .wpcf7-response-output { margin-top:8px; padding:12px 14px; border-radius:6px; }
  .wpcf7 form.invalid .wpcf7-response-output { border:1px solid var(--danger); color:var(--danger); background:#fdeeee; }
  .wpcf7 form.sent .wpcf7-response-output { border:1px solid var(--ok); color:var(--ok); background:#eef8f0; }
  
  /* ボタン */
  button, input[type="submit"]{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:12px 18px; border-radius:8px; border:1px solid var(--brand); background:var(--brand); color:#fff;
    font-weight:700; cursor:pointer; transition:opacity .15s, transform .02s;
  }
  button:hover, input[type="submit"]:hover{ opacity:.9; }
  button:active, input[type="submit"]:active{ transform:translateY(1px); }
  .btn-secondary{ background:#fff; color:var(--brand); }
  
  /* 前へ/次へ */
  .form-nav{ display:flex; justify-content:space-between; gap:12px; margin-top:8px; }
  .form-nav .prev{ background:#fff; color:var(--brand); }
  .form-nav .next{ background:var(--brand); color:#fff; }
  
  /* 確認テーブル（内容確認ページで使用） */
  .confirm-table{ width:100%; border-collapse:collapse; }
  .confirm-table th, .confirm-table td{ border:1px solid #e1e6ea; padding:10px 12px; vertical-align:top; }
  .confirm-table th{ width:180px; background:#f7f9fb; text-align:left; }
  
  /* D&D Upload (Drag and Drop Multiple File Upload for CF7) */
  .wpcf7-drag-n-drop-file { border:2px dashed #c7d3dc !important; background:#fafcfe !important; padding:24px !important; border-radius:10px; }
  .wpcf7-drag-n-drop-file:hover { border-color: var(--brand) !important; }
  .wpcf7-drag-n-drop-file .dnd-upload-status { margin-top:8px; font-size:14px; }
  .wpcf7-drag-n-drop-file .ajax-file-upload-statusbar { border:none; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.04); border-radius:8px; margin-top:8px; padding:8px 10px; }
  
  
  /* 細かなユーティリティ */
  .help { color:#5f6b76; font-size:13px; }
  .note { background:#fffced; border:1px solid #f1e6a6; color:#6a5b1e; border-radius:6px; padding:10px 12px; }
  .hr { height:1px; background:#e6edf3; border:0; }
  

  /* ===== ページ余白・見出し周り ===== */
.apply-wrap { 
  max-width: 900px; 
  margin-inline: auto; 
  padding: 24px 20px; 
  width: 100%;
}
.apply-wrap .wp-block-post-title { display:none; }

/* ===== CF7 レイアウト（ラベル＋入力） ===== */
.wpcf7 form { display:block; }
.wpcf7-form { display:grid; gap:16px; }
.cf7-row { display:grid; grid-template-columns: 180px 1fr; gap:12px; align-items:start; }
@media (max-width:720px){ .cf7-row{ grid-template-columns:1fr; } }
.cf7-label{ font-weight:700; color:#222; }
.cf7-label .req{ color:var(--wp--preset--color--danger); margin-left:4px; }

/* テキスト類 */
input[type="text"],input[type="email"],input[type="tel"],input[type="url"],
input[type="number"],input[type="date"],select,textarea{
  width:100%; padding:10px 12px; border:1px solid #cfd6dc; border-radius:6px; background:#fff;
  font-size:16px; line-height:1.6; transition:border-color .15s, box-shadow .15s;
}
textarea{ min-height:140px; }
input:focus,select:focus,textarea:focus{ outline:none; border-color:var(--wp--preset--color--brand);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--wp--preset--color--brand) 20%, transparent); }

/* ラジオ/チェック */
.wpcf7-radio,.wpcf7-checkbox{ display:flex; gap:16px; flex-wrap:wrap; }
.wpcf7-list-item { margin:0; }

/* エラー表示 */
.wpcf7-not-valid-tip{ color:var(--wp--preset--color--danger); font-size:13px; margin-top:6px; }
.wpcf7 form.invalid .wpcf7-response-output{ border:1px solid var(--wp--preset--color--danger); color:#a42828; background:#fdeeee; }
.wpcf7 form.sent .wpcf7-response-output{ border:1px solid var(--wp--preset--color--ok); color:#1e8e3e; background:#eef8f0; }

/* ボタン */
button, input[type="submit"]{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:8px; border:1px solid var(--wp--preset--color--brand);
  background:var(--wp--preset--color--brand); color:#fff; font-weight:700; cursor:pointer;
}
.btn-secondary{ background:#fff; color:var(--wp--preset--color--brand); }

/* 前へ / 次へ ナビ（Multi-Step） */
.form-nav{ display:flex; justify-content:space-between; gap:12px; margin-top:8px; }
.form-nav .prev{ background:#fff; color:var(--wp--preset--color--brand); }
.form-nav .next{ background:var(--wp--preset--color--brand); color:#fff; }

/* 確認テーブル（confページ用） */
.confirm-table{ width:100%; border-collapse:collapse; }
.confirm-table th,.confirm-table td{ border:1px solid #e1e6ea; padding:10px 12px; vertical-align:top; }
.confirm-table th{ width:180px; background:#f7f9fb; text-align:left; }

/* D&D Upload プラグイン見た目 */
.wpcf7-drag-n-drop-file{ border:2px dashed #c7d3dc !important; background:#fafcfe !important; padding:24px !important; border-radius:10px; }
.wpcf7-drag-n-drop-file:hover{ border-color:var(--wp--preset--color--brand) !important; }
.wpcf7-drag-n-drop-file .ajax-file-upload-statusbar{ border:none; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.05);
  border-radius:8px; margin-top:8px; padding:8px 10px; }

/* アップロード中のブロッカー */
.is-uploading{ position:relative; }
.is-uploading::after{
  content:"アップロード中… 画面を操作しないでください"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.7); font-weight:700; color:#333;
}

/* ===== 既存フォームクラスのスタイリング ===== */

/* ページフロー表示 */
.page_flow01 {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  margin: 80px auto 24px auto;
  max-width: var(--wp--style--global--content-size);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
  border: 1px solid #1e40af;
}

.page_flow01 span {
  margin: 0 8px;
  position: relative;
}

.page_flow02 {
  background: #f97316;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

/* 必須入力注意 */
.table_style03 {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-weight: 600;
  text-align: center;
  border-left: 4px solid #f97316;
}

/* メインフォームテーブル */
.table_style01 {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.table_style01 th {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  font-weight: 700;
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  width: 220px;
  border-bottom: 2px solid #1e40af;
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 奇数・偶数行のヘッダー色分け */
.table_style01 tr:nth-child(odd) th {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.table_style01 tr:nth-child(even) th {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.table_style01 td {
  padding: 20px 24px;
  vertical-align: top;
  border-bottom: 1px solid #f1f3f4;
  background: white;
}

/* 奇数・偶数行のセル色分け */
.table_style01 tr:nth-child(odd) td {
  background: #fafbfc;
}

.table_style01 tr:nth-child(even) td {
  background: #f8fafc;
}

.table_style01 tr:last-child td {
  border-bottom: none;
}

.table_style01 tr:hover td {
  background: #f1f5f9 !important;
  transition: background-color 0.2s ease;
}

/* 必須マーク */
.table_style02 {
  color: #dc3545;
  font-weight: 700;
  margin-left: 4px;
}

/* フォーム内のラベル */
.table_style01 label {
  display: block;
  margin-bottom: 0;
  font-weight: 600;
  color: #495057;
  line-height: 1.5;
  padding: 0;
}

.table_style01 label:last-child {
  margin-bottom: 0;
}

/* ラベル内のテキスト入力エリアのバランス調整 */
.table_style01 label br + input[type="text"],
.table_style01 label br + input[type="email"],
.table_style01 label br + input[type="tel"],
.table_style01 label br + select {
  margin-top: 8px;
  width: 100%;
}

/* 入力フィールドのスタイリング */
.table_style01 input[type="text"],
.table_style01 input[type="email"],
.table_style01 input[type="tel"],
.table_style01 select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.5;
  background: white;
  transition: all 0.3s ease;
  margin-top: 6px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.table_style01 input[type="text"]:focus,
.table_style01 input[type="email"]:focus,
.table_style01 input[type="tel"]:focus,
.table_style01 select:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  transform: translateY(-1px);
}

/* 参加者のラジオボタンエリアの区切り */
.table_style01 div:has(.wpcf7-radio) {
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  border-left: 4px solid #1e3a8a;
}

.table_style01 div:has(.wpcf7-radio)::before {
  content: "※ 以下の項目は必須です";
  display: block;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ラジオボタンのスタイリング */
.table_style01 .wpcf7-radio {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* チェックボックスの中央寄せ */
.table_style01 .wpcf7-checkbox {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.table_style01 .wpcf7-list-item {
  margin: 0;
  flex: 1;
  min-width: 120px;
}

/* チェックボックスのリストアイテム */
.table_style01 .wpcf7-checkbox .wpcf7-list-item {
  margin: 0;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.table_style01 .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}

/* チェックボックスのラベル */
.table_style01 .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-align: center;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
}

/* ラジオボタンのクリック範囲を文字まで拡張 */
.table_style01 .wpcf7-list-item input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.table_style01 .wpcf7-list-item {
  position: relative;
}

.table_style01 .wpcf7-list-item label {
  cursor: pointer;
}

.table_style01 .wpcf7-list-item label span {
  cursor: pointer;
  user-select: none;
}

.table_style01 .wpcf7-list-item label:hover {
  background: #f1f5f9;
  border-color: #1e3a8a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.table_style01 .wpcf7-list-item input[type="radio"]:checked + label {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* チェックボックスの選択時スタイル */
.table_style01 .wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked + label {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* セレクトボックスのスタイリング */
.table_style01 select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* ボタンのスタイリング */
.table_style01 + p {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ボタン自体の中央配置を強化 */
.table_style01 + p input[type="submit"] {
  margin: 0 auto;
  display: block;
}

.table_style01 + p input[type="submit"],
.table_style01 + p input[type="button"] {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
  margin: 0 8px;
}

.table_style01 + p input[type="submit"]:hover,
.table_style01 + p input[type="button"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.table_style01 + p input[type="button"] {
  background: white;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
}

.table_style01 + p input[type="button"]:hover {
  background: #1e3a8a;
  color: white;
}

/* エラーメッセージのスタイリング */
.wpcf7-not-valid-tip {
  color: #dc3545;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
}

/* 空のバリデーションメッセージを非表示 */
.wpcf7-not-valid-tip:empty {
  display: none;
}

/* バリデーションエラーリストの空要素を非表示 */
.wpcf7-response-output ul li:empty {
  display: none;
}

/* 空のwpcf7-response-outputを非表示 */
.wpcf7-response-output[aria-hidden="true"]:empty {
  display: none;
}

/* スピナーの配置調整 */
.wpcf7-spinner {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* ボタンコンテナの相対位置指定 */
.table_style01 + p,
.confirm-table + p {
  position: relative;
}

.wpcf7-response-output {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.wpcf7 form.invalid .wpcf7-response-output {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* レスポンシブ対応 */
@media (max-width: 760px) {
  .apply-wrap {
    max-width: 100%;
    padding: 16px;
  }
  
  .table_style01 th {
    width: 100%;
    display: block;
    padding: 16px 20px;
    border-radius: 0;
    margin-bottom: 12px;
  }
  
  /* 1個目のthの角丸を削除 */
  .table_style01 tr:first-child th {
    border-radius: 0;
  }
  
  .table_style01 td {
    display: block;
    padding: 0 20px 20px;
  }
  
  .page_flow01 {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .page_flow01 span {
    margin: 0 4px;
  }
  
  /* モバイルでのラジオボタンレイアウト */
  .table_style01 .wpcf7-radio {
    flex-direction: column;
    gap: 12px;
  }
  
  .table_style01 .wpcf7-list-item {
    flex: none;
    min-width: auto;
  }
  
  /* モバイルで空のthを非表示 */
  .table_style01 tr:last-child th:empty {
    display: none;
  }
}

/* ===== 入力2（アップロード画面）のスタイリング ===== */
.table_style03 + .table_style01 {
  margin-top: 0;
}

/* ファイルアップロードエリアのスタイリング */
.wpcf7-drag-n-drop-file {
  border: 3px dashed #1e3a8a !important;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  padding: 32px 24px !important;
  border-radius: 8px !important;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.wpcf7-drag-n-drop-file::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.1), transparent);
  transition: left 0.5s ease;
}

.wpcf7-drag-n-drop-file:hover::before {
  left: 100%;
}

.wpcf7-drag-n-drop-file:hover {
  border-color: #1e40af !important;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.wpcf7-drag-n-drop-file .dnd-upload-status {
  color: #1e3a8a;
  font-weight: 600;
  margin-top: 12px;
  font-size: 15px;
}

.wpcf7-drag-n-drop-file .ajax-file-upload-statusbar {
  background: white !important;
  border: 2px solid #e9ecef !important;
  border-radius: 8px !important;
  margin-top: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ファイルアップロード時のファイル名表示の改行対応 */
.dnd-upload-status .dnd-upload-details .name {
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-all !important;
  white-space: normal !important;
  display: block !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  font-size: 10px !important;
}

.dnd-upload-status .dnd-upload-details {
  display: block !important;
  width: 100% !important;
}

.dnd-upload-status .dnd-upload-details .name span {
  font-size: 10px !important;
}

.dnd-upload-status .dnd-upload-details .name em {
  display: block !important;
  margin-top: 4px !important;
  font-style: normal !important;
  color: #666 !important;
  font-size: 10px !important;
}

/* アップロード中のボタン無効化 */
.is-uploading .table_style01 + p input[type="button"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== 確認画面のスタイリング ===== */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  table-layout: fixed;
}

.confirm-table th {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  font-weight: 700;
  padding: 20px 16px;
  text-align: left;
  vertical-align: top;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  font-size: 14px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  white-space: normal;
}

/* 確認画面の奇数・偶数行のヘッダー色分け */
.confirm-table tr:nth-child(odd) th {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.confirm-table tr:nth-child(even) th {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.confirm-table td {
  padding: 20px 16px;
  vertical-align: top;
  border-bottom: 1px solid #f1f3f4;
  background: white;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: auto;
  min-width: 0;
}

/* 確認画面の奇数・偶数行のセル色分け */
.confirm-table tr:nth-child(odd) td {
  background: #fafbfc;
}

.confirm-table tr:nth-child(even) td {
  background: #f8fafc;
}

.confirm-table tr:last-child td {
  border-bottom: none;
}

.confirm-table tr:hover td {
  background: #f1f5f9 !important;
  transition: background-color 0.2s ease;
}

/* 確認画面のデータ表示 */
.confirm-table strong {
  color: #495057;
  font-weight: 600;
  display: inline-block;
  margin-right: 8px;
  min-width: 100px;
  font-size: 13px;
}

.confirm-table [multiform] {
  color: #1e3a8a;
  font-weight: 600;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  margin: 2px 4px 2px 0;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  word-break: break-all;
}

/* 確認画面の新しいレイアウト */
.confirm-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f4;
}

.confirm-item:last-child {
  border-bottom: none;
}

.confirm-label {
  color: #495057;
  font-weight: 600;
  min-width: 120px;
  font-size: 14px;
  flex-shrink: 0;
}

/* 著作権確認のラベルは長いので特別対応 */
.copyright-item .confirm-label {
  min-width: 200px;
  line-height: 1.4;
}

.confirm-value {
  flex: 1;
}

.member-count {
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-name {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.member-details {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.member-consent {
  background: #fef3c7;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
}

.consent-value {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
  font-weight: 700 !important;
}

.file-upload-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.file-group {
  background: #f8fafc;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.file-group-title {
  color: #1e3a8a;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #1e3a8a;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  background: white;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-label {
  color: #495057;
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
  font-size: 13px;
}

.file-name {
  color: #1e3a8a;
  font-weight: 600;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  font-family: monospace;
}

.final-confirmation-content {
  background: #f1f5f9;
  padding: 24px;
  border-radius: 12px;
}

.confirmation-question {
  font-size: 16px;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.confirmation-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1e3a8a;
  cursor: pointer;
  padding: 16px 20px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.confirmation-checkbox:hover {
  border-color: #1e3a8a;
  background: #f8fafc;
}

/* 最終確認チェックボックス */
.confirm-table tr:last-child td {
  background: #f1f5f9;
  border-top: 2px solid #1e3a8a;
}

.confirm-table tr:last-child label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.confirm-table tr:last-child label:hover {
  border-color: #1e3a8a;
  background: #f1f5f9;
}

.confirm-table tr:last-child input[type="checkbox"]:checked + label {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

/* 確認画面のボタン */
.confirm-table + p {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 100px;
}

.confirm-table + p input[type="submit"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  margin: 0 8px;
}

.confirm-table + p input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.confirm-table + p input[type="button"] {
  background: white;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 8px;
}

.confirm-table + p input[type="button"]:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

/* レスポンシブ対応（確認画面） */
@media (max-width: 760px) {
  .confirm-table {
    table-layout: auto;
  }
  
  .confirm-table th {
    width: 100%;
    display: block;
    padding: 16px 20px;
    border-radius: 0;
    margin-bottom: 0;
    font-size: 16px;
    text-align: center;
  }
  
  /* 1個目のthの角丸を削除 */
  .confirm-table tr:first-child th {
    border-radius: 0;
  }
  
  .confirm-table td {
    display: block;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
  }
  
  .confirm-table strong {
    min-width: auto;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 700;
  }
  
  .confirm-table [multiform] {
    display: block;
    margin: 4px 0;
    padding: 8px 12px;
    background: white;
    border: 1px solid #1e3a8a;
    border-radius: 4px;
    font-size: 14px;
  }
  
  /* モバイルでの行間隔調整 */
  .confirm-table tr {
    margin-bottom: 20px;
    display: block;
  }

  /* モバイルでの新しいレイアウト */
  .confirm-group {
    gap: 8px;
  }

  .confirm-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }

  .confirm-label {
    min-width: auto;
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
  }

  .confirm-value {
    width: 100%;
  }

  .member-count {
  }

  .member-info {
    gap: 12px;
  }

  .member-name,
  .member-details,
  .member-consent {
    padding: 12px;
  }

  .file-upload-section {
    gap: 16px;
  }

  .file-group {
    padding: 16px;
  }

  .file-group-title {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .file-item {
    padding: 10px 12px;
    font-size: 13px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .file-label {
    min-width: auto;
    font-size: 12px;
    font-weight: 700;
    color: #1e3a8a;
  }

  .file-name {
    width: 100%;
    font-size: 12px;
    padding: 6px 10px;
  }

  .final-confirmation-content {
    padding: 16px;
  }

  .confirmation-question {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .confirmation-checkbox {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* ===== 全ページ共通のスタイリング ===== */
h1.wp-block-post-title {
  display: none;
}

/* ===== 完了画面のスタイリング ===== */
.page-id-41 #header,
.page-id-41 hr {
  display: none;
}

.completion-container {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.completion-header {
  margin-bottom: 40px;
}

.completion-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.completion-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.completion-icon svg {
  filter: drop-shadow(0 4px 8px rgba(30, 142, 62, 0.3));
  animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.completion-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.completion-message {
  font-size: 18px;
  color: #495057;
  line-height: 1.6;
  margin: 0 0 40px 0;
  font-weight: 500;
}

.survey-notice {
  font-size: 16px;
  color: #495057;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.highlight-green {
  color: #1e8e3e;
  font-weight: 600;
}

.completion-details {
  margin-bottom: 40px;
}

.completion-details h2 {
  font-size: 24px;
  color: #1e3a8a;
  margin: 0 0 30px 0;
  font-weight: 700;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.flow-step:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.step-content h3 {
  font-size: 18px;
  color: #1e3a8a;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.step-content p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.completion-notice {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.completion-notice h3 {
  font-size: 18px;
  color: #92400e;
  margin: 0 0 16px 0;
  font-weight: 700;
}

.completion-notice ul {
  margin: 0;
  padding-left: 20px;
}

.completion-notice li {
  font-size: 14px;
  color: #92400e;
  margin-bottom: 8px;
  line-height: 1.5;
}

.completion-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-home,
.btn-contact {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  min-width: 160px;
  text-align: center;
}

.btn-home {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
  color: white;
  text-decoration: none;
}

.btn-contact {
  background: white;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  text-decoration: none;
}

/* 完了画面のレスポンシブ対応 */
@media (max-width: 760px) {
  .completion-container {
    padding: 20px 16px;
  }

  .completion-title {
    font-size: 24px;
  }

  .completion-content {
    padding: 24px 20px;
  }

  .completion-message {
    font-size: 16px;
  }

  .completion-details h2 {
    font-size: 20px;
  }

  .flow-step {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .step-number {
    align-self: center;
  }

  .completion-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-home,
  .btn-contact {
    width: 100%;
    max-width: 300px;
  }
}
