@import url('./colors.css');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,900;1,400&family=Noto+Serif+JP:wght@200;900&family=Inter:wght@100;400;900&display=swap');

:root {
    --bg-deep: #000000;
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.4);
    --accent-miyabi: var(--color-miyabi-tealblue);
    --accent-glow: rgba(81, 172, 167, 0.2);
    --accent-secondary: var(--color-lucia-blue);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* --- Eternal Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-miyabi);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', 'Noto Serif JP', serif;
    overflow-x: hidden;
    cursor: crosshair;
}

/* --- Snow Effect --- */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

/* --- UI Foundation --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNuKSIvPjwvc3ZnPg==');
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1000;
}

.brand-logo {
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    font-size: 2.5rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1em;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 0.6rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-main);
    padding-left: 10px;
}

/* --- Sections Core --- */
section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* --- Hero: The Awakening --- */
.hero-image-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.6);
    opacity: 0;
    transition: opacity 2s ease;
}

.hero-image-parallax.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-deep) 10%, transparent 40%, transparent 60%, var(--bg-deep) 90%);
}

.hero-title-group {
    position: relative;
    text-align: center;
}

.large-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 18vw;
    font-weight: 900;
    font-style: italic;
    line-height: 0.7;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    mix-blend-mode: difference;
}

.title-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    letter-spacing: 2em;
    margin-top: -2vw;
    color: var(--accent-miyabi);
    margin-left: 2em;
}

.section-code {
    padding: 100px 0;
    background: var(--bg-deep);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.code-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    width: 50%;
    align-items: start;
    justify-items: center;
}

.code-text {
    writing-mode: vertical-rl;
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 200;
    line-height: 1.5;
    color: var(--text-dim);
    white-space: nowrap;
}

.code-text:nth-child(2) {
    position: relative;
    padding: 0 50px;
}

.code-text:nth-child(1) div {
    font-size: 1.2rem;
    margin-top: 20px;
    opacity: 0.6;
}

.code-text:nth-child(2) {
    flex: 0 0 auto;
    white-space: nowrap;
}

.code-line.active {
    color: var(--text-main);
    opacity: 1;
}

.code-accent {
    color: var(--accent-miyabi);
    font-weight: 900;
    opacity: 1;
}



/* --- Section: The Blade's Insight (Zoom Gallery) --- */
.section-zoom {
    padding: 160px 0;
}

.zoom-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 80vw;
    height: 60vh;
}

.zoom-box {
    position: relative;
    overflow: hidden;
    background: #111;
}

.zoom-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: grayscale(1) brightness(0.5);
}

.zoom-box:hover img {
    transform: scale(2);
    filter: grayscale(0) brightness(1);
}

.zoom-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
    transition: var(--transition-fast);
}

.zoom-box:hover .zoom-label {
    opacity: 1;
}

/* --- Section: Cinematic Evolution --- */
.section-evolution {
    padding: 0 10%;
    flex-direction: row;
    gap: 40px;
}

.evo-card {
    flex: 1;
    height: 70vh;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.evo-card:hover {
    flex: 3;
}

.evo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(0.4);
}

.evo-card:hover img {
    filter: brightness(0.9);
}

.card-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.card-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 4rem;
    font-style: italic;
    opacity: 0.2;
    transition: var(--transition-slow);
}

.evo-card:hover .card-title {
    opacity: 1;
    letter-spacing: 0.2em;
}




/* --- Section: The Seven Pillars --- */
.section-pillars {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: #111;
    overflow: hidden;
}

.pillar-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.pillar {
    flex: 1;
    height: 100%;
    background: #1a1a1a;
    transition: var(--transition-slow);
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), #ffffff0a);
}

.pillar.highlight {
    background: var(--accent-miyabi);
    box-shadow: 0 0 40px var(--accent-glow);
}

.pillar-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    pointer-events: none;
    z-index: 5;
}

.pillar-image {
    position: relative;
    top: -18%;
    left: -3%;
    transform: translateX(-50%);
    width: auto;
    height: 140%;
    object-fit: contain;
    object-position: top;
    mix-blend-mode: initial;
    opacity: 0.8;
    z-index: 2;
}


/* --- Section: Convex Space --- */
.section-convex {
    background: #000;
    padding: 160px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.convex-wrapper {
    position: relative;
    width: 80vw;
}

.convex-display {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #050505;
}


/* --- Box D Structure --- */
.box-d {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: 1fr 1fr;
    width: 300px;
    height: 100px;
    cursor: pointer;
    z-index: 30; /* Higher than backstory */
    /*! transition: transform 0.4s ease; */
    transform: scale(0.8);
	opacity:0.8;
}



.box-d .part-a {
    grid-column: 1;
    grid-row: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
}

.box-d .part-b {
    grid-column: 2;
    grid-row: 1;
    background: var(--accent-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    padding: 0 10px;
	font-style: italic;
}

.box-d .part-c {
    grid-column: 2;
    grid-row: 2;
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px;
    overflow: hidden;
}

.part-c .box-text-scroll {
    font-size: 1.4rem;
    /*! line-height: 1.5; */
    color: white;
    white-space: nowrap;
    /*! animation: textScroll 10s linear infinite; */
    font-weight: bold;
    font-family: "Noto Sans JP" !important;
}

.part-b .box-text-scroll {
	font-size: 2.4rem;
    /*! line-height: 1.5; */
    color: black;
    white-space: nowrap;
    /*! animation: textScroll 10s linear infinite; */
    font-weight: bold;
}

@keyframes textScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Flash Effect */
.convex-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
}

.convex-flash.active {
    animation: flashAnim 0.3s ease-out forwards;
}

@keyframes flashAnim {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


.convex-info {
    margin-top: 40px;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent-miyabi);
    letter-spacing: 0.5em;
    opacity: 0.5;
}


/* --- Backstory Overlay Positions --- */
.convex-backstory {
    position: absolute;
    font-family: 'Noto Serif JP', serif;
    font-weight: 200;
    line-height: 2.2;
    z-index: 20;
    pointer-events: none;
    padding: 30px;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    border-left: 1px solid var(--accent-miyabi);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.convex-backstory.revealed {
    opacity: 1;
    transform: translateY(0);
}



/* Mixing Backstories: Protruding and overlapping the visual for a collage feel */
.convex-backstory.p1 { top: -8%; right: -10%; left: auto; width: 45vw; text-align: right; background: linear-gradient\(to left, rgba(0,0,0,0.1) rgba(0,0,0,0.1) \); border-right: none; border-left: 2px solid var(--accent-miyabi); backdrop-filter: blur(0px);/*! color: white; */}
.convex-backstory.p2 { top: 28%; left: -8%; width: 42vw; text-align: left; border-left: 2px solid var(--accent-miyabi); }
.convex-backstory.p3 { bottom: -3%; right: -3%; width: 55vw; background: linear-gradient(to bottom, rgba(108, 255, 159, 0.21), rgba(80, 0, 255, 0.1)); border: 1px solid rgba(255,255,255,0.1); }

/* Phase 2: Even more intertwined */
.convex-backstory.p4 { top: 67%; right: 45%; width: 42vw; text-align: right; background: linear-gradient(to left, rgba(0,0,0,0.7), transparent); border-left: none; border-right: 1px solid var(--accent-miyabi); }
.convex-backstory.p5 { top: 50%; left: 68%; width: 48vw; border-left-color: #fff; background: linear-gradient(to right, rgba(0, 16, 255, 0.17), #ff01ef29); }
.convex-backstory.p6 { bottom: 67%; right: -14%; width: 45vw; border-left: 6px solid var(--accent-miyabi); background: rgba(147, 147, 147, 0.07); border-radius: 4px;backdrop-filter: blur(1px);}

.backstory-line { font-size: 0.95rem; margin-bottom: 5px; opacity: 0.8; }
.accent-text { color: var(--accent-miyabi); font-weight: 900; margin: 0 4px; }

.accent-text-heavy {
    color: var(--accent-miyabi);
    font-weight: 900;
    background: rgba(0, 187, 187, 0.1);
    padding: 2px 8px;
    border-radius: 2px;
    text-shadow: 0 0 20px rgba(0, 187, 187, 0.8);
}

.main-punch { font-size: 1.5rem; font-weight: 700; opacity: 1; margin-top: 25px; line-height: 1.4; color: #fff; }
.sub-punch { font-size: 0.85rem; letter-spacing: 0.25em; opacity: 0.6; font-style: italic; }


.section-convex.phase-2 {
    background: linear-gradient(to bottom, #111, #000);
}

/* --- Section: About Her (State-based Video Layout) --- */
.section-about-her {
    min-height: 100vh;
    background: #000;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
}

.about-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.video-side {
    position: relative;
    height: 100vh;
    flex: 0 0 40vw; /* Fixed 40% width for video */
    background: #000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden; 
    z-index: 5;
}

.video-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover; /* Ensure video fills the 40vw area elegantly */
    display: block;
    opacity: 0;
    transition: opacity 0.25s linear;
    pointer-events: none;
    z-index: 1;
    will-change: opacity;
}

.about-video.active {
    opacity: 1;
    z-index: 2;
}

/* --- Transition Aesthetic: Clean --- */
/* (Empty rules removed as requested) */

.video-v-controls {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 100;
}

.v-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
}

.v-btn:hover {
    background: var(--accent-miyabi);
    border-color: #fff;
    color: #000;
    transform: scale(1.1);
}

.v-btn span {
    font-size: 1.5rem;
    font-family: 'Bodoni Moda', serif;
    display: block;
}

.v-btn.up span {
    transform: rotate(-90deg); /* Make > point up */
}

.v-btn.down span {
    transform: rotate(-90deg); /* Make < point down (since < is opposite >) */
}

.v-indicator {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.v-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.v-dot.active {
    background: var(--accent-miyabi);
    box-shadow: 0 0 10px var(--accent-miyabi);
    transform: scale(2);
}

.content-side {
    flex: 1; /* Takes the remaining 60vw */
    display: flex;
    align-items: center;
    padding: 8vw; /* Proportional padding */
    background: linear-gradient(to right, #000, #030303);
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content-wrapper {
    max-width: 600px;
}

.about-content {
    display: none;
    animation: fade-in-up 0.3s forwards;
}

.about-content.active {
    display: block;
}

.about-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.about-title .accent {
    color: var(--accent-miyabi);
}

.about-text {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.about-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-dim);
    border-left: 2px solid var(--accent-miyabi);
    padding-left: 15px;
}

.section-tag-vertical {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.5rem;
    color: rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Section: Manifesto Override --- */
.section-manifesto {
    padding: 250px 100px;
    text-align: left;
    background: #000;
}

.section-manifesto p {
    font-family: 'Noto Serif JP', serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: #fff;
    mix-blend-mode: overlay;
}

/* --- Section: Narrative Lore (Gori-Gori Aesthetic) --- */
.section-narrative {
    min-height: 120vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px;
    position: relative;
    overflow: hidden;
}

.narrative-bgText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bodoni Moda', serif;
    font-size: 25vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.narrative-container {
    position: relative;
    max-width: 1200px;
    display: flex;
    gap: 80px;
    z-index: 10;
}

.narrative-line-vertical {
    writing-mode: vertical-rl;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.2em;
    color: var(--accent-miyabi);
    opacity: 0.6;
    border-right: 1px solid var(--accent-miyabi);
    padding-right: 20px;
}

.narrative-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.narrative-p {
    font-family: 'Noto Serif JP', serif;
    line-height: 2.4;
    letter-spacing: 0.2em;
}

.narrative-p.main {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 60px;
}

.accent-glow {
    color: var(--accent-miyabi);
    /* text-shadow: 0 0 20px var(--accent-miyabi), 0 0 40px var(--accent-miyabi); */
    position: relative;
	/* そろそろtext-shadowの使い方わかってきたかなとか思ってたのに　やっぱだめだわこのプロパティ　俺には無理だ */
}

.major-term {
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    padding: 0 5px;
    border-bottom: 2px solid #fff;
}

.rejoice, .inspire {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 4px 4px 0px rgba(255,255,255,0.1);
    margin: 0 5px;
    font-style: italic;
    background: linear-gradient(to bottom, #fff 40%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.narrative-p.sub {
    font-size: 1.4rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 50px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.lore-tag {
    position: absolute;
    left: -100px;
    top: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-miyabi);
    opacity: 0.5;
}

.worry, .fear {
    color: #fff;
    text-decoration: underline wavy rgba(255, 255, 255, 0.3);
    text-underline-offset: 8px;
}

.narrative-bracket-top, .narrative-bracket-bottom {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.narrative-spacer {
    height: 1px;
    width: 250px;
    background: linear-gradient(to right, var(--accent-miyabi), transparent);
    margin-bottom: 60px;
    position: relative;
}

.spacer-dot {
    position: absolute;
    left: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    background: var(--accent-miyabi);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-miyabi);
}

/* --- Section: Mindscape Gallery (3D) --- */
.section-mindscape {
    background: #050505;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mindscape-viewport {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mindscape-canvas {
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.mindscape-canvas:active {
    cursor: grabbing;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 80%;
}

.loading-brand {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
    animation: pulse-bloom 2s infinite;
}

.loading-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--c-accent);
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
}

.loading-bar-container {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: var(--c-accent);
    transition: width 0.3s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse-bloom {
    0% { opacity: 0.5; filter: blur(0px); }
    50% { opacity: 1; filter: blur(3px); }
    100% { opacity: 0.5; filter: blur(0px); }
}



.mindscape-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    transform: translateY(-50%);
    pointer-events: none;
}

.mindset-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 5rem;
    font-family: 'Noto Serif JP', serif;
    cursor: pointer;
    pointer-events: all;
    opacity: 0.2;
    transition: var(--transition-fast);
}

.mindset-arrow:hover {
    opacity: 1;
    transform: scale(1.2);
}

.mindscape-info {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--accent-miyabi);
    letter-spacing: 0.5em;
    opacity: 0.3;
    text-transform: uppercase;
}

/* --- Footer --- */
footer {
    padding: 100px 10%;
    text-align: center;
    border-top: 2px solid var(--color-miyabi-tealblue);
    background: linear-gradient(to bottom, #000, #050505);
    position: relative;
    overflow: hidden;
}

/* Subtle glow background for footer */
footer::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100px;
    background: var(--color-miyabi-tealblue);
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

.footer-brand {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-miyabi-tealblue);
    margin-bottom: 40px;
    letter-spacing: 0.4em;
    text-shadow: 0 0 20px rgba(81, 172, 167, 0.3);
}

.footer-credits {
    font-size: 0.75rem;
    color: #fff;
    margin: 30px 0;
    letter-spacing: 0.1em;
}

.footer-credits p {
    margin: 6px 0;
    opacity: 0.9;
}

.footer-contact {
    margin: 50px 0;
    font-size: 0.9rem;
    font-family: 'Space Mono', monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.02);
}

.footer-contact p:first-child {
    color: var(--color-soukaku-aqua);
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
}

.footer-contact p:last-child {
    font-size: 0.7rem;
    margin-top: 20px;
    opacity: 0.5;
}

.footer-contact a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin: 10px 0;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-copy {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .convex-backstory { display: block; } /* Reactivated for mathematical scaling override */
    .section-manifesto p { font-size: 15vw; }
}

/* --- Box Active States --- */
.box-d.state-active .part-a {
    background: var(--text-main);
    color: #000;
}

/* --- Section: Data & Echoes --- */
.section-data-log {
    background: #000;
    padding: 100px 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.data-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.view-counter-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid var(--accent-miyabi);
    padding-left: 40px;
}

.view-counter-wrap .label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--accent-miyabi);
    margin-bottom: 20px;
}

.view-count {
    font-family: 'Bodoni Moda', serif;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.view-counter-wrap .unit {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    opacity: 0.3;
    letter-spacing: 0.5em;
    margin-top: 10px;
}

.echoes-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.echo-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    margin-bottom: 30px;
    opacity: 0.6;
}

.echo-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 30px;
    padding-right: 15px;
    /* Firefox Customization */
    scrollbar-width: thin;
    scrollbar-color: rgba(81, 172, 167, 0.3) transparent;
}

.echo-list::-webkit-scrollbar {
    width: 3px;
}

.echo-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.echo-list::-webkit-scrollbar-thumb {
    background: rgba(81, 172, 167, 0.3);
}

.echo-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-miyabi);
    box-shadow: 0 0 10px var(--accent-miyabi);
}

.echo-item {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.8);
}

.echo-item strong {
    font-family: 'Space Mono', monospace;
    color: var(--accent-miyabi);
    margin-right: 10px;
    font-weight: 400;
}

.echo-item.system {
    color: var(--color-soukaku-aqua);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.echo-form {
    display: grid;
    grid-template-columns: 1fr 3fr auto;
    gap: 10px;
}

.echo-form input {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}

.echo-form input:focus {
    outline: none;
    border-color: var(--accent-miyabi);
}

.echo-form button {
    background: var(--accent-miyabi);
    color: #000;
    border: none;
    padding: 0 30px;
    font-family: 'Space Mono', monospace;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition-fast);
}

.echo-form button:hover {
    background: #fff;
}

/* --- Section: Cinematic Archives --- */
.section-cinematic {
    padding: 0;
    background: #000;
    overflow: hidden;
}

.cine-item {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cine-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
}

.cine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10vh 5vw;
    z-index: 10;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 50%),
                radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cine-item.revealed .cine-overlay {
    opacity: 1;
}

/* InHollow specific: Huge Gothic text */
.cine-title-huge {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 18vw;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: #fff;
    mix-blend-mode: difference;
    text-shadow: 0 0 40px rgba(0,0,0,1);
    margin-top: 10vh;
    position: relative;
}

/* InUltimate specific: Elegant / Traditional label */
.in-ultimate .cine-overlay {
    justify-content: flex-end; /* 下側に配置 */
    padding-bottom: 10vh;
}

.cine-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.6em;
    color: var(--accent-miyabi);
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-left: 4px solid var(--accent-miyabi);
    backdrop-filter: blur(10px);
}

.cine-ultimate-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cine-sub {
    font-family: serif !important;
    font-style: italic;
    font-size: 1.8rem;
    color: var(--accent-miyabi);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.cine-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    font-size: clamp(3rem, 12vw, 9rem);
    letter-spacing: 0.2em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    text-align: left;
}

/* Archive Metadata Label: Subtle but detectable */
.archive-metadata {
    position: absolute;
    top: 60px;
    right: 60px;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: right;
    line-height: 1.8;
    letter-spacing: 0.1em;
    z-index: 20;
    pointer-events: none;
}

/* --- Section: Potential (Refined Static Archive) --- */
.section-potential {
    background: #000;
    min-height: 100vh;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.potential-container {
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.potential-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.potential-char-side {
    width: 45%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.potential-char-side .char-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transform: scale(1.4);
    filter: contrast(1.1) brightness(0.8);
	background-color: var(--accent-miyabi);
    position: relative; 
}

.potential-char-side::after {
    content: "";
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0, 0.7), rgba(0,0,0, 0.0) 10%);
}

.potential-talents-side {
    width: 55%;
    display: flex;
    background: var(--accent-miyabi);
}

.talent-card {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--accent-miyabi) !important;
    overflow: hidden;
}

.potential-talents-side .talent-card:not(:first-child) {
    background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0) 8% );
}

/* Revive Top-Right TALENT label */
.talent-card::after {
    content: attr(data-text);
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Space Mono', monospace;
    font-size: 1.65rem;
    font-weight: 900;
    color: rgb(0, 0, 0);
    letter-spacing: 0.15em;
}

/* Zigzag Logic */
.talent-card[data-pos="top"] {
    justify-content: flex-start;
    padding-top: 10vh;
}

.talent-card[data-pos="bottom"] {
    justify-content: flex-end;
    padding-bottom: 10vh;
}

.card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Fit left edge */
}

.card-num {
    font-family: 'Bodoni Moda', serif;
    font-size: 8rem;
    font-weight: 900;
    color: #202020;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(81, 172, 167, 0.4);
    left: -44%; /* Intentional overflow */
    position: relative;
}

.card-label {
    font-family: 'Space Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    opacity: 0.8;
    letter-spacing: 0em;
    text-align: left;
}

.card-label small {
    display: block;
    font-size: 1.7rem;
    margin-top: 0.2rem;
}

/* Disable Hover / Interactivity */
.talent-card:hover, .talent-card.active {
    flex: 1;
    background: transparent;
}

/* --- Section: Poetic Transition Styles --- */
.section-poetic {
    min-height: 40vh;
    padding: 100px 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(81, 172, 167, 0.2);
    border-bottom: 1px solid rgba(81, 172, 167, 0.2);
}

.poetic-glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-miyabi);
    filter: blur(150px);
    opacity: 0.08;
    animation: pulse-drift 10s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-drift {
    0% { transform: translate(-20%, -10%) scale(1); opacity: 0.05; }
    100% { transform: translate(20%, 10%) scale(1.5); opacity: 0.12; }
}

.poetic-container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 5;
}

.poetic-bracket {
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, transparent, var(--accent-miyabi), transparent);
    box-shadow: 0 0 15px var(--accent-miyabi);
    position: relative;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-poetic.revealed .poetic-bracket {
    height: 120px;
}

.poetic-bracket::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: var(--accent-miyabi);
    top: 0;
}

.poetic-bracket.left::before { left: 0; }
.poetic-bracket.right::before { right: 0; }

.poetic-text-wrap {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section-poetic.revealed .poetic-text-wrap {
    opacity: 1;
    transform: translateY(0);
}

.poetic-sub {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.8em;
    color: var(--accent-miyabi);
    opacity: 0.6;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.poetic-main {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.3em;
    color: #fff;
    white-space: nowrap;
}

.p-accent {
    color: var(--accent-miyabi);
    text-shadow: 0 0 30px var(--accent-glow);
    position: relative;
    padding: 0 10px;
}

.p-accent::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-miyabi);
    box-shadow: 0 0 10px var(--accent-miyabi);
    transform: skewX(-45deg);
}

.poetic-status {
    margin-top: 30px;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;
}

.poetic-decoration-v {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 200;
    letter-spacing: 2em;
    opacity: 0.1;
    color: #fff;
}

@media (max-width: 768px) {
    .poetic-container { gap: 20px; }
    .poetic-main { font-size: 2.2rem; white-space: normal; }
    .p-break { display: block; height: 10px; }
    .poetic-decoration-v { display: none; }
}

/* --- Interactive Sword Slash --- */
.sword-slash {
    position: fixed;
    height: 1px;
    background: linear-gradient(to right, transparent, #fff, transparent);
    box-shadow: 0 0 15px #fff, 0 0 30px var(--accent-miyabi);
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.4s ease-out, transform 0.2s ease-out;
}

/* --- Data Transmission Log (Aesthetic UI) --- */
.data-transmission-log {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 280px;
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: var(--accent-miyabi);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(81, 172, 167, 0.2);
    padding: 10px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .data-container { grid-template-columns: 1fr; gap: 50px; }
    .view-count { font-size: 5rem; }
    .cine-title-huge { font-size: 25vw; }
    .cine-title { font-size: 4rem; }
    .potential-content { flex-direction: column; }
    .potential-char-side { width: 100%; height: 40vh; }
    .potential-talents-side { width: 100%; height: 60vh; }
    .card-num { font-size: 3rem; }
}


/* --- Extra Text Decorations --- */
.text-glitch {
    position: relative;
    color: var(--accent-miyabi);
    text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
                -0.025em -0.05em 0 rgba(0,255,0,0.75),
                0.025em 0.05em 0 rgba(0,0,255,0.75);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { transform: translate(0); text-shadow: 0.05em 0 0 rgba(255,0,0,0.75), -0.025em -0.05em 0 rgba(0,255,0,0.75), 0.025em 0.05em 0 rgba(0,0,255,0.75); }
    2% { transform: translate(1px, -1px); }
    4% { transform: translate(-1px, 1px); }
    6% { transform: translate(0); }
}

.text-blur {
    filter: blur(0.1px);
    opacity: 0.6;
    transition: all 0.4s ease;
    display: inline-block;
}
.text-blur:hover {
    filter: blur(0);
    opacity: 1;
}

.text-strike {
    text-decoration: line-through;
    text-decoration-color: var(--accent-miyabi);
    opacity: 0.4;
}

.text-bracket::before { content: "‹"; margin-right: 4px; color: var(--accent-miyabi); }
.text-bracket::after { content: "›"; margin-left: 4px; color: var(--accent-miyabi); }

.text-dot-under {
    text-emphasis: filled dot;
    text-emphasis-position: under;
    -webkit-text-emphasis: filled dot;
    -webkit-text-emphasis-position: under;
}

.text-highlight-bg {
    background: rgba(255, 255, 255, 0.1);
    padding: 0 4px;
    border-bottom: 1px solid var(--accent-miyabi);
}

.text-red-glow {
    color: white;
    /*! text-shadow: 0 0 10px rgba(255,0,0,0.8), 0 0 20px rgba(255,0,0,0.4); */
    font-weight: 900;
}

.text-kinetic {
    display: inline-block;
    /*! animation: kinetic-shake 0.1s infinite; */
}

@keyframes kinetic-shake {
    0% { transform: translate(0.5px, 0.5px) rotate(0deg); }
    50% { transform: translate(-0.5px, -0.5px) rotate(-1deg); }
    100% { transform: translate(0px, 0.5px) rotate(1deg); }
}

.text-fragment {
    display: inline-block;
    letter-spacing: 0.5em;
    opacity: 0.7;
    border-left: 1px solid rgba(255,255,255,0.3);
    border-right: 1px solid rgba(255,255,255,0.3);
    padding: 0 5px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8em;
}

/* --- Mobile Orientation Prompt --- */
#orientation-prompt { display: none; }

/* --- Master Responsive System --- */
/* User requested literal PC exactness on mobile devices. 
   Viewport is fixed to 1440px. All specific mobile resizing logic has been removed. */
/* そういやこの方法あったなって気付いたんですよねあほらし.... */

@media (pointer: coarse) {
    /* They explicitly wanted the TOC Header hidden on Smartphones to prevent clutter */
    header { display: none !important; }
}

