:root {
    /* Color Palette: より透明感のある淡い紫ベース */
    --clr-bg-dark: #12082e;
    --clr-bg-grad: #0a0418;

    /* 光の色: 淡くして透明感を強調 */
    --clr-blob-pink: rgba(180, 100, 255, 0.4);
    --clr-blob-blue: rgba(120, 60, 220, 0.3);
    --clr-blob-cyan: rgba(200, 140, 255, 0.35);
    --clr-blob-purple: rgba(80, 30, 160, 0.3);
    --clr-blob-white: rgba(255, 255, 255, 0.15);

    /* Typography: 超極細で洗練されたゴシック */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    /* 屈折ガラス (Refractive Clear Glass) 変数 */
    /* 上部と左側は明るく（ハイライト）、下部と右側は暗く（シャドウ）して厚みを表現 */
    --glass-border-top-left: rgba(255, 255, 255, 0.4);
    --glass-border-bottom-right: rgba(255, 255, 255, 0.05);

    /* 表面のテカリ（斜めのグラデーション） - マウス位置による動的変化 */
    --glass-surface: linear-gradient(var(--glare-angle, 135deg), rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.01) 40%, rgba(255, 255, 255, 0) 100%);
    --glass-bg: rgba(20, 10, 30, 0.1);
    --glass-bg-hover: rgba(40, 20, 60, 0.15);

    /* レンズエフェクト: スクロールで動的に変わる彩度（屈折感） */
    --glass-refraction: blur(4px) saturate(var(--dynamic-saturate, 180%)) contrast(110%) brightness(1.1);

    /* 内部のキラめき（Caustics）と落ち影 */
    --glass-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px rgba(0, 0, 0, 0.3);
    --glass-glow: 0 0 20px rgba(180, 100, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Focus visible for keyboard accessibility */
*:focus-visible {
    outline: 2px solid rgba(180, 100, 255, 0.8);
    outline-offset: 3px;
    border-radius: 4px;
}

body {
    background-color: #0d0520;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-weight: 200;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.8;
    letter-spacing: 0.05em;
    position: relative;
}

/* ━━━━━━━━━━━━━━━━━━━━━
   背景画像 & オーバーレイ
   ━━━━━━━━━━━━━━━━━━━━━ */
.background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('background.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 背景画像の色調を活かしつつ、センターを少し明るくして奥行きを出す */
    background: radial-gradient(circle at center, rgba(13, 5, 32, 0.2), rgba(10, 4, 24, 0.7));
    backdrop-filter: brightness(0.9) contrast(1.05);
}

/* Floating Roe Particles in Background */
.roe-float {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 140, 50, 0.4) 40%, rgba(200, 20, 0, 0.4) 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 2px 5px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: -1;
    filter: blur(0.5px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Faster response, smooth settle */
    will-change: transform;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 100;
    letter-spacing: 0.1em;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

/* ━━━━━━━━━━━━━━━━━━━━━
   動的マガジン装飾 & Physicality
   ━━━━━━━━━━━━━━━━━━━━━ */
.bg-deco-text {
    position: fixed;
    font-family: var(--font-heading);
    font-size: 10vw;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.8;
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
    user-select: none;
    will-change: transform;
}

.tilt-element {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
}

/* ホバー時にマウス追従するためtransitionを短くする */
.tilt-element:hover {
    transition: transform 0.1s ease-out, box-shadow 0.6s ease;
}

/* ━━━━━━━━━━━━━━━━━━━━━
   ノイズ・テクスチャ (Grain overlay)
   ━━━━━━━━━━━━━━━━━━━━━ */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    /* 背景画像があるので少し弱める */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ━━━━━━━━━━━━━━━━━━━━━
   背景ブロブ — 演出として画像を補完
   ━━━━━━━━━━━━━━━━━━━━━ */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.5;
    /* 背景画像を邪魔しない程度に抑える */
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    animation: floating 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 55vh;
    height: 55vh;
    background: radial-gradient(circle, var(--clr-blob-pink), transparent 70%);
    top: 15%;
    left: 8%;
    animation-duration: 28s;
}

.blob-2 {
    width: 65vh;
    height: 65vh;
    background: radial-gradient(circle, var(--clr-blob-blue), transparent 60%);
    bottom: -10%;
    right: 5%;
    animation-duration: 38s;
    mix-blend-mode: screen;
}

.blob-3 {
    width: 45vh;
    height: 45vh;
    background: radial-gradient(circle, var(--clr-blob-cyan), transparent 60%);
    top: -8%;
    right: 18%;
    animation-duration: 42s;
    animation-direction: alternate-reverse;
}

.blob-4 {
    width: 80vh;
    height: 80vh;
    background: radial-gradient(circle, var(--clr-blob-purple), transparent 60%);
    bottom: 15%;
    left: -18%;
    animation-duration: 48s;
}

.sphere-highlight {
    position: absolute;
    width: 35vh;
    height: 35vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 50%);
    top: 28%;
    left: 32%;
    border-radius: 50%;
    animation: highlight 22s infinite alternate;
    mix-blend-mode: overlay;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(8vw, -12vh) scale(1.08) rotate(45deg);
    }

    100% {
        transform: translate(-10vw, 10vh) scale(0.95) rotate(-30deg);
    }
}

@keyframes highlight {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translate(3vw, -3vh) scale(1.2);
        opacity: 0.8;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━
   Layout & Components
   ━━━━━━━━━━━━━━━━━━━━━ */
.app-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Navigation: 浮かぶピル型（カプセル） */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.8rem;
    background: var(--glass-bg);
    background-image: var(--glass-surface);
    /* 表面のテカリ */
    backdrop-filter: var(--glass-refraction);
    /* 屈折フィルター */
    -webkit-backdrop-filter: var(--glass-refraction);

    /* ボリュームのあるエッジ（厚み） */
    border-top: 1px solid var(--glass-border-top-left);
    border-left: 1px solid var(--glass-border-top-left);
    border-bottom: 1px solid var(--glass-border-bottom-right);
    border-right: 1px solid var(--glass-border-bottom-right);

    border-radius: 100px;
    margin: 2.5rem auto 8rem;
    max-width: fit-content;
    box-shadow: var(--glass-shadow), var(--glass-glow);
    position: sticky;
    top: 2.5rem;
    z-index: 1000;
}

.logo {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 1);
    cursor: pointer;
    margin-right: 3rem;
    letter-spacing: 0.15em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 5px;
    background: radial-gradient(circle at 30% 30%, #fff, #ff8c32 40%, #c81400 100%);
    border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
    transform: translateX(-50%) scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    box-shadow: 0 0 12px rgba(255, 60, 0, 0.6);
}

.nav-links a.active::before {
    width: 14px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    /* ぷるぷる震えるアニメーションを追加 */
    animation: jellyDrop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes jellyDrop {
    0% { transform: translateX(-50%) scale(0); opacity: 0; }
    50% { transform: translateX(-50%) scale(1.5, 0.6); opacity: 1; }
    70% { transform: translateX(-50%) scale(0.8, 1.2); }
    100% { transform: translateX(-50%) scale(1); }
}

.nav-links a:hover,
.nav-links a.active {
    color: rgba(255, 255, 255, 1);
}

.mt-section {
    margin-top: 5rem;
}

/* セクションとパネル */
.glass-panel {
    background: transparent;
    position: relative;
    border: none;
    box-shadow: none;
    padding: 0;
}

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    padding-left: 0;
    position: relative;
    border: none;
}

/* 線を消し、ほのかな「光の漏れ（Light leak）」でセクションを定義 */
.section-header h3::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6rem;
    height: 6rem;
    background: radial-gradient(circle, rgba(180, 100, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.main-content {
    display: flex;
    flex-direction: column;
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Projects Section */
.project-item {
    padding-bottom: 3rem;
    border-bottom: none;
    /* 下線を削除 */
    transition: transform 0.4s ease;
}

.project-item:hover {
    transform: translateX(5px);
}

.project-item.mt-4 {
    margin-top: 3rem;
}

.project-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.project-header h4 {
    font-size: 2rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 1);
}

.project-header .tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-heading);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.project-desc {
    font-size: 0.9rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* About Section Profile */
.about-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .about-profile {
        flex-direction: row;
        align-items: flex-start;
    }
}

.profile-img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50px;
    /* 大胆な角丸 */
    border: none;
    /* 枠線を完全に削除 */
    box-shadow: var(--glass-shadow), 0 0 30px rgba(0, 0, 0, 0.3);
    filter: brightness(0.95) contrast(1.05);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(5px);
}

.profile-img:hover {
    filter: brightness(1) contrast(1) saturate(1);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(180, 100, 255, 0.08);
}

.about-text {
    flex: 1;
}

.about-name {
    font-size: 2rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
    overflow: visible;
    /* Allow Ikura splash to escape parent bounds */
}

.social-links a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;

    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 15%),
        radial-gradient(circle at center, rgba(255, 120, 80, 0.15) 0%, rgba(255, 60, 40, 0.05) 70%, rgba(0, 0, 0, 0.1) 100%);

    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.1);

    color: rgba(255, 255, 255, 0.75);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px) saturate(140%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 0 8px rgba(255, 80, 0, 0.1);
}

.social-links a:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.15);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 20%),
        radial-gradient(circle at center, rgba(255, 100, 50, 0.45) 0%, rgba(255, 50, 0, 0.2) 80%);
    box-shadow: 0 8px 20px rgba(255, 80, 0, 0.2), inset 0 0 12px rgba(255, 255, 255, 0.4);
}

.social-links a:active {
    transform: scale(0.6);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 140, 50, 1) 40%, rgba(200, 20, 0, 1) 100%);
    box-shadow:
        0 0 30px rgba(255, 60, 0, 0.8),
        inset 0 0 10px rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    color: white;
    transition: transform 0.05s ease-out;
}

/* Ikura Splash Effect Particles — organic shapes with ULTRA-GLOSSY ROE TEXTURE */
.ikura-particle {
    position: fixed;
    border-radius: var(--blob-shape, 50%);
    /* いびつな形状の中に、いくら特有の「表面のテカリ」と「内部の屈折」を多重グラデーションで表現 */
    background: 
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9) 0%, transparent 25%), /* 表面のハイライト */
        radial-gradient(circle at 40% 35%, rgba(255, 240, 150, 0.8) 0%, transparent 40%), /* 内部の輝き */
        radial-gradient(circle at center, rgba(255, 110, 20, 0.95) 10%, rgba(180, 20, 0, 1) 100%); /* ベース色 */
    
    box-shadow: 
        0 4px 12px rgba(255, 30, 0, 0.4), 
        inset 0 2px 4px rgba(255, 255, 255, 0.7), /* 縁の反射光 */
        inset 0 -3px 6px rgba(0, 0, 0, 0.3);      /* 底部の深み */
    
    pointer-events: none;
    transform-origin: center center;
    filter: contrast(1.1) brightness(1.15) saturate(1.2); /* 彩度とコントラストを上げてシズル感を強調 */
    animation: ikuraOrganicPop var(--duration, 0.7s) cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
    z-index: 9999;
    will-change: transform, opacity;
}

@keyframes ikuraOrganicPop {
    0% {
        transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) scale(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
        /* 最初はパッと広がる */
        transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) scale(1.2);
    }
    40% {
        /* 飛びながら少し変形する（粘り気） */
        transform: translate(calc(-50% + var(--tx) * 0.5), calc(-50% + var(--ty) * 0.5))
                   rotate(var(--angle, 0deg)) scaleX(0.9) scaleY(1.1);
    }
    100% {
        /* 最後は飛んでいきながら細くなって消える */
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
                   rotate(var(--angle, 0deg)) scale(0);
        opacity: 0;
    }
}

/* Tooltip Styles */
.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 4, 24, 0.9);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 300;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    letter-spacing: 0.05em;
    z-index: 100;
}

.social-links a::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(10, 4, 24, 0.9) transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 100;
}

.social-links a:hover::after,
.social-links a:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Sub items */
.project-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-btn-simple {
    display: flex;
    flex-direction: column;
    padding: 1.8rem 2rem;

    background: var(--glass-bg);
    background-image: var(--glass-surface);
    border-top: 1px solid var(--glass-border-top-left);
    border-left: 1px solid var(--glass-border-top-left);
    border-bottom: 1px solid var(--glass-border-bottom-right);
    border-right: 1px solid var(--glass-border-bottom-right);

    border-radius: 20px;
    backdrop-filter: var(--glass-refraction);
    transition: all 0.5s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 25px rgba(0, 0, 0, 0.3);
}

.glass-btn-simple:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow), 0 0 20px rgba(180, 100, 255, 0.1);
}

.glass-btn-simple .date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.glass-btn-simple a,
.glass-btn-simple span {
    font-size: 1.05rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.9);
}

/* YouTube & Embed Elements */
.youtube-player-container {
    margin-top: 0;
    border-radius: 30px;
    /* 長方形感を消すために大きく丸める */
    overflow: hidden;
    position: relative;

    background: var(--glass-bg);
    background-image: var(--glass-surface);
    border-top: 1px solid var(--glass-border-top-left);
    border-left: 1px solid var(--glass-border-top-left);
    border-bottom: 1px solid var(--glass-border-bottom-right);
    border-right: 1px solid var(--glass-border-bottom-right);

    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 520px;
    backdrop-filter: var(--glass-refraction);
    box-shadow: var(--glass-shadow), 0 0 40px rgba(180, 100, 255, 0.08);
}

.youtube-player-container:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.youtube-player-container iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000;
}

.series-title {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.15em;
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}



/* ━━━━━━━━━━━━━━━━━━━━━
   Works Carousel
   ━━━━━━━━━━━━━━━━━━━━━ */
.works-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 30px;
    margin-top: -20px;
}

.works-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    cursor: grab;
}

.works-carousel-track.dragging {
    cursor: grabbing;
    transition: none;
}

/* カード幅 = (コンテナ幅 - gap×2) / 3 で3枚きっちり収まる */
.work-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    cursor: pointer;
    display: block;
    user-select: none;
}

.work-card:hover {
    opacity: 0.85;
    transform: translateY(-4px);
}

.work-image {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;

    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border-top-left);
    border-left: 1px solid var(--glass-border-top-left);
    border-bottom: 1px solid var(--glass-border-bottom-right);
    border-right: 1px solid var(--glass-border-bottom-right);

    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-refraction);
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-surface);
    pointer-events: none;
    z-index: 10;
}

/* 正方形カード (音楽ジャケット等) */
.work-image.square {
    aspect-ratio: 1 / 1;
}

/* 縦長・横長画像は比率を保持 */
.work-image.contain-img img {
    object-fit: contain !important;
    background: rgba(255, 255, 255, 0.02);
}

.work-card:hover .work-image {
    border-color: rgba(255, 130, 80, 0.5);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 80, 20, 0.3), inset 0 0 20px rgba(255, 150, 50, 0.2);
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0.15;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.work-card:hover .work-image::after {
    opacity: 0;
}

.work-card h4 {
    font-size: 0.95rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-card p {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.28);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 16px rgba(180, 100, 255, 0.15);
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.85);
    width: 20px;
    border-radius: 3px;
}

/* ━━━━━━━━━━━━━━━━━━━━━
   GOODS Section
   ━━━━━━━━━━━━━━━━━━━━━ */
.goods-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;

    background: var(--glass-bg);
    background-image: var(--glass-surface);
    border-top: 1px solid var(--glass-border-top-left);
    border-left: 1px solid var(--glass-border-top-left);
    border-bottom: 1px solid var(--glass-border-bottom-right);
    border-right: 1px solid var(--glass-border-bottom-right);

    border-radius: 30px;
    backdrop-filter: var(--glass-refraction);
    -webkit-backdrop-filter: var(--glass-refraction);
    text-decoration: none;
    color: inherit;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.goods-link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, rgba(200, 140, 255, 0.9), rgba(100, 60, 220, 0.4));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.goods-link-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(180, 100, 255, 0.05);
}

.goods-link-card:hover::before {
    opacity: 1;
}

.goods-link-info h4 {
    font-size: 1.15rem;
    font-weight: 100;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.goods-link-info p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.goods-link-arrow {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.4s ease;
    font-weight: 100;
}

.goods-link-card:hover .goods-link-arrow {
    color: rgba(255, 255, 255, 0.85);
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* スマホでは2枚表示 */
    .work-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 500px) {

    /* 小画面では1枚ずつ */
    .work-card {
        flex: 0 0 100%;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━
   Scroll Reveal Animations
   ━━━━━━━━━━━━━━━━━━━━━ */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delay for child elements if needed */
.reveal.delay-1 {
    transition-delay: 0.1s;
}

.reveal.delay-2 {
    transition-delay: 0.2s;
}

.reveal.delay-3 {
    transition-delay: 0.3s;
}

/* ━━━━━━━━━━━━━━━━━━━━━
   SITE FOOTER
   ━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
    margin-top: 8rem;
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
}

/* Gentle top separator - no overflow bleed */

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-copy {
    font-size: 0.7rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.2em;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.footer-contact {
    font-size: 0.65rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
    transition: color 0.4s ease;
}

.footer-contact:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ━━━━━━━━━━━━━━━━━━━━━
   Mobile Responsive Polish
   ━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .glass-nav {
        padding: 0.6rem 1.5rem;
        margin: 1.5rem auto 4rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
        border-radius: 40px;
    }

    .youtube-player-container,
    .work-image,
    .goods-link-card,
    .glass-btn-simple {
        border-radius: 20px;
    }

    .bg-deco-text {
        font-size: 25vw;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
/* ━━━━━━━━━━━━━━━━━━━━━
   Loading Screen (Ikura Version)
   ━━━━━━━━━━━━━━━━━━━━━ */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0d0520;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.8s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    width: 200px;
    height: 60px;
    position: relative;
}

.loader-wrapper .circle {
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 50%;
    /* Ikura Style */
    background: radial-gradient(circle at 35% 35%, rgba(255, 230, 200, 1) 0%, rgba(255, 110, 20, 0.95) 45%, rgba(180, 20, 0, 1) 100%);
    box-shadow: 0 4px 12px rgba(255, 30, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.7);
    left: 15%;
    transform-origin: 50%;
    animation: circleBounce .5s alternate infinite ease;
}

@keyframes circleBounce {
    0% {
        top: 60px;
        height: 5px;
        border-radius: 50px 50px 25px 25px;
        transform: scaleX(1.7);
    }
    40% {
        height: 20px;
        border-radius: 50%;
        transform: scaleX(1);
    }
    100% {
        top: 0%;
    }
}

.loader-wrapper .circle:nth-child(2) {
    left: 45%;
    animation-delay: .2s;
}

.loader-wrapper .circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}

.loader-wrapper .shadow {
    width: 20px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.7);
    position: absolute;
    top: 62px;
    transform-origin: 50%;
    z-index: -1;
    left: 15%;
    filter: blur(2px);
    animation: shadowPulse .5s alternate infinite ease;
}

@keyframes shadowPulse {
    0% {
        transform: scaleX(1.5);
        opacity: 0.8;
    }
    40% {
        transform: scaleX(1);
        opacity: .5;
    }
    100% {
        transform: scaleX(.2);
        opacity: .2;
    }
}

.loader-wrapper .shadow:nth-child(5) {
    left: 45%;
    animation-delay: .2s;
}

.loader-wrapper .shadow:nth-child(6) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
}
