/* ===== WORKS ENTRY PAGE — works_entry.css ===== */
/* Timeline C204 / LTV V-507 "Vagabond" — 1970 Atsugi */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* 全画面レイアウト */
.works-entry-page {
    background: #000;
    color: #ccc;
    overflow-x: hidden;
}

.works-entry-page header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.entry-main {
    min-height: 100vh;
    padding-top: 0;
}

/* ===== V-507 フレーム ===== */
.vagabond-frame {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.vagabond-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* 銀塩フィルム・時空変位エフェクト */
    filter: grayscale(100%) contrast(1.2) brightness(0.78);
    z-index: 0;
}

/* ノイズグレインオーバーレイ */
.vagabond-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    mix-blend-mode: overlay;
    opacity: 0.35;
    pointer-events: none;
}

/* グラデーション：左下テキスト可読性 + 右は機体を見せる */
.vagabond-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.05) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.1) 45%,
            rgba(0, 0, 0, 0.75) 80%,
            rgba(0, 0, 0, 0.92) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ===== キャプションブロック ===== */
.vagabond-caption {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 8rem 0 4rem 5%;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

.caption-tag {
    font-size: 0.65rem;
    letter-spacing: 0.25rem;
    color: rgba(197, 160, 89, 0.7);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.caption-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: normal;
    letter-spacing: 0.15rem;
    color: #e8e8e8;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

.caption-title span {
    color: var(--usn-gold);
    font-style: italic;
}

.caption-title .nowrap {
    white-space: nowrap;
    font-style: normal;
    color: #e8e8e8;
}

.caption-meta {
    font-size: 0.72rem;
    color: rgba(200, 200, 200, 0.65);
    line-height: 2;
    border-left: 2px solid rgba(197, 160, 89, 0.4);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05rem;
}

.caption-error {
    color: rgba(255, 100, 100, 0.7);
    margin-top: 0.4rem;
    font-size: 0.68rem;
}

/* 点滅 */
.blink {
    animation: blink-anim 1.4s step-end infinite;
}

@keyframes blink-anim {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.caption-body {
    font-size: 0.82rem;
    line-height: 1.9;
    color: rgba(210, 210, 210, 0.8);
    max-width: 640px;
    margin-bottom: 2.5rem;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

/* ===== ボタン ===== */
.audio-log-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(197, 160, 89, 0.55);
    color: var(--usn-gold);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    margin-right: 1rem;
}

.audio-log-btn:hover {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--usn-gold);
    box-shadow: 0 0 12px rgba(197, 160, 89, 0.35);
}

.enter-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.7);
    color: #e8e8e8;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.18rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background: rgba(197, 160, 89, 0.28);
    border-color: #e8e8e8;
    box-shadow: 0 0 18px rgba(197, 160, 89, 0.4);
    transform: translateX(4px);
}

/* フッター */
.works-entry-page footer {
    background: #000;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
}

/* レスポンシブ */
@media (max-width: 600px) {
    .vagabond-caption {
        padding: 6rem 5% 3rem;
    }

    .caption-title {
        font-size: 1.8rem;
    }

    .audio-log-btn,
    .enter-btn {
        display: block;
        text-align: center;
        margin-right: 0;
    }
}