/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    position: relative;
    overflow-x: hidden; /* 横スクロールを防ぐが縦スクロールは許可 */
}

html {
    position: relative;
    height: 100%;
}

/* CSS変数 */
:root {
    --primary: #3A7CA5;
    --primary-foreground: #ffffff;
    --secondary: #f8f9fa;
    --secondary-foreground: #030213;
    --accent: #E3F2FD;
    --accent-foreground: #3A7CA5;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --border: rgba(0, 0, 0, 0.1);
    --background: #ffffff;
    --foreground: #333;
    --radius: 0.625rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 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);
}

/* ユーティリティクラス */
.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ボタンスタイル */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

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

.btn-primary:hover:not(:disabled) {
    background-color: #2c5f7a;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e9ecef;
}

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

.btn-outline:hover:not(:disabled) {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline-white:hover:not(:disabled) {
    background-color: white;
    color: var(--primary);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}

/* ログイン画面 */
.login-screen {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(58, 124, 165, 0.05) 0%, rgba(227, 242, 253, 0.1) 100%);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(58, 124, 165, 0.1) 0%, rgba(227, 242, 253, 0.2) 50%, rgba(58, 124, 165, 0.1) 100%);
}

.hero-content {
    text-align: center;
    max-width: 4xl;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), #2c5f7a);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

.logo-icon i {
    font-size: 2rem;
    color: white;
    transform: rotate(12deg);
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent-foreground));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.logo-tagline {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent-foreground));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 2xl;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 3xl;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(58, 124, 165, 0.1);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* 機能紹介セクション */
.features-section {
    padding: 5rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 2xl;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(58, 124, 165, 0.1);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--muted-foreground);
}

/* レビューセクション */
.reviews-section {
    padding: 5rem 0;
    background-color: var(--muted);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 6xl;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    margin-bottom: 1rem;
}

.quote-icon i {
    font-size: 2rem;
    color: rgba(58, 124, 165, 0.2);
}

.review-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background-color: rgba(58, 124, 165, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}

.author-name {
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: #fbbf24;
    font-size: 1rem;
}

/* CTAセクション */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-foreground));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 2xl;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-feature i {
    font-size: 1rem;
}

/* フッター */
.footer {
    padding: 3rem 0;
    background-color: var(--muted);
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 2rem;
    height: 2rem;
}

.footer-logo .logo-icon i {
    font-size: 1.25rem;
}

.footer-logo h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
}

.footer-tagline {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* 認証フォーム */
.auth-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    max-width: 100vw;
    max-height: 100vh;
}

.auth-form:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

html body #auth-form .auth-container {
    width: 28rem !important;
    max-width: 28rem !important;
    position: relative;
    margin: 0 auto;
    flex-shrink: 0;
}

html body #auth-form .auth-card {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    width: 28rem !important;
    max-width: 28rem !important;
    margin: 0 auto;
    flex-shrink: 0;
}

.auth-form:not(.hidden) .auth-card {
    transform: scale(1);
}

/* レスポンシブデザイン */
@media (max-width: 640px) {
    #auth-form {
        padding: 0.5rem;
    }
    
    html body #auth-form .auth-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    html body #auth-form .auth-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 1rem;
    }
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-logo .logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), #2c5f7a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo .logo-icon i {
    font-size: 1rem;
    color: white;
    transform: rotate(12deg);
}

.auth-logo h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.auth-content {
    padding: 0 2rem 2rem;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-field input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.1);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.875rem;
    margin: 0 0.5rem;
}

.auth-link:hover {
    color: #2c5f7a;
}

.auth-terms {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.auth-terms a {
    color: var(--primary);
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* ナビゲーションスタイル - Sampleに忠実に再現 */
html body div#sidebar.nav-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    width: 16rem !important;
    background: white !important;
    border-right: 1px solid #e5e7eb !important;
    z-index: 40 !important;
    transition: all 0.3s ease !important;
    padding: 1.5rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
}

/* PC版で確実に表示されるようにする */
@media (min-width: 769px) {
    html body div#sidebar.nav-sidebar {
        display: flex !important;
    }
    #sidebar.nav-sidebar {
        display: flex !important;
    }
    div#sidebar.nav-sidebar {
        display: flex !important;
    }
    
    /* sidebar-collapsedクラスが適用されていない場合の表示 */
    html body div#sidebar.nav-sidebar:not(.sidebar-collapsed) {
        display: flex !important;
    }
    #sidebar.nav-sidebar:not(.sidebar-collapsed) {
        display: flex !important;
    }
    div#sidebar.nav-sidebar:not(.sidebar-collapsed) {
        display: flex !important;
    }
}

/* より具体的なセレクターで確実に表示 */
#sidebar.nav-sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    width: 16rem !important;
    background: white !important;
    border-right: 1px solid #e5e7eb !important;
    z-index: 40 !important;
    transition: all 0.3s ease !important;
    padding: 1.5rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
}

/* サイドバー非表示クラス */
html body div#sidebar.nav-sidebar.sidebar-hidden {
    display: none !important;
}

/* メニュートグルボタン非表示クラス */
.menu-toggle-btn.sidebar-hidden {
    display: none !important;
}

html body .nav-sidebar-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* ヘッダー部分 */
html body .nav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1.5rem !important;
}

html body .nav-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

html body div#sidebar .nav-logo .nav-logo-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    background: #3A7CA5 !important;
    border-radius: 50% !important;
}

html body div#sidebar .nav-logo .nav-logo-icon i {
    color: white !important;
    font-size: 1.25rem !important;
    transform: rotate(12deg) !important;
}

html body div#sidebar .nav-logo .nav-logo-text {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    letter-spacing: 0.025em !important;
}

html body .nav-close-btn {
    background: #f3f4f6 !important;
    border: none !important;
    color: #374151 !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    width: 2rem !important;
    height: 2rem !important;
}

html body .nav-close-btn:hover {
    background-color: #e5e7eb !important;
}

html body .nav-close-btn i {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

/* 区切り線 */
html body .nav-divider {
    height: 1px !important;
    background: #e5e7eb !important;
    margin: 1rem 0 !important;
}

/* メインナビゲーション */
html body .nav-main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

html body .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.125rem !important;
}

html body div#sidebar .nav-menu .nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    width: 100% !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

html body div#sidebar .nav-menu .nav-item:hover {
    background-color: #f9fafb !important;
}

html body div#sidebar .nav-menu .nav-item-active {
    color: #3A7CA5 !important;
    background-color: #e0f2fe !important;
}

html body div#sidebar .nav-menu .nav-item i {
    font-size: 1.125rem !important;
    width: 1.25rem !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* 募集作成ボタン */
html body .nav-create {
    margin: 0 !important;
}

html body div#sidebar .nav-create .nav-create-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.875rem !important;
    background-color: #3A7CA5 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

html body div#sidebar .nav-create .nav-create-btn:hover {
    background-color: #2c5f7a !important;
}

html body .nav-create-btn i {
    font-size: 1rem !important;
}

/* 設定ボタン */
html body .nav-bottom {
    margin-top: auto !important;
}

html body .nav-bottom .nav-item {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    width: 100% !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

html body .nav-bottom .nav-item:hover {
    background-color: #f9fafb !important;
}

html body .nav-bottom .nav-item-active {
    color: #3A7CA5 !important;
    background-color: #e0f2fe !important;
}

html body .nav-bottom .nav-item i {
    font-size: 1.125rem !important;
    width: 1.25rem !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* メニュートグルボタン */
.menu-toggle-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    display: none; /* PC版では非表示 */
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.menu-toggle-btn:hover {
    background-color: #f9fafb;
}

.menu-toggle-btn i {
    font-size: 1.125rem;
}

/* PC版とモバイル版の表示制御 */
@media (min-width: 769px) {
    /* PC版: サイドバーを表示、モバイルタブを非表示 */
    html body div#sidebar.nav-sidebar {
        display: flex !important;
    }
    #sidebar.nav-sidebar {
        display: flex !important;
    }
    html body .mobile-tab-nav {
        display: none !important;
    }
    html body .mobile-fab {
        display: none !important;
    }
    html body .menu-toggle-btn {
        display: none !important;
    }

    /* PC版ではsidebar-hiddenクラスを無効化 */
    html body div#sidebar.nav-sidebar.sidebar-hidden {
        display: flex !important;
    }
    #sidebar.nav-sidebar.sidebar-hidden {
        display: flex !important;
    }
    
    /* PC版用の折りたたみクラス */
    html body div#sidebar.nav-sidebar.sidebar-collapsed {
        display: none !important;
    }
    #sidebar.nav-sidebar.sidebar-collapsed {
        display: none !important;
    }
    
    /* サイドバーが折りたたまれた時はpadding-leftを0に */
    html body div#sidebar.nav-sidebar.sidebar-collapsed ~ .main-content,
    html body div#sidebar.nav-sidebar.sidebar-collapsed ~ * .main-content,
    html body div#sidebar.nav-sidebar.sidebar-collapsed ~ * #main-content,
    body.sidebar-collapsed .main-content,
    body.sidebar-collapsed #main-content,
    body.sidebar-collapsed .main-app {
        padding-left: 0 !important;
    }
    
    /* より強力なセレクターで確実に非表示 */
    div#sidebar.nav-sidebar.sidebar-collapsed {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* モバイル版: サイドバーを非表示 */
    html body div#sidebar.nav-sidebar {
        display: none !important;
    }
    #sidebar.nav-sidebar {
        display: none !important;
    }
    html body .menu-toggle-btn {
        display: flex !important;
    }
    
    /* モバイル版ではメインコンテンツのパディングを調整 */
    .main-content, #main-content {
        padding-left: 0 !important;
        margin-left: 0 !important;
        padding-bottom: 5rem !important; /* モバイルタブメニュー分の余白 */
    }
}

/* モバイル用タブナビゲーション */
html body .mobile-tab-nav,
div.mobile-tab-nav,
.mobile-tab-nav,
html body #mobile-tab-nav,
#mobile-tab-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 60px !important;
    background: white !important;
    border-top: 1px solid #e5e7eb !important;
    z-index: 999999 !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
    justify-content: space-around !important;
    align-items: center !important;
    transform: translateZ(0) !important; /* GPU加速を有効化 */
}

/* デスクトップ版では非表示 - より強力なセレクター */
@media screen and (min-width: 769px) {
    html body .mobile-tab-nav,
    div.mobile-tab-nav,
    .mobile-tab-nav,
    html body #mobile-tab-nav,
    #mobile-tab-nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* モバイル版でのみ表示 */
@media screen and (max-width: 768px) {
    html body .mobile-tab-nav,
    div.mobile-tab-nav,
    .mobile-tab-nav,
    html body #mobile-tab-nav,
    #mobile-tab-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.mobile-tab-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #6b7280 !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    min-width: 60px !important;
    flex: 1 !important;
}

.mobile-tab-item:hover {
    color: #374151 !important;
    background-color: #f9fafb !important;
}

.mobile-tab-active {
    color: #3A7CA5 !important;
    background-color: #e0f2fe !important;
}

.mobile-tab-item i {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-tab-item span {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

/* モバイル用FABボタン */
html body .mobile-fab,
button.mobile-fab,
.mobile-fab,
#mobile-fab {
    position: fixed !important;
    bottom: 5rem !important;
    right: 1rem !important;
    z-index: 999999 !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 50% !important;
    background: #3A7CA5 !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(58, 124, 165, 0.3) !important;
    transition: all 0.2s ease !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateZ(0) !important; /* GPU加速を有効化 */
}

/* デスクトップ版では非表示 */
@media screen and (min-width: 769px) {
    html body .mobile-fab,
    button.mobile-fab,
    .mobile-fab {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* モバイル版でのみ表示 */
@media screen and (max-width: 768px) {
    html body .mobile-fab,
    button.mobile-fab,
    .mobile-fab {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.mobile-fab:hover {
    background: #2c5f85 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(58, 124, 165, 0.4) !important;
}

.mobile-fab-icon {
    font-size: 1.5rem !important;
}

/* ========================================
   Christmas Season Styles (Dec 1 - Dec 25)
   ======================================== */

/* Snowfall Animation Container */
.christmas-snowfall {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Individual Snowflake */
.snowflake {
    position: absolute;
    top: -20px;
    color: white;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    animation: snowfall linear infinite;
    opacity: 0.8;
    user-select: none;
    pointer-events: none;
}

/* Snowfall Animation */
@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* Different snowflake sizes and speeds */
.snowflake:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; font-size: 0.8rem; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2rem; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 10s; animation-delay: 2s; font-size: 0.9rem; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 14s; animation-delay: 0.5s; font-size: 1rem; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 9s; animation-delay: 3s; font-size: 1.1rem; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 11s; animation-delay: 1.5s; font-size: 0.7rem; }
.snowflake:nth-child(7) { left: 35%; animation-duration: 13s; animation-delay: 2.5s; font-size: 1.3rem; }
.snowflake:nth-child(8) { left: 40%; animation-duration: 8s; animation-delay: 4s; font-size: 0.85rem; }
.snowflake:nth-child(9) { left: 45%; animation-duration: 15s; animation-delay: 0s; font-size: 1rem; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 10s; animation-delay: 3.5s; font-size: 1.15rem; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 12s; animation-delay: 1s; font-size: 0.75rem; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 9s; animation-delay: 2s; font-size: 1.2rem; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 14s; animation-delay: 4.5s; font-size: 0.9rem; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 11s; animation-delay: 0.5s; font-size: 1.05rem; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 13s; animation-delay: 3s; font-size: 0.8rem; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 8s; animation-delay: 1.5s; font-size: 1.25rem; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 10s; animation-delay: 2.5s; font-size: 0.95rem; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 12s; animation-delay: 4s; font-size: 1.1rem; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 9s; animation-delay: 0s; font-size: 0.85rem; }
.snowflake:nth-child(20) { left: 2%; animation-duration: 14s; animation-delay: 3.5s; font-size: 1rem; }

/* Christmas Header Decoration */
.christmas-header-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #c41e3a 0px,
        #c41e3a 20px,
        #228b22 20px,
        #228b22 40px,
        #ffd700 40px,
        #ffd700 60px
    );
    z-index: 10000;
    pointer-events: none;
}

/* Christmas Corner Decorations */
.christmas-corner {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    font-size: 2.5rem;
    opacity: 0.9;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.christmas-corner-top-left {
    top: 10px;
    left: 10px;
}

.christmas-corner-top-right {
    top: 10px;
    right: 10px;
}

.christmas-corner-bottom-left {
    bottom: 80px;
    left: 10px;
}

.christmas-corner-bottom-right {
    bottom: 80px;
    right: 10px;
}

/* Christmas Lights String */
.christmas-lights {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 20px;
}

.christmas-light {
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: twinkle 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

.christmas-light:nth-child(5n+1) { color: #ff0000; background: #ff0000; animation-delay: 0s; }
.christmas-light:nth-child(5n+2) { color: #00ff00; background: #00ff00; animation-delay: 0.3s; }
.christmas-light:nth-child(5n+3) { color: #ffd700; background: #ffd700; animation-delay: 0.6s; }
.christmas-light:nth-child(5n+4) { color: #0080ff; background: #0080ff; animation-delay: 0.9s; }
.christmas-light:nth-child(5n+5) { color: #ff69b4; background: #ff69b4; animation-delay: 1.2s; }

@keyframes twinkle {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Christmas Season Body Adjustments */
body.christmas-season {
    padding-top: 34px;
}

/* Mobile adjustments for Christmas decorations */
@media (max-width: 768px) {
    .christmas-corner {
        font-size: 1.8rem;
    }

    .christmas-corner-bottom-left,
    .christmas-corner-bottom-right {
        bottom: 100px;
    }

    .christmas-light {
        width: 8px;
        height: 12px;
    }

    .christmas-lights {
        height: 20px;
    }
}

