
        /* ====== 🔍 検索オプションセクション（シンプル版） ====== */
        .search-options-section {
            background: var(--card-background);
            padding: 1.5rem 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        }

        .search-options-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .search-option {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .search-option label {
            font-weight: 600;
            color: var(--text-color);
            font-size: 0.95rem;
            white-space: nowrap;
        }

        .search-option select {
            padding: 0.6rem 1.2rem;
            border: 2px solid #e1e8ed;
            border-radius: 25px;
            background: white;
            color: var(--text-color);
            font-size: 0.9rem;
            outline: none;
            transition: var(--transition);
            min-width: 120px;
        }

        .search-option select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .search-option select:hover {
            border-color: var(--primary-color);
        }

        /* 🔍 検索結果情報表示 */
        .search-results-info {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
            padding: 1.5rem;
            border-radius: var(--border-radius);
            margin-bottom: 2rem;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .search-results-text {
            font-size: 1.1rem;
            color: var(--text-color);
            font-weight: 500;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .search-term {
            color: var(--primary-color);
            font-weight: 700;
            background: rgba(102, 126, 234, 0.1);
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
        }

        .search-count {
            color: var(--primary-color);
            font-weight: 700;
        }

        /* 🔍 シノニム展開表示 */
        .expanded-terms {
            background: rgba(102, 126, 234, 0.08);
            padding: 1rem 1.5rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 4px solid var(--primary-color);
        }

        .expanded-terms-title {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .expanded-terms-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .expanded-term {
            background: var(--primary-color);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* ====== タグセクション ====== */
        .tags-section {
            background: var(--card-background);
            padding: 1.5rem 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .tags-container-wrapper {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .tags-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .tag {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
            color: var(--primary-color);
            padding: 0.5rem 1rem;
            border-radius: 25px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .tag:hover {
            background: var(--gradient);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        /* ====== メインコンテンツ ====== */
        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 2rem;
        }

        .main-content {
            min-width: 0;
        }

        .sidebar {
            background: var(--card-background);
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            height: fit-content;
            position: sticky;
            top: 30px;
        }

        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .page-title {
            font-size: 2rem;
            font-weight: 800;
            background: var(--gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .content-filters {
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-wrap: wrap;
        }

        .filter-button {
            background: var(--card-background);
            border: 2px solid #e0e0e0;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            color: var(--text-color);
            text-decoration: none;
        }

        .filter-button.active,
        .filter-button:hover {
            background: var(--gradient);
            color: white;
            border-color: transparent;
            transform: translateY(-2px);
        }

        /* ====== 動画グリッド ====== */
        .videos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
            contain: layout style paint;
        }

        .video-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .video-thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            position: relative;
            overflow: hidden;
            background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
            contain: layout style paint;
        }

        .video-duration {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .video-rank {
            position: absolute;
            top: 8px;
            left: 8px;
            padding: 0.3rem 0.6rem;
            border-radius: 6px;
            font-weight: bold;
            font-size: 1rem;
        }

        .video-rank:first-letter {
            font-size: 120% !important;
        }
        
        .rank-1 { 
            background: linear-gradient(90deg, rgba(236, 196, 102, 0.87), rgb(133, 144, 69)); 
            color: black;
            text-shadow: 0.5px -0.5px 1px rgba(255, 255, 255, 0.3); 
        }
        .rank-2 { 
            background: linear-gradient(90deg, rgba(195, 197, 198, 0.86), rgb(160, 161, 166)); 
            color: black;
            text-shadow: 0.5px -0.5px 1px rgba(255, 255, 255, 0.3); 
        }
        .rank-3 { 
            background: linear-gradient(90deg, rgba(174, 110, 13, 0.85), rgb(160, 93, 11)); 
            color: white; 
            text-shadow: 0.5px -0.5px 1px rgba(0,0,0,0.3);
        }

        .video-info {
            padding: 1.5rem;
        }

        .video-title {
            font-size: 1.1rem;
            font-weight: 700;
            line-height: 1.4;
            margin-bottom: 0.75rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            color: var(--text-color);
        }

        .video-title:hover {
            color: var(--primary-color);
        }

        .video-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: var(--text-light);
        }

        .video-stats {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.8rem;
        }

        /* ====== サイドバー ====== */
        .sidebar-section {
            margin-bottom: 1rem;
        }

        .sidebar-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .sidebar-video {
            display: flex;
            gap: 0.6rem;
            margin-bottom: 1rem;
            padding: 0.75rem 0.45rem 0.75rem 0.25rem;
            border-radius: 8px;
            transition: var(--transition);
            cursor: pointer;
        }

        .sidebar-video:hover {
            background: rgba(102, 126, 234, 0.05);
        }

        .sidebar-thumbnail {
            width: 150px !important;
            height: 82.26px !important;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .sidebar-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sidebar-video-info {
            flex: 1;
            min-width: 0;
        }

        .sidebar-video-title {
            font-size: 0.9rem;
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 0.25rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .sidebar-video-meta {
            font-size: 0.8rem;
            color: var(--text-light);
        }

        /* ====== ページネーション ====== */
        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin: 3rem 0;
        }

        .pagination a,
        .pagination span {
            padding: 0.75rem 1rem;
            text-decoration: none;
            color: var(--text-color);
            border-radius: 8px;
            transition: var(--transition);
            font-weight: 500;
            border: 1px solid #e1e8ed;
            background: var(--card-background);
        }

        .pagination a:hover {
            background: var(--gradient);
            color: white;
            border-color: transparent;
        }

        .pagination .current {
            background: var(--gradient);
            color: white;
            border-color: transparent;
        }

        /* ====== 空状態 ====== */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            color: var(--text-light);
        }

        .empty-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            opacity: 0.5;
        }

        .empty-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .empty-description {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        /* ====== フッター ====== */
        .footer {
            background: var(--card-background);
            border-top: 1px solid rgba(102, 126, 234, 0.1);
            margin-top: 4rem;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 3rem 2rem 2rem;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .footer-link {
            color: var(--text-light);
            text-decoration: none;
            transition: var(--transition);
            padding: 0.25rem 0;
        }

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

        .footer-bottom {
            border-top: 1px solid rgba(102, 126, 234, 0.1);
            text-align: center;
            padding: 2rem;
            color: var(--text-light);
        }

        .footer-note {
            margin-top: 0.5rem;
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* ====== モバイル対応（修正版） ====== */
        @media (max-width: 768px) {
            body {
                padding-top: calc(var(--mobile-header-height) + var(--safe-area-inset-top) + 40px);
            }
            
            .header {
                height: calc(var(--mobile-header-height) + var(--safe-area-inset-top));
                padding-top: var(--safe-area-inset-top);
            }
            
            .header-container {
                height: var(--mobile-header-height);
                padding: 0 1rem;
                padding-left: calc(1rem + var(--safe-area-inset-left));
                padding-right: calc(1rem + var(--safe-area-inset-right));
            }
            
            .logo {
                font-size: 1.6rem !important;
            }
            
            .header-center {
                display: none !important;
            }
            
            .nav-menu {
                display: none !important;
            }
            
            .mobile-search-toggle,
            .mobile-menu-toggle {
                display: flex !important;
                align-items: center;
                justify-content: center;
                width: var(--mobile-touch-target);
                height: var(--mobile-touch-target);
                background: rgba(255, 255, 255, 0.15);
                border: none;
                border-radius: 12px;
                color: white;
                font-size: 1.2rem;
                cursor: pointer;
                transition: var(--mobile-animation);
                backdrop-filter: blur(10px);
                -webkit-tap-highlight-color: transparent;
            }
            
            .mode-toggle {
                width: var(--mobile-touch-target) !important;
                height: var(--mobile-touch-target) !important;
                -webkit-tap-highlight-color: transparent;
                margin-left: auto;
                margin-right: auto;
            }
            
            .mode-toggle span {
                position: relative;
                left: -9px !important;
                font-size: 1.2rem;
            }
            
            .search-options-container {
                padding: 0 1rem;
                flex-direction: column;
                gap: 1rem;
            }
            
            .search-option {
                justify-content: space-between;
                width: 100%;
            }
            
            .search-option select {
                flex: 1;
                margin-left: 1rem;
                min-width: auto;
            }
            
            .main-container {
                grid-template-columns: 1fr;
                gap: 2rem;
                padding: 1rem;
            }
            
            .sidebar {
                position: static;
                order: -1;
            }
            
            .page-title {
                font-size: 1.8rem;
            }
            
            .videos-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .tags-container-wrapper {
                padding: 0 1rem;
            }
            
            .footer-container {
                grid-template-columns: 1fr;
                gap: 1.5rem;
                padding: 2rem 1rem 1rem;
            }
        }
        
        @media (max-width: 640px) {
            .videos-grid {
                grid-template-columns: 1fr;
            }
            
            .content-header {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }
        }
        
        @media (max-width: 440px) {
            :root {
                --mobile-header-height: 56px;
            }
            
            .logo {
                font-size: 1.4rem !important;
            }
        }

        /* ====== アニメーション ====== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 20px, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        @keyframes slideUp {
            from {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
            to {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
        }

        .video-card {
            animation: fadeInUp 0.4s ease-out;
            animation-fill-mode: both;
        }

        .video-card:nth-child(even) {
            animation-delay: 0.05s;
        }

        .video-card:nth-child(3n) {
            animation-delay: 0.1s;
        }

        .video-thumbnail img {
            transform: translateZ(0);
            content-visibility: auto;
            contain-intrinsic-size: 300px 169px;
        }

        .videos-grid {
            contain: layout style paint;
        }

        /* モバイル検索オーバーレイスタイル */
        .mobile-search-container {
            background: rgba(255,255,255,0.95); 
            border-radius: 16px;
            padding: 1.5rem; 
            margin: 0 1rem; 
            width: calc(100% - 2rem);
            max-width: 500px; 
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from { 
                transform: translateY(-30px) scale(0.9); 
                opacity: 0; 
            }
            to { 
                transform: translateY(0) scale(1); 
                opacity: 1; 
            }
        }

        .mobile-search-header {
            display: flex; 
            align-items: center; 
            gap: 1rem; 
            margin-bottom: 1.5rem;
        }

        .mobile-search-input {
            flex: 1; 
            padding: 1rem 1.25rem; 
            border: 2px solid #e1e8ed;
            border-radius: 12px; 
            font-size: 1rem; 
            outline: none;
        }

        .mobile-search-input:focus {
            border-color: #4286c6; 
            box-shadow: 0 0 0 4px rgba(66, 134, 198, 0.1);
        }

        .mobile-search-close {
            background: #ff6b6b; 
            color: white; 
            border: none; 
            border-radius: 12px;
            width: 44px; 
            height: 44px; 
            font-size: 1.3rem; 
            cursor: pointer;
        }

        .mobile-search-suggestions {
            display: grid; 
            grid-template-columns: 1fr 1fr; 
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .search-suggestion {
            padding: 1rem; 
            background: #f8f9ff; 
            border-radius: 12px;
            cursor: pointer; 
            transition: all 0.3s; 
            text-align: center;
            font-weight: 600; 
            color: #333;
        }

        .search-suggestion:hover {
            background: linear-gradient(135deg, #4286c6, #6764ba);
            color: white; 
            transform: translateY(-2px);
        }

        .mobile-search-info {
            text-align: center; 
            color: #666; 
            padding: 0.5rem;
            background: rgba(102, 126, 234, 0.05); 
            border-radius: 8px;
        }
/* ====== ネイティブアプリ風UI改善 ====== */

/* 1. iOS/Android風のタブバー */
.native-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: calc(env(safe-area-inset-bottom) + 0.5rem) 0 env(safe-area-inset-bottom);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: #8e8e93;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 60px;
    position: relative;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.tab-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.tab-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* 2. プルトゥリフレッシュ */
.pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gradient);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 999;
}

.pull-to-refresh.visible {
    transform: translateY(0);
}

.pull-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.pull-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 3. ネイティブ風スクロール */
.native-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overflow-scrolling: touch;
}

.native-scroll::-webkit-scrollbar {
    display: none;
}

/* 4. ハプティックフィードバック風エフェクト */
.haptic-feedback {
    transition: all 0.1s ease;
}

.haptic-feedback:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* 5. iOS風のモーダル */
.native-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.native-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.native-modal.visible .modal-content {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: #c7c7cc;
    border-radius: 2px;
    margin: 12px auto 20px;
}

/* 6. ネイティブ風カード */
.native-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.native-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* 7. iOS風セグメントコントロール */
.segment-control {
    background: #f2f2f7;
    border-radius: 10px;
    padding: 2px;
    display: flex;
    margin: 1rem 0;
    position: relative;
}

.segment-item {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 8px;
    color: #8e8e93;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
}

.segment-item.active {
    color: #000;
}

.segment-indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    height: calc(100% - 4px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 8. スワイプジェスチャー表示 */
.swipe-hint {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #c7c7cc;
    font-size: 1.2rem;
    animation: swipeHint 2s infinite ease-in-out;
}

@keyframes swipeHint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

/* 9. ロングプレス効果 */
.long-press {
    transition: transform 0.15s ease;
}

.long-press.pressing {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 10. ネイティブ風トースト */
.native-toast {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 60px);
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.native-toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* 11. フローティングアクションボタン */
.fab {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 80px);
    right: 1rem;
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(66, 134, 198, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(66, 134, 198, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

/* 12. ダークモード対応 */
.dark-mode .native-tab-bar {
    background: rgba(28, 28, 30, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .native-card {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .segment-control {
    background: #2c2c2e;
}

.dark-mode .segment-indicator {
    background: #3a3a3c;
}

.dark-mode .segment-item.active {
    color: white;
}

/* 13. スプラッシュスクリーン */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'チェックアンドＵ－Ｆｏフォント', sans-serif;
}

.splash-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* モバイル専用調整 */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(env(safe-area-inset-bottom) + 80px);
    }
    
    .main-container {
        padding-bottom: 2rem;
    }
    
    .native-tab-bar {
        display: flex;
    }
    
    .header {
        border-radius: 0 0 20px 20px;
    }
}

@media (min-width: 769px) {
    .native-tab-bar {
        display: none;
    }
    
    .fab {
        display: none;
    }
}

/* デスクトップでは非表示 */
@media (min-width: 1024px) {
    .pull-to-refresh,
    .native-toast,
    .splash-screen {
        display: none;
    }
}
        @media (max-width: 480px) {
            .mobile-search-suggestions { 
                grid-template-columns: 1fr; 
            }
        }/* ====== ネイティブアプリ風UI改善 ====== */

/* 1. iOS/Android風のタブバー */
.native-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: calc(env(safe-area-inset-bottom) + 0.5rem) 0 env(safe-area-inset-bottom);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: #8e8e93;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 60px;
    position: relative;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.tab-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.tab-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* 2. プルトゥリフレッシュ */
.pull-to-refresh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gradient);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 999;
}

.pull-to-refresh.visible {
    transform: translateY(0);
}

.pull-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.pull-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 3. ネイティブ風スクロール */
.native-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overflow-scrolling: touch;
}

.native-scroll::-webkit-scrollbar {
    display: none;
}

/* 4. ハプティックフィードバック風エフェクト */
.haptic-feedback {
    transition: all 0.1s ease;
}

.haptic-feedback:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* 5. iOS風のモーダル */
.native-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.native-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.native-modal.visible .modal-content {
    transform: translateY(0);
}

.modal-handle {
    width: 40px;
    height: 4px;
    background: #c7c7cc;
    border-radius: 2px;
    margin: 12px auto 20px;
}

/* 6. ネイティブ風カード */
.native-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    margin: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.native-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* 7. iOS風セグメントコントロール */
.segment-control {
    background: #f2f2f7;
    border-radius: 10px;
    padding: 2px;
    display: flex;
    margin: 1rem 0;
    position: relative;
}

.segment-item {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 8px;
    color: #8e8e93;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
}

.segment-item.active {
    color: #000;
}

.segment-indicator {
    position: absolute;
    top: 2px;
    left: 2px;
    height: calc(100% - 4px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 8. スワイプジェスチャー表示 */
.swipe-hint {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: #c7c7cc;
    font-size: 1.2rem;
    animation: swipeHint 2s infinite ease-in-out;
}

@keyframes swipeHint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-5px); }
}

/* 9. ロングプレス効果 */
.long-press {
    transition: transform 0.15s ease;
}

.long-press.pressing {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 10. ネイティブ風トースト */
.native-toast {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 60px);
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 3000;
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.native-toast.visible {
    transform: translateX(-50%) translateY(0);
}

/* 11. フローティングアクションボタン */
.fab {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom) + 80px);
    right: 1rem;
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(66, 134, 198, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(66, 134, 198, 0.5);
}

.fab:active {
    transform: scale(0.95);
}

/* 12. ダークモード対応 */
.dark-mode .native-tab-bar {
    background: rgba(28, 28, 30, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .native-card {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .segment-control {
    background: #2c2c2e;
}

.dark-mode .segment-indicator {
    background: #3a3a3c;
}

.dark-mode .segment-item.active {
    color: white;
}

/* 13. スプラッシュスクリーン */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    font-family: 'チェックアンドＵ－Ｆｏフォント', sans-serif;
}

.splash-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* モバイル専用調整 */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(env(safe-area-inset-bottom) + 80px);
    }
    
    .main-container {
        padding-bottom: 2rem;
    }
    
    .native-tab-bar {
        display: flex;
    }
    
    .header {
        border-radius: 0 0 20px 20px;
    }
}

@media (min-width: 769px) {
    .native-tab-bar {
        display: none;
    }
    
    .fab {
        display: none;
    }
}

/* デスクトップでは非表示 */
@media (min-width: 1024px) {
    .pull-to-refresh,
    .native-toast,
    .splash-screen {
        display: none;
    }
}