@charset "UTF-8";
/* --- works_detail.css : High-G & Sexy Operation [DECOSKE Optimized] --- */

/* --- 0. Detail Nav: 閉じた空間 — 出口は２つだけ --- */
.detail-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.detail-nav-back,
.detail-nav-wiki {
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15rem;
    padding: 0.35rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.detail-nav-back {
    color: var(--usn-gold);
    border: 1px solid rgba(197, 160, 89, 0.55);
}

.detail-nav-back:hover {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--usn-gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.detail-nav-wiki {
    color: rgba(200, 200, 200, 0.7);
    border: 1px solid rgba(200, 200, 200, 0.25);
}

.detail-nav-wiki:hover {
    color: #fff;
    border-color: rgba(200, 200, 200, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

.works-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 5%;
}

/* --- 1. カタパルト射出：咆哮するスチーム（濃霧・ズバ〜ん版） --- */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

/* 第1波：モワモワ（遅い白煙） */
body::before {
    background: radial-gradient(circle, #fff 10%, transparent 70%);
    background-size: 200% 200%;
    animation: steamMowa 1.8s ease-out forwards;
}

/* 第2波：ズバ〜ん（高速射出蒸気） */
body::after {
    background: linear-gradient(to top, #fff 40%, transparent 90%);
    animation: steamZubaan 1.2s cubic-bezier(0.15, 0, 0.15, 1) forwards;
}

@keyframes steamMowa {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50%);
    }

    30% {
        opacity: 0.9;
    }

    100% {
        opacity: 0;
        transform: scale(2) translateY(-100%);
    }
}

@keyframes steamZubaan {
    0% {
        transform: translateY(100%);
        opacity: 1;
    }

    100% {
        transform: translateY(-150%);
        opacity: 0;
    }
}

/* --- 2. JBD展開（セクションの起き上がり演出） --- */
.main-container section,
.main-container article {
    opacity: 0;
    transform: translateY(30px) rotateX(-20deg);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-container section.show,
.main-container article.show {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* --- 3. 作品タイトル & ギャラリー --- */
.detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.detail-header h1 {
    font-size: 2.2rem;
    color: var(--usn-navy);
    margin-bottom: 1rem;
}

.tips {
    display: inline-block;
    background: var(--usn-navy);
    color: var(--usn-gold);
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    border-radius: 20px;
}

.mission-log-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 5rem;
}

.photo-card {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.3s;
}

.photo-card:hover {
    transform: scale(1.03) rotate(1deg);
    border-color: var(--usn-gold);
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-card span {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
    font-family: monospace;
}

/* --- 4. 読み物エリア --- */
.column-untiku {
    background: #f9f9f9;
    padding: 3rem;
    border-left: 5px solid var(--usn-gold);
    margin-bottom: 5rem;
    line-height: 2;
}

.column-untiku h2 {
    font-family: 'Sawarabi Mincho', serif;
    margin-bottom: 1.5rem;
}

/* --- 5. ミッションコントロール（官能のフッター） --- */
.mission-controls {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 6rem 0;
    border-top: 2px solid rgba(197, 160, 89, 0.3);
    background: linear-gradient(to bottom, transparent, #001122);
}

.control-item {
    text-align: center;
}

.call-sign {
    display: block;
    color: var(--usn-gold);
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--usn-gold);
    animation: breathing 2s infinite alternate;
}

@keyframes breathing {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.btn-footer {
    position: relative;
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--usn-gold);
    overflow: hidden;
    z-index: 1;
}

/* 回るレーダー */
.btn-footer::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--usn-gold), transparent 30%);
    animation: radarRotate 3s linear infinite;
    z-index: -2;
}

@keyframes radarRotate {
    100% {
        transform: rotate(360deg);
    }
}

.btn-footer::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: #002244;
    z-index: -1;
    transition: 0.3s;
}

.btn-footer:hover::after {
    background: var(--usn-gold);
}

.btn-footer:hover {
    color: #000;
    box-shadow: 0 0 30px var(--usn-gold);
}

/* 色分け：左（アンバー）と右（シアン） */
.control-item:first-child .btn-footer:hover {
    box-shadow: 0 0 40px #ffaa00;
}

.control-item:last-child .btn-footer:hover {
    box-shadow: 0 0 40px #00d2ff;
}

/* --- 6. 衝撃個別演出（Gの受肉） --- */
/* 着艦衝撃（ドスン！ガコン！） */
.landing-impact {
    animation: landingG 0.6s ease-in-out forwards;
}

@keyframes landingG {
    0% {
        transform: translateY(0);
    }

    10% {
        transform: translateY(30px) scaleY(0.8);
    }

    30% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(5px) rotate(1deg);
    }

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

/* 発艦衝撃（ドカン！急上昇！） */
.launch-impact {
    animation: launchG 0.8s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

@keyframes launchG {
    0% {
        transform: translateX(0) scale(1);
    }

    20% {
        transform: translateX(5px) rotate(-2deg);
        filter: blur(1px);
    }

    40% {
        transform: translateX(-30px) scale(1.1) skewX(5deg);
        filter: brightness(1.5);
    }

    60% {
        transform: translateY(-120px) rotate(-10deg);
        opacity: 0.5;
    }

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

/* --- 7. オーバーレイ --- */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}

#overlay-img {
    max-width: 90%;
    max-height: 80vh;
    border: 5px solid #fff;
}

.close-btn {
    color: #fff;
    cursor: pointer;
    margin-top: 1rem;
    display: block;
    font-weight: bold;
}

/* --- 8. カタパルト射出演出：がコンッ！（Gemini Integration） --- */
/* ボタンクリック時の画面ブレ */
.launching {
    animation: shake-deck 0.4s ease-out;
}

@keyframes shake-deck {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-5px, -5px) rotate(-1deg);
    }

    20% {
        transform: translate(5px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(-5px, 5px) rotate(0deg);
    }

    40% {
        transform: translate(5px, -5px) rotate(1deg);
    }

    50% {
        transform: translate(-2px, 2px) rotate(-1deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* 射出ボタンの白煙噴射（::beforeのレーダーを詳細度で上書きするナリ！） */
/* ellipse at 50% 100% = ボタン底辺中央を起点に、逆V字で吹き上がるナリ */
.btn-launch.steaming::before {
    background: radial-gradient(ellipse at 50% 100%,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.5) 35%,
            transparent 70%);
    animation: steamPuff 0.5s ease-out forwards;
    transform-origin: center bottom;
    z-index: 1;
}

@keyframes steamPuff {
    0% {
        transform: scaleX(0.4) scaleY(0.1);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    100% {
        transform: scaleX(2.5) scaleY(3.5) translateY(-15%);
        opacity: 0;
    }
}

@media (max-width: 750px) {
    .mission-controls {
        flex-direction: column;
        gap: 3rem;
    }
}