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

@layer base {
  :root {
    /* Typography - Refined Industrial */
    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
    --font-serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
    --font-display: "DM Sans", "Noto Sans JP", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", monospace;

    --color-text: #1a1a1a;
    --color-text-strong: #000000;
    --color-text-subtle: rgba(26, 26, 26, 0.8);
    --color-text-muted: rgba(26, 26, 26, 0.6);
    --color-text-inverse: #ffffff;
    --color-bg: #ffffff;
    --color-surface: #fafafa;
    --color-surface-muted: #f5f5f5;
    --color-surface-alt: #f0f0f0;
    --color-border: rgba(26, 26, 26, 0.08);
    --color-border-strong: rgba(26, 26, 26, 0.15);

    --color-primary: #b38f2d;
    --color-primary-dark: #7f6520;
    --color-primary-soft: rgba(179, 143, 45, 0.12);
    --color-accent: #d8b768;
    --color-accent-bright: #f0dca0;
    --color-sub: #f8f1e6;
    --color-lime: #c9b04a;

    --expo-blue: #b38f2d;
    --expo-cyan: #e8c97a;
    --expo-magenta: #c48a45;
    --expo-yellow: #f5dfa6;
    --expo-green: #8d7a33;

    --color-hero-text: rgba(255, 255, 255, 0.98);
    --color-hero-sub: rgba(255, 255, 255, 0.7);
    --color-hero-particle: rgba(255, 255, 255, 0.6);

    --shadow-xs: 0 0 20px rgba(179, 143, 45, 0.2);
    --shadow-sm: 0 0 30px rgba(179, 143, 45, 0.28);
    --shadow-md: 0 0 40px rgba(179, 143, 45, 0.36);
    --shadow-lg: 0 0 60px rgba(179, 143, 45, 0.45);
    --shadow-hero: 0 0 80px rgba(216, 183, 104, 0.5);
    --shadow-hero-highlight: 0 0 40px rgba(216, 183, 104, 0.35);
    --shadow-hero-main: 0 0 50px rgba(179, 143, 45, 0.4);

    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-pill: 0;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --gutter: clamp(24px, 5vw, 80px);
    --content-gutter: clamp(24px, 5vw, 80px);
    --content-max: none;
    --hero-max: none;

    --surface-strengths: linear-gradient(135deg, rgba(233, 220, 196, 0.6), rgba(248, 242, 228, 0.9));
    --border-strengths: 1px solid rgba(43, 32, 16, 0.08);
    --shadow-strengths: 0 24px 40px rgba(43, 32, 16, 0.08);
    --shadow-strengths-img: 0 18px 34px rgba(43, 32, 16, 0.14);

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

  *, *::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 {
    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;
    }
  }
}
