/* ==========================================
   1. Typography & Base
========================================== */
:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-sans: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem;
    position: relative;
    cursor: none; 
}

/* ==========================================
   2. Custom Cursor
========================================== */
@media (pointer: fine) {
    .cursor, .cursor-follower {
        position: fixed; top: 0; left: 0;
        pointer-events: none; border-radius: 50%;
        transform: translate(-50%, -50%); z-index: 9999;
    }
    .cursor {
        width: 6px; height: 6px; background-color: #ffffff;
        transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    }
    .cursor-follower {
        width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, 0.5);
        transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
    }
    .cursor.is-active { opacity: 0; }
    .cursor-follower.is-active {
        width: 60px; height: 60px; background-color: #ffffff;
        mix-blend-mode: difference; border: none;
    }
}
a { cursor: none; }

/* ==========================================
   3. ノイズ＆レイアウト
========================================== */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    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)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: -1;
}

.wrapper { max-width: 760px; width: 100%; margin: 0 auto; }

.reveal-target {
    opacity: 0; transform: translateY(20px);
    animation: revealUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.header.reveal-target { animation-delay: 0.2s; }
.concept.reveal-target { animation-delay: 0.4s; }
.exhibition-nav.reveal-target { animation-delay: 0.6s; }

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

/* ==========================================
   4. Header
========================================== */
.header { margin-bottom: 4rem; }
.subtitle {
    font-size: 0.9rem; font-weight: 500; letter-spacing: 0.15em;
    color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase;
}
.title {
    font-size: 2.2rem; font-weight: 700; letter-spacing: 0.1em;
    color: #ffffff;
}
.title-sub {
    font-size: 0.4em; font-weight: 400; letter-spacing: 0.2em;
    margin-left: 0.8em; color: #ffffff; vertical-align: middle;
}

/* ==========================================
   5. Concept Statement
========================================== */
.concept {
    font-size: 0.95rem; font-weight: 400; line-height: 2.2;
    letter-spacing: 0.08em; color: #cccccc; margin-bottom: 5rem;
}
.concept p { margin-bottom: 1.5rem; }
.concept p:last-child { margin-bottom: 0; }

/* スマホ用の文字調整 */
@media (max-width: 600px) {
    .concept { font-size: 0.85rem; }
    .concept br { display: none; } /* スマホでは自動で折り返させる */
}

/* ==========================================
   6. Exhibition Grid (Square Albums)
========================================== */
.works-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; width: 100%;
}
@media (max-width: 600px) { .works-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.work-square {
    position: relative; display: block; width: 100%; aspect-ratio: 1 / 1;
    background-color: #050505; border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none; overflow: hidden; transition: border-color 0.4s ease;
}
.work-drawing {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0;
    transform: scale(1.05); transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s ease;
    filter: grayscale(100%) contrast(1.2);
}
.work-info {
    position: absolute; bottom: 1.5rem; right: 1.5rem; z-index: 2; text-align: right;
}
.work-title {
    font-family: var(--font-sans); color: #ffffff; font-size: 1.2rem; font-weight: 500;
    letter-spacing: 0.1em; display: block; transition: transform 0.4s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* PC（マウスあり）のホバーエフェクト */
@media (hover: hover) {
    .work-square:hover { border-color: #ffffff; }
    .work-square:hover .work-drawing { opacity: 1; transform: scale(1); }
    .work-square:hover .work-title { transform: translateY(-5px); }
}

/* スマホ（指タッチ操作）用のデザイン：最初から絵を見せる */
@media (hover: none) {
    .work-square { border-color: rgba(255, 255, 255, 0.5); }
    .work-drawing {
        opacity: 0.6; /* 少し暗くして文字を読みやすくする */
        transform: scale(1);
    }
}

/* ==========================================
   7. Album Detail Page
========================================== */
.back-link {
    display: inline-block; color: var(--text-muted); text-decoration: none;
    font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 2rem; transition: color 0.3s ease;
}
@media (hover: hover) { .back-link:hover { color: #ffffff; } }

.album-cover-large {
    width: 100%; max-width: 500px; aspect-ratio: 1 / 1;
    background-size: cover; background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.2); margin: 0 auto 3rem;
    filter: grayscale(100%) contrast(1.2);
}
.album-header { text-align: center; margin-bottom: 3rem; }
.album-header .title { font-size: 1.8rem; letter-spacing: 0.2em; }

.track-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.track-item { border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.track-link, .track-disabled {
    display: flex; align-items: center; padding: 1.5rem 0;
    color: var(--text-main); text-decoration: none; position: relative;
}
.track-disabled { color: var(--text-muted); cursor: default; }
.track-number {
    font-size: 0.8rem; color: var(--text-muted); width: 40px; letter-spacing: 0.1em;
}
.track-name { font-size: 1.1rem; letter-spacing: 0.1em; flex-grow: 1; font-weight: 400; }
.action-line {
    display: block; width: 20px; height: 2px; background-color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (hover: hover) {
    .track-link:hover .action-line { width: 50px; background-color: #ffffff; }
    .track-link:hover .track-name { color: #ffffff; }
}
