:root {
    --bg-color: #FFFFFF;
    --text-color: #111111;
    --accent-color: #D4AF37;
    --font-main: 'Bodoni Moda', serif;
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* モバイル・タッチデバイスの設定 */
@media (pointer: coarse) {
    * { cursor: auto !important; }
    #custom-cursor { display: none !important; }
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* カスタムカーソル */
#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, background 0.3s;
}

#custom-cursor.hover {
    transform: scale(3);
    background: #fff;
}

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

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

.section-label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
    opacity: 0.4;
}

/* Typography & Bilingual */
.en-translation {
    font-family: var(--font-main);
    font-style: italic;
    opacity: 0.4;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.en-translation.small { font-size: 0.9rem; margin-top: 0.5rem; }
.en-translation.italic { font-style: italic; }

.para-group { margin-bottom: 3rem; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 30px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
}

.logo { font-family: var(--font-main); font-size: 1.2rem; letter-spacing: 0.3em; }
.nav a { text-decoration: none; color: var(--text-color); font-size: 0.7rem; letter-spacing: 0.2em; margin-left: 30px; opacity: 0.6; }

/* News Banner */
.news-banner {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    z-index: 900;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    text-align: center;
}
.news-banner a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    display: block;
    transition: opacity 0.3s;
}
.news-banner .label {
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--accent-color);
    margin-right: 15px;
}
.news-banner .arrow { margin-left: 10px; opacity: 0.4; }
.news-banner:hover { background: #fff; }

@media (max-width: 900px) {
    .news-banner { top: 80px; padding: 10px 20px; }
    .news-banner a { font-size: 0.65rem; line-height: 1.4; }
}

/* Hero */
.hero { 
    height: 100vh; 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    position: relative;
}
.typography-main { font-family: var(--font-main); font-size: clamp(3rem, 10vw, 7rem); font-weight: 400; line-height: 1; margin-bottom: 2rem; }
.typography-tagline { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: 0.3em; margin-bottom: 0.5rem; }
.typography-en-tagline { font-family: var(--font-main); font-style: italic; opacity: 0.5; }

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    opacity: 0.3;
}

/* Philosophy */
.philosophy { padding: 30vh 0; }
.main-phrase { font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 3.5rem); margin-bottom: 1rem; font-weight: 600; line-height: 1.4; }

/* Gallery & Archive */
.gallery { padding: 25vh 0; background: rgba(0,0,0,0.01); }
.gallery-main-layout { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}
.main-rotation-wrapper { 
    width: 100%; 
    max-width: 850px; /* 巨大化 */
    margin-bottom: 6rem;
}
.rotation-container { 
    width: 100%; 
    aspect-ratio: 1/1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    touch-action: none;
}
.main-work-description { max-width: 800px; }
.main-work-philosophy { font-family: var(--font-serif); font-size: 1.4rem; line-height: 2; margin-bottom: 2rem; }
.work-title { font-family: var(--font-main); font-size: 2rem; letter-spacing: 0.2em; margin-bottom: 2rem; opacity: 0.5; }
.instruction { margin-top: 3rem; font-family: var(--font-main); font-size: 0.7rem; letter-spacing: 0.3em; opacity: 0.3; }

.works-archive { padding: 15vh 0; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.work-item { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f0f0f0; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.work-item:hover img { transform: scale(1.05); }
.work-hover { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s; }
.work-item:hover .work-hover { opacity: 1; }

/* Ritual */
.ritual { padding: 20vh 0; background: #fcfcfc; }
.ritual-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.video-container { width: 100%; aspect-ratio: 16/9; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,0.08); }

/* Profile */
.profile { padding: 30vh 0; }
.profile-grid { 
    display: grid; 
    grid-template-columns: 0.8fr 1.2fr 1fr; 
    gap: 60px; 
    align-items: start;
}
.profile-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f0f0f0;
}
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.profile-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.name-ja { font-family: var(--font-serif); font-size: 2.8rem; margin-bottom: 0.2rem; }
.name-en { font-size: 1.2rem; margin-bottom: 2rem; }
.history-list li { padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 0.9rem; }

/* App Promo */
.app-promo { padding: 20vh 0; background: #f9f9f9; text-align: center; }
.promo-msg { font-family: var(--font-serif); font-size: 1.2rem; margin: 2rem 0 1rem; line-height: 1.8; }
.app-btn { 
    display: inline-block; 
    margin-top: 2rem; 
    padding: 15px 50px; 
    border: 1px solid var(--text-color); 
    text-decoration: none; 
    color: var(--text-color); 
    font-family: var(--font-main); 
    letter-spacing: 0.3em; 
    font-size: 0.8rem; 
    transition: all 0.4s; 
}
.app-btn:hover { background: var(--text-color); color: #fff; }

/* Collaboration */
.collaboration { padding: 20vh 0 0vh; background: transparent; }
.collab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; padding-bottom: 100px; }
.collab-item { 
    padding: 50px 40px 100px; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s; 
    min-height: 450px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
}
.collab-item:hover { background: rgba(255, 255, 255, 0.95); transform: translateY(-5px); }
.collab-title { font-family: var(--font-main); font-size: 1.6rem; margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.collab-desc { font-size: 1rem; line-height: 1.8; margin-bottom: 0.5rem; opacity: 0.8; }
.text-link { 
    display: inline-block; 
    margin-top: auto; 
    padding-top: 3rem;
    text-decoration: none; 
    color: var(--accent-color); 
    font-size: 0.9rem; 
    font-weight: 600;
}

@media (max-width: 900px) {
    .collab-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 50px; }
    .collab-item { padding: 40px 0 80px; min-height: auto; }
}

/* Contact & SNS */
.contact { padding: 5vh 0 20vh; background: #111; color: #fff; }

.contact-form input, .contact-form textarea { 
    display: block !important;
    width: 100% !important; 
    padding: 25px 0; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    color: #fff; 
    margin-bottom: 30px; 
    outline: none; 
    font-size: 1.2rem; 
    font-family: var(--font-sans);
}
.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
}
.submit-btn { background: transparent; border: 1px solid #fff; color: #fff; padding: 15px 40px; font-family: var(--font-main); letter-spacing: 0.2em; cursor: pointer; transition: all 0.3s; margin-top: 20px; }
.submit-btn:hover { background: #fff; color: #111; }
.sns-links { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.sns-links a { color: #fff; text-decoration: none; font-family: var(--font-main); letter-spacing: 0.3em; font-size: 0.8rem; opacity: 0.6; transition: opacity 0.3s; }
.sns-links a:hover { opacity: 1; }

/* Overlay */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 2000; display: none; overflow-y: auto; }
.overlay-inner { max-width: 1000px; margin: 100px auto; padding: 0 40px; color: #111; }

/* 作品詳細オーバーレイのみ黒背景に設定 */
#overlay-work-detail { background: #111; color: #fff; }
#overlay-work-detail .overlay-inner { max-width: 90vw; margin: 5vh auto; color: #fff; }
#overlay-work-detail .close-overlay { color: #fff; }

.close-overlay { 
    position: fixed; 
    top: 30px; right: 30px; 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-main); 
    letter-spacing: 0.3em; 
    font-size: 0.7rem;
    z-index: 2100; 
    color: #fff; 
    transition: all 0.3s;
}
.close-overlay:hover { background: #fff; color: #111; }

/* 白背景のオーバーレイ用（HISTORYなど） */
.overlay:not(#overlay-work-detail) .close-overlay {
    color: #111;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
    .close-overlay { top: 20px; right: 20px; padding: 8px 15px; }
}

.work-detail-flex { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.work-detail-img { width: 100%; max-height: 75vh; display: flex; justify-content: center; }
.work-detail-img img { max-width: 100%; max-height: 75vh; object-fit: contain; box-shadow: 0 30px 90px rgba(0,0,0,0.5); }
.work-detail-info { text-align: center; max-width: 800px; }
#detail-title { font-family: var(--font-main); font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: 0.15em; }
#detail-desc { opacity: 0.8; font-family: var(--font-sans); letter-spacing: 0.05em; }

@media (min-width: 1000px) {
    .work-detail-flex { flex-direction: column; }
}

@media (max-width: 1100px) {
    .profile-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .profile-image { grid-column: span 2; max-width: 400px; margin: 0 auto 40px; }
}

@media (max-width: 900px) {
    .ritual-layout, .profile-grid { grid-template-columns: 1fr; gap: 50px; }
    .gallery-main-layout { width: 100%; }
    .gallery .container { padding: 0; } 
    .main-rotation-wrapper { width: 100vw; margin-bottom: 3rem; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); } 
    .main-work-description { width: 100%; padding: 0 40px; text-align: left; box-sizing: border-box; } 
    .main-work-philosophy { font-size: 1.25rem; line-height: 1.8; } 
    .work-title { font-size: 1.6rem; margin-bottom: 1.5rem; }
    .profile-image { grid-column: span 1; }
    .header { padding: 20px; }
    .nav { display: none; }
}
