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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro JP', 'SF Pro Display', 'SF Pro Icons', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    min-height: 100vh;
    line-height: 1.47059;
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    padding: 20px 0;
    background: #000000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.logo {
    font-size: 2.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: 980px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: #f5f5f7;
    border-color: #86868b;
}

.nav-btn.active {
    background: #0071e3;
    border-color: #0071e3;
    color: #ffffff;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease-in;
}

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

/* Product Card */
.product-card {
    background: #ffffff;
    border: none;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    animation: cardFadeIn 0.5s ease-out forwards;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
    }
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-icon-3d {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-icon-3d {
    transform: scale(1.05);
}

.product-content {
    padding: 25px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2;
    flex: 1;
    letter-spacing: -0.3px;
}

.product-subtitle {
    color: #0071e3;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.4;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
}

.status-badge.new {
    background: #ff3b30;
    color: #fff;
}

.status-badge.available {
    background: #34c759;
    color: #fff;
}

.status-badge.coming {
    background: #f5f5f7;
    color: #86868b;
    border: 1px solid #d2d2d7;
}

.product-description {
    color: #6e6e73;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.52947;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #d2d2d7;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.product-category {
    padding: 6px 14px;
    background: #f5f5f7;
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #1d1d1f;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px 40px;
    color: #86868b;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

/* フローティングメニューボタン */
.floating-menu-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #0071e3;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.4);
}

.floating-menu-btn:active {
    transform: scale(0.95);
}

/* カテゴリーモーダル */
.category-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.category-modal.open {
    display: flex;
}

.category-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.category-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

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

.category-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #d2d2d7;
}

.category-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f7;
    border: none;
    border-radius: 50%;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: #e8e8ed;
}

.category-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.category-option {
    padding: 16px 20px;
    background: #f5f5f7;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.category-option:hover {
    background: #e8e8ed;
}

.category-option.active {
    background: #0071e3;
    color: #ffffff;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .floating-menu-btn {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .category-modal-content {
        width: 95%;
        max-width: none;
        border-radius: 16px;
    }

    .category-modal-header {
        padding: 16px 20px;
    }

    .category-modal-header h2 {
        font-size: 1.1rem;
    }

    .category-option {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}