/* Kitakan Professional Theme - CSS Variables
 *
 * このファイルをLP/HTMLアーティファクトの <head> 内に <style> または <link> で読込。
 * shadcn/ui との互換性を持たせるため、--primary 系の変数も提供。
 */

:root {
  /* === Brand Colors === */
  --kk-trust-navy: #1E3A5F;
  --kk-steel-gray: #5A6B7D;
  --kk-mustard-accent: #D97706;
  --kk-off-white: #FAFAF9;
  --kk-charcoal: #1F2937;
  --kk-border-gray: #E5E7EB;
  --kk-subtle-hover: #F3F4F6;

  /* === shadcn/ui compatible (HSL form) === */
  --background: 60 7% 98%;          /* #FAFAF9 */
  --foreground: 215 20% 17%;        /* #1F2937 */
  --primary: 213 51% 25%;           /* #1E3A5F */
  --primary-foreground: 60 7% 98%;
  --secondary: 212 16% 42%;         /* #5A6B7D */
  --secondary-foreground: 60 7% 98%;
  --accent: 28 90% 44%;             /* #D97706 */
  --accent-foreground: 60 7% 98%;
  --muted: 220 13% 91%;             /* #E5E7EB */
  --muted-foreground: 212 16% 42%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 213 51% 25%;
  --radius: 0.5rem;

  /* === Typography === */
  --font-heading: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans JP", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* === Type Scale (Major Third 1.25) === */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* === Spacing === */
  --section-py: 6rem;     /* セクション縦余白 py-24 */
  --section-py-lg: 8rem;  /* 大セクション py-32 */
  --container-max: 1200px;

  /* === Weight === */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* === Line Height === */
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* === Shadow (controlled・誇張しない) === */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  /* shadow-lg/xl は使わない（誇張回避） */
}

/* === Base Styles === */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--kk-off-white);
  color: var(--kk-charcoal);
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--kk-trust-navy);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
}

a {
  color: var(--kk-trust-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--kk-mustard-accent);
}

/* === Reusable Components === */

.kk-container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.kk-section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.kk-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--kk-mustard-accent);
  color: white;
  font-weight: var(--weight-bold);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.15s ease;
  border: none;
  cursor: pointer;
}

.kk-btn-primary:hover {
  background-color: #B45309;
  color: white;
}

.kk-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--kk-trust-navy);
  font-weight: var(--weight-medium);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--kk-trust-navy);
  text-decoration: none;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.kk-btn-secondary:hover {
  background-color: var(--kk-trust-navy);
  color: white;
}

.kk-card {
  background-color: white;
  border: 1px solid var(--kk-border-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.kk-badge {
  display: inline-block;
  background-color: var(--kk-trust-navy);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.kk-badge-accent {
  background-color: var(--kk-mustard-accent);
}

.kk-number {
  font-family: var(--font-mono);
  font-weight: var(--weight-bold);
  color: var(--kk-mustard-accent);
}

.kk-divider {
  border: none;
  border-top: 1px solid var(--kk-border-gray);
  margin: 2.5rem 0;
}

/* === Responsive === */

@media (max-width: 768px) {
  :root {
    --section-py: 4rem;
    --section-py-lg: 5rem;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}
