  :root {
    --primary:      #1a56db;
    --primary-dark: #1241a8;
    --bg:           #f0f4f8;
    --card-bg:      #ffffff;
    --border:       #d1d9e6;
    --text:         #1e293b;
    --muted:        #64748b;
    --required:     #ef4444;
  }
  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 0;
  }
  /* ── ヘッダーバー ── */
  .form-header {
    margin-top: 1rem;
    background: linear-gradient(135deg, rgb(13 110 253) 0%, var(--primary) 60%, #3b82f6 100%);
    border-radius: .25rem .25rem 0 0;
    padding: 32px 36px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .form-header::after {
    content: '';
    position: absolute;
    inset: 0;
    /*
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='14'/%3E%3C/g%3E%3C/svg%3E") repeat;
    */
    }
  .form-header .badge-step {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: .25rem;
    font-size: .72rem;
    letter-spacing: .06em;
    padding: 3px 12px;
    display: inline-block;
    margin-bottom: 10px;
  }
  .form-header h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
  .form-header p  { font-size: .88rem; opacity: .85; margin: 0; }
  .form-header .deco-icon {
    position: absolute; right: 28px; bottom: -4px;
    font-size: 5.5rem; opacity: .07;
  }
  /* ── カード ── */
  .form-card {
    background: var(--card-bg);
    border-radius: 0.25rem;
    box-shadow: 0 8px 30px rgba(30,41,59,.10);
  }
  .form-body { padding: 28px 36px 36px; }
  /* ── フォームロー ── */
  .form-row-group {
    display: flex;
    flex-direction:row;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background .15s;
  }
  .form-row-group:first-child { border-top: 1px solid var(--border); }
  .form-row-group:hover { background: #f8fafd; }
  .form-label-cell {
    padding: 14px 16px;
    font-size: .88rem;
    font-weight: 500;
    background: #f6f8fc;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    height: auto;
    border-right: 1px solid var(--border);
  }
  .form-label-cell .lbl-icon { color: var(--primary); font-size: .85rem; width: 16px; text-align:center; }
  .badge-req {
    background: var(--required); color: #fff;
    font-size: .6rem; padding: 1px 6px; border-radius: .25rem;
    margin-left: auto; font-weight: 700; white-space: nowrap;
  }
  .form-input-cell { padding: 10px 16px; }
  /* ── 入力 ── */
  .form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: .25rem;
    font-size: .9rem;
    color: var(--text);
    padding: 8px 12px;
    transition: border-color .2s, box-shadow .2s;
  }
  .form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.13);
    outline: none;
  }
  .form-control::placeholder { color: #b0bac9; }
  textarea.form-control { min-height: 110px; resize: vertical; }
  .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
  .radio-group, .check-group { display: flex; flex-wrap: wrap; gap: 16px; }
  /* ── ボタン ── */
  .btn-confirm {
    background: linear-gradient(135deg, #0d6efd 0%, #0d6efda8 100%);
    color: #fff; border: none; border-radius: .25rem;
    padding: 11px 36px; font-size: .95rem; font-weight: 600;
    box-shadow: 0 4px 14px rgba(26,86,219,.35);
    transition: opacity .2s, transform .15s;
  }
  .btn-confirm:hover { opacity:.88; transform:translateY(-1px); color:#fff; }
  .btn-reset-custom {
    background: #f1f5f9; color: var(--muted);
    border: 1.5px solid var(--border); border-radius: .25rem;
    padding: 11px 28px; font-size: .9rem; font-weight: 500;
    transition: background .2s;
  }
  .btn-reset-custom:hover { background: #e2e8f0; color: var(--text); }
  /* ── 注意 ── */
  .notice-list { list-style:none; padding:0; margin:0; }
  .notice-list li { font-size:.82rem; color:var(--muted); padding:3px 0 3px 18px; position:relative; }
  .notice-list li::before { content:'※'; position:absolute; left:0; }
  /* ── レスポンシブ ── */
  @media (max-width: 640px) {
    body { padding: 0 0 40px; }
    .form-header { border-radius: 0; padding: 22px 18px 18px; }
    .form-card  { border-radius: 0; }
    .form-body  { padding: 18px 14px 26px; }
    .form-row-group { flex-direction:column; grid-template-columns: 1fr; }
    .form-label-cell { border-right: none; border-bottom: 1px solid var(--border); min-height: 56px; padding: 10px 14px; }
    .form-input-cell { padding: 10px 14px; }
    .deco-icon { display: none; }
  }
/* ── カード ── */
  .form-card {
    background: var(--card-bg);
    border-radius: 0 0 .25rem .25rwm;
    box-shadow: 0 8px 30px rgba(30,41,59,.10);
  }
  .form-body { padding: 28px 36px 36px; }
  /* ── 確認テーブル ── */
  .confirm-table { width: 100%; border-collapse: collapse; }
  .confirm-table th,
  .confirm-table td {
    border: 1px solid var(--border);
    padding: 12px 16px;
    font-size: .9rem;
  }
  .confirm-table th {
    width: 32%;
    background: #f6f8fc;
    font-weight: 500;
    text-align: left;
  }
  .confirm-table td { background: #fff; }

/*個人情報同意ブロック*/
.consent-block {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: .25rem;
    padding: 20px 24px;
}
.consent-block .consent-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
  }
  .consent-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
  }
  .consent-link:hover { color: var(--primary-dark); }
  .consent-check-label {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    user-select: none;
  }
  .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
  }
  .form-check-input { cursor: pointer; }
  .consent-note {
    font-size: .82rem;
    color: var(--muted);
    margin: 10px 0 0;
  }

/* ── ボタン ── */
  .btn-send {
    background: linear-gradient(135deg, rgb(13 110 253) 0%, #1241a8ad 100%);
    color: #fff; border: none; border-radius: .25rem;
    padding: 11px 38px; font-size: .95rem; font-weight: 600;
    box-shadow: 0 4px 14px rgba(26,86,219,.35);
    transition: opacity .2s, transform .15s;
    cursor: pointer;
  }
  .btn-send:hover:not(:disabled) { opacity: .88; transform: translateY(-1px); color: #fff; }
  .btn-send:disabled {
    opacity: .4; cursor: not-allowed;
    background: #94a3b8; box-shadow: none; transform: none;
  }
  .btn-back {
    background: #f1f5f9; color: var(--muted);
    border: 1.5px solid var(--border); border-radius: .25rem;
    padding: 11px 28px; font-size: .9rem; font-weight: 500;
    transition: background .2s; cursor: pointer;
  }
  .btn-back:hover { background: #e2e8f0; color: var(--text); }
  /* ── エラーボックス ── */
  .error-box {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: .25rem;
    padding: 16px 20px;
  }
  /* ── レスポンシブ ── */
  @media (max-width: 640px) {
    body { padding: 0 0 40px; }
    .form-header { border-radius: 0; padding: 20px 16px 16px; }
    .form-card   { border-radius: 0; }
    .form-body   { padding: 18px 14px 26px; }
    .confirm-table th,
    .confirm-table td { display: block; width: 100%; }
    .confirm-table th { border-bottom: 0; }
    .deco-icon { display: none; }
  }

  /* Apend */
  /*--------------------------------------------------------------------------------------*/
.form-body {
    padding: 28px 36px 36px;
}
@media (max-width: 640px) {
    .form-body {
        padding: 18px 14px 26px;
    }
}

.mb-4 {
    max-width: 860px;
    margin-bottom: 1.5rem!important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: #6c757d!important;
}
.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
}
/*
.form-row-group {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background .15s;
}
*/
.form-label-cell {
    padding: 14px 16px;
    font-size: .88rem;
    font-weight: 500;
    background: #f6f8fc;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    height: auto;
    border-right: 1px solid var(--border);
}

   .form-select {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
  }

  .form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
  }

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}  

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: .125rem;
}

.d-flex {
  margin-top: 1.5rem;
    display: flex !important;
    gap: 1rem !important;
}

.justify-content-center {
    justify-content: center !important;
}

.btn-confirm {
    background: linear-gradient(135deg, #0d6efd 0%, #0d6efda8 100%);
    color: #fff;
    border: none;
    border-radius: .25rem;
    padding: 11px 36px;
    font-size: .95rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(26, 86, 219, .35);
    transition: opacity .2s, transform .15s;
}

.btn-confirm:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff;
}

.me-2 {
    margin-right: .5rem !important;
}
.me-1 {
    margin-right: .25rem !important;
}

hr:not([size]) {
    height: 1px;
}

.text-danger {
    --bs-text-opacity: 1;
    color: #dc3545!important;
}

#categoryError {color: #dc3545!important;}

.form-select.is-invalid, .was-validated .form-select:invalid {
    border-color: #dc3545;
}

.form-select.is-invalid:not([multiple]):not([size]) {
    padding-right: 4.125rem;
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e), url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);
    background-position: right .75rem center, center right 2.25rem;
    background-size: 16px 12px, calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

/* -----------------------------------------------------------------------*/