/**
 * Minimal CSS Reset - Engawa Design
 *
 * A clean foundation for contemplative design
 */

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

* {
    margin: 0;
    padding: 0;
}

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

body {
    min-height: 100vh;
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

ul, ol {
    list-style: none;
}

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

/* Remove default focus outline, add custom one */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--hinoki-100);
}

::-webkit-scrollbar-thumb {
    background: var(--nezumi-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nezumi-400);
}
/**
 * Jobinix Design System: "The Engawa"
 *
 * A Japanese wooden veranda aesthetic - warm, contemplative, transitional.
 * Job seekers exist in a liminal space; this design honors that journey
 * with calm rather than urgency.
 *
 * 縁側 (Engawa) - The threshold between interior and garden
 */

:root {
    /* ==========================================
     * MORNING GARDEN PALETTE
     * Warm woods, earth tones, garden accents
     * ========================================== */

    /* Primary: Warm Woods */
    --hinoki-50: #FAF8F5;           /* 檜 Lightest cypress */
    --hinoki-100: #F5EDE0;          /* Light cypress - main bg */
    --hinoki-200: #E8DCC8;          /* Weathered wood - cards */
    --hinoki-300: #D4C4A8;          /* Aged wood */

    /* Earth: Deep Woods */
    --sugi-400: #A89070;            /* 杉 Light cedar */
    --sugi-500: #8B7355;            /* Cedar - secondary text */
    --sugi-600: #6E5A43;            /* Dark cedar */

    --kuri-700: #5A4530;            /* 栗 Chestnut */
    --kuri-800: #4A3728;            /* Dark chestnut - primary text */
    --kuri-900: #3A2A1E;            /* Deepest wood */

    /* Accent: Garden Life */
    --beni-300: #E8A5A0;            /* 紅 Soft red */
    --beni-400: #D4847C;            /* Warm red hover */
    --beni-500: #C73E3A;            /* Deep red - CTAs */
    --beni-600: #A83330;            /* Darker red */

    --take-400: #9FB3A5;            /* 竹 Light bamboo */
    --take-500: #5B7065;            /* Bamboo green - badges */
    --take-600: #4A5B52;            /* Dark bamboo */

    --asagi-400: #6B8E9B;           /* 浅葱 Pale blue - links */
    --asagi-500: #4A7080;           /* Deeper blue */

    /* Neutrals */
    --shiro: #FDFBF7;               /* 白 Warm white */
    --nezumi-400: #A8A8A8;          /* 鼠 Light gray */
    --nezumi-500: #8E8E8E;          /* Medium gray */
    --nezumi-600: #6E6E6E;          /* Dark gray */

    /* ==========================================
     * SEMANTIC MAPPINGS
     * ========================================== */

    /* Backgrounds */
    --bg-primary: var(--hinoki-100);
    --bg-secondary: var(--shiro);
    --bg-tertiary: var(--hinoki-200);
    --bg-inverse: var(--kuri-800);
    --bg-card: var(--shiro);

    /* Text */
    --text-primary: var(--kuri-800);
    --text-secondary: var(--sugi-500);
    --text-muted: var(--nezumi-500);
    --text-inverse: var(--hinoki-100);

    /* Interactive */
    --color-action: var(--beni-500);
    --color-action-hover: var(--beni-400);
    --color-link: var(--asagi-400);
    --color-success: var(--take-500);

    /* Borders */
    --border-light: var(--hinoki-200);
    --border-medium: var(--hinoki-300);

    /* Legacy mappings for compatibility */
    --color-primary: var(--kuri-800);
    --color-primary-dark: var(--kuri-900);
    --color-background: var(--bg-primary);
    --color-card: var(--bg-card);
    --color-text: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-border: var(--border-light);

    /* ==========================================
     * SEASONAL ACCENTS
     * Subtle, never overwhelming
     * ========================================== */

    --seasonal-accent: var(--beni-300);
    --seasonal-glow: rgba(232, 165, 160, 0.15);
}

/* Spring: Cherry blossoms */
[data-season="spring"] {
    --seasonal-accent: #E8B4BC;
    --seasonal-glow: rgba(232, 180, 188, 0.12);
}

/* Summer: Fresh growth */
[data-season="summer"] {
    --seasonal-accent: #7B9B6B;
    --seasonal-glow: rgba(123, 155, 107, 0.12);
}

/* Autumn: Maple leaves */
[data-season="autumn"] {
    --seasonal-accent: #C75B3A;
    --seasonal-glow: rgba(199, 91, 58, 0.12);
}

/* Winter: Snow */
[data-season="winter"] {
    --seasonal-accent: #B8C4D0;
    --seasonal-glow: rgba(184, 196, 208, 0.15);
}

:root {
    /* ==========================================
     * SPACING: Ma (間) - Negative Space
     * Generous, intentional, breathing room
     * ========================================== */

    --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;

    /* Legacy spacing */
    --space-xs: var(--space-2);
    --space-sm: var(--space-3);
    --space-md: var(--space-4);
    --space-lg: var(--space-6);
    --space-xl: var(--space-10);
    --space-xxl: var(--space-12);
    --space-xxxl: var(--space-16);

    /* ==========================================
     * TYPOGRAPHY
     * Libre Baskerville for warmth + clarity
     * ========================================== */

    --font-display: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Legacy */
    --font-family: var(--font-body);
    --font-family-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', sans-serif;

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

    /* Legacy */
    --font-size-xs: var(--text-xs);
    --font-size-sm: var(--text-sm);
    --font-size-base: var(--text-base);
    --font-size-lg: var(--text-lg);
    --font-size-xl: var(--text-xl);
    --font-size-2xl: var(--text-2xl);
    --font-size-3xl: var(--text-3xl);
    --font-size-4xl: var(--text-4xl);

    /* Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    --line-height-tight: var(--leading-tight);
    --line-height-normal: var(--leading-normal);
    --line-height-relaxed: var(--leading-relaxed);

    /* Letter spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.03em;
    --tracking-wider: 0.08em;
    --letter-spacing-tight: var(--tracking-tight);
    --letter-spacing-normal: var(--tracking-normal);
    --letter-spacing-wide: var(--tracking-wide);

    /* ==========================================
     * BORDERS & RADIUS
     * Wabi-sabi: Not too perfect
     * ========================================== */

    --border-width: 1px;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-full: 9999px;

    /* ==========================================
     * SHADOWS
     * Warm, organic shadow color
     * ========================================== */

    --shadow-color: 74, 55, 40;  /* kuri-800 RGB */

    --shadow-xs: 0 1px 2px rgba(var(--shadow-color), 0.04);
    --shadow-sm: 0 1px 3px rgba(var(--shadow-color), 0.06),
                 0 1px 2px rgba(var(--shadow-color), 0.04);
    --shadow-md: 0 4px 6px rgba(var(--shadow-color), 0.05),
                 0 2px 4px rgba(var(--shadow-color), 0.04);
    --shadow-lg: 0 10px 15px rgba(var(--shadow-color), 0.06),
                 0 4px 6px rgba(var(--shadow-color), 0.04);
    --shadow-xl: 0 20px 25px rgba(var(--shadow-color), 0.08),
                 0 10px 10px rgba(var(--shadow-color), 0.04);

    /* Lantern glow - the signature effect */
    --shadow-lantern: 0 0 60px rgba(253, 251, 247, 0.8),
                      0 20px 40px rgba(var(--shadow-color), 0.12);

    /* Legacy */
    --card-shadow-base: var(--shadow-md);
    --card-shadow-hover: var(--shadow-lantern);

    /* ==========================================
     * TRANSITIONS: Shibui (渋い)
     * Subtle, unhurried, considered
     * ========================================== */

    --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);

    --duration-instant: 50ms;
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;

    /* Legacy */
    --transition-fast: var(--duration-fast) var(--ease-default);
    --transition-normal: var(--duration-normal) var(--ease-default);
    --transition-slow: var(--duration-slow) var(--ease-gentle);

    /* ==========================================
     * LAYOUT
     * ========================================== */

    --container-max: 1320px;
    --container-narrow: 800px;
    --container-padding: var(--space-6);

    --header-height: 80px;
    --header-height-mobile: 64px;

    /* Legacy */
    --container-max-width: var(--container-max);

    /* ==========================================
     * Z-INDEX
     * ========================================== */

    --z-base: 0;
    --z-above: 10;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* ==========================================
     * CARD ROTATION: Wabi-sabi (侘寂)
     * Subtle imperfection, organic feel
     * Reduced from previous - more refined
     * ========================================== */

    --rotation-1: -0.5deg;
    --rotation-2: 0.35deg;
    --rotation-3: -0.25deg;
    --rotation-4: 0.45deg;
    --rotation-5: -0.3deg;
    --rotation-6: 0.2deg;
    --rotation-7: -0.4deg;
}

/* ==========================================
 * REDUCED MOTION
 * ========================================== */

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-instant: 0ms;
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
        --duration-slower: 0ms;
    }
}
/**
 * Typography Styles - Engawa Design
 *
 * A contemplative typographic system
 * Libre Baskerville for display, Source Sans 3 for body
 */

/* ==========================================
 * BASE TYPOGRAPHY
 * ========================================== */

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
 * HEADINGS
 * Display font for contemplative presence
 * ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin: 0;
}

h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
}

h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
}

h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-5);
}

h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

h5 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

/* ==========================================
 * PARAGRAPHS & BODY TEXT
 * ========================================== */

p {
    margin: 0 0 var(--space-4);
    line-height: var(--leading-relaxed);
}

p:last-child {
    margin-bottom: 0;
}

/* Lead text - introductory paragraphs */
.lead {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Small text */
small,
.small {
    font-size: var(--text-sm);
}

/* ==========================================
 * LINKS
 * Subtle warmth on interaction
 * ========================================== */

a {
    color: var(--color-action);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
    color: var(--color-action-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Text links with underline */
.link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.link:hover {
    text-decoration-thickness: 2px;
}

/* ==========================================
 * LISTS
 * ========================================== */

ul, ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
}

li {
    margin-bottom: var(--space-2);
    line-height: var(--leading-relaxed);
}

li:last-child {
    margin-bottom: 0;
}

/* Unstyled lists */
.list-none {
    list-style: none;
    padding-left: 0;
}

/* ==========================================
 * BLOCKQUOTES
 * Contemplative emphasis
 * ========================================== */

blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-6);
    border-left: 3px solid var(--border-medium);
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-secondary);
}

blockquote cite {
    display: block;
    margin-top: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-style: normal;
    color: var(--text-muted);
}

/* ==========================================
 * CODE & PREFORMATTED
 * ========================================== */

code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    padding: var(--space-1) var(--space-2);
    background: var(--hinoki-200);
    border-radius: var(--radius-sm);
    color: var(--kuri-700);
}

pre {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: var(--kuri-800);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

pre code {
    padding: 0;
    background: none;
    color: var(--hinoki-100);
    font-size: var(--text-sm);
}

/* ==========================================
 * HORIZONTAL RULE
 * Like a garden boundary stone
 * ========================================== */

hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: var(--space-8) 0;
}

/* ==========================================
 * TEXT SIZE UTILITIES
 * ========================================== */

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* ==========================================
 * TEXT COLOR UTILITIES
 * ========================================== */

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }
.text-action { color: var(--color-action); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }

/* ==========================================
 * TEXT ALIGNMENT
 * ========================================== */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* ==========================================
 * FONT WEIGHT UTILITIES
 * ========================================== */

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ==========================================
 * FONT FAMILY UTILITIES
 * ========================================== */

.font-body { font-family: var(--font-body); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ==========================================
 * LINE HEIGHT UTILITIES
 * ========================================== */

.leading-none { line-height: 1; }
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

/* ==========================================
 * LETTER SPACING UTILITIES
 * ========================================== */

.tracking-tighter { letter-spacing: var(--tracking-tighter); }
.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }

/* ==========================================
 * TEXT TRANSFORM
 * ========================================== */

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* ==========================================
 * TEXT DECORATION
 * ========================================== */

.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }

/* ==========================================
 * TRUNCATION & OVERFLOW
 * ========================================== */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
 * WHITESPACE
 * ========================================== */

.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* ==========================================
 * SELECTION
 * Warm highlight color
 * ========================================== */

::selection {
    background: var(--beni-200);
    color: var(--kuri-900);
}

::-moz-selection {
    background: var(--beni-200);
    color: var(--kuri-900);
}
/**
 * Header Component - Engawa Design
 *
 * Two modes:
 * - Home page (.header--home): Big search section with question prompt
 * - Other pages (.header--compact): Clean inline search next to logo
 */

/* ==========================================
 * BASE HEADER (shared)
 * ========================================== */

.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-primary);
}

.header__top {
    border-bottom: 1px solid var(--border-light);
}

.header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* ==========================================
 * LOGO
 * ========================================== */

.header__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header__logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
}

.header__logo-accent {
    color: var(--color-action);
}

/* ==========================================
 * NAVIGATION
 * Ma (negative space) - generous padding
 * Kanso (simplicity) - clean, uncluttered
 * ========================================== */

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header__nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: color var(--duration-fast) var(--ease-default),
                background var(--duration-fast) var(--ease-default);
    /* Subtle shibui touch */
    position: relative;
}

.header__nav-link:hover {
    color: var(--text-primary);
    background: var(--hinoki-100);
}

/* Active state indicator - subtle underline */
.header__nav-link--active {
    color: var(--text-primary);
}

.header__nav-link--active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--seasonal-accent);
    border-radius: var(--radius-full);
    opacity: 0.6;
}

/* ==========================================
 * DAILY WISDOM (Japanese philosophy phrases)
 * Shibui: Subtle, unobtrusive beauty
 * The phrase should feel like a gentle whisper
 * ========================================== */

.header__wisdom {
    flex: 1;
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--sugi-400);
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-relaxed);
    margin: 0;
    padding: 0 var(--space-6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
    opacity: 0.65;
    user-select: none;
    /* Subtle fade effect - shibui touch */
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

/* Gentle hover reveal - show full opacity briefly */
.header__wisdom:hover {
    opacity: 0.85;
    transition: opacity var(--duration-slow) var(--ease-gentle);
}

@media (max-width: 1200px) {
    .header__wisdom {
        max-width: 300px;
        font-size: 0.7rem;
        padding: 0 var(--space-4);
    }
}

@media (max-width: 1024px) {
    .header__wisdom {
        display: none;
    }
}

/* ==========================================
 * MOBILE WISDOM - Inline between logo and hamburger
 * Shibui: Like morning dew, noticed but not demanding
 * Ma: Using the space between elegantly
 * ========================================== */

.header__wisdom-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .header__wisdom-mobile {
        display: block;
        flex: 1;
        min-width: 0;
        font-family: var(--font-body);
        font-size: 0.65rem;
        font-style: italic;
        color: var(--sugi-400);
        letter-spacing: var(--tracking-wide);
        line-height: 1.3;
        text-align: center;
        margin: 0;
        padding: 0 var(--space-2);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.55;
        user-select: none;
        pointer-events: none;
    }
}

/* ==========================================
 * ACTIONS (Language Toggle)
 * ========================================== */

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header__lang {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
}

.header__lang-btn {
    color: var(--text-muted);
    text-decoration: none;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-default);
}

.header__lang-btn:hover {
    color: var(--text-primary);
}

.header__lang-btn--active {
    color: var(--shiro);
    background: var(--kuri-700);
}

.header__lang-sep {
    color: var(--border-medium);
}

/* Mobile Menu Button */
.header__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast) var(--ease-default);
}

.header__menu-btn:hover {
    background: var(--hinoki-200);
}

/* ==========================================
 * HOME PAGE HEADER - Big Search Section
 * ========================================== */

.header--home .header__search-section {
    background: linear-gradient(
        180deg,
        var(--bg-primary) 0%,
        var(--hinoki-50) 100%
    );
    padding: var(--space-10) var(--container-padding) var(--space-6);
    text-align: center;
}

.header--home .header__search-container {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

/* The Prompt */
.header__prompt {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 var(--space-4);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

/* Search Form */
.header--home .header__search-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.header__search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header--home .header__search-input {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    padding-right: 60px;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: border-color var(--duration-normal) var(--ease-default),
                box-shadow var(--duration-normal) var(--ease-default);
}

.header--home .header__search-input::placeholder {
    color: var(--text-muted);
}

.header--home .header__search-input:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 4px rgba(199, 62, 58, 0.1);
}

.header--home .header__search-submit {
    position: absolute;
    right: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-action);
    border: none;
    border-radius: var(--radius-md);
    color: var(--shiro);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-default),
                transform var(--duration-fast) var(--ease-default);
}

.header--home .header__search-submit:hover {
    background: var(--color-action-hover);
    transform: scale(1.02);
}

/* Filter Pills */
.header__filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.header__filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header__filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.header__filter-pill:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.header__filter-input {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    width: 100px;
    outline: none;
}

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

.header__filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.header__filter-select:hover {
    border-color: var(--border-medium);
}

.header__filter-select:focus {
    outline: none;
    border-color: var(--color-action);
}

/* Remote Toggle */
.header__filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    user-select: none;
}

.header__filter-toggle:hover {
    border-color: var(--border-medium);
    color: var(--text-primary);
}

.header__filter-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.header__toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--sugi-300);
    border-radius: 10px;
    transition: background var(--duration-fast) var(--ease-default);
}

.header__toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--shiro);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform var(--duration-fast) var(--ease-default);
}

.header__filter-toggle:has(input:checked) {
    background: var(--take-100);
    border-color: var(--take-500);
    color: var(--take-700);
}

.header__filter-toggle:has(input:checked) .header__toggle-switch {
    background: var(--take-500);
}

.header__filter-toggle:has(input:checked) .header__toggle-switch::after {
    transform: translateX(16px);
}

.header__toggle-label {
    font-weight: 500;
}

/* Toggle label variants - full (desktop) and short (mobile) */
.header__toggle-label--full {
    display: inline;
}

.header__toggle-label--short {
    display: none;
}

.header__filter-toggle:has(input:checked) .header__toggle-label {
    color: var(--take-700);
}

/* ==========================================
 * COMPACT HEADER - Inline Search (Non-home pages)
 * ========================================== */

.header--compact {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.header--compact .header__container {
    gap: var(--space-6);
    height: auto;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

/* Logo intentionally kept consistent across all pages (no override) */

/* Compact header: hide desktop wisdom when search is visible
 * The search bar is the focus on non-home pages */
.header--compact .header__wisdom.desktop-only {
    display: none;
}

/* Inline Search Form */
.header__inline-search {
    flex: 1;
    max-width: 550px;
}

.header__inline-search-group {
    display: flex;
    align-items: stretch;
    background: var(--shiro);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-fast) var(--ease-default),
                box-shadow var(--duration-fast) var(--ease-default);
}

.header__inline-search-group:focus-within {
    border-color: var(--color-action);
    box-shadow: 0 0 0 3px rgba(199, 62, 58, 0.1);
}

.header__inline-search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.header__inline-search-field--location {
    flex: 0 0 auto;
    min-width: 150px;
    border-left: 1px solid var(--border-light);
}

.header__inline-search-icon {
    position: absolute;
    left: var(--space-3);
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.header__inline-search-input {
    width: 100%;
    padding: var(--space-3) var(--space-3) var(--space-3) calc(var(--space-3) + 24px);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
}

.header__inline-search-input::placeholder {
    color: var(--text-muted);
}

.header__inline-search-select {
    width: 100%;
    padding: var(--space-3) var(--space-6) var(--space-3) calc(var(--space-3) + 22px);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B7355' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-2) center;
}

.header__inline-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
    background: var(--color-action);
    color: var(--shiro);
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-default);
}

.header__inline-search-submit:hover {
    background: var(--color-action-hover);
}

/* ==========================================
 * MOBILE NAVIGATION DRAWER
 * Like a shoji screen sliding open
 * Ma (generous space), touch-friendly targets
 * ========================================== */

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.is-open {
    visibility: visible;
    pointer-events: auto;
}

/* Overlay - like evening mist */
.mobile-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 55, 40, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-default);
}

.mobile-nav.is-open .mobile-nav__overlay {
    opacity: 1;
}

/* Panel - the shoji screen */
.mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 300px;
    background: var(--bg-secondary);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-gentle);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(74, 55, 40, 0.15);
}

.mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
}

/* Header - clean, minimal */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
}

/* Close button - 44px touch target (minimum) */
.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: color var(--duration-fast) var(--ease-default),
                background var(--duration-fast) var(--ease-default);
    margin: -8px; /* Extend touch area beyond visual */
}

.mobile-nav__close:hover,
.mobile-nav__close:active {
    color: var(--text-primary);
    background: var(--hinoki-100);
}

/* Search - generous padding for thumbs */
.mobile-nav__search {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav__search-input {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    /* Ensure minimum touch height */
    min-height: 48px;
}

.mobile-nav__search-input:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 3px rgba(199, 62, 58, 0.1);
}

/* Links - Ma-inspired spacing */
.mobile-nav__links {
    flex: 1;
    padding: var(--space-4) 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Each link is a generous touch target */
.mobile-nav__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default),
                background var(--duration-fast) var(--ease-default);
    border-left: 3px solid transparent;
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
    color: var(--text-primary);
    background: var(--hinoki-50);
}

.mobile-nav__link--active {
    color: var(--text-primary);
    background: var(--hinoki-100);
    border-left-color: var(--seasonal-accent);
}

/* Footer - language toggle */
.mobile-nav__footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--border-light);
    background: var(--hinoki-50);
}

.mobile-nav__lang {
    display: flex;
    gap: var(--space-3);
}

.mobile-nav__lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-default);
}

.mobile-nav__lang-btn:hover,
.mobile-nav__lang-btn:active {
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.mobile-nav__lang-btn--active {
    color: var(--shiro);
    background: var(--kuri-700);
    border-color: var(--kuri-700);
}

/* Prevent body scroll when drawer is open */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ==========================================
 * RESPONSIVE
 * Mobile-first Japanese design principles:
 * - Ma becomes even more critical on small screens
 * - Touch targets 44px minimum
 * - Single column simplicity
 * ========================================== */

@media (max-width: 768px) {
    .header__container {
        height: var(--header-height-mobile);
        padding: 0 var(--space-4);
    }

    .header__logo-text {
        font-size: var(--text-xl);
    }

    /* Home page mobile - generous breathing room */
    .header--home .header__search-section {
        padding: var(--space-8) var(--space-4) var(--space-5);
    }

    .header--home .header__search-input {
        padding: var(--space-4);
        padding-right: 52px;
        font-size: var(--text-base);
        min-height: 52px;
    }

    .header--home .header__search-submit {
        width: 40px;
        height: 40px;
        right: 6px;
    }

    /* Filters - fit on ONE line, no scroll
     * Kanso: Simplify through abbreviation
     * Ma: Efficient use of limited space */
    .header__filters {
        justify-content: center;
        overflow-x: visible;
        flex-wrap: nowrap;
        padding-bottom: 0;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        gap: var(--space-2);
    }

    .header__filter-group {
        gap: var(--space-2);
    }

    .header__filter-pill,
    .header__filter-select,
    .header__filter-toggle {
        flex-shrink: 0;
        min-height: 40px;
        padding: var(--space-2);
        font-size: var(--text-xs);
    }

    /* Compact city input */
    .header__filter-pill--location {
        padding: var(--space-2);
    }

    .header__filter-pill--location svg {
        width: 12px;
        height: 12px;
    }

    .header__filter-input {
        min-width: 60px;
        width: 60px;
        font-size: var(--text-xs);
    }

    /* Province select - use abbreviated codes via CSS */
    .header__filter-select {
        padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2);
        min-width: auto;
        width: auto;
        max-width: 70px;
        font-size: var(--text-xs);
    }

    /* Remote toggle - compact version */
    .header__filter-toggle {
        padding: var(--space-2);
        gap: var(--space-1);
    }

    .header__toggle-switch {
        width: 28px;
        height: 16px;
    }

    .header__toggle-switch::after {
        width: 12px;
        height: 12px;
    }

    .header__filter-toggle:has(input:checked) .header__toggle-switch::after {
        transform: translateX(12px);
    }

    /* Show short label, hide full label on mobile */
    .header__toggle-label--full {
        display: none;
    }

    .header__toggle-label--short {
        display: inline;
        font-size: var(--text-xs);
    }

    /* Compact header mobile */
    .header--compact .header__container {
        gap: var(--space-3);
    }

    .header--compact .header__inline-search {
        display: none;
    }

    /* Hide desktop-only elements */
    .header__wisdom {
        display: none !important;
    }

    .header__nav {
        display: none !important;
    }

    .header__lang {
        display: none !important;
    }

    /* Ensure menu button is visible and properly sized */
    .header__menu-btn {
        display: flex !important;
        width: 44px;
        height: 44px;
    }
}

/* Small phones - even more compact */
@media (max-width: 375px) {
    .header__container {
        padding: 0 var(--space-3);
    }

    .header--home .header__search-section {
        padding: var(--space-6) var(--space-3) var(--space-4);
    }

    .header__logo-text {
        font-size: var(--text-lg);
    }
}

/* Tablet: condense inline search */
@media (min-width: 769px) and (max-width: 1024px) {
    .header__inline-search-field--location {
        min-width: 130px;
    }

    .header__nav {
        gap: var(--space-1);
    }

    .header__nav-link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .header__actions {
        gap: var(--space-3);
    }
}

/* Larger tablets - wisdom phrase visible but compact */
@media (min-width: 1025px) and (max-width: 1200px) {
    .header__wisdom {
        max-width: 260px;
    }
}

/* ==========================================
 * VISIBILITY UTILITIES (Header-specific)
 * Note: Global utilities defined in utilities.css
 * These are scoped to header context only
 * ========================================== */

.header .desktop-only {
    display: flex;
}

.header .mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .header .desktop-only {
        display: none !important;
    }

    .header .mobile-only {
        display: flex !important;
    }
}
/**
 * Footer Component - Engawa Design
 *
 * The Stone Garden: Grounded, contemplative ending
 * Dark wood tones create a sense of arrival and completion
 */

/* ==========================================
 * BASE FOOTER
 * ========================================== */

.footer {
    background: var(--bg-inverse);
    color: var(--text-inverse);
    padding: var(--space-24) 0 var(--space-8);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

/* ==========================================
 * MAIN GRID
 * ========================================== */

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-16);
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(245, 237, 224, 0.1);
}

/* ==========================================
 * BRAND SECTION
 * ========================================== */

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-4);
}

.footer__logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--hinoki-100);
    letter-spacing: var(--tracking-tight);
}

.footer__logo-accent {
    color: var(--beni-400);
}

.footer__tagline {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--nezumi-400);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ==========================================
 * NAVIGATION SECTIONS
 * ========================================== */

.footer__section-title {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--nezumi-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin: 0 0 var(--space-6);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--hinoki-200);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.footer__link:hover {
    color: var(--beni-300);
}

/* ==========================================
 * BOTTOM BAR
 * ========================================== */

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
}

.footer__copyright {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--nezumi-500);
    margin: 0;
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal-link {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--nezumi-500);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-default);
}

.footer__legal-link:hover {
    color: var(--hinoki-200);
}

/* Language Toggle */
.footer__lang {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
}

.footer__lang-link {
    padding: var(--space-2) var(--space-3);
    color: var(--nezumi-500);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-default);
}

.footer__lang-link:hover {
    color: var(--hinoki-200);
    background: rgba(245, 237, 224, 0.1);
}

.footer__lang-link--active {
    color: var(--shiro);
    background: rgba(245, 237, 224, 0.15);
    font-weight: 500;
}

.footer__lang-separator {
    color: rgba(245, 237, 224, 0.2);
}

/* Country Selector */
.footer__country {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
}

.footer__country-icon {
    color: var(--nezumi-500);
    flex-shrink: 0;
}

.footer__country-select {
    appearance: none;
    background: rgba(245, 237, 224, 0.1);
    border: 1px solid rgba(245, 237, 224, 0.2);
    border-radius: var(--radius-sm);
    color: var(--hinoki-200);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-6) var(--space-2) var(--space-3);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.footer__country-select:hover {
    background-color: rgba(245, 237, 224, 0.15);
    border-color: rgba(245, 237, 224, 0.3);
}

.footer__country-select:focus {
    outline: none;
    border-color: var(--beni-400);
    box-shadow: 0 0 0 2px rgba(201, 62, 58, 0.2);
}

.footer__country-select option {
    background: var(--bg-inverse);
    color: var(--hinoki-200);
}

/* ==========================================
 * SEASONAL ACCENT
 * Subtle decorative element
 * ========================================== */

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: var(--space-12);
    width: 200px;
    height: 160px;
    background: radial-gradient(
        ellipse at bottom right,
        var(--seasonal-glow) 0%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0.5;
}

/* ==========================================
 * RESPONSIVE
 * ========================================== */

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }

    .footer__brand {
        grid-column: span 2;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-16) 0 var(--space-6);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        margin-bottom: var(--space-8);
        padding-bottom: var(--space-8);
    }

    .footer__brand {
        grid-column: span 1;
        text-align: center;
    }

    .footer__logo {
        justify-content: center;
    }

    .footer__section {
        text-align: center;
    }

    .footer__links {
        align-items: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }

    .footer::after {
        display: none;
    }
}
/**
 * Button Components - Engawa Design
 *
 * Warm, tactile buttons with subtle organic interactions
 */

/* ==========================================
 * BASE BUTTON
 * ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition:
        transform var(--duration-fast) var(--ease-default),
        background var(--duration-fast) var(--ease-default),
        box-shadow var(--duration-fast) var(--ease-default),
        color var(--duration-fast) var(--ease-default);
    white-space: nowrap;
    text-decoration: none;
    border: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
 * PRIMARY BUTTON (CTA)
 * ========================================== */

.btn--primary {
    background: var(--color-action);
    color: var(--shiro);
}

.btn--primary:hover:not(:disabled) {
    background: var(--beni-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

/* ==========================================
 * SECONDARY BUTTON
 * ========================================== */

.btn--secondary {
    background: var(--kuri-800);
    color: var(--shiro);
}

.btn--secondary:hover:not(:disabled) {
    background: var(--kuri-700);
    transform: translateY(-1px);
}

/* ==========================================
 * OUTLINE BUTTON
 * ========================================== */

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn--outline:hover:not(:disabled) {
    border-color: var(--kuri-800);
    background: var(--hinoki-100);
}

/* ==========================================
 * GHOST BUTTON
 * ========================================== */

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn--ghost:hover:not(:disabled) {
    background: var(--hinoki-200);
    color: var(--text-primary);
}

/* ==========================================
 * LINK BUTTON
 * ========================================== */

.btn--link {
    background: none;
    color: var(--color-action);
    padding: 0;
}

.btn--link:hover:not(:disabled) {
    color: var(--beni-400);
    text-decoration: underline;
}

/* ==========================================
 * SIZE VARIANTS
 * ========================================== */

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn--xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn--full {
    width: 100%;
}

/* ==========================================
 * ICON BUTTON
 * ========================================== */

.btn--icon {
    padding: var(--space-3);
    aspect-ratio: 1;
}

.btn--icon svg {
    width: 20px;
    height: 20px;
}

.btn--icon.btn--sm svg {
    width: 16px;
    height: 16px;
}

.btn--icon.btn--lg svg {
    width: 24px;
    height: 24px;
}

.btn__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn--lg .btn__icon {
    width: 20px;
    height: 20px;
}

/* ==========================================
 * BUTTON GROUP
 * ========================================== */

.btn-group {
    display: inline-flex;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.btn-group .btn:not(:last-child) {
    border-right: none;
}

/* ==========================================
 * SPECIAL BUTTONS
 * ========================================== */

/* Apply button */
.btn--apply {
    background: var(--color-action);
    color: var(--shiro);
    font-weight: 600;
}

.btn--apply:hover:not(:disabled) {
    background: var(--beni-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--apply:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

/* Bookmark button */
.btn--bookmark {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn--bookmark:hover:not(:disabled) {
    color: var(--color-action);
    border-color: var(--color-action);
}

.btn--bookmark.is-saved {
    color: var(--color-action);
    background: rgba(199, 62, 58, 0.08);
    border-color: var(--color-action);
}

/* Hide button */
.btn--hide {
    background: transparent;
    color: var(--text-secondary);
}

.btn--hide:hover:not(:disabled) {
    color: var(--text-primary);
    background: var(--hinoki-200);
}

/* Tag/Filter button */
.btn--tag {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
}

.btn--tag:hover:not(:disabled) {
    border-color: var(--kuri-800);
    color: var(--text-primary);
}

.btn--tag.is-active {
    background: var(--kuri-800);
    color: var(--shiro);
    border-color: var(--kuri-800);
}

/* ==========================================
 * LOADING STATE
 * ========================================== */

.btn.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
/**
 * Job Card Component - Engawa Design
 *
 * Shoji Panel style: Warm, translucent, inviting
 * Features the signature lantern glow hover effect
 */

/* ==========================================
 * JOB GRID: Garden Path Layout
 * Ma-inspired spacing, cards as stepping stones
 * ========================================== */

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ==========================================
 * JOB CARD: Shoji Panel
 * ========================================== */

.job-card {
    --card-rotation: 0deg;

    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transform: rotate(var(--card-rotation));
    transition:
        transform var(--duration-normal) var(--ease-gentle),
        box-shadow var(--duration-slow) var(--ease-gentle),
        background var(--duration-slow) var(--ease-gentle);

    /* Subtle layered shadow */
    box-shadow: var(--shadow-md);

    /* Stagger animation on load */
    opacity: 0;
    animation: card-enter var(--duration-slower) var(--ease-gentle) forwards;
}

/* Wabi-sabi rotation variance - subtle, refined */
.job-card:nth-child(7n+1) { --card-rotation: var(--rotation-1); animation-delay: 0ms; }
.job-card:nth-child(7n+2) { --card-rotation: var(--rotation-2); animation-delay: 50ms; }
.job-card:nth-child(7n+3) { --card-rotation: var(--rotation-3); animation-delay: 100ms; }
.job-card:nth-child(7n+4) { --card-rotation: var(--rotation-4); animation-delay: 150ms; }
.job-card:nth-child(7n+5) { --card-rotation: var(--rotation-5); animation-delay: 200ms; }
.job-card:nth-child(7n+6) { --card-rotation: var(--rotation-6); animation-delay: 250ms; }
.job-card:nth-child(7n+7) { --card-rotation: var(--rotation-7); animation-delay: 300ms; }
.job-card:nth-child(n+8) { animation-delay: 350ms; }

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(16px) rotate(var(--card-rotation, 0deg));
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--card-rotation, 0deg));
    }
}

/* Lantern Glow Hover Effect */
.job-card:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow:
        0 0 80px rgba(253, 251, 247, 0.6),
        0 24px 48px rgba(74, 55, 40, 0.15),
        0 0 0 1px var(--beni-300);
    background: linear-gradient(
        180deg,
        var(--shiro) 0%,
        rgba(253, 251, 247, 0.98) 100%
    );
    z-index: var(--z-above);
}

/* Card Main Area (clickable to job detail) */
.job-card__main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-6);
    padding-bottom: var(--space-4);
    text-decoration: none;
    color: inherit;
}

/* Legacy: Card Link (full coverage) - keep for compatibility */
.job-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--space-6);
    text-decoration: none;
    color: inherit;
}

/* ==========================================
 * CARD HEADER
 * ========================================== */

.job-card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

/* Company Logo */
.job-card__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--hinoki-100);
}

.job-card__logo-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--shiro);
    text-transform: uppercase;
}

/* Titles */
.job-card__titles {
    flex: 1;
    min-width: 0;
}

.job-card__title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--leading-tight);
    margin: 0 0 var(--space-1);

    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: color var(--duration-fast) var(--ease-default);
}

.job-card:hover .job-card__title {
    color: var(--color-action);
}

.job-card__company {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================
 * CARD META
 * ========================================== */

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.job-card__location {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.job-card__icon {
    opacity: 0.6;
    flex-shrink: 0;
}

.job-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-sm);
}

.job-card__badge--remote {
    background: rgba(91, 112, 101, 0.12);
    color: var(--take-500);
}

/* ==========================================
 * SALARY
 * ========================================== */

.job-card__salary {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-action);
    margin: 0 0 var(--space-4);
}

/* ==========================================
 * DUAL CTA ACTIONS
 * ========================================== */

.job-card__actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6) var(--space-6);
    border-top: 1px solid var(--border-light);
}

.job-card__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-default);
}

/* View Details button (secondary) */
.job-card__cta--details {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-light);
}

.job-card__cta--details:hover {
    color: var(--color-action);
    border-color: var(--color-action);
    background: rgba(199, 62, 58, 0.04);
}

/* Apply button (primary) */
.job-card__cta--apply {
    color: var(--shiro);
    background: var(--color-action);
    border: 1px solid var(--color-action);
    margin-left: auto;
}

.job-card__cta--apply:hover {
    background: var(--color-action-hover);
    border-color: var(--color-action-hover);
}

.job-card__cta-arrow,
.job-card__cta-icon {
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-default);
}

.job-card__cta--details:hover .job-card__cta-arrow {
    transform: translateX(2px);
}

.job-card__cta--apply:hover .job-card__cta-icon {
    transform: translate(2px, -2px);
}

/* ==========================================
 * STATES
 * ========================================== */

/* Hidden job */
.job-card.is-hidden {
    opacity: 0.5;
    filter: grayscale(30%);
}

/* Featured card */
.job-card--featured {
    border-color: var(--seasonal-accent);
    background: linear-gradient(
        135deg,
        var(--shiro) 0%,
        var(--seasonal-glow) 100%
    );
}

.job-card--featured::before {
    content: 'Featured';
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    padding: 2px var(--space-2);
    background: var(--color-action);
    color: var(--shiro);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    border-radius: var(--radius-sm);
}

/* ==========================================
 * RESPONSIVE
 * ========================================== */

@media (max-width: 1024px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {
    .job-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Disable rotation on mobile for cleaner feel */
    .job-card {
        --card-rotation: 0deg !important;
    }

    .job-card:hover {
        transform: translateY(-4px);
    }

    .job-card__main,
    .job-card__link {
        padding: var(--space-4);
        padding-bottom: var(--space-3);
    }

    .job-card__logo {
        width: 40px;
        height: 40px;
    }

    .job-card__title {
        font-size: var(--text-base);
    }

    .job-card__actions {
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-3) var(--space-4) var(--space-4);
    }

    .job-card__cta {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
        width: 100%;
        justify-content: center;
        min-height: 44px; /* Touch target minimum */
    }

    .job-card__cta--apply {
        margin-left: 0;
    }
}

/* ==========================================
 * SKELETON LOADING
 * ========================================== */

.job-card--skeleton {
    pointer-events: none;
}

.job-card--skeleton .job-card__logo,
.job-card--skeleton .job-card__title,
.job-card--skeleton .job-card__company,
.job-card--skeleton .job-card__location,
.job-card--skeleton .job-card__salary {
    background: linear-gradient(
        90deg,
        var(--hinoki-100) 25%,
        var(--hinoki-200) 50%,
        var(--hinoki-100) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    color: transparent;
}

.job-card--skeleton .job-card__title {
    height: 24px;
    width: 80%;
}

.job-card--skeleton .job-card__company {
    height: 16px;
    width: 60%;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/**
 * Filter Components - Engawa Design
 *
 * Calm, organized filtering with warm interactions
 */

/* ==========================================
 * FILTER CONTAINER
 * ========================================== */

.filters {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

/* ==========================================
 * FILTER HEADER
 * ========================================== */

.filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.filters__title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.filters__clear {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-default);
}

.filters__clear:hover {
    color: var(--color-action);
}

/* ==========================================
 * FILTER GRID
 * ========================================== */

.filters__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

/* ==========================================
 * FILTER GROUP
 * ========================================== */

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-group__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* ==========================================
 * SELECT DROPDOWN
 * ========================================== */

.filter-select {
    position: relative;
}

.filter-select__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-default);
}

.filter-select__trigger:hover {
    border-color: var(--kuri-600);
}

.filter-select__trigger.is-open {
    border-color: var(--kuri-600);
}

.filter-select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-select__icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--duration-fast) var(--ease-default);
}

.filter-select__trigger.is-open .filter-select__icon {
    transform: rotate(180deg);
}

.filter-select__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: var(--space-1);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--duration-fast) var(--ease-default);
}

.filter-select__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-select__option {
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-default);
}

.filter-select__option:hover {
    background-color: var(--hinoki-100);
}

.filter-select__option.is-selected {
    background-color: var(--hinoki-200);
    color: var(--kuri-800);
    font-weight: 500;
}

/* ==========================================
 * LOCATION FILTER
 * ========================================== */

.filter-location {
    display: flex;
    gap: var(--space-2);
}

.filter-location__input {
    flex: 1;
}

.filter-location__radius {
    width: 100px;
}

/* ==========================================
 * SEARCH INPUT FILTER
 * ========================================== */

.filter-search {
    position: relative;
}

.filter-search__input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-left: calc(var(--space-4) + 20px);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: border-color var(--duration-fast) var(--ease-default);
}

.filter-search__input:focus {
    border-color: var(--kuri-600);
    outline: none;
}

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

.filter-search__icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

/* ==========================================
 * CHECKBOX FILTER
 * ========================================== */

.filter-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.filter-checkbox__item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.filter-checkbox__item:hover {
    border-color: var(--kuri-600);
    color: var(--kuri-800);
}

.filter-checkbox__item.is-checked {
    background-color: var(--kuri-800);
    border-color: var(--kuri-800);
    color: var(--shiro);
}

.filter-checkbox__input {
    display: none;
}

/* ==========================================
 * ACTIVE FILTERS DISPLAY
 * ========================================== */

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-4);
    background-color: var(--hinoki-100);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
}

.active-filter {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
}

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

.active-filter__value {
    color: var(--text-primary);
    font-weight: 500;
}

.active-filter__remove {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-default);
}

.active-filter__remove:hover {
    color: var(--color-action);
}

/* ==========================================
 * RESPONSIVE
 * ========================================== */

@media (max-width: 1024px) {
    .filters__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .filters {
        padding: var(--space-4);
    }

    .filters__grid {
        grid-template-columns: 1fr;
    }

    .filter-location {
        flex-direction: column;
    }

    .filter-location__radius {
        width: 100%;
    }
}

/* ==========================================
 * MOBILE FILTER DRAWER
 * ========================================== */

.filters-drawer {
    display: none;
}

@media (max-width: 768px) {
    .filters {
        display: none;
    }

    .filters-drawer {
        display: block;
    }

    .filters-drawer__trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        width: 100%;
        padding: var(--space-4);
        font-family: var(--font-body);
        font-size: var(--text-sm);
        font-weight: 500;
        color: var(--text-primary);
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-4);
    }

    .filters-drawer__panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-secondary);
        z-index: var(--z-modal);
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform var(--duration-slow) var(--ease-default);
    }

    .filters-drawer__panel.is-open {
        transform: translateY(0);
    }

    .filters-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-4) var(--space-6);
        border-bottom: 1px solid var(--border-light);
        position: sticky;
        top: 0;
        background-color: var(--bg-secondary);
    }

    .filters-drawer__title {
        font-family: var(--font-display);
        font-size: var(--text-lg);
        font-weight: 600;
        color: var(--text-primary);
    }

    .filters-drawer__close {
        width: 24px;
        height: 24px;
        color: var(--text-secondary);
    }

    .filters-drawer__content {
        padding: var(--space-6);
    }

    .filters-drawer__content .filters__grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
    }

    .filters-drawer__footer {
        display: flex;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-6);
        border-top: 1px solid var(--border-light);
        position: sticky;
        bottom: 0;
        background-color: var(--bg-secondary);
    }

    .filters-drawer__footer .btn {
        flex: 1;
    }
}

/* ==========================================
 * SIDEBAR FILTERS (Alternate Layout)
 * ========================================== */

.filters--sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.filters--sidebar .filters__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.filters--sidebar .filter-group {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.filters--sidebar .filter-group:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
/**
 * Pagination Component - Engawa Design
 *
 * Contemplative navigation through job listings
 * Traditional numbered pagination for desktop, infinite scroll for mobile
 */

/* ==========================================
 * PAGINATION CONTAINER
 * ========================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-10) 0;
}

/* ==========================================
 * PAGE NUMBER BUTTONS
 * ========================================== */

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-default);
}

.pagination__item:hover {
    border-color: var(--kuri-600);
    color: var(--kuri-800);
    background-color: var(--hinoki-100);
}

.pagination__item--active {
    background-color: var(--kuri-800);
    border-color: var(--kuri-800);
    color: var(--shiro);
}

.pagination__item--active:hover {
    background-color: var(--kuri-700);
    border-color: var(--kuri-700);
    color: var(--shiro);
}

.pagination__item--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================
 * NAVIGATION ARROWS
 * ========================================== */

.pagination__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-default);
}

.pagination__nav:hover:not(.pagination__nav--disabled) {
    border-color: var(--kuri-600);
    color: var(--kuri-800);
    background-color: var(--hinoki-100);
}

.pagination__nav--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__nav-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================
 * ELLIPSIS
 * ========================================== */

.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ==========================================
 * RESULTS INFO
 * ========================================== */

.pagination__info {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-right: var(--space-6);
}

/* ==========================================
 * PAGE SIZE SELECTOR
 * ========================================== */

.pagination__size {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-6);
}

.pagination__size-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.pagination__size-select {
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ==========================================
 * INFINITE SCROLL (Mobile)
 * ========================================== */

.infinite-scroll {
    display: none;
}

.infinite-scroll__trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-10) 0;
}

.infinite-scroll__button {
    padding: var(--space-4) var(--space-8);
}

.infinite-scroll__loading {
    display: none;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.infinite-scroll__loading.is-loading {
    display: flex;
}

.infinite-scroll__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--kuri-800);
    border-radius: 50%;
    animation: pagination-spin 0.8s linear infinite;
}

@keyframes pagination-spin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll__end {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================
 * RESPONSIVE
 * ========================================== */

@media (max-width: 768px) {
    .pagination {
        display: none;
    }

    .infinite-scroll {
        display: block;
    }
}

@media (max-width: 480px) {
    .pagination__info,
    .pagination__size {
        display: none;
    }

    .pagination__item {
        min-width: 36px;
        height: 36px;
    }

    .pagination__nav {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================
 * COMPACT VARIANT
 * ========================================== */

.pagination--compact {
    gap: var(--space-1);
}

.pagination--compact .pagination__item,
.pagination--compact .pagination__nav {
    min-width: 32px;
    height: 32px;
    font-size: var(--text-xs);
}

/* ==========================================
 * RESULTS BAR (Top pagination)
 * ========================================== */

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.results-bar__count {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.results-bar__count strong {
    color: var(--text-primary);
    font-weight: 600;
}

.results-bar__sort {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.results-bar__sort-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.results-bar__sort-select {
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.results-bar__view {
    display: flex;
    gap: var(--space-1);
}

.results-bar__view-btn {
    padding: var(--space-2);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-default);
}

.results-bar__view-btn:hover {
    background-color: var(--hinoki-100);
    color: var(--text-secondary);
}

.results-bar__view-btn.is-active {
    color: var(--kuri-800);
    background-color: var(--hinoki-200);
}

.results-bar__view-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .results-bar {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .results-bar__view {
        display: none;
    }
}
/**
 * Breadcrumbs Component - Engawa Design
 *
 * Gentle navigation path with warm, subtle styling
 */

/* ==========================================
 * BASE BREADCRUMBS
 * ========================================== */

.breadcrumbs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

/* Container inside breadcrumbs gets the flex layout */
.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.breadcrumbs__link {
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-default);
}

.breadcrumbs__link:hover {
    color: var(--color-action);
}

.breadcrumbs__current {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumbs__separator {
    color: var(--border-medium);
    font-size: var(--text-xs);
}

.breadcrumbs__separator-icon {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
}

/* ==========================================
 * HOME ICON
 * ========================================== */

.breadcrumbs__home {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: color var(--duration-fast) var(--ease-default);
}

.breadcrumbs__home:hover {
    color: var(--color-action);
}

.breadcrumbs__home-icon {
    width: 16px;
    height: 16px;
}

/* ==========================================
 * MOBILE TRUNCATION
 * ========================================== */

@media (max-width: 640px) {
    .breadcrumbs {
        font-size: var(--text-xs);
    }

    .breadcrumbs__item--truncate {
        display: none;
    }

    .breadcrumbs__ellipsis {
        display: flex;
        align-items: center;
        color: var(--text-muted);
    }
}

/* ==========================================
 * BACKGROUND VARIANT
 * ========================================== */

.breadcrumbs--bg {
    background-color: var(--bg-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

/* ==========================================
 * STRUCTURED DATA (SEO)
 * ========================================== */

.breadcrumbs__position {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/**
 * Form Components - Engawa Design
 *
 * Warm, tactile form elements with gentle interactions
 */

/* ==========================================
 * FORM LAYOUT
 * ========================================== */

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form__row {
    display: grid;
    gap: var(--space-4);
}

.form__row--2 {
    grid-template-columns: repeat(2, 1fr);
}

.form__row--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
    .form__row--2,
    .form__row--3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 * FORM GROUP
 * ========================================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.form-group__label--required::after {
    content: ' *';
    color: var(--color-action);
}

.form-group__help {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.form-group__error {
    font-size: var(--text-xs);
    color: var(--color-error);
    display: none;
}

.form-group.has-error .form-group__error {
    display: block;
}

/* ==========================================
 * TEXT INPUT
 * ========================================== */

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition:
        border-color var(--duration-fast) var(--ease-default),
        box-shadow var(--duration-fast) var(--ease-default);
}

.form-input:hover {
    border-color: var(--border-medium);
}

.form-input:focus {
    border-color: var(--kuri-600);
    box-shadow: 0 0 0 3px rgba(74, 55, 40, 0.1);
}

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

.form-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--hinoki-100);
}

.form-group.has-error .form-input {
    border-color: var(--color-error);
}

/* ==========================================
 * TEXTAREA
 * ========================================== */

.form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: var(--leading-relaxed);
}

/* ==========================================
 * SELECT
 * ========================================== */

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B7355' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: calc(var(--space-4) * 2 + 16px);
    cursor: pointer;
}

/* ==========================================
 * CHECKBOX
 * ========================================== */

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-checkbox__input {
    appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-default);
    cursor: pointer;
}

.form-checkbox__input:hover {
    border-color: var(--kuri-600);
}

.form-checkbox__input:checked {
    background-color: var(--kuri-800);
    border-color: var(--kuri-800);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.form-checkbox__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

/* ==========================================
 * RADIO
 * ========================================== */

.form-radio {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-radio__input {
    appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-medium);
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-default);
    cursor: pointer;
}

.form-radio__input:hover {
    border-color: var(--kuri-600);
}

.form-radio__input:checked {
    border-color: var(--kuri-800);
    border-width: 5px;
}

.form-radio__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

/* ==========================================
 * OPTIONS GROUP
 * ========================================== */

.form-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-options--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ==========================================
 * FILE INPUT
 * ========================================== */

.form-file {
    position: relative;
}

.form-file__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-file__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-6);
    background-color: var(--bg-primary);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
}

.form-file__label:hover {
    border-color: var(--kuri-600);
    background-color: var(--hinoki-100);
}

.form-file__icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.form-file__text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.form-file__name {
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-top: var(--space-2);
}

/* ==========================================
 * FORM ACTIONS
 * ========================================== */

.form__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-4);
}

.form__actions--right {
    justify-content: flex-end;
}

.form__actions--center {
    justify-content: center;
}

.form__actions--spread {
    justify-content: space-between;
}

/* ==========================================
 * INLINE FORM
 * ========================================== */

.form--inline {
    flex-direction: row;
    align-items: flex-end;
    gap: var(--space-4);
}

.form--inline .form-group {
    flex: 1;
}

.form--inline .form__actions {
    padding-top: 0;
}

@media (max-width: 640px) {
    .form--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .form--inline .form__actions {
        padding-top: var(--space-4);
    }
}

/* ==========================================
 * SEARCH FORM (Hero)
 * Warm, inviting search experience
 * ========================================== */

.search-form {
    display: flex;
    gap: var(--space-2);
    background-color: var(--bg-secondary);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.search-form__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
}

.search-form__icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-form__input {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
}

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

.search-form__input:focus {
    outline: none;
}

.search-form__divider {
    width: 1px;
    background-color: var(--border-light);
    margin: var(--space-2) 0;
}

.search-form__submit {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        padding: var(--space-4);
    }

    .search-form__divider {
        display: none;
    }

    .search-form__submit {
        width: 100%;
    }
}

/* ==========================================
 * CONTACT FORM SPECIFIC
 * ========================================== */

.contact-form {
    background: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.contact-form__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}
/**
 * Home Page Styles - Engawa Design
 *
 * Garden Path layout for job listings
 * Ma-inspired spacing with contemplative rhythm
 */

/* ==========================================
 * MAIN CONTENT AREA
 * ========================================== */

.main {
    background: var(--bg-primary);
    padding: var(--space-12) 0 var(--space-24);
    min-height: 60vh;
}

.main__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
 * SECTION HEADER
 * ========================================== */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-primary);
}

.section-count {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.section-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-action);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: color var(--duration-fast) var(--ease-default);
}

.section-link:hover {
    color: var(--color-action-hover);
}

/* ==========================================
 * CATEGORY PILLS
 * ========================================== */

.category-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-default);
    white-space: nowrap;
}

.category-pill:hover {
    color: var(--text-primary);
    background: var(--hinoki-200);
}

.category-pill--active {
    color: var(--shiro);
    background: var(--kuri-800);
    border-color: var(--kuri-800);
}

.category-pill--active:hover {
    background: var(--kuri-700);
}

.category-pill__count {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: var(--space-1);
}

.category-pill--active .category-pill__count {
    color: rgba(255, 255, 255, 0.7);
}

/* Category More Dropdown */
.category-more {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

.category-more__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    cursor: pointer;
}

.category-more__arrow {
    font-size: 10px;
    transition: transform var(--duration-fast) var(--ease-default);
}

.category-more.is-open .category-more__arrow {
    transform: rotate(180deg);
}

.category-more__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(74, 55, 40, 0.15);
    z-index: 1000;
    padding: 8px 0;
}

.category-more.is-open .category-more__dropdown {
    display: block;
}

.category-more__item {
    display: block;
    padding: 10px 16px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: #4a3728;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.category-more__item:hover {
    background: #f5ede4;
    color: #2d1f14;
}

.category-more__item--active {
    background: #4a3728;
    color: #fff;
}

.category-more__item--active:hover {
    background: #3a2a1c;
}

.category-more__count {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.category-more__item--active .category-more__count {
    color: rgba(255, 255, 255, 0.7);
}

/* Hide categories on mobile - search + jobs directly */
@media (max-width: 768px) {
    .category-pills {
        display: none;
    }
}

/* ==========================================
 * EMPTY STATE
 * ========================================== */

.empty-state {
    text-align: center;
    padding: var(--space-24) var(--space-6);
}

.empty-state__icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin: 0 auto var(--space-6);
    opacity: 0.4;
}

.empty-state__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

.empty-state__text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto var(--space-6);
}

/* ==========================================
 * LOCATION NOTICE - Compact single-line (kanso)
 * ========================================== */

.location-notice {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--hinoki-100);
    border: 1px solid var(--hinoki-300);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.location-notice__icon {
    flex-shrink: 0;
    color: var(--sugi-500);
}

.location-notice__text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--kuri-700);
    margin: 0;
}

@media (max-width: 640px) {
    .location-notice {
        padding: var(--space-2) var(--space-3);
    }

    .location-notice__text {
        font-size: var(--text-xs);
    }
}

/* ==========================================
 * LOCATION BANNER
 * ========================================== */

.location-banner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: rgba(91, 112, 101, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-8);
}

.location-banner__icon {
    width: 24px;
    height: 24px;
    color: var(--take-500);
}

.location-banner__text {
    flex: 1;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.location-banner__text strong {
    font-weight: 600;
}

.location-banner__actions {
    display: flex;
    gap: var(--space-2);
}

/* ==========================================
 * RESPONSIVE
 * ========================================== */

@media (max-width: 768px) {
    .main {
        padding: var(--space-8) 0 var(--space-16);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
        margin-bottom: var(--space-6);
    }

    .section-title {
        font-size: var(--text-xl);
    }

    .location-banner {
        flex-direction: column;
        text-align: center;
    }

    .location-banner__actions {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
 * FEATURED JOBS SECTION
 * ========================================== */

.featured-jobs {
    margin-bottom: var(--space-16);
}

.featured-jobs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1024px) {
    .featured-jobs__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .featured-jobs__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 * SIDEBAR LAYOUT
 * ========================================== */

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-12);
}

.layout-with-sidebar__sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    height: fit-content;
}

.layout-with-sidebar__main {
    min-width: 0;
}

@media (max-width: 1024px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .layout-with-sidebar__sidebar {
        position: static;
    }
}

/* ==========================================
 * BLOG PREVIEW
 * ========================================== */

.blog-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
    margin-top: var(--space-16);
}

.blog-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 768px) {
    .blog-preview {
        padding: var(--space-6);
    }

    .blog-preview__grid {
        grid-template-columns: 1fr;
    }
}
/**
 * Job Detail Page Styles - Engawa Design
 *
 * A contemplative single job view
 * Warm wood tones with lantern-like illumination
 */

/* ==========================================
 * JOB DETAIL CONTAINER
 * ========================================== */

.job-detail {
    padding: var(--space-10) 0 var(--space-24);
    background: var(--bg-primary);
}

.job-detail__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
 * TWO-COLUMN LAYOUT
 * ========================================== */

.job-detail__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-10);
    align-items: start;
}

.job-detail__main {
    min-width: 0;
}

.job-detail__sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

/* ==========================================
 * JOB HEADER
 * ========================================== */

.job-header {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
}

.job-header__top {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.job-header__logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.job-header__logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-header__logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kuri-700) 0%, var(--kuri-500) 100%);
    color: var(--shiro);
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    text-transform: uppercase;
}

.job-header__info {
    flex: 1;
    min-width: 0;
}

.job-header__company {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.job-header__company-link {
    color: inherit;
    transition: color var(--duration-fast) var(--ease-default);
}

.job-header__company-link:hover {
    color: var(--color-action);
}

.job-header__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
}

.job-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.job-header__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.job-header__meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.job-header__salary {
    font-weight: 600;
    color: var(--kuri-700);
}

/* ==========================================
 * JOB TAGS
 * ========================================== */

.job-header__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

.job-tag {
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    background-color: var(--hinoki-100);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.job-tag--remote {
    background-color: rgba(91, 112, 101, 0.15);
    color: var(--take-600);
}

.job-tag--featured {
    background-color: var(--beni-100);
    color: var(--beni-600);
}

/* ==========================================
 * JOB CONTENT
 * ========================================== */

.job-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
}

.job-content__section {
    margin-bottom: var(--space-8);
}

.job-content__section:last-child {
    margin-bottom: 0;
}

.job-content__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-light);
}

.job-content__text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
}

.job-content__text p {
    margin-bottom: var(--space-4);
}

.job-content__text ul,
.job-content__text ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.job-content__text li {
    margin-bottom: var(--space-2);
    list-style: disc;
}

.job-content__text ol li {
    list-style: decimal;
}

.job-content__no-description {
    padding: var(--space-6);
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.9), rgba(245, 237, 224, 0.8));
    border: 1px solid var(--hinoki-300);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* ==========================================
 * SIDEBAR APPLY CARD
 * ========================================== */

.apply-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.apply-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.apply-card__button {
    width: 100%;
    margin-bottom: var(--space-4);
}

.apply-card__actions {
    display: flex;
    gap: var(--space-2);
}

.apply-card__action {
    flex: 1;
}

.apply-card__info {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

/* ==========================================
 * COMPANY CARD
 * ========================================== */

.company-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.company-card__header {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.company-card__logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
}

.company-card__info {
    flex: 1;
    min-width: 0;
}

.company-card__name {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
}

.company-card__jobs {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.company-card__link {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-action);
    text-align: center;
    transition: color var(--duration-fast) var(--ease-default);
}

.company-card__link:hover {
    color: var(--color-action-hover);
}

/* ==========================================
 * RELATED JOBS
 * ========================================== */

.related-jobs {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.related-jobs__title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.related-jobs__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.related-job {
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.related-job:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.related-job__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    line-height: var(--leading-tight);
    transition: color var(--duration-fast) var(--ease-default);
}

.related-job__title:hover {
    color: var(--color-action);
}

.related-job__company {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ==========================================
 * RESPONSIVE
 * ========================================== */

@media (max-width: 1024px) {
    .job-detail__layout {
        grid-template-columns: 1fr;
    }

    .job-detail__sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .job-detail__sidebar > *:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .job-detail {
        padding: var(--space-6) 0 var(--space-16);
    }

    .job-header {
        padding: var(--space-6);
    }

    .job-header__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-header__logo {
        width: 64px;
        height: 64px;
    }

    .job-header__title {
        font-size: var(--text-xl);
    }

    .job-content {
        padding: var(--space-6);
    }

    .job-detail__sidebar {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 * JOB EXPIRED STATE
 * ========================================== */

.job-detail--expired .job-header {
    opacity: 0.7;
}

.job-expired-notice {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background-color: rgba(199, 62, 58, 0.1);
    border: 1px solid rgba(199, 62, 58, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
}

.job-expired-notice__icon {
    width: 24px;
    height: 24px;
    color: var(--color-action);
    flex-shrink: 0;
}

.job-expired-notice__text {
    flex: 1;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

/* ==========================================
 * SHARE SECTION
 * ========================================== */

.job-share {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-6);
    margin-top: var(--space-6);
    border-top: 1px solid var(--border-light);
}

.job-share__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.job-share__buttons {
    display: flex;
    gap: var(--space-2);
}

.job-share__btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hinoki-100);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-default);
}

.job-share__btn:hover {
    background: var(--hinoki-200);
    color: var(--text-primary);
}

.job-share__btn svg {
    width: 18px;
    height: 18px;
}
/**
 * Corporate Page Styles - Engawa Design
 *
 * About, Contact, Privacy, Terms pages
 * Contemplative content layout with warm wood tones
 */

/* ==========================================
 * CORPORATE PAGE LAYOUT
 * ========================================== */

.corporate {
    padding: var(--space-10) 0 var(--space-24);
    background: var(--bg-primary);
}

.corporate__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
 * PAGE HEADER
 * ========================================== */

.page-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.page-header__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.page-header__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* ==========================================
 * CONTENT SECTIONS
 * ========================================== */

.content-section {
    margin-bottom: var(--space-16);
}

.content-section__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.content-section__text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
}

.content-section__text p {
    margin-bottom: var(--space-4);
}

.content-section__text ul,
.content-section__text ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.content-section__text li {
    margin-bottom: var(--space-2);
    list-style: disc;
}

.content-section__text ol li {
    list-style: decimal;
}

.content-section__text a {
    color: var(--color-action);
    transition: color var(--duration-fast) var(--ease-default);
}

.content-section__text a:hover {
    color: var(--color-action-hover);
    text-decoration: underline;
}

/* ==========================================
 * TEAM GRID (About Page)
 * ========================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.team-member {
    text-align: center;
    padding: var(--space-6);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.team-member__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--hinoki-100);
    margin: 0 auto var(--space-4);
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.team-member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member__name {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.team-member__role {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 * VALUES GRID
 * ========================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.value-card {
    padding: var(--space-6);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.value-card__icon {
    width: 40px;
    height: 40px;
    color: var(--kuri-700);
    margin-bottom: var(--space-4);
}

.value-card__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

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

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 * CONTACT PAGE
 * ========================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-info {
    padding: var(--space-8);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.contact-info__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.contact-info__item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__icon {
    width: 24px;
    height: 24px;
    color: var(--kuri-700);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.contact-info__value {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
}

.contact-info__value a {
    color: inherit;
    transition: color var(--duration-fast) var(--ease-default);
}

.contact-info__value a:hover {
    color: var(--color-action);
}

.contact-form {
    padding: var(--space-8);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.contact-form__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
 * LEGAL PAGES (Privacy, Terms)
 * ========================================== */

.legal {
    padding: var(--space-10) 0 var(--space-24);
    background: var(--bg-primary);
}

.legal__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.legal__header {
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-light);
}

.legal__title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.legal__updated {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.legal__toc {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-10);
}

.legal__toc-title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.legal__toc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.legal__toc-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-action);
    transition: color var(--duration-fast) var(--ease-default);
}

.legal__toc-link:hover {
    color: var(--color-action-hover);
    text-decoration: underline;
}

.legal__section {
    margin-bottom: var(--space-10);
}

.legal__section-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-top: var(--space-4);
}

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

.legal__text p {
    margin-bottom: var(--space-4);
}

/* ==========================================
 * PARTNERS PAGE
 * ========================================== */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    aspect-ratio: 2/1;
    transition: all var(--duration-fast) var(--ease-default);
}

.partner-card:hover {
    border-color: var(--border-medium);
    background-color: var(--hinoki-100);
}

.partner-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--duration-fast) var(--ease-default);
}

.partner-card:hover .partner-card__logo {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
 * RESPONSIVE
 * ========================================== */

@media (max-width: 480px) {
    .corporate {
        padding: var(--space-6) 0 var(--space-16);
    }

    .page-header {
        margin-bottom: var(--space-10);
    }

    .page-header__title {
        font-size: var(--text-2xl);
    }

    .page-header__subtitle {
        font-size: var(--text-base);
    }
}
/**
 * Blog Page Styles
 *
 * Blog listing and article pages
 */

/* Blog layout */
.blog {
    padding: var(--space-xl) 0 var(--space-xxxl);
}

.blog__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Blog header */
.blog-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.blog-header__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.blog-header__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Category filter */
.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.blog-category {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background-color: var(--color-card);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.blog-category:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.blog-category--active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog card */
.blog-card {
    background-color: var(--color-card);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.blog-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--color-background);
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-border) 100%);
}

.blog-card__image-placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--color-text-secondary);
    opacity: 0.3;
}

.blog-card__content {
    padding: var(--space-lg);
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.blog-card__category {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.blog-card__date {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.blog-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-sm);
}

.blog-card__title-link {
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__title-link:hover {
    color: var(--color-primary);
}

.blog-card__excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    margin-top: var(--space-md);
}

.blog-card__read-more:hover {
    color: var(--color-action);
}

.blog-card__read-more-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card__read-more-icon {
    transform: translateX(4px);
}

/* Featured blog post */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
    padding: var(--space-xl);
    background-color: var(--color-card);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md);
}

.blog-featured__image {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-background);
}

.blog-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured__badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-action);
    background-color: rgba(219, 77, 109, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    width: fit-content;
}

.blog-featured__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
}

.blog-featured__title-link:hover {
    color: var(--color-primary);
}

.blog-featured__excerpt {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
}

.blog-featured__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured__title {
        font-size: var(--font-size-xl);
    }
}

/* Single article */
.article {
    padding: var(--space-xl) 0 var(--space-xxxl);
}

.article__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.article__header {
    margin-bottom: var(--space-xl);
}

.article__category {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--space-md);
}

.article__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-lg);
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.article__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.article__author-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-background);
}

.article__image {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article__image img {
    width: 100%;
    height: auto;
}

.article__content {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
}

.article__content p {
    margin-bottom: var(--space-lg);
}

.article__content h2 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-xxl);
    margin-bottom: var(--space-md);
}

.article__content h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article__content ul,
.article__content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.article__content li {
    margin-bottom: var(--space-sm);
    list-style: disc;
}

.article__content ol li {
    list-style: decimal;
}

.article__content blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-xl);
    background-color: var(--color-background);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
}

.article__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.article__content a {
    color: var(--color-primary);
}

.article__content a:hover {
    text-decoration: underline;
}

/* Article footer */
.article__footer {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xl);
    border-top: var(--border-width) solid var(--color-border);
}

.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.article__tag {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    background-color: var(--color-background);
    border-radius: var(--radius-sm);
}

.article__share {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.article__share-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.article__share-links {
    display: flex;
    gap: var(--space-sm);
}

.article__share-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    background-color: var(--color-background);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.article__share-link:hover {
    color: var(--color-primary);
    background-color: var(--color-border);
}

/* Related articles */
.related-articles {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xxl);
    border-top: var(--border-width) solid var(--color-border);
}

.related-articles__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 640px) {
    .related-articles__grid {
        grid-template-columns: 1fr;
    }

    .article__title {
        font-size: var(--font-size-2xl);
    }

    .article__content {
        font-size: var(--font-size-base);
    }
}
/**
 * Error Page Styles
 *
 * 404, 500, and other error pages
 */

.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.error-page__container {
    text-align: center;
    max-width: 500px;
}

/* Error code */
.error-page__code {
    font-size: 120px;
    font-weight: var(--font-weight-bold);
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-lg);
    letter-spacing: var(--letter-spacing-tight);
}

/* Japanese-inspired decoration */
.error-page__code::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-full);
}

.error-page__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.error-page__message {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-xl);
}

.error-page__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.error-page__primary-action {
    min-width: 200px;
}

.error-page__secondary-actions {
    display: flex;
    gap: var(--space-lg);
}

.error-page__secondary-link {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.error-page__secondary-link:hover {
    color: var(--color-primary);
}

/* Search suggestion */
.error-page__search {
    margin-top: var(--space-xxl);
    padding-top: var(--space-xl);
    border-top: var(--border-width) solid var(--color-border);
}

.error-page__search-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.error-page__search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.error-page__search-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-right: none;
}

.error-page__search-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.error-page__search-button {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Illustration placeholder */
.error-page__illustration {
    width: 200px;
    height: 150px;
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    opacity: 0.3;
}

.error-page__illustration svg {
    width: 100%;
    height: 100%;
}

/* 404 specific */
.error-page--404 .error-page__code {
    color: var(--color-border);
}

/* 500 specific */
.error-page--500 .error-page__code {
    color: rgba(219, 77, 109, 0.3);
}

/* 503 specific (maintenance) */
.error-page--503 {
    background: linear-gradient(135deg, var(--washi-cream) 0%, var(--kinari-white) 100%);
}

.error-page--503 .error-page__code {
    color: rgba(13, 86, 97, 0.2);
}

/* Responsive */
@media (max-width: 640px) {
    .error-page__code {
        font-size: 80px;
    }

    .error-page__title {
        font-size: var(--font-size-xl);
    }

    .error-page__search-form {
        flex-direction: column;
    }

    .error-page__search-input {
        border-right: var(--border-width) solid var(--color-border);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-sm);
    }

    .error-page__search-button {
        border-radius: var(--radius-md);
        width: 100%;
    }
}

/* Offline state */
.offline-notice {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-text);
    color: white;
    text-align: center;
    font-size: var(--font-size-sm);
    z-index: var(--z-toast);
    display: none;
}

.offline-notice.is-visible {
    display: block;
}
/**
 * Responsive Utilities - Engawa Design
 *
 * Helper classes for responsive layouts
 * Built on the 4px grid system
 */

/* ==========================================
 * CONTAINER
 * ========================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ==========================================
 * DISPLAY UTILITIES
 * ========================================== */

.hidden { display: none !important; }
.block { display: block !important; }
.inline { display: inline !important; }
.inline-block { display: inline-block !important; }
.visible { display: block !important; }

/* Show/hide at breakpoints */
@media (max-width: 1024px) {
    .hide-lg { display: none !important; }
    .show-lg { display: block !important; }
}

@media (max-width: 768px) {
    .hide-md { display: none !important; }
    .show-md { display: block !important; }
}

@media (max-width: 640px) {
    .hide-sm { display: none !important; }
    .show-sm { display: block !important; }
}

@media (max-width: 480px) {
    .hide-xs { display: none !important; }
    .show-xs { display: block !important; }
}

/* Desktop/Mobile only */
@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
}

/* ==========================================
 * FLEX UTILITIES
 * ========================================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* ==========================================
 * GAP UTILITIES
 * ========================================== */

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* ==========================================
 * GRID UTILITIES
 * ========================================== */

.grid { display: grid; }

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .lg\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .md\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .sm\:grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
}

/* ==========================================
 * SPACING UTILITIES (Margin)
 * ========================================== */

.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-auto { margin-top: auto; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-auto { margin-bottom: auto; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

/* ==========================================
 * SPACING UTILITIES (Padding)
 * ========================================== */

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.p-12 { padding: var(--space-12); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* ==========================================
 * WIDTH UTILITIES
 * ========================================== */

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-screen { width: 100vw; }
.max-w-full { max-width: 100%; }
.max-w-screen { max-width: 100vw; }
.min-w-0 { min-width: 0; }

/* ==========================================
 * HEIGHT UTILITIES
 * ========================================== */

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* ==========================================
 * POSITION UTILITIES
 * ========================================== */

.static { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* ==========================================
 * Z-INDEX UTILITIES
 * ========================================== */

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ==========================================
 * OVERFLOW UTILITIES
 * ========================================== */

.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ==========================================
 * VISIBILITY UTILITIES
 * ========================================== */

.invisible { visibility: hidden; }
.visible { visibility: visible; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ==========================================
 * POINTER UTILITIES
 * ========================================== */

.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* ==========================================
 * SCREEN READER ONLY
 * ========================================== */

.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;
}

/* ==========================================
 * FOCUS RING
 * ========================================== */

.focus\:ring:focus-visible {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ==========================================
 * TRANSITIONS
 * ========================================== */

.transition {
    transition: all var(--duration-fast) var(--ease-default);
}

.transition-none {
    transition: none;
}

.transition-colors {
    transition: color var(--duration-fast) var(--ease-default),
                background-color var(--duration-fast) var(--ease-default),
                border-color var(--duration-fast) var(--ease-default);
}

.transition-transform {
    transition: transform var(--duration-fast) var(--ease-default);
}

.transition-opacity {
    transition: opacity var(--duration-fast) var(--ease-default);
}

/* ==========================================
 * ANIMATIONS
 * ========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn var(--duration-normal) var(--ease-default);
}

.animate-slide-up {
    animation: slideUp var(--duration-normal) var(--ease-default);
}

.animate-scale-in {
    animation: scaleIn var(--duration-normal) var(--ease-default);
}

/* ==========================================
 * PRINT STYLES
 * ========================================== */

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    .header,
    .footer {
        display: none;
    }
}
/**
 * Jobinix Seasonal Theme System
 *
 * Ma-inspired seasonal transformations that honor Japanese aesthetic principles
 * while maintaining Western UX foundations.
 *
 * Four Seasons:
 * - Winter (Dec-Feb): Yukigeshiki - Snow scenery, serene cool blue-grays
 * - Spring (Mar-May): Sakura - Cherry blossom pinks, fresh renewal
 * - Summer (Jun-Aug): Ryokuin - Green shade, vibrant growth
 * - Autumn (Sep-Nov): Koyo - Maple leaves, warm earth tones (default)
 */

/* ==========================================
 * WINTER: Yukigeshiki (Snow Scenery)
 * Mood: Serene snow, peaceful winter morning, cool blue-grays
 * ========================================== */

[data-season="winter"] {
    /* Primary: Frost-Touched Woods
     * Cool grays with subtle blue undertones, like weathered wood in snow */
    --hinoki-50: #F8FAFB;           /* Lightest frost */
    --hinoki-100: #F0F4F6;          /* Snow mist - main bg */
    --hinoki-200: #E2E8ED;          /* Frost wood - cards */
    --hinoki-300: #CCD6DE;          /* Ice-touched wood */

    /* Earth: Winter Woods
     * Silver-gray tones of dormant trees */
    --sugi-400: #8B98A5;            /* Silver cedar */
    --sugi-500: #6B7B8A;            /* Slate cedar - secondary text */
    --sugi-600: #536270;            /* Storm cedar */

    --kuri-700: #3D4A57;            /* Slate chestnut */
    --kuri-800: #2C3742;            /* Deep slate - primary text */
    --kuri-900: #1E262E;            /* Winter night */

    /* Accent: Winter Garden
     * Muted teals and slate blues, hints of winter berries */
    --beni-300: #B8C4D0;            /* Frost berry */
    --beni-400: #8FA3B8;            /* Winter berry hover */
    --beni-500: #5A7A96;            /* Deep slate blue - CTAs */
    --beni-600: #476178;            /* Darker slate */

    --take-400: #9FB3B3;            /* Frost bamboo */
    --take-500: #5D7A7A;            /* Winter pine - badges */
    --take-600: #4A6363;            /* Deep pine */

    --asagi-400: #7A9BAD;           /* Winter sky - links */
    --asagi-500: #5A8090;           /* Deeper sky */

    /* Neutrals */
    --shiro: #FAFCFD;               /* Snow white */
    --nezumi-400: #A8B4BD;          /* Frost gray */
    --nezumi-500: #8A96A0;          /* Slate gray */
    --nezumi-600: #6B7680;          /* Storm gray */

    /* Semantic Overrides */
    --bg-primary: var(--hinoki-100);
    --bg-secondary: var(--shiro);
    --bg-tertiary: var(--hinoki-200);
    --bg-inverse: var(--kuri-800);
    --bg-card: var(--shiro);

    --text-primary: var(--kuri-800);
    --text-secondary: var(--sugi-500);
    --text-muted: var(--nezumi-500);
    --text-inverse: var(--hinoki-100);

    --color-action: var(--beni-500);
    --color-action-hover: var(--beni-400);
    --color-link: var(--asagi-400);
    --color-success: var(--take-500);

    --border-light: var(--hinoki-200);
    --border-medium: var(--hinoki-300);

    /* Legacy compatibility */
    --color-primary: var(--kuri-800);
    --color-primary-dark: var(--kuri-900);
    --color-background: var(--bg-primary);
    --color-card: var(--bg-card);
    --color-text: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-border: var(--border-light);

    /* Seasonal accent (already defined in variables.css, refined here) */
    --seasonal-accent: #B8C4D0;
    --seasonal-glow: rgba(184, 196, 208, 0.15);

    /* Winter-specific shadows: cooler, crisper */
    --shadow-color: 44, 55, 66;
}

/* ==========================================
 * SPRING: Sakura (Cherry Blossom)
 * Mood: Renewal, gentle warmth, fresh beginnings
 * ========================================== */

[data-season="spring"] {
    /* Primary: Dawn-Kissed Woods
     * Soft cream with subtle pink undertones */
    --hinoki-50: #FDFBF9;           /* Petal white */
    --hinoki-100: #F9F4F0;          /* Blossom mist - main bg */
    --hinoki-200: #F0E6E0;          /* Petal wood - cards */
    --hinoki-300: #E0D0C8;          /* Cherry wood */

    /* Earth: Spring Woods
     * Warm browns touched by morning light */
    --sugi-400: #A08878;            /* Light spring cedar */
    --sugi-500: #8A7060;            /* Spring cedar - secondary text */
    --sugi-600: #6A5548;            /* Warm cedar */

    --kuri-700: #584538;            /* Spring chestnut */
    --kuri-800: #483828;            /* Warm earth - primary text */
    --kuri-900: #382820;            /* Deep earth */

    /* Accent: Spring Garden
     * Sakura pinks and fresh leaf greens */
    --beni-300: #F0C8C8;            /* Pale sakura */
    --beni-400: #E8A8A8;            /* Soft sakura hover */
    --beni-500: #D08080;            /* Sakura - CTAs */
    --beni-600: #B06868;            /* Deep sakura */

    --take-400: #A8C8A8;            /* New leaf */
    --take-500: #70A070;            /* Spring green - badges */
    --take-600: #588858;            /* Deep green */

    --asagi-400: #88A8B8;           /* Spring sky - links */
    --asagi-500: #6890A0;           /* Deeper sky */

    /* Neutrals */
    --shiro: #FDFAF8;               /* Warm white */
    --nezumi-400: #B0A8A0;          /* Warm gray */
    --nezumi-500: #908880;          /* Earth gray */
    --nezumi-600: #706860;          /* Deep gray */

    /* Semantic Overrides */
    --bg-primary: var(--hinoki-100);
    --bg-secondary: var(--shiro);
    --bg-tertiary: var(--hinoki-200);
    --bg-inverse: var(--kuri-800);
    --bg-card: var(--shiro);

    --text-primary: var(--kuri-800);
    --text-secondary: var(--sugi-500);
    --text-muted: var(--nezumi-500);
    --text-inverse: var(--hinoki-100);

    --color-action: var(--beni-500);
    --color-action-hover: var(--beni-400);
    --color-link: var(--asagi-400);
    --color-success: var(--take-500);

    --border-light: var(--hinoki-200);
    --border-medium: var(--hinoki-300);

    /* Legacy compatibility */
    --color-primary: var(--kuri-800);
    --color-primary-dark: var(--kuri-900);
    --color-background: var(--bg-primary);
    --color-card: var(--bg-card);
    --color-text: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-border: var(--border-light);

    /* Seasonal accent */
    --seasonal-accent: #E8B4BC;
    --seasonal-glow: rgba(232, 180, 188, 0.12);

    /* Spring shadows: soft, warm */
    --shadow-color: 72, 56, 40;
}

/* ==========================================
 * SUMMER: Ryokuin (Green Shade)
 * Mood: Vibrant growth, warm light, lush gardens
 * ========================================== */

[data-season="summer"] {
    /* Primary: Sun-Drenched Woods
     * Warm whites with golden undertones */
    --hinoki-50: #FDFCF8;           /* Sunlit white */
    --hinoki-100: #F8F4E8;          /* Golden mist - main bg */
    --hinoki-200: #F0E8D0;          /* Summer wood - cards */
    --hinoki-300: #E0D4B8;          /* Honey wood */

    /* Earth: Summer Woods
     * Golden-touched browns */
    --sugi-400: #A89060;            /* Golden cedar */
    --sugi-500: #887050;            /* Summer cedar - secondary text */
    --sugi-600: #685840;            /* Deep cedar */

    --kuri-700: #584830;            /* Summer chestnut */
    --kuri-800: #483820;            /* Rich earth - primary text */
    --kuri-900: #382810;            /* Deep earth */

    /* Accent: Summer Garden
     * Deep greens, ocean blues, golden warmth */
    --beni-300: #E8C8A0;            /* Warm gold */
    --beni-400: #D8B080;            /* Golden hover */
    --beni-500: #C09050;            /* Amber - CTAs */
    --beni-600: #A07838;            /* Deep amber */

    --take-400: #88B888;            /* Lush leaf */
    --take-500: #4A8A4A;            /* Summer green - badges */
    --take-600: #387038;            /* Deep forest */

    --asagi-400: #5090A8;           /* Ocean blue - links */
    --asagi-500: #387890;           /* Deep ocean */

    /* Neutrals */
    --shiro: #FDFBF5;               /* Cream white */
    --nezumi-400: #A8A090;          /* Sandy gray */
    --nezumi-500: #888070;          /* Earth gray */
    --nezumi-600: #686058;          /* Deep gray */

    /* Semantic Overrides */
    --bg-primary: var(--hinoki-100);
    --bg-secondary: var(--shiro);
    --bg-tertiary: var(--hinoki-200);
    --bg-inverse: var(--kuri-800);
    --bg-card: var(--shiro);

    --text-primary: var(--kuri-800);
    --text-secondary: var(--sugi-500);
    --text-muted: var(--nezumi-500);
    --text-inverse: var(--hinoki-100);

    --color-action: var(--beni-500);
    --color-action-hover: var(--beni-400);
    --color-link: var(--asagi-400);
    --color-success: var(--take-500);

    --border-light: var(--hinoki-200);
    --border-medium: var(--hinoki-300);

    /* Legacy compatibility */
    --color-primary: var(--kuri-800);
    --color-primary-dark: var(--kuri-900);
    --color-background: var(--bg-primary);
    --color-card: var(--bg-card);
    --color-text: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-border: var(--border-light);

    /* Seasonal accent */
    --seasonal-accent: #7B9B6B;
    --seasonal-glow: rgba(123, 155, 107, 0.12);

    /* Summer shadows: warm golden */
    --shadow-color: 72, 56, 32;
}

/* ==========================================
 * AUTUMN: Koyo (Maple Leaves)
 * Mood: Contemplation, harvest warmth, rich earth
 * Note: This is the default palette in variables.css
 * These overrides ensure consistency when explicitly set
 * ========================================== */

[data-season="autumn"] {
    /* Autumn uses the default warm wood palette
     * These explicit declarations ensure seasonal switching works */
    --hinoki-50: #FAF8F5;
    --hinoki-100: #F5EDE0;
    --hinoki-200: #E8DCC8;
    --hinoki-300: #D4C4A8;

    --sugi-400: #A89070;
    --sugi-500: #8B7355;
    --sugi-600: #6E5A43;

    --kuri-700: #5A4530;
    --kuri-800: #4A3728;
    --kuri-900: #3A2A1E;

    --beni-300: #E8A5A0;
    --beni-400: #D4847C;
    --beni-500: #C73E3A;
    --beni-600: #A83330;

    --take-400: #9FB3A5;
    --take-500: #5B7065;
    --take-600: #4A5B52;

    --asagi-400: #6B8E9B;
    --asagi-500: #4A7080;

    --shiro: #FDFBF7;
    --nezumi-400: #A8A8A8;
    --nezumi-500: #8E8E8E;
    --nezumi-600: #6E6E6E;

    /* Seasonal accent */
    --seasonal-accent: #C75B3A;
    --seasonal-glow: rgba(199, 91, 58, 0.12);

    /* Autumn shadows: warm organic */
    --shadow-color: 74, 55, 40;
}

/* ==========================================
 * SEASONAL DECORATIONS
 * Subtle, shibui-inspired background elements
 * ========================================== */

/* Decoration container - positioned at edges (Ma principle) */
.seasonal-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    transition: opacity var(--duration-slow) var(--ease-gentle);
}

/* Decoration positions */
.seasonal-decoration--header-left {
    top: 0;
    left: 0;
    width: 120px;
    height: 100%;
}

.seasonal-decoration--header-right {
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
}

.seasonal-decoration--footer-left {
    bottom: 0;
    left: 0;
    width: 200px;
    height: 160px;
}

.seasonal-decoration--footer-right {
    bottom: 0;
    right: 0;
    width: 200px;
    height: 160px;
}

/* ==========================================
 * WINTER DECORATIONS
 * ========================================== */

[data-season="winter"] .seasonal-decoration--winter {
    display: block;
}

.seasonal-decoration--winter {
    display: none;
}

/* Winter snowflake pattern - header corners */
[data-season="winter"] .seasonal-decoration--header-left {
    background-image: url('/assets/images/seasons/winter/snowflake.svg');
    background-repeat: no-repeat;
    background-position: -20px 50%;
    background-size: 80px 80px;
    opacity: 0.25;
}

[data-season="winter"] .seasonal-decoration--header-right {
    background-image: url('/assets/images/seasons/winter/snowflake.svg');
    background-repeat: no-repeat;
    background-position: calc(100% + 20px) 50%;
    background-size: 80px 80px;
    opacity: 0.25;
}

/* Winter branch pattern - footer */
[data-season="winter"] .seasonal-decoration--footer-left {
    background-image: url('/assets/images/seasons/winter/branch.svg');
    background-repeat: no-repeat;
    background-position: -30px bottom;
    background-size: contain;
    opacity: 0.2;
}

[data-season="winter"] .seasonal-decoration--footer-right {
    background-image: url('/assets/images/seasons/winter/branch.svg');
    background-repeat: no-repeat;
    background-position: calc(100% + 30px) bottom;
    background-size: contain;
    opacity: 0.2;
    transform: scaleX(-1);
}

/* ==========================================
 * SPRING DECORATIONS
 * ========================================== */

[data-season="spring"] .seasonal-decoration--spring {
    display: block;
}

.seasonal-decoration--spring {
    display: none;
}

/* Spring sakura petals - subtle floating hint */
[data-season="spring"] .seasonal-decoration--header-right {
    background-image: url('/assets/images/seasons/spring/sakura-petal.svg');
    background-repeat: no-repeat;
    background-position: calc(100% + 10px) 30%;
    background-size: 60px 60px;
    opacity: 0.35;
}

[data-season="spring"] .seasonal-decoration--footer-left {
    background-image: url('/assets/images/seasons/spring/branch-blossom.svg');
    background-repeat: no-repeat;
    background-position: -40px bottom;
    background-size: contain;
    opacity: 0.25;
}

/* ==========================================
 * SUMMER DECORATIONS
 * ========================================== */

[data-season="summer"] .seasonal-decoration--summer {
    display: block;
}

.seasonal-decoration--summer {
    display: none;
}

/* Summer bamboo leaves */
[data-season="summer"] .seasonal-decoration--header-left {
    background-image: url('/assets/images/seasons/summer/bamboo-leaf.svg');
    background-repeat: no-repeat;
    background-position: -25px 50%;
    background-size: 90px 90px;
    opacity: 0.2;
}

[data-season="summer"] .seasonal-decoration--footer-right {
    background-image: url('/assets/images/seasons/summer/wave.svg');
    background-repeat: repeat-x;
    background-position: bottom right;
    background-size: auto 40px;
    opacity: 0.15;
}

/* ==========================================
 * AUTUMN DECORATIONS
 * ========================================== */

[data-season="autumn"] .seasonal-decoration--autumn {
    display: block;
}

.seasonal-decoration--autumn {
    display: none;
}

/* Autumn maple leaves */
[data-season="autumn"] .seasonal-decoration--header-right {
    background-image: url('/assets/images/seasons/autumn/maple-leaf.svg');
    background-repeat: no-repeat;
    background-position: calc(100% + 15px) 40%;
    background-size: 70px 70px;
    opacity: 0.3;
}

[data-season="autumn"] .seasonal-decoration--footer-left {
    background-image: url('/assets/images/seasons/autumn/falling-leaves.svg');
    background-repeat: no-repeat;
    background-position: -20px bottom;
    background-size: contain;
    opacity: 0.2;
}

/* ==========================================
 * HEADER/FOOTER SEASONAL POSITIONING
 * Ensure decorations don't interfere with content
 * ========================================== */

/* Header needs position relative for decoration positioning */
.header {
    position: relative;
    overflow: visible;
}

.header__container {
    position: relative;
    z-index: 2;
}

/* Footer decoration positioning */
.footer {
    position: relative;
    overflow: hidden;
}

.footer__container {
    position: relative;
    z-index: 2;
}

/* ==========================================
 * RESPONSIVE: MOBILE ADJUSTMENTS
 * Decorations scaled down or hidden on mobile
 * ========================================== */

@media (max-width: 768px) {
    .seasonal-decoration {
        opacity: 0.15;
    }

    .seasonal-decoration--header-left,
    .seasonal-decoration--header-right {
        width: 60px;
        background-size: 40px 40px;
    }

    .seasonal-decoration--footer-left,
    .seasonal-decoration--footer-right {
        width: 100px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    /* Hide header decorations on very small screens */
    .seasonal-decoration--header-left,
    .seasonal-decoration--header-right {
        display: none;
    }

    /* Reduce footer decorations */
    .seasonal-decoration--footer-left,
    .seasonal-decoration--footer-right {
        opacity: 0.1;
        width: 80px;
        height: 60px;
    }
}

/* ==========================================
 * ACCESSIBILITY: REDUCED MOTION
 * Respect user preferences
 * ========================================== */

@media (prefers-reduced-motion: reduce) {
    .seasonal-decoration {
        transition: none;
    }
}

/* ==========================================
 * PRINT: HIDE DECORATIONS
 * ========================================== */

@media print {
    .seasonal-decoration {
        display: none !important;
    }
}
/**
 * Browse Pages CSS - Engawa Design
 *
 * Styles for Categories, Locations, and Companies browse pages.
 * Grid-based layouts with card-style links.
 */

/* ==========================================
 * BROWSE SECTION
 * Used for grouped items (e.g., cities by province)
 * ========================================== */

.browse-section {
    margin-bottom: var(--space-xl);
}

.browse-section__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--border-light);
}

/* ==========================================
 * BROWSE GRID
 * Responsive grid for browse cards
 * ========================================== */

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* Companies variant - larger cards */
.browse-grid--companies {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* ==========================================
 * BROWSE CARD
 * Individual clickable card/link
 * ========================================== */

.browse-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.browse-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.browse-card:focus {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
}

.browse-card__name {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-xs);
}

.browse-card__count {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ==========================================
 * COMPANY CARD VARIANT
 * Horizontal layout with logo placeholder
 * ========================================== */

.browse-card--company {
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.browse-card__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--shiro);
}

.browse-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Allow text truncation */
}

.browse-card--company .browse-card__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
 * RESPONSIVE ADJUSTMENTS
 * ========================================== */

@media (max-width: 768px) {
    .browse-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: var(--space-sm);
    }

    .browse-grid--companies {
        grid-template-columns: 1fr;
    }

    .browse-card {
        padding: var(--space-sm);
    }

    .browse-card--company {
        padding: var(--space-md);
    }

    .browse-card__logo {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }

    .browse-section__title {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-card__name {
        font-size: var(--text-sm);
    }

    .browse-card__count {
        font-size: var(--text-xs);
    }
}
