@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans JP', system-ui, sans-serif;
}

.product-card {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* 赤・青緑の美麗なグラデーションカラー設定を永続維持 */
.header {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
}

.item-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* カテゴリナビゲーションの視認性向上 */
.category-nav {
    background-color: #f8fafc;
}

.nav-link {
    background-color: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.nav-link.active {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
}

.modal {
    animation: fadeIn 0.2s ease-out;
}

.animation-fade {
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .header-container {
        gap: 0.5rem;
    }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.animation-popup {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-15px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* メッセージ別ページ用の追加レイアウト */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

#message-timeline {
    scroll-behavior: smooth;
}

/* スマホ画面でのサイドバーとチャット窓の切り替えアニメーション補助 */
@media (max-width: 768px) {
    #thread-sidebar.mobile-hidden {
        display: none;
    }

    #chat-window.mobile-active {
        display: flex !important;
    }
}

/* 自作アラートポップアップのフェードインアニメーション */
#custom-alert-overlay.flex {
    opacity: 1;
}

#custom-alert-overlay.flex #custom-alert-box {
    transform: scale(1);
}

#custom-alert-overlay,
#custom-alert-box {
    will-change: transform, opacity;
}