/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1e3a8a;
  --primary-dark: #1e40af;
  --accent-color: #f59e0b;
  --accent-hover: #d97706;
  --success-color: #10b981;
  --error-color: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, #e0e7ff 100%);
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

/* ヘッダー */
.header {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.logo-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.header h1 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.header .subtitle {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.header .highlight {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.875rem;
}

/* セミナー情報 */
.seminar-info {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seminar-info h2 {
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seminar-info ul {
  list-style: none;
  padding-left: 0;
}

.seminar-info li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: start;
}

.seminar-info li:last-child {
  border-bottom: none;
}

.seminar-info li strong {
  min-width: 80px;
  color: var(--gray-700);
  font-size: 0.875rem;
}

/* プログレスバー */
.progress-container {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-align: center;
}

/* フォーム */
.form-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
}

.form-section h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.required {
  color: var(--error-color);
  font-weight: bold;
  margin-left: 0.25rem;
}

.optional {
  color: var(--gray-600);
  font-weight: normal;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

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

.error-message {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* チェックボックス */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  cursor: pointer;
}

.checkbox-item label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: normal;
}

/* ラジオボタン */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-item {
  display: flex;
  align-items: center;
}

.radio-item input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  cursor: pointer;
}

.radio-item label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: normal;
}

/* ボタン */
.btn {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 成功事例 */
.testimonials {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.testimonials h3 {
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.testimonial-item {
  background: var(--gray-50);
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.testimonial-item:last-child {
  margin-bottom: 0;
}

.testimonial-item h4 {
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.testimonial-item p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* フッター */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--gray-600);
  font-size: 0.875rem;
}

/* ローディング */
.loading {
  display: none;
  text-align: center;
  padding: 1rem;
}

.loading.show {
  display: block;
}

.spinner {
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* サンクスページ */
.thanks-container {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.thanks-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.thanks-card h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.thanks-card p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.next-steps {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
  margin-top: 1.5rem;
}

.next-steps h3 {
  font-size: 1.125rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.next-steps ol {
  padding-left: 1.5rem;
}

.next-steps li {
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.line-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #06C755;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.2s;
}

.line-button:hover {
  background: #05a847;
  transform: translateY(-2px);
}

/* レスポンシブ */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .header h1 {
    font-size: 1.25rem;
  }
  
  .container {
    padding: 0.5rem;
  }
  
  .form-card {
    padding: 1rem;
  }
}

/* 管理画面 */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.table-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--gray-50);
}

th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  border-bottom: 2px solid var(--gray-200);
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
}

tr:hover {
  background: var(--gray-50);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
}

.status-registered {
  background: #dbeafe;
  color: #1e40af;
}

.status-confirmed {
  background: #fef3c7;
  color: #92400e;
}

.status-attended {
  background: #d1fae5;
  color: #065f46;
}

.status-converted {
  background: #fae8ff;
  color: #86198f;
}
