body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.search-container {
    padding: 2rem 1rem;
    margin: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.search-header h1 {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.search-header p {
    color: #6b7280;
    margin-bottom: 2rem;
}
.search-input,
.search-btn {
	 padding: 0.3rem 1rem;
}
.search-input {  
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    background: #f4f4f4;
	border: 1px solid #f4f4f4;
    transition: all 0.2s ease;
}
.search-btn:hover {
	background: #f4f4f4;	
}
.search-btn i {
	font-size: 1.5rem;
	color: #1e5a9c;
	font-weight: bold;
}

.search-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.search-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.625rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    color: #374151;
    font-size: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.search-option:hover {
    text-decoration: none;
    color: #374151;
}

.search-option::before {
    content: '';
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-option::after {
    content: '';
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
}

.search-option[data-menu="home"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.search-option[data-menu="home"]::after {
    content: 'ホーム';
}

.search-option[data-menu="category"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
}

.search-option[data-menu="category"]::after {
    content: 'カテゴリーから探す';
}

.search-option[data-menu="manufacturer"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.search-option[data-menu="manufacturer"]::after {
    content: 'メーカー・ブランドで探す';
}

.search-option[data-menu="process"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
}

.search-option[data-menu="process"]::after {
    content: '作業工程から探す';
}

.search-option[data-menu="newitem"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M20 6h-2.18c.11-.31.18-.65.18-1a2.996 2.996 0 0 0-5.5-1.65l-.5.67-.5-.68C10.96 2.54 10 3 10 4c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z'/%3E%3C/svg%3E");
}

.search-option[data-menu="newitem"]::after {
    content: '新規取扱品';
}

.search-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.search-option.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.search-option:hover::before,
.search-option.active::before {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.search-option:hover::after,
.search-option.active::after {
    color: #3b82f6;
}

.search-options {
    position: relative;
}

.search-option {
    position: static;
}

.search-option .floating-menu,
.floating-menu,
#manufacturer-menu,
#process-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    margin-top: 8px;
    transform: translateX(-50%);
    width: min(600px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-height: min(400px, calc(100vh - 200px));
    overflow-y: auto;
    overflow-x: hidden;
    border: 2px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.search-option .floating-menu.show,
.floating-menu.show,
#manufacturer-menu.show,
#process-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.4);
}

/* 階層型ドロップダウンメニュー */
.search-option.dropdown {
    position: relative;
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.search-option.dropdown.active .category-dropdown,
.category-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.process-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    min-width: 400px;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 1rem;
}

.search-option.dropdown.active .process-dropdown,
.process-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu-inner {
    position: relative;
}

.category-level {
    display: flex;
    flex-direction: column;
}

/* メニュー内のカテゴリーアイテムのみに適用 */
.category-dropdown .category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 0.9rem;
    position: relative;
    white-space: nowrap;	
    border-bottom: 1px solid #e5e7eb;
	line-height: 1.4rem;
}
/* LB1 */
.category-dropdown .category-item:hover {
    color: #1e5a9c;
}

.category-dropdown .category-item > i {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: 0.5rem;
}

.category-dropdown .category-item:hover > i {
    color: #3b82f6;
}

/* サブメニュー（ドロップダウンメニュー内のみ） - 汎用的な設定 */
.category-dropdown .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 200px;
    max-width: 300px;
    background: white;
    border-radius: 0 8px 8px 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    border-left: none;
}

/* 入れ子の各階層ごとにz-indexを自動的に増やす */
.category-dropdown .submenu { z-index: 1001; }
.category-dropdown .submenu .submenu { z-index: 1002; }
.category-dropdown .submenu .submenu .submenu { z-index: 1003; }
.category-dropdown .submenu .submenu .submenu .submenu { z-index: 1004; }
.category-dropdown .submenu .submenu .submenu .submenu .submenu { z-index: 1005; }
.category-dropdown .submenu .submenu .submenu .submenu .submenu .submenu { z-index: 1006; }

/* サブメニューの表示条件 - ホバーまたは.showクラスで表示 */
.category-dropdown .category-item:hover > .submenu,
.category-dropdown .submenu-item:hover > .submenu,
.category-dropdown .submenu.show {
    opacity: 1;
    visibility: visible;
}

/* サブメニュー内のコンテンツ */
.category-dropdown .submenu-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid #1e5a9c;
    white-space: nowrap;
}

.category-dropdown .submenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    position: relative;
    white-space: nowrap;
	color: #1e5a9c;
}

/* LB2 */
.category-dropdown .submenu-item:hover {
    color: #1e5a9c;
}

.category-dropdown .submenu-item > i {
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.category-dropdown .submenu-item:hover > i {
    color: #3b82f6;
}

.category-dropdown .submenu-item.final-item {
    cursor: pointer;
}

.category-dropdown .submenu-item.final-item:hover {
    background: #eff6ff;
    color: #00aaeb;
    font-weight: 500;
}

/* スクロールバー（サブメニューのコンテンツエリア用） */
.category-dropdown .submenu-items::-webkit-scrollbar {
    width: 6px;
}

.category-dropdown .submenu-items::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.category-dropdown .submenu-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.category-dropdown .submenu-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.category-dropdown::-webkit-scrollbar {
    width: 6px;
}

.category-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.category-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.category-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* メーカードロップダウン */
.manufacturer-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    min-width: 400px;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 1rem;
}

.search-option.dropdown.active .manufacturer-dropdown,
.manufacturer-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.alphabet-section {
    margin-bottom: 1rem;
}

.alphabet-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.alphabet-row .alphabet-item {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    margin-bottom: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.alphabet-row .alphabet-item:hover {
    background: #dbeafe;
    color: #1e40af;
}

.alphabet-row .alphabet-item.active {
    background: #3b82f6;
    color: white;
}

.company-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.company-item {
    padding: 0.625rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.company-item:hover {
    background: #eff6ff;
    color: #1e40af;
}

.menu-section {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.6) 0%, rgba(241, 245, 249, 0.4) 100%);
    border-radius: 18px;
    margin: 4px;
}

/* カスタムスクロールバー */
.floating-menu::-webkit-scrollbar {
    width: 8px;
}

.floating-menu::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.floating-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.floating-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: scale(1.1);
}

.floating-menu::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #4c51bf 0%, #553c9a 100%);
}

/* Firefox用のスクロールバー */
.floating-menu {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f5f9;
    scroll-behavior: smooth;
}

/* スクロール時の影効果 */
.floating-menu.scrolling {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* メインコンテンツエリア */
.main-content {
}

.banner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.banner-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.banner-slider {
    position: relative;
    height: 200px;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-item.active {
    opacity: 1;
}

.banner-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.banner-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.banner-prev, .banner-next {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-prev:hover, .banner-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* カルーセルスタイル */
.search-carousel-indicators button {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    transition: opacity 0.3s ease;
}

.search-carousel-indicators button.active,
.search-carousel-indicators button:hover {
    opacity: 1;
}

.search-carousel-indicators button img {
    border-radius: 6px;
}

.search-carousel-indicators .row {
    margin: 0;
}

.search-carousel-indicators [class*="col-"] {
    padding: 0;
}

.search-carousel-indicators.scrollable-indicators {
    max-height: 425px;
    overflow-y: auto;
}

.search-carousel-indicators.scrollable-indicators .row {
    margin: 0;
}

.search-carousel-indicators.scrollable-indicators [class*="col-"] {
}

.search-carousel-indicators.scrollable-indicators::-webkit-scrollbar {
    width: 6px;
}

.search-carousel-indicators.scrollable-indicators::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-carousel-indicators.scrollable-indicators::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.search-carousel-indicators.scrollable-indicators::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* スマホ版：インジケーターを横スクロールに */
@media (max-width: 991px) {
    .search-carousel-wrapper > .row {
        flex-direction: column;
    }
    
    .search-carousel-indicators {
        margin-top: 1rem;
        max-height: none;
        overflow-y: hidden;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .search-carousel-indicators .row {
        flex-direction: row !important;
        flex-wrap: nowrap;
        margin: 0;
    }    
    .search-carousel-indicators [class*="col-"]:last-child {
        margin-right: 0;
    }
    
    .search-carousel-indicators.scrollable-indicators {
        max-height: none;
        overflow-y: hidden;
        overflow-x: auto;
    }
    
    .search-carousel-indicators.scrollable-indicators::-webkit-scrollbar {
        height: 6px;
        width: auto;
    }
    
    .search-carousel-indicators.scrollable-indicators::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .search-carousel-indicators.scrollable-indicators::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .search-carousel-indicators.scrollable-indicators::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

#searchCarousel {
    border-radius: 8px;
    overflow: hidden;
}

#searchCarousel .carousel-item img {
    border-radius: 15px;
}

/* トピックスと特集画像の間の区切り線 */
.news-divider {
    margin: 1.5rem 0;
    position: relative;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #d1d5db 10%, #d1d5db 90%, transparent 100%);
}

.news-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, #1e40af, #3b82f6, #60a5fa, #3b82f6, #1e40af);
    box-shadow: 0 0 10px rgba(30, 64, 175, 0.4);
    border-radius: 1px;
}

.news-divider::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #1e40af;
    font-size: 0.6rem;
    background: white;
    padding: 0 0.75rem;
    font-weight: bold;
}

/* 特集バナー */
.tokusyu-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tokusyu-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.tokusyu-link img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.tokusyu-link:hover img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-grid-section {
}

.category-grid-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 600;
}

.category-grid {
    /* Bootstrapグリッドシステムを使用するため、CSS Gridは無効化 */
    /* display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem; */
    max-width: none;
    margin: 0 auto;
}

.no-image {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 検索結果画面 */
.search-result-page {
    display: none;
    padding: 2rem 0;
}
.breadcrumb {
	padding: 20px 0;
	margin-bottom: 0;
	font-size: 0.9rem;	
}
.breadcrumb li.breadcrumb-item {
	line-height: 1.8rem;	
}

.breadcrumb-item.active {
    color: #999999;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

.search-result-content {
    display: grid;
    grid-template-columns: minmax(200px, 250px) 1fr;
    gap: 2rem;
}

.sidebar {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.sidebar-item:hover {
    color: #1e40af;
    background: #f8fafc;
    padding-left: 0.5rem;
}

.sidebar-item.active {
    color: #1e40af;
    font-weight: 600;
    background: #eff6ff;
    padding-left: 0.5rem;
}

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

.result-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-weight: 500;
}

.result-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-1px);
}

.result-item.active {
    border-color: #ef4444;
    background: #fef2f2;
    position: relative;
}


/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #374151;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* モバイルサイドバーのカスタムスクロールバー */
.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.mobile-sidebar.show {
    left: 0;
}

.mobile-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.mobile-sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.mobile-sidebar-content {
    padding: 1rem;
}

.mobile-sidebar-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.mobile-sidebar-item:hover {
    color: #1e40af;
    background: #f8fafc;
    padding-left: 0.5rem;
}

.mobile-sidebar-item.active {
    color: #1e40af;
    font-weight: 600;
    background: #eff6ff;
    padding-left: 0.5rem;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-overlay.show {
    display: block;
}

.menu-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.3) 0%, rgba(241, 245, 249, 0.2) 100%);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.2);
}

.menu-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(229, 231, 235, 0.6);
    border-radius: 12px;
    padding: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(59, 130, 246, 0.15);
}

.menu-item:hover::before {
    left: 100%;
}

.manufacturer-menu {
    display: grid;
    grid-template-columns: 120px 1fr;
    height: 300px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.4) 0%, rgba(241, 245, 249, 0.3) 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.3);
}

.alphabet-menu {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.7) 0%, rgba(226, 232, 240, 0.5) 100%);
    padding: 1rem;
    overflow-y: auto;
    scrollbar-width: none;
    border-right: 2px solid rgba(59, 130, 246, 0.08);
}

.alphabet-menu::-webkit-scrollbar {
    display: none;
}

.alphabet-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(229, 231, 235, 0.6);
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.375rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.alphabet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.alphabet-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.alphabet-item:hover::before {
    left: 100%;
}

.alphabet-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.company-list {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.company-list::-webkit-scrollbar {
    display: none;
}

.company-item {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.company-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.company-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
    transform: translateX(6px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.2),
        0 4px 12px rgba(59, 130, 246, 0.15);
}

.company-item:hover::before {
    left: 100%;
}

.back-button:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateX(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-button svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-button:hover svg {
    transform: translateX(-3px);
}

.close-button:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* PC版とスマホ版の表示制御 */
.pc-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .search-result-content {
        grid-template-columns: minmax(180px, 220px) 1fr;
        gap: 1.5rem;
    }
}

/* 991px以下：カテゴリードロップダウンをモバイル形式（アコーディオン）に */
@media (max-width: 991px) {
    /* モバイル対応：階層型ドロップダウンメニュー - アコーディオン形式で下に展開 */
    .category-dropdown {
        /*width: calc(100vw - 32px) !important;*/
        max-width: calc(100vw - 32px) !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin-top: 0 !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
    
    .dropdown-menu-inner {
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .category-dropdown .category-item:hover > .submenu,
    .category-dropdown .submenu-item:hover > .submenu {
        /* モバイルではホバーを無効化 */
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
    }
    
    /* モバイル版：サブメニューを下に展開（アコーディオン形式） */
    .category-dropdown .submenu {
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 0 !important;
        border-radius: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        border: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .category-dropdown .submenu-items {
        max-height: none !important;
        overflow-y: visible !important;
        margin: 0 !important;
    }

    /* 展開されたサブメニューの中身だけ薄灰色 LB4 */
    .category-dropdown .expanded > .submenu.show > .submenu-items {		
		background: #f4f4f4;
		font-weight: bold;
		padding-left: 0.5rem;
    }
	.category-dropdown .expanded > .submenu.show > .submenu-items > .submenu-item {
		
	}

    /* さらに子を展開しているアイテムは白に戻す */
    .category-dropdown .expanded > .submenu.show > .submenu-items > .submenu-item.expanded {
		padding-left: 1.5rem;
    }

    /* ホバー時は少し濃い灰色 */
    .category-dropdown .expanded > .submenu.show > .submenu-items > .submenu-item:hover {
    }
    
    .category-dropdown .submenu.show {
        max-height: 2000px !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        display: block !important;
    }
    
    /* ホバー状態でも.showクラスがあれば表示を維持 */
    .category-dropdown .category-item:hover > .submenu.show,
    .category-dropdown .submenu-item:hover > .submenu.show {
        max-height: 2000px !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    
    /* モバイル版：サブメニューヘッダーのスタイル調整 - 全幅で表示 */
    .category-dropdown .submenu-header {      
		color: #1e5a9c;
        width: 100% !important;
        box-sizing: border-box !important;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		padding-left: 0.5rem;
    }
	.category-dropdown .submenu-header .submenu-header {
		border-bottom: none;		
	}
	.submenu.level-3 .submenu-header {
		border-left: 3px solid #1e5a9c;
		border-bottom: 1px solid #1e5a9c;
		margin-bottom: 5px;
	}
	.submenu.level-4 .submenu-header {
		border: 1px solid #1e5a9c;
	}
	.submenu.level-4 .submenu-header:before {
		content:"・";
		color:#1e5a9c;
		padding-right: 3px;
		}
	
	.submenu.level-3 .submenu-items .submenu-item span:before {
		content:"・";
		color:#1e5a9c;
		padding-right: 3px;
		}
	
    /* 階層ごとに背景色を濃くして階層を表現（幅は全て同じ） */
    /* 鈴木とりあえずコメントアウト
    .category-dropdown .submenu .submenu-header {
        background: #bfdbfe !important;
    }
    .category-dropdown .submenu .submenu .submenu-header {
        background: #93c5fd !important;
    }
    .category-dropdown .submenu .submenu .submenu .submenu-header {
        background: #60a5fa !important;
        color: white !important;
    }
    .category-dropdown .submenu .submenu .submenu .submenu .submenu-header {
        background: #3b82f6 !important;
        color: white !important;
    }
    */
    /* モバイル版：カテゴリーアイテムとサブメニューアイテムを縦展開に */
    .category-dropdown .category-item,
    .category-dropdown .submenu-item:not(.final-item) {
        display: block !important;
        flex-direction: column !important;
        padding: 0 !important;
    }
    
    /* モバイル版：展開前のアイテムにはpadding適用 */
    .category-dropdown .category-item:not(.expanded),
    .category-dropdown .submenu-item:not(.final-item):not(.expanded) {
        padding: 0.5rem 0.5rem !important;
    }
    
    /* モバイル版：最終アイテムはpadding維持 LB4 */
    .category-dropdown .submenu-item.final-item {
		color: #00aaeb;
		line-height: 1.4rem;
		padding: 0.5rem 0 0.5rem 0.4rem;
    }
    
    /* モバイル版：矢印アイコンを下向きに */
    .category-dropdown .category-item > i,
    .category-dropdown .submenu-item:not(.final-item) > i {
        transition: transform 0.3s ease !important;
        float: right !important;
        transform: rotate(90deg) !important;
    }
    
    /* 展開時は上向きに */
    .category-dropdown .category-item.expanded > i,
    .category-dropdown .submenu-item.expanded > i {
        transform: rotate(-90deg) !important;
    }
    
    /* モバイル版：展開後は親アイテムのテキストとアイコンを非表示 */
    .category-dropdown .category-item.expanded > span,
    .category-dropdown .category-item.expanded > i,
    .category-dropdown .submenu-item.expanded > span,
    .category-dropdown .submenu-item.expanded > i {
        display: none !important;
    }
    
    /* モバイル版：z-indexは不要（相対位置なので） */
    .category-dropdown .submenu { z-index: auto !important; }
    .category-dropdown .submenu .submenu { z-index: auto !important; }
    .category-dropdown .submenu .submenu .submenu { z-index: auto !important; }
    .category-dropdown .submenu .submenu .submenu .submenu { z-index: auto !important; }
    .category-dropdown .submenu .submenu .submenu .submenu .submenu { z-index: auto !important; }
}

/* タブレットサイズ（768px〜991px）は通常の5列レイアウトを維持 */

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    .search-container {
        margin: 0;
        padding: 1.5rem 0;
    }

    /* スマホ版：2列レイアウト */
    .search-options {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }

    .search-option {
        padding: 0.75rem 0.5rem;
        font-size: 0;
        text-align: center;
        position: relative;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }

    /* ホームボタンだけ2列分の幅を取る */
    .search-option[data-menu="home"] {
        grid-column: span 2;
    }

    .search-option.mobile-only {
        font-size: 0;
    }

    .search-option::before {
        content: '';
        width: 32px;
        height: 32px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .search-option::after {
        content: '';
        font-size: 0.75rem;
        font-weight: 500;
        color: #374151;
        line-height: 1;
    }

    .search-option[data-menu="category"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="category"]::after {
        content: 'カテゴリー';
    }

    .search-option[data-menu="manufacturer"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="manufacturer"]::after {
        content: 'メーカー・ブランドで探す';
    }

    .search-option[data-menu="process"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="process"]::after {
        content: '作業工程';
    }

    .search-option[data-menu="newitem"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="newitem"]::after {
        content: '新規';
    }

    .search-option[data-menu="home"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233b82f6'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="home"]::after {
        content: 'ホーム';
    }

    .manufacturer-menu {
        grid-template-columns: 100px 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
    }

    .menu-item {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
        text-align: center;
    }

    .menu-section {
        padding: 0;
    }

    .menu-title {
        padding: 1rem 1rem 0.5rem 1rem;
        font-size: 1rem;
    }

    .alphabet-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .floating-menu {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin-top: 0 !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        border-radius: 20px !important;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        border: 2px solid rgba(59, 130, 246, 0.2) !important;
        backdrop-filter: blur(10px) !important;
    }

    /* Bootstrapグリッドシステムを使用するため、CSS Gridは無効化 */
    /* .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: none;
    } */

    /* 検索結果画面のモバイル対応 */
    .search-result-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sidebar {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-sidebar {
        display: block;
    }

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

    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-left: 60px;
    }

    .breadcrumb-section {
        padding-left: 60px;
    }

    .search-container {
        padding: 1rem 0;
    }

    .search-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .search-option {
        padding: 0.75rem 0.5rem;
        font-size: 0;
        text-align: center;
        position: relative;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .search-option::before {
        content: '';
        width: 32px;
        height: 32px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-bottom: 4px;
    }

    .search-option[data-menu="manufacturer"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="process"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9 5H7a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="newitem"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="category"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 4h6v6H4V4zm10 0h6v6h-6V4zM4 14h6v6H4v-6zm10 0h6v6h-6v-6z'/%3E%3C/svg%3E");
    }

    .search-option::after {
        content: attr(data-text);
        font-size: 12px;
        font-weight: 500;
        color: #374151;
    }

    .search-option[data-menu="manufacturer"]::after {
        content: 'メーカー';
    }

    .search-option[data-menu="process"]::after {
        content: '作業工程';
    }

    .search-option[data-menu="newitem"]::after {
        content: '新規';
    }

    .search-option[data-menu="category"]::after {
        content: 'カテゴリー';
    }

}

/* より小さな画面サイズ（480px以下）での対応 */
@media (max-width: 480px) {
    .mobile-sidebar {
        width: 100%;
        max-width: none;
        left: -100%;
    }

    .mobile-sidebar.show {
        left: 0;
    }

    .mobile-sidebar-content {
        padding: 0.75rem;
    }

    .mobile-sidebar-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .mobile-sidebar-title {
        font-size: 1rem;
    }

    /* より小さな画面でのスクロールバー調整 */
    .mobile-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-sidebar::-webkit-scrollbar-thumb {
        background: #e2e8f0;
    }

    /* より小さな画面でのポップアップ位置調整 */
    .floating-menu {
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin-top: 0 !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        border-radius: 20px !important;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.15),
            0 8px 16px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        border: 2px solid rgba(59, 130, 246, 0.2) !important;
        backdrop-filter: blur(10px) !important;
    }

    .page-title {
        font-size: 1.25rem;
        padding-left: 50px;
    }

    .breadcrumb-section {
        padding-left: 50px;
    }

    .search-container {
        padding: 0.75rem 0.5rem;
    }

    .search-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .search-option {
        min-height: 70px;
        padding: 0.5rem 0.25rem;
    }

    .search-option::before {
        width: 28px;
        height: 28px;
    }

    .search-option::after {
        font-size: 11px;
    }

    .search-option[data-menu="newitem"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7'/%3E%3C/svg%3E");
    }

    .search-option[data-menu="newitem"]::after {
        content: '新規';
    }
}

/* メーカー一覧ページ */
.maker-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1rem;
}

/* メーカーアコーディオン */
.maker-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maker-section {
    border-radius: 8px;
    overflow: hidden;
}

.maker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.maker-btn {
    background: #e2e8f0;
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    text-decoration: none;
}

.maker-btn<strong>:hover</strong> {
    background: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.maker-btn i {
    font-size: 0.875rem;
    color: #475569;
    transition: transform 0.3s ease;
}

.maker-btn[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.maker-btn .maker-image {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.maker-list-container {
    margin-top: 2rem;
}

.maker-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 0;
}

.maker-item {
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.maker-item:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .maker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .maker-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .maker-title {
        font-size: 1.5rem;
    }
    
    .maker-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .maker-grid {
        grid-template-columns: 1fr;
    }
    
    .maker-list {
        grid-template-columns: 1fr;
    }
}