/* =============================================
   資格取得者の声 投稿フォーム - スタイル
   カラー: ネイビー × ホワイト × ライトグレー
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy-dark: #1a2744;
  --navy: #2c3e6b;
  --navy-light: #3d5a99;
  --accent: #4a7dca;
  --accent-light: #6b9edd;
  --bg-main: #f0f2f7;
  --bg-card: #ffffff;
  --bg-input: #f7f8fc;
  --text-primary: #1a2744;
  --text-secondary: #5a6680;
  --text-light: #8892a8;
  --border: #dde1ea;
  --border-focus: #4a7dca;
  --success: #38a169;
  --error: #e53e3e;
  --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 39, 68, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* =============================================
   ヘッダー
   ============================================= */
.form-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: #fff;
  padding: 48px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.form-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.form-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 26px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}

.form-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.form-header p {
  font-size: 0.87rem;
  font-weight: 300;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* =============================================
   簡易版への切替バナー
   ============================================= */
.form-mode-switch {
  max-width: 720px;
  margin: 16px auto;
  padding: 0 16px;
  text-align: center;
}

.form-mode-switch-desc {
  max-width: 720px;
  margin: 16px auto 8px;
  padding: 14px 18px;
  background: var(--bg-input);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.form-mode-switch-desc .desc-note {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.form-mode-switch-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.form-mode-switch-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.form-mode-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.form-mode-switch-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-mode-switch-sub {
  font-size: 0.76rem;
  font-weight: 400;
  opacity: 0.85;
}

.form-mode-switch-arrow {
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.form-mode-switch-link:hover .form-mode-switch-arrow {
  transform: translateX(3px);
}

/* =============================================
   プログレスバー
   ============================================= */
.progress-container {
  background: var(--bg-card);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.progress-bar-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.progress-info .step-label {
  font-weight: 500;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy) 0%, var(--accent) 100%);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}

/* =============================================
   フォーム本体
   ============================================= */
.form-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* セクション */
.form-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  animation: fadeInUp 0.4s ease both;
}

.form-section:hover {
  box-shadow: var(--shadow-md);
}

.form-section.active {
  border-color: var(--accent);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section:nth-child(1) { animation-delay: 0.05s; }
.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.15s; }
.form-section:nth-child(4) { animation-delay: 0.2s; }
.form-section:nth-child(5) { animation-delay: 0.25s; }
.form-section:nth-child(6) { animation-delay: 0.3s; }
.form-section:nth-child(7) { animation-delay: 0.35s; }
.form-section:nth-child(8) { animation-delay: 0.4s; }
.form-section:nth-child(9) { animation-delay: 0.45s; }
.form-section:nth-child(10) { animation-delay: 0.5s; }
.form-section:nth-child(11) { animation-delay: 0.55s; }
.form-section:nth-child(12) { animation-delay: 0.6s; }

/* セクション番号 */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ラベル */
.form-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.required-badge {
  display: inline-block;
  flex-shrink: 0;
  white-space: nowrap;
  background: var(--error);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.04em;
}

.optional-badge {
  display: inline-block;
  background: var(--bg-input);
  color: var(--text-light);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 14px;
  padding-left: 36px;
}

/* =============================================
   入力フィールド
   ============================================= */
.text-input,
.textarea-input,
.select-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
}

.text-input:focus,
.textarea-input:focus,
.select-input:focus {
  border-color: var(--border-focus);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 125, 202, 0.1);
}

.text-input::placeholder,
.textarea-input::placeholder {
  color: var(--text-light);
  font-weight: 300;
}

.textarea-input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}

.select-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6680' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* =============================================
   ラジオボタン・チェックボックス
   ============================================= */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.options-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option-item {
  position: relative;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-label {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  user-select: none;
}

.option-label:hover {
  background: #fff;
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.option-label .indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-label .indicator.check {
  border-radius: 5px;
}

.option-item input:checked + .option-label {
  background: #eef3fc;
  border-color: var(--accent);
  color: var(--navy);
  font-weight: 500;
}

.option-item input:checked + .option-label .indicator {
  border-color: var(--accent);
  background: var(--accent);
}

.option-item input:checked + .option-label .indicator::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.option-item input[type="checkbox"]:checked + .option-label .indicator::after {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: transparent;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  width: 8px;
  height: 5px;
}

/* =============================================
   ファイルアップロード
   ============================================= */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--bg-input);
}

.file-upload-area:hover {
  border-color: var(--accent-light);
  background: #f0f4fc;
}

.file-upload-area.has-file {
  border-color: var(--success);
  background: #f0faf4;
}

.upload-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.upload-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.upload-text strong {
  color: var(--accent);
}

.upload-note {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 6px;
}

.file-preview {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.file-preview.show {
  display: flex;
}

.file-preview img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.file-preview .file-info {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.file-preview .file-remove {
  color: var(--error);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.file-preview .file-remove:hover {
  background: #fef2f2;
}

/* =============================================
   グリッドテーブル（Q10）
   ============================================= */
.grid-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.grid-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
}

.grid-table thead th.grid-col-header {
  padding: 12px 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.grid-table thead th.grid-row-label {
  border-bottom: 2px solid var(--border);
}

.grid-row {
  transition: background 0.15s ease;
}

.grid-row:nth-child(even) {
  background: var(--bg-input);
}

.grid-row:hover {
  background: #eef3fc;
}

.grid-row td.grid-row-label {
  padding: 14px 16px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.85rem;
  min-width: 160px;
  border-bottom: 1px solid var(--border);
}

.grid-cell {
  text-align: center;
  padding: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.grid-cell-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px 8px;
  cursor: pointer;
  margin: 0;
}

.grid-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.grid-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.grid-check:hover {
  border-color: var(--accent-light);
}

.grid-radio:checked ~ .grid-check {
  border-color: var(--accent);
  background: var(--accent);
}

.grid-radio:checked ~ .grid-check::after {
  content: '';
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* スマホ用カード表示 */
.grid-mobile {
  display: none;
}

.grid-mobile-card {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.grid-mobile-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   文字カウンター
   ============================================= */
.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.char-counter .char-count {
  font-weight: 600;
}

.char-counter.limit-near {
  color: #d97706;
}

.char-counter.limit-reached {
  color: var(--error);
}

/* =============================================
   写真注意書き
   ============================================= */
.photo-notice {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fffaf0;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
}

.photo-notice-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 8px;
}

.photo-notice-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.photo-notice-list li {
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.7;
  margin-bottom: 6px;
}

.photo-notice-list li:last-child {
  margin-bottom: 0;
}

.photo-notice-list strong {
  font-weight: 700;
  color: #92400e;
}

/* =============================================
   規約スクロールボックス
   ============================================= */
.terms-box {
  max-height: 260px;
  overflow-y: auto;
  padding: 18px 22px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-light) var(--bg-input);
}

.terms-box::-webkit-scrollbar {
  width: 8px;
}

.terms-box::-webkit-scrollbar-track {
  background: var(--bg-input);
  border-radius: 4px;
}

.terms-box::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 4px;
}

.terms-box-inner .terms-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.terms-box-inner .terms-lead {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  padding: 8px 10px;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 3px;
}

.terms-box-inner .terms-h {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 6px;
}

.terms-box-inner p {
  font-size: 0.76rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.terms-box-inner ol {
  margin: 6px 0 10px 20px;
  padding: 0;
}

.terms-box-inner ol li {
  font-size: 0.76rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 5px;
}

.terms-box-inner ul {
  margin: 4px 0 8px 18px;
  padding: 0;
  list-style: disc;
}

.terms-box-inner ul li {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.terms-box-inner a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

.terms-link-wrap {
  margin-top: 12px;
  text-align: right;
}

.terms-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.terms-link:hover {
  background: #eef3fc;
  text-decoration: underline;
}

/* =============================================
   送信ボタン
   ============================================= */
.submit-section {
  text-align: center;
  padding: 8px 0 40px;
}

.submit-disabled-msg {
  display: none;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--error);
  font-weight: 500;
}

.submit-disabled-msg.show {
  display: block;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.25);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 39, 68, 0.35);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn:disabled::before {
  display: none;
}

.submit-btn.is-disabled {
  background: #b8bcc8;
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.submit-btn.is-disabled::before {
  display: none;
}

/* =============================================
   エラー表示
   ============================================= */
.error-text {
  color: var(--error);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 4px;
}

.error-text.show {
  display: flex;
}

.form-section.has-error {
  border-color: var(--error);
}

.form-section.has-error .text-input,
.form-section.has-error .textarea-input,
.form-section.has-error .select-input {
  border-color: var(--error);
}

/* =============================================
   完了画面
   ============================================= */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 39, 68, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-overlay.show {
  display: flex;
}

.success-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #f0faf4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
}

.success-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.success-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.success-redirect-msg {
  margin-top: 18px !important;
  padding: 10px 14px;
  background: var(--bg-input);
  border-radius: 8px;
  font-size: 0.8rem !important;
  color: var(--text-secondary);
}

.success-redirect-msg #redirectCount {
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.success-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(26, 39, 68, 0.2);
}

.success-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 39, 68, 0.3);
}

/* =============================================
   ローディング
   ============================================= */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   フッター
   ============================================= */
.form-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.72rem;
  color: var(--text-light);
}

.recaptcha-notice {
  margin-top: 12px;
  font-size: 0.68rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.recaptcha-notice a {
  color: var(--accent);
  text-decoration: underline;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }
  
  .form-header {
    padding: 36px 20px 32px;
  }
  
  .form-header h1 {
    font-size: 1.4rem;
  }
  
  .form-body {
    padding: 16px 12px 48px;
  }
  
  .form-section {
    padding: 24px 20px;
    border-radius: var(--radius);
  }
  
  .options-grid.two-col {
    grid-template-columns: 1fr;
  }
  
  .form-hint {
    padding-left: 0;
  }
  
  .submit-btn {
    width: 100%;
    max-width: none;
  }
  
  .success-card {
    padding: 36px 24px;
  }
  
  /* グリッド: スマホではカード表示に切り替え */
  .grid-table-wrap {
    display: none;
  }
  
  .grid-mobile {
    display: block;
  }
}
