        :root {
            --bg: #ffffff;
            --text: #0a0a0a;
            --accent: #00d2ff;
            --sub-text: #666666;
            --side-padding: 10vw;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
        body {
            background-color: var(--bg);
            color: var(--text);
            font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
            overflow-x: hidden;
            line-height: 1.6;
        }

        #webgl-canvas { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%;
            height: 100%;
            z-index: -1; 
            pointer-events: none;
        }

        /* --- Custom Cursor --- */
        #cursor {
            position: fixed; width: 8px; height: 8px; background: #000;
            border-radius: 50%; pointer-events: none; z-index: 10000;
            transform: translate(-50%, -50%);
        }
        #cursor-follower {
            position: fixed; width: 40px; height: 40px; border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: 50%; pointer-events: none; z-index: 9999;
            transform: translate(-50%, -50%);
        }

        /* --- Navigation --- */
        nav {
            position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
            padding: 30px var(--side-padding); z-index: 1000;
        }
        .logo { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.05em; text-decoration: none; color: #000; }
        .dock-content { 
            display: flex; gap: 30px; background: rgba(255, 255, 255, 0.85); 
            backdrop-filter: blur(15px); border-radius: 50px; padding: 10px 30px; 
            border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        .dock-btn { text-decoration: none; color: #000; font-size: 0.8rem; font-weight: 900; transition: 0.3s; }
        .dock-btn:hover { color: var(--accent); }

        /* --- Hero --- */
        .portfolio-hero {
            height: 55vh; display: flex; flex-direction: column; justify-content: center;
            padding: 0 var(--side-padding); margin-top: 50px;
        }
        .hero-label { font-size: 0.75rem; letter-spacing: 0.5em; color: var(--accent); margin-bottom: 20px; font-weight: 900; }
        .hero-title { font-size: clamp(3.5rem, 10vw, 8.5rem); font-weight: 900; line-height: 0.85; margin-bottom: 30px; letter-spacing: -0.04em; }
        .hero-lead { max-width: 750px; font-size: 1.15rem; color: var(--sub-text); font-weight: 500; line-height: 1.8; }

        /* --- Filter Tabs --- */
        .filter-container {
            padding: 25px var(--side-padding); position: sticky; top: 0;
            background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); z-index: 100;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        .filter-tabs { display: flex; gap: 45px; list-style: none; }
        .tab-item {
            font-size: 0.8rem; font-weight: 900; letter-spacing: 0.15em; opacity: 0.25;
            transition: 0.4s; cursor: pointer;
        }
        .tab-item:hover, .tab-item.active { opacity: 1; color: var(--accent); }

        /* --- Portfolio Grid (Modified) --- */
        .portfolio-section { padding: 80px var(--side-padding) 120px; }
        .portfolio-grid {
            display: grid; 
            grid-template-columns: repeat(3, 1fr); /* PC: 3列 */
            gap: 70px 30px;
        }

        .portfolio-card { text-decoration: none; color: inherit; display: block; opacity: 1; transform: translateY(40px); }
        .card-thumb {
            width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #f7f7f7;
            margin-bottom: 25px; border-radius: 4px;
        }
        .card-thumb img {
            width: 100%; height: 100%; object-fit: cover; filter: grayscale(1);
            transition: 1.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .portfolio-card:hover .card-thumb img { filter: grayscale(0); transform: scale(1.06); }

        .card-category { font-size: 0.7rem; font-weight: 900; color: var(--accent); margin-bottom: 8px; display: block; letter-spacing: 0.1em; }
        .card-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 15px; line-height: 1.2; letter-spacing: -0.02em; }
        .card-desc { 
            font-size: 0.92rem; color: var(--sub-text); line-height: 1.8; margin-bottom: 20px;
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
        }
        .card-tags { display: flex; flex-wrap: wrap; gap: 10px; }
        .tag { font-size: 0.65rem; font-weight: 700; color: #aaa; border: 1px solid #eee; padding: 4px 12px; border-radius: 2px; text-transform: uppercase; }

        /* --- Pagination --- */
        .pagination { display: flex; justify-content: center; align-items: center; gap: 25px; padding: 100px 0; border-top: 1px solid #f0f0f0; }
        .page-num { text-decoration: none; color: #000; font-weight: 900; opacity: 0.2; transition: 0.3s; font-size: 1.3rem; }
        .page-num.current, .page-num:hover { opacity: 1; color: var(--accent); }

        /* --- Footer --- */
        #contact { padding: 12vh var(--side-padding) 6vh; background: #fafafa; border-top: 1px solid #f0f0f0; }
        .contact-link { text-decoration: none; color: #000; font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 900; transition: 0.4s; letter-spacing: -0.03em; }
        .contact-link:hover { color: var(--accent); }

        /* --- Media Queries (Modified) --- */
        @media (max-width: 1024px) { 
            .portfolio-grid { grid-template-columns: repeat(2, 1fr); } 
        }
        @media (max-width: 640px) { 
            .portfolio-grid { 
                grid-template-columns: repeat(2, 1fr); /* SP: 2列 */
                gap: 40px 15px;
            } 
            .filter-tabs { gap: 20px; overflow-x: auto; padding-bottom: 10px; }
            .hero-title { font-size: 3.5rem; }
            .card-title { font-size: 1.1rem; }
            .card-desc { -webkit-line-clamp: 2; }
        }
