/* ============================================================
   フォーム営業 — Design System Foundations
   colors_and_type.css
   ============================================================ */

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

:root {

  /* ──────────────────────────────────────────
     BRAND COLORS — Navy
  ────────────────────────────────────────── */
  --navy-950: #060d1e;
  --navy-900: #0a1628;
  --navy-800: #0d1f3c;
  --navy-700: #112850;
  --navy-600: #163366;
  --navy-500: #1c4180;
  --navy-400: #2656a4;
  --navy-300: #3c75cc;
  --navy-200: #6da0e4;
  --navy-100: #c5dafc;
  --navy-50:  #ebf2fe;

  /* BRAND COLORS — Electric Blue (Action) */
  --blue-700: #0f35c4;
  --blue-600: #1447d4;
  --blue-500: #1d57f2;   /* primary CTA */
  --blue-400: #4172f5;
  --blue-300: #7499f8;
  --blue-200: #afc3fb;
  --blue-100: #d7e2fd;
  --blue-50:  #eef3ff;

  /* BRAND COLORS — Teal (Secondary Accent) */
  --teal-600: #0891b2;
  --teal-500: #06b6d4;
  --teal-400: #22d3ee;
  --teal-100: #cffafe;
  --teal-50:  #ecfeff;

  /* ──────────────────────────────────────────
     NEUTRAL GRAYS
  ────────────────────────────────────────── */
  --gray-950: #060a13;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  /* ──────────────────────────────────────────
     SEMANTIC / STATUS COLORS
  ────────────────────────────────────────── */
  --success-700: #047857;
  --success-500: #10b981;
  --success-100: #d1fae5;
  --success-50:  #ecfdf5;

  --warning-700: #b45309;
  --warning-500: #f59e0b;
  --warning-100: #fef3c7;
  --warning-50:  #fffbeb;

  --error-700: #b91c1c;
  --error-500: #ef4444;
  --error-100: #fee2e2;
  --error-50:  #fef2f2;

  --info-500: #0ea5e9;
  --info-100: #e0f2fe;
  --info-50:  #f0f9ff;

  /* ──────────────────────────────────────────
     SEMANTIC UI TOKENS
  ────────────────────────────────────────── */

  /* Backgrounds */
  --bg-base:        var(--gray-50);
  --bg-surface:     var(--white);
  --bg-raised:      var(--white);
  --bg-overlay:     var(--white);
  --bg-subtle:      var(--gray-100);
  --bg-dark:        var(--navy-900);
  --bg-dark-subtle: var(--navy-800);

  /* Text */
  --text-primary:   var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-tertiary:  var(--gray-400);
  --text-disabled:  var(--gray-300);
  --text-inverse:   var(--white);
  --text-link:      var(--blue-500);
  --text-link-hover:var(--blue-700);

  /* Borders */
  --border-default: var(--gray-200);
  --border-strong:  var(--gray-300);
  --border-subtle:  var(--gray-100);
  --border-focus:   var(--blue-500);
  --border-error:   var(--error-500);

  /* Brand Actions */
  --action-primary:       var(--blue-500);
  --action-primary-hover: var(--blue-600);
  --action-primary-press: var(--blue-700);
  --action-primary-text:  var(--white);

  --action-secondary:       var(--white);
  --action-secondary-hover: var(--gray-50);
  --action-secondary-text:  var(--gray-800);
  --action-secondary-border:var(--gray-300);

  /* ──────────────────────────────────────────
     SHADOWS
  ────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);

  /* ──────────────────────────────────────────
     BORDER RADIUS
  ────────────────────────────────────────── */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ──────────────────────────────────────────
     SPACING SCALE (4px base)
  ────────────────────────────────────────── */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;

  /* ──────────────────────────────────────────
     TYPOGRAPHY — Font Families
  ────────────────────────────────────────── */
  --font-display:  'Sora', sans-serif;
  --font-body:     'Noto Sans JP', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* ──────────────────────────────────────────
     TYPOGRAPHY — Scale
  ────────────────────────────────────────── */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 14px;
  --text-md:   15px;
  --text-lg:   16px;
  --text-xl:   18px;
  --text-2xl:  20px;
  --text-3xl:  24px;
  --text-4xl:  30px;
  --text-5xl:  36px;
  --text-6xl:  48px;
  --text-7xl:  60px;

  /* ──────────────────────────────────────────
     TYPOGRAPHY — Weights
  ────────────────────────────────────────── */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-extrabold:800;

  /* ──────────────────────────────────────────
     TYPOGRAPHY — Line Heights
  ────────────────────────────────────────── */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;
  --leading-loose:  2.0;

  /* ──────────────────────────────────────────
     TYPOGRAPHY — Letter Spacing
  ────────────────────────────────────────── */
  --tracking-tight:  -0.03em;
  --tracking-snug:   -0.01em;
  --tracking-normal: 0em;
  --tracking-wide:   0.03em;
  --tracking-wider:  0.06em;
  --tracking-widest: 0.12em;

  /* ──────────────────────────────────────────
     ANIMATION
  ────────────────────────────────────────── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   350ms;

  /* ──────────────────────────────────────────
     DATA VISUALIZATION PALETTE
  ────────────────────────────────────────── */
  --chart-1: #1d57f2;   /* blue */
  --chart-2: #06b6d4;   /* teal */
  --chart-3: #8b5cf6;   /* violet */
  --chart-4: #f59e0b;   /* amber */
  --chart-5: #10b981;   /* emerald */
  --chart-6: #ec4899;   /* pink */
}

/* ──────────────────────────────────────────
   SEMANTIC TYPE STYLES
────────────────────────────────────────── */

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
}

h4, .h4 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

h6, .h6 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.label-xs {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.caption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-tertiary);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: var(--navy-700);
}

/* ──────────────────────────────────────────
   DISPLAY / HERO TYPE
────────────────────────────────────────── */

.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
}

.cta-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
}

.cta-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}