/* ================================================
   CSS Custom Properties (Design Tokens)
   ================================================ */
:root {
    /* Colors */
    --color-void-black: #050505;
    --color-off-white: #E0E0E0;
    --color-electric-cyan: #00F3FF;
    --color-cyan-glow: rgba(0, 243, 255, 0.3);
    --color-subtle-gray: #1a1a1a;

    /* Typography */
    --font-inter: 'Inter', sans-serif;
    --font-noto: 'Noto Sans JP', sans-serif;
    --font-mincho: 'Shippori Mincho', serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ================================================
   Base Styles
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-noto);
    background-color: var(--color-void-black);
    color: var(--color-off-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ================================================
   Hero Container
   ================================================ */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================
   Background Canvas (Intersection Pattern)
   ================================================ */
.background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 2s ease-out 3s forwards;
}

/* ================================================
   Terminal Overlay
   ================================================ */
.terminal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-void-black);
    pointer-events: none;
    opacity: 1;
    animation: terminalFadeOut 1s ease-out 3.5s forwards;
}

.terminal-content {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    line-height: 2;
}

.terminal-line {
    opacity: 0;
    transform: translateX(-10px);
}

.terminal-line[data-line="1"] {
    animation: terminalLineAppear 0.5s ease-out 0.5s forwards;
}

.terminal-line[data-line="2"] {
    animation: terminalLineAppear 0.5s ease-out 1.2s forwards;
}

.terminal-line[data-line="3"] {
    animation: terminalLineAppear 0.5s ease-out 1.9s forwards;
}

.terminal-prompt {
    color: var(--color-electric-cyan);
    margin-right: 0.5rem;
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

.terminal-text {
    color: var(--color-off-white);
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--color-electric-cyan);
    animation: typing 1.5s steps(30) forwards;
}

/* ================================================
   Particle Container & Profile Image
   ================================================ */
.particle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    z-index: 5;
    opacity: 0;
    animation: particleContainerAppear 2s ease-out 4s forwards;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-subtle-gray);
    /* 画像削除 -> 抽象的なコアへ */
    background-color: #000;
    border: 2px solid rgba(0, 243, 255, 0.5);
    /* filter: grayscale(100%) contrast(120%) brightness(0.9); 不要 */
    box-shadow:
        0 0 40px rgba(0, 243, 255, 0.2),
        0 0 80px rgba(0, 243, 255, 0.1),
        inset 0 0 60px rgba(0, 243, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: filter 0.5s ease;
}

/* ホバー時に少しだけ色を取り戻す（Subtle Surprise） */
.profile-image:hover {
    filter: grayscale(50%) contrast(110%) brightness(1);
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--color-electric-cyan) 60deg,
            transparent 120deg);
    animation: rotate 4s linear infinite;
    opacity: 0.15;
}

.profile-image::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1a1a1a, #050505);
}

/* ================================================
   Hero Content
   ================================================ */
.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    opacity: 0;
    animation: heroContentAppear 1.5s ease-out 5s forwards;
}

.hero-text-wrapper {
    margin-bottom: var(--space-2xl);
}

.hero-main-title {
    font-family: var(--font-noto);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-off-white);
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleLineSlideIn 0.8s var(--transition-smooth) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 5.2s;
}

.title-line:nth-child(2) {
    animation-delay: 5.5s;
    color: var(--color-electric-cyan);
    text-shadow: 0 0 30px var(--color-cyan-glow);
}

.title-line:nth-child(3) {
    animation-delay: 5.8s;
}

.hero-subtitle {
    font-family: var(--font-inter);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-off-white);
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 6.3s forwards;
}

.subtitle-accent {
    color: var(--color-electric-cyan);
    font-weight: 700;
}

/* ================================================
   Scroll Indicator
   ================================================ */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: scrollIndicatorAppear 1s ease-out 6.8s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom,
            transparent,
            var(--color-electric-cyan),
            transparent);
    animation: scrollLineMove 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-inter);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-electric-cyan);
    font-weight: 700;
}

/* ================================================
   Intersection Lines (Background Visual)
   ================================================ */
.intersection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 2s ease-out 4.5s forwards;
}

.line {
    position: absolute;
    width: 1px;
    height: 200%;
    background: linear-gradient(to bottom,
            transparent,
            var(--color-electric-cyan),
            transparent);
    opacity: 0.08;
    transform-origin: center;
}

.line-1 {
    top: -50%;
    left: 20%;
    transform: rotate(-25deg);
    animation: linePulse 4s ease-in-out infinite;
}

.line-2 {
    top: -50%;
    left: 50%;
    transform: rotate(0deg);
    animation: linePulse 4s ease-in-out 0.8s infinite;
}

.line-3 {
    top: -50%;
    left: 80%;
    transform: rotate(25deg);
    animation: linePulse 4s ease-in-out 1.6s infinite;
}

.intersection-point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--color-electric-cyan);
    border-radius: 50%;
    box-shadow:
        0 0 20px var(--color-electric-cyan),
        0 0 40px var(--color-cyan-glow);
    animation: pointPulse 2s ease-in-out infinite;
}

/* ================================================
   Animations
   ================================================ */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes terminalLineAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes terminalFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes particleContainerAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes heroContentAppear {
    to {
        opacity: 1;
    }
}

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

@keyframes subtitleFadeIn {
    to {
        opacity: 0.9;
    }
}

@keyframes scrollIndicatorAppear {
    to {
        opacity: 0.7;
    }
}

@keyframes scrollLineMove {

    0%,
    100% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

@keyframes linePulse {

    0%,
    100% {
        opacity: 0.08;
    }

    50% {
        opacity: 0.15;
    }
}

@keyframes pointPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 768px) {
    .terminal-content {
        font-size: 0.875rem;
        padding: 0 var(--space-sm);
    }

    .particle-container {
        width: 200px;
        height: 200px;
    }

    .hero-text-wrapper {
        margin-bottom: var(--space-xl);
    }

    .scroll-indicator {
        bottom: var(--space-md);
    }

    .intersection-point {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .terminal-content {
        font-size: 0.75rem;
    }

    .particle-container {
        width: 160px;
        height: 160px;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }
}

/* ================================================
   Accessibility & Performance
   ================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   Manifesto Section
   ================================================ */
.manifesto-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-void-black);
    overflow: hidden;
}

@media (max-width: 768px) {
    .manifesto-section {
        padding: var(--space-xl) var(--space-sm);
    }
}

.manifesto-background-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-family: var(--font-inter);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.manifesto-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

/* English Content (Left Side) */
.manifesto-en-wrapper {
    display: flex;
    justify-content: flex-end;
    padding-right: var(--space-lg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.manifesto-title-en {
    font-family: var(--font-inter);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    text-align: right;
    letter-spacing: -0.02em;
}

.reveal-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-cyan {
    color: var(--color-electric-cyan);
}

/* Japanese Content (Right Side - Vertical) */
.manifesto-jp-wrapper {
    height: 60vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* 縦書きモードでは横方向の積み重ね */
    flex-wrap: wrap;
    writing-mode: vertical-rl;
    /* 右から左へ流れる */
    gap: var(--space-xl);
    align-content: flex-start;
    /* 右端から配置 */
    padding-right: var(--space-lg);
    /* 見切れ防止 */
    box-sizing: border-box;
}

.jp-column-group {
    display: inline-block;
    height: auto;
    /* グループ内の行間 */
    margin-left: var(--space-md);
}

/* 最後のグループ（一番左に来る）のマージン調整 */
.jp-column-group:last-child {
    margin-left: 0;
}

.jp-text-line {
    font-family: var(--font-mincho);
    font-size: 1.125rem;
    line-height: 2.0;
    /* 行間を少し広げて読みやすく */
    letter-spacing: 0.15em;
    color: var(--color-off-white);
    opacity: 0;
    transform: translateY(20px);
    /* 縦書きなので本来は translateX 的な動きが自然だが、アニメーションはそのまま */
    transition: all 1s var(--transition-smooth);
    margin-left: 1rem;
    /* 行ごとの間隔確保 */
}

/* Fix for Vertical Text Transform */
.jp-column-group {
    /* Ensure height is sufficient */
    min-height: 400px;
}

.jp-text-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.small-en {
    font-family: var(--font-inter);
    font-size: 0.8em;
    text-orientation: mixed;
    margin: 0 0.3em;
}

.highlight-text {
    color: #fff;
    font-weight: 600;
}

/* Decoration */
.manifesto-decoration {
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 5;
}

.deco-line {
    width: 1px;
    height: 0;
    background-color: var(--color-electric-cyan);
    transition: height 1.5s var(--transition-smooth);
}

.deco-line.visible {
    height: 100px;
}

.deco-circle {
    width: 10px;
    height: 10px;
    border: 1px solid var(--color-electric-cyan);
    border-radius: 50%;
    margin-top: var(--space-xs);
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s var(--transition-bounce) 1s;
}

.deco-circle.visible {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design for Manifesto */
@media (max-width: 900px) {
    .manifesto-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .manifesto-en-wrapper {
        justify-content: flex-start;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: var(--space-md);
    }

    .manifesto-title-en {
        text-align: left;
    }

    .manifesto-jp-wrapper {
        height: auto;
        min-height: 50vh;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        /* Allow horizontal scroll if needed */
        justify-content: flex-end;
        /* Keep sticking to right if possible, or left */
    }

    .manifesto-background-text {
        font-size: 25vw;
        writing-mode: vertical-rl;
    }
}

/* ================================================
   Profile Section
   ================================================ */
.profile-section {
    padding: var(--space-2xl) var(--space-lg);
    background-color: #080808;
    display: flex;
    justify-content: center;
}

.profile-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.profile-image-wrapper {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.profile-photo {
    width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(110%);
    transition: filter 0.5s ease;
    display: block;
}

.profile-image-wrapper:hover .profile-photo {
    filter: grayscale(0%) contrast(100%);
}

.profile-info-wrapper {
    flex: 1;
}

.profile-header {
    margin-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-sm);
}

.profile-role {
    font-family: var(--font-inter);
    color: var(--color-electric-cyan);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.profile-name {
    font-family: var(--font-inter);
    color: var(--color-off-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0 0.2rem;
    line-height: 1;
}

.profile-name-jp {
    font-family: var(--font-mincho);
    color: #888;
    font-size: 1rem;
}

.profile-bio {
    font-family: var(--font-noto);
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
}

.profile-bio p {
    margin-bottom: 1rem;
}

/* Responsive Profile */
@media (max-width: 800px) {
    .profile-container {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .profile-image-wrapper {
        flex: 0 0 auto;
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .profile-info-wrapper {
        text-align: left;
    }
}

/* ================================================
   Logo Story Section
   ================================================ */
.logo-section {
    padding: var(--space-2xl) var(--space-lg);
    background: radial-gradient(circle at center, #111, #000);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.logo-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.logo-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.logo-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.feature-logo {
    width: 280px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.2));
    animation: floatingLogo 6s ease-in-out infinite;
}

@keyframes floatingLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.logo-content {
    flex: 1;
}

.logo-label {
    font-family: var(--font-inter);
    color: var(--color-electric-cyan);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.logo-title {
    font-family: var(--font-mincho);
    font-size: 2rem;
    color: var(--color-off-white);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.logo-description {
    font-family: var(--font-noto);
    color: #aaa;
    line-height: 2;
}

.logo-description p {
    margin-bottom: 1rem;
}

@media (max-width: 800px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .logo-visual {
        margin-bottom: var(--space-lg);
    }

    .feature-logo {
        width: 200px;
    }
}

/* ================================================
   Project Section (Experiment 01)
   ================================================ */
.project-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-lg);
    background-color: #080808;
    /* Slightly lighter than void black for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

/* Visual / Animation Area */
.project-visual {
    position: relative;
    width: 100%;
    height: 500px;
    background: radial-gradient(circle at center, #111, #000);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

#kaidashi-canvas {
    width: 100%;
    height: 100%;
}

.visual-label {
    position: absolute;
    font-family: var(--font-inter);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.visual-label.visible {
    opacity: 1;
}

.label-recipe {
    top: 20px;
    left: 20px;
}

.label-stock {
    bottom: 20px;
    right: 20px;
}

/* Project Info Area */
.project-info {
    padding-left: var(--space-md);
}

.project-header {
    margin-bottom: var(--space-lg);
}

.project-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--color-electric-cyan);
    margin-bottom: var(--space-xs);
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--color-electric-cyan);
    letter-spacing: 0.05em;
}

.project-title {
    font-family: var(--font-inter);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-off-white);
    letter-spacing: 0.02em;
}

.project-lead {
    font-family: var(--font-noto);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    font-family: var(--font-noto);
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: var(--space-xl);
}

.project-description p {
    margin-bottom: var(--space-xs);
}

/* Button */
.project-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-off-white);
    text-decoration: none;
    font-family: var(--font-inter);
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--color-electric-cyan);
    transition: width 0.3s ease;
    z-index: 0;
}

.project-btn:hover {
    color: #000;
    border-color: var(--color-electric-cyan);
}

.project-btn:hover::before {
    width: 100%;
}

.project-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive Design for Project Section */
@media (max-width: 900px) {
    .project-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .project-visual {
        height: 300px;
        order: -1;
    }

    .project-info {
        padding-left: 0;
    }
}

/* ================================================
   Future Log Section (Relive Project)
   ================================================ */
.future-section {
    position: relative;
    width: 100vw;
    min-height: 80vh;
    padding: var(--space-2xl) var(--space-lg);
    background-color: #030303;
    /* Extremely dark, almost void */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* Background Streams */
.future-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.data-stream {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 1px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: rotate(45deg);
}

.stream-1 {
    left: 20%;
    animation: streamFlow 7s linear infinite;
}

.stream-2 {
    left: 50%;
    animation: streamFlow 10s linear infinite 2s;
}

.stream-3 {
    left: 80%;
    animation: streamFlow 8s linear infinite 4s;
}

@keyframes streamFlow {
    0% {
        transform: translateY(-50%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(50%) rotate(45deg);
        opacity: 0;
    }
}

/* Content */
.future-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.research-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-md);
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-electric-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-electric-cyan);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.future-title {
    font-family: var(--font-inter);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    background: linear-gradient(to right, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.future-description {
    margin-bottom: var(--space-2xl);
}

.future-lead {
    font-family: var(--font-noto);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-off-white);
}

.future-detail {
    font-family: var(--font-noto);
    font-size: 1rem;
    color: #999;
    line-height: 2;
}

/* Visual Waveform (Vital Sign SVG) */
.future-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden;
    /* Grid Background */
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vital-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.ecg-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px var(--color-electric-cyan));
}

.ecg-line {
    fill: none;
    stroke: var(--color-electric-cyan);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    /* 全長約756pxに合わせた設定 */
    stroke-dasharray: 760 760;
    /* 実線760px, 空白760px */
    stroke-dashoffset: 760;
    /* 初期状態：線は見えない（左側にある） */
    animation: ecgFullRun 3s linear infinite;
}

@keyframes ecgFullRun {
    0% {
        stroke-dashoffset: 760;
    }

    45% {
        stroke-dashoffset: 0;
        /* 線が右端まで到達して全表示 */
    }

    55% {
        stroke-dashoffset: 0;
        /* 一瞬全表示を維持 */
    }

    100% {
        stroke-dashoffset: -760;
        /* 左から消えていく */
    }
}

/* ================================================
   Footer
   ================================================ */
.site-footer {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.copyright {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #666;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-link {
    font-family: var(--font-inter);
    font-size: 0.875rem;
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-electric-cyan);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================
   Brand Logo
   ================================================ */
.brand-logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 60px;
    height: auto;
    z-index: 10000;
    opacity: 0;
    animation: logoFadeIn 0.8s ease-out forwards;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.4));
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.8));
    transform: scale(1.1);
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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