/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   ユーティリティ
   ============================================================ */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: #1e3a8a;
  text-decoration: none;
}
.header-cta {
  background: #2563eb;
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover { background: #1d4ed8; text-decoration: none; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #3b82f6 100%);
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 36px;
}
.btn-primary {
  display: inline-block;
  background: #f59e0b;
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: #d97706; transform: translateY(-1px); text-decoration: none; }
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   統計バー
   ============================================================ */
.stats-bar { background: #f8faff; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 24px; border-right: 1px solid #e5e7eb; }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 40px; font-weight: 700; color: #2563eb; line-height: 1; }
.stat-unit { font-size: 18px; }
.stat-label { font-size: 14px; color: #6b7280; margin-top: 6px; }

/* ============================================================
   セクション共通
   ============================================================ */
section { padding: 80px 0; }
.section-label {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.section-title { font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; margin-bottom: 12px; color: #1e3a8a; }
.section-desc { color: #6b7280; font-size: 16px; max-width: 560px; margin: 0 auto 48px; }

/* ============================================================
   課題セクション
   ============================================================ */
.pain-section { background: #fafafa; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.pain-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px;
  border-left: 5px solid #ef4444;
}
.pain-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: #1f2937; }
.pain-card p { font-size: 14px; color: #6b7280; }

/* ============================================================
   特長セクション
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.feature-card {
  background: #f8faff;
  border-radius: 12px;
  padding: 32px;
  border-top: 4px solid #2563eb;
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #1e3a8a; }
.feature-card p { font-size: 15px; color: #4b5563; }

/* ============================================================
   フォームセクション
   ============================================================ */
#contact { background: linear-gradient(180deg, #f0f4ff 0%, #fff 100%); }
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}
.form-group label .required {
  color: #ef4444;
  margin-left: 4px;
  font-size: 12px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}
.btn-submit:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); }
.btn-submit:disabled { background: #93c5fd; cursor: not-allowed; transform: none; }
.form-note { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 12px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .success-icon { font-size: 64px; margin-bottom: 16px; }
.form-success h3 { font-size: 22px; font-weight: 700; color: #1e3a8a; margin-bottom: 8px; }
.form-success p { color: #6b7280; }
.form-error-msg {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
}
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: #9ca3af; text-decoration: underline; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stat-number { font-size: 28px; }
  .form-wrapper { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .header-cta { display: none; }
}
