/* ===== HABINOTE プレミアム デザインシステム - 完全リデザイン ===== */

/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1d23;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding-bottom: 100px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== プレミアムカラーシステム ===== */
:root {
    /* ===== ブランドカラー ===== */
    --brand-turquoise: #00d4aa;
    --brand-turquoise-light: #26e4c9;
    --brand-turquoise-dark: #00b894;
    --brand-turquoise-ultra-light: #e8fffe;
    
    /* ===== アクセントカラー ===== */
    --accent-coral: #ff6b6b;
    --accent-coral-light: #ff8e8e;
    --accent-coral-dark: #d63031;
    
    --accent-purple: #6c5ce7;
    --accent-purple-light: #a29bfe;
    --accent-purple-dark: #5f3dc4;
    
    --accent-gold: #fdcb6e;
    --accent-gold-light: #ffeaa7;
    --accent-gold-dark: #e17055;
    
    /* ===== ニュートラルカラー ===== */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* ===== セマンティックカラー ===== */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* ===== グラデーション ===== */
    --gradient-brand: linear-gradient(135deg, #00d4aa 0%, #26e4c9 50%, #00b894 100%);
    --gradient-sunset: linear-gradient(135deg, #ff6b6b 0%, #fdcb6e 100%);
    --gradient-ocean: linear-gradient(135deg, #3b82f6 0%, #00d4aa 100%);
    --gradient-cosmic: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
    
    /* ===== シャドウシステム ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* ===== ブランドシャドウ ===== */
    --shadow-brand: 0 8px 32px rgba(0, 212, 170, 0.25);
    --shadow-coral: 0 8px 32px rgba(255, 107, 107, 0.25);
    --shadow-purple: 0 8px 32px rgba(108, 92, 231, 0.25);
    --shadow-gold: 0 8px 32px rgba(253, 203, 110, 0.25);
    
    /* ===== ボーダーラディウス ===== */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;
    
    /* ===== スペーシング ===== */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* ===== タイポグラフィ ===== */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* ===== トランジション ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-index ===== */
    --z-background: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-dropdown: 20;
    --z-modal: 30;
    --z-navigation: 40;
    --z-header: 50;
}

/* ===== レイアウトユーティリティ ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }

/* ===== ヘッダーセクション ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-black);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.auth-btn {
    position: relative;
    padding: var(--space-2) var(--space-5);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.auth-btn:nth-child(2) {
    background: transparent;
    color: var(--brand-turquoise);
    border-color: var(--brand-turquoise);
}

.auth-btn:nth-child(2):hover {
    background: var(--brand-turquoise);
    color: white;
}

/* ===== メインコンテンツ ===== */
.app-main {
    min-height: calc(100vh - 200px);
    padding: var(--space-8) 0;
    position: relative;
}

/* ===== ヒーローセクション ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(0, 212, 170, 0.05) 0%, 
        rgba(255, 107, 107, 0.05) 50%, 
        rgba(108, 92, 231, 0.05) 100%);
    border-radius: var(--radius-3xl);
    padding: var(--space-20) var(--space-8);
    margin-bottom: var(--space-16);
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, 
        rgba(0, 212, 170, 0.1), 
        rgba(255, 107, 107, 0.1), 
        rgba(108, 92, 231, 0.1), 
        rgba(0, 212, 170, 0.1));
    animation: rotate 20s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--neutral-600);
    margin-bottom: var(--space-10);
    font-weight: var(--font-weight-medium);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    position: relative;
    display: inline-block;
}

.hero-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-slow);
}

.hero-img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ===== セクション共通スタイル ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--neutral-800);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

/* ===== 統計セクション ===== */
.dashboard-section {
    margin-bottom: var(--space-20);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.stats-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
}

.stats-card:nth-child(2)::before {
    background: var(--gradient-cosmic);
}

.stats-card:nth-child(3)::before {
    background: var(--gradient-sunset);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stats-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.today-icon {
    background: var(--gradient-sunset);
    animation: pulse 2s infinite;
}

.month-icon {
    background: var(--gradient-cosmic);
    animation: pulse 2s infinite 0.5s;
}

.total-icon {
    background: var(--gradient-brand);
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stats-title {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.stats-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-black);
    color: var(--neutral-800);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stats-unit {
    font-size: var(--text-lg);
    color: var(--neutral-500);
    font-weight: var(--font-weight-medium);
}

/* ===== お知らせセクション ===== */
.announcements-section {
    margin-bottom: var(--space-20);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-content {
    padding: var(--space-8);
}

.announcement-list {
    list-style: none;
}

.announcement-item {
    position: relative;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    margin-bottom: var(--space-3);
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--brand-turquoise);
    font-size: var(--text-base);
    color: var(--neutral-700);
    transition: all var(--transition-normal);
}

.announcement-item::before {
    content: '📢';
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--text-lg);
}

.announcement-item:hover {
    background: linear-gradient(135deg, var(--brand-turquoise-ultra-light) 0%, var(--neutral-50) 100%);
    transform: translateX(8px);
}

.announcement-item:last-child {
    margin-bottom: 0;
}

/* ===== クイックリンクセクション ===== */
.quick-links-section {
    margin-bottom: var(--space-20);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.quick-link-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    text-decoration: none;
    color: var(--neutral-800);
    text-align: center;
    transition: all var(--transition-normal);
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    transition: left var(--transition-slow);
}

.quick-link-card:hover::before {
    left: 0;
}

.quick-link-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-turquoise);
}

.link-icon {
    font-size: var(--text-4xl);
    transition: transform var(--transition-normal);
}

.quick-link-card:hover .link-icon {
    transform: scale(1.2) rotate(5deg);
}

.link-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-800);
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ===== イベント情報セクション ===== */
.event-info-section {
    margin-bottom: var(--space-20);
}

.event-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(253, 203, 110, 0.1) 100%);
    border: 2px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--radius-3xl);
    padding: var(--space-12);
    text-align: center;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 45deg, 
        rgba(255, 107, 107, 0.1), 
        rgba(253, 203, 110, 0.1), 
        rgba(255, 107, 107, 0.1));
    animation: rotate 15s linear infinite reverse;
}

.event-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--neutral-800);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 2;
}

.event-description {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: var(--space-8);
    line-height: 1.7;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.event-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--gradient-sunset);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--text-lg);
    box-shadow: var(--shadow-coral);
    transition: all var(--transition-normal);
    z-index: 2;
    overflow: hidden;
}

.event-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.event-button:hover::before {
    left: 100%;
}

.event-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
    color: white;
}

/* ===== モーダル ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    transition: transform var(--transition-normal);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-8) var(--space-8) var(--space-4);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--neutral-800);
    margin: 0;
}

.close-button {
    background: var(--neutral-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    color: var(--neutral-500);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button:hover {
    background: var(--neutral-200);
    color: var(--neutral-700);
    transform: scale(1.1);
}

/* ===== フォーム ===== */
.app-form {
    padding: var(--space-8);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-turquoise);
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.1);
    background: white;
}

.form-button {
    width: 100%;
    padding: var(--space-4);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.primary-button {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.error-message {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    padding: var(--space-3);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--error);
}

/* ===== アニメーション ===== */
.animate-fade-in {
    animation: fadeIn 0.8s var(--transition-normal) both;
}

.animate-slide-up {
    animation: slideUp 0.8s var(--transition-normal) both;
}

.animate-bounce-in {
    animation: bounceIn 1s var(--transition-bounce) both;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(40px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-6);
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .hero-section {
        padding: var(--space-16) var(--space-4);
        margin-bottom: var(--space-12);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .stats-card,
    .card,
    .quick-link-card {
        margin-left: var(--space-2);
        margin-right: var(--space-2);
    }
    
    .event-card {
        padding: var(--space-8);
    }
    
    .event-title {
        font-size: var(--text-2xl);
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .header-logo h1 {
        font-size: var(--text-2xl);
    }
    
    .auth-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .hero-section {
        padding: var(--space-12) var(--space-3);
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .quick-link-card {
        padding: var(--space-4);
        min-height: 120px;
    }
    
    .link-icon {
        font-size: var(--text-2xl);
    }
    
    .link-title {
        font-size: var(--text-sm);
    }
    
    .stats-card {
        padding: var(--space-6);
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: var(--text-2xl);
    }
    
    .stats-value {
        font-size: var(--text-3xl);
    }
    
    .event-button {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
}

/* ===== アクセシビリティ ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== ダークモードサポート ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        color: #f8fafc;
    }
    
    .stats-card,
    .card,
    .quick-link-card,
    .modal-content {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(148, 163, 184, 0.2);
    }
    
    .app-header {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: rgba(148, 163, 184, 0.2);
    }
}