@layer base, layout, components, utilities, pages;

@layer base {
  :root {
    --font-sans: "Noto Sans JP", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    --font-mono: "Roboto Mono", "SFMono-Regular", "Menlo", monospace;

    /* Rich Blue & Red Color Scheme */
    --color-text: #1a1f36;
    --color-text-strong: #0d1220;
    --color-text-subtle: rgba(26, 31, 54, 0.75);
    --color-text-muted: rgba(26, 31, 54, 0.55);
    --color-bg: #fafbfc;
    --color-surface: #ffffff;
    --color-surface-muted: #f4f5f8;
    --color-surface-alt: #e8ebf0;
    --color-border: rgba(26, 31, 54, 0.12);
    --color-border-strong: rgba(26, 31, 54, 0.20);

    /* Primary: Rich Royal Blue */
    --color-primary: #1e40af;
    --color-primary-dark: #1e3a8a;
    --color-primary-light: #3b82f6;
    --color-primary-soft: rgba(30, 64, 175, 0.12);
    --color-primary-glow: rgba(30, 64, 175, 0.25);

    /* Secondary: Deep Crimson Red */
    --color-secondary: #b91c1c;
    --color-secondary-dark: #991b1b;
    --color-secondary-light: #dc2626;
    --color-secondary-soft: rgba(185, 28, 28, 0.10);
    --color-secondary-glow: rgba(185, 28, 28, 0.22);

    /* Accent: Luxury Gold */
    --color-accent: #d97706;
    --color-accent-light: #f59e0b;
    --color-accent-soft: rgba(217, 119, 6, 0.12);

    --color-sub: #0f1729;
    --color-lime: #84cc16;

    /* Rich gradient colors */
    --expo-blue: #1d4ed8;
    --expo-red: #dc2626;
    --expo-gold: #f59e0b;
    --expo-purple: #7c3aed;
    --expo-teal: #0d9488;

    --color-hero-text: rgba(248, 250, 252, 0.98);
    --color-hero-sub: rgba(255, 255, 255, 0.72);
    --color-hero-particle: rgba(255, 255, 255, 0.62);

    /* Enhanced shadows for depth */
    --shadow-xs: 0 2px 8px rgba(26, 31, 54, 0.06);
    --shadow-sm: 0 8px 20px rgba(26, 31, 54, 0.10);
    --shadow-md: 0 16px 32px rgba(26, 31, 54, 0.14);
    --shadow-lg: 0 24px 48px rgba(26, 31, 54, 0.18);
    --shadow-hero: 0 20px 40px rgba(0, 0, 0, 0.50);
    --shadow-hero-highlight: 0 16px 36px rgba(30, 64, 175, 0.35);
    --shadow-hero-main: 0 24px 40px rgba(30, 64, 175, 0.38);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --transition-fast: 0.2s ease;
    --transition-base: 0.28s ease;

    --gutter: clamp(20px, 4vw, 48px);
    --content-gutter: clamp(24px, 4vw, 56px);
    --content-max: 1600px;
    --hero-max: 1800px;

    --surface-strengths: #f8fafc;
    --border-strengths: 1px solid rgba(30, 64, 175, 0.12);
    --shadow-strengths: 0 20px 36px rgba(30, 64, 175, 0.10);
    --shadow-strengths-img: 0 16px 32px rgba(185, 28, 28, 0.14);

    --link-color: var(--color-primary);
    --link-hover-color: var(--color-secondary);
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-text-size-adjust: 100%;
  }

  body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
  }

  a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  a:hover,
  a:focus-visible {
    color: var(--link-hover-color);
  }

  img,
  picture,
  video,
  canvas,
  svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  figure,
  :where(figure) {
    margin: 0;
  }

  p {
    margin: 0 0 1.25em;
  }

  ul,
  ol {
    margin: 0 0 1.25em 1.5em;
    padding: 0;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
    border-radius: 0;
  }

  fieldset {
    border: 0;
    margin: 0;
    padding: 0;
  }

  @media print, screen and (min-width: 1100px) {
    body {
      min-width: 1024px;
    }
  }

  @media (max-width: 1024px) {
    body {
      min-width: 100%;
      overflow-x: hidden;
    }
  }
}
