/* ============================================
   MOTAS Corporate Site - Base Styles
   CSS Variables, Reset, Typography
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --color-primary: #1a2744;
    --color-primary-dark: #0f1a2e;
    --color-primary-light: #2a3a5c;
    --color-secondary: #3d4f6f;
    --color-accent: #8b9dc3;

    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-subtle: rgba(255, 255, 255, 0.5);
    --color-text-dark: #1a2744;

    --color-bg: #0f1a2e;
    --color-bg-dark: #1a2744;
    --color-bg-light: #f8f9fa;
    --color-overlay: rgba(26, 39, 68, 0.85);
    --color-overlay-light: rgba(26, 39, 68, 0.7);

    /* Typography */
    --font-heading: 'Noto Serif JP', 'Times New Roman', serif;
    --font-body: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    --font-english: 'Cormorant Garamond', 'Times New Roman', serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.25rem;
    /* 20px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-2xl: 2rem;
    /* 32px */
    --fs-3xl: 2.5rem;
    /* 40px */
    --fs-4xl: 3rem;
    /* 48px */
    --fs-5xl: 4rem;
    /* 64px */

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-Index */
    --z-header: 100;
    --z-modal: 200;
    --z-tooltip: 300;
}

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
}

/* ---------- Typography ---------- */
.heading-xl {
    font-family: var(--font-english);
    font-size: var(--fs-5xl);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.heading-lg {
    font-family: var(--font-english);
    font-size: var(--fs-3xl);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.heading-md {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 500;
}

.heading-sm {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 500;
}

.text-lg {
    font-size: var(--fs-lg);
    line-height: 1.8;
}

.text-md {
    font-size: var(--fs-md);
    line-height: 1.8;
}

.text-sm {
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-subtle {
    color: var(--color-text-subtle);
}

.text-center {
    text-align: center;
}

/* ---------- Utility Classes ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}