/* ==========================================================================
   top-extra.css : 全画面ヒーロー / SPACE セクション / QUEST セクション
   top.css の後に読み込む。既存クラスは変更せず、新規クラスのみ定義。
   ========================================================================== */

html { scroll-behavior: smooth; }
#about, #space, #quest, #vrm-editor, #top-links { scroll-margin-top: 88px; }

/* ---------- 全画面ヒーロー ---------- */
.hero-intro.hero-full {
    min-height: calc(100svh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 56px;
    position: relative;
}

.hero-full-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-full-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 7vh, 72px) 0;
    container-type: inline-size;
    animation: heroRise 0.9s var(--ease-cyber) both;
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--neon-pink);
    text-transform: uppercase;
    margin-bottom: clamp(10px, 2vh, 22px);
}

.hero-title-block {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 0.88;
    text-align: center;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}

.hero-title-reco {
    display: block;
    font-size: min(34cqw, 46svh);
    opacity: 0.85;
    color: var(--text-pure);
    text-shadow: 0 0 60px rgba(255, 31, 143, 0.45), 0 4px 40px rgba(0, 0, 0, 0.7);
}

.hero-title-re { color: var(--neon-pink); }

.hero-title-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.28em;
    margin-top: 0.12em;
    font-size: min(11.5cqw, 15.5svh);
}

.hero-title-x {
    color: var(--neon-pink);
    text-shadow: 0 0 24px var(--neon-pink-glow);
}

.hero-title-club {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-pure);
    text-shadow: none;
}

.hero-title-sisters {
    background: linear-gradient(100deg, #ec519e 0%, var(--neon-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 31, 143, 0.4));
}

.hero-line {
    width: min(360px, 60%);
    height: 3px;
    margin: clamp(18px, 3.5vh, 34px) 0 clamp(14px, 2.5vh, 24px);
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan), transparent);
    box-shadow: 0 0 14px var(--neon-pink-glow);
    transform-origin: left;
    animation: heroLine 1.1s 0.3s var(--ease-cyber) both;
}

@keyframes heroLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.hero-info {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}

.hero-sub {
    font-family: var(--font-mono);
    font-size: clamp(0.72rem, 1.6vw, 0.9rem);
    letter-spacing: 0.2em;
    color: var(--neon-pink);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-full .hero-desc {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.hero-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(20px, 4vh, 36px);
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease-cyber);
}

.hero-btn:hover {
    transform: translateY(-3px);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 22px var(--neon-cyan-glow);
}

.hero-btn.is-primary {
    background: rgba(255, 31, 143, 0.28);
    border-color: var(--neon-pink);
    box-shadow: 0 0 18px var(--neon-pink-glow);
}

.hero-btn.is-primary:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 30px var(--neon-pink);
}

.hero-scroll-cue {
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -0.6em;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    animation: cueBob 2.2s ease-in-out infinite;
}

@keyframes cueBob {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------- SPACE / QUEST 共通セクション ---------- */
.feature-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
}

.feature-layout.is-reverse .feature-visual { order: -1; }

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.8;
}

.feature-text strong { color: var(--text-pure); }

.feature-flow {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--neon-cyan);
}

.feature-flow .flow-arrow { color: var(--neon-pink); }

.feature-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #050008;
}

.visual-chip {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-pure);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.visual-chip.chip-tl { top: 12px; left: 12px; }
.visual-chip.chip-br { bottom: 12px; right: 12px; }
.visual-chip.chip-bl { bottom: 12px; left: 12px; }
.visual-chip .pulse-dot { background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }

/* ---------- SPACE のビジュアル(CSSのみ) ---------- */
.space-visual {
    background:
        radial-gradient(ellipse at 50% 38%, rgba(255, 31, 143, 0.28), transparent 62%),
        linear-gradient(180deg, #08000f 0%, #12001a 55%, #000 100%);
}

.space-beam {
    position: absolute;
    top: -6%;
    width: 22%;
    height: 78%;
    background: linear-gradient(180deg, rgba(255, 31, 143, 0.6), transparent 85%);
    clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
    mix-blend-mode: screen;
    transform-origin: 50% 0;
    animation: beamSway 6s ease-in-out infinite;
}

.space-beam.b1 { left: 8%;  animation-delay: -1s; }
.space-beam.b2 { left: 39%; animation-delay: -3s; background: linear-gradient(180deg, rgba(0, 240, 255, 0.55), transparent 85%); }
.space-beam.b3 { left: 70%; animation-delay: -5s; }

@keyframes beamSway {
    0%, 100% { transform: rotate(-14deg); }
    50%      { transform: rotate(14deg); }
}

.space-floor {
    position: absolute;
    left: -50%;
    width: 200%;
    bottom: 0;
    height: 52%;
    background-image:
        linear-gradient(rgba(255, 31, 143, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 31, 143, 0.55) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(260px) rotateX(62deg);
    transform-origin: 50% 100%;
    animation: floorRun 3s linear infinite;
    -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
    mask-image: linear-gradient(to top, #000 30%, transparent 100%);
}

@keyframes floorRun {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 56px, 0 0; }
}

.space-eq {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 46%;
    height: 22%;
    display: flex;
    align-items: flex-end;
    gap: 1.6%;
    z-index: 3;
}

.space-eq i {
    flex: 1;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    transform-origin: bottom;
    animation: eqBar 1.1s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.19s);
}

@keyframes eqBar {
    0%, 100% { transform: scaleY(0.12); }
    50%      { transform: scaleY(1); }
}

.space-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- QUEST のビジュアル(公開済みの背景を使用) ---------- */
.quest-visual {
    background: rgba(0, 0, 0, 0.85);
    container-type: inline-size;
}

.quest-fan-word {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -3%;
    z-index: 5;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 26cqw;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.2);
    mix-blend-mode: difference;
    pointer-events: none;
    white-space: nowrap;
}

/* タイトル画面と同じ「カード見本」の扇形 */
.qcard {
    container-type: inline-size;
    position: absolute;
    z-index: 2;
    top: 8%;
    height: 84%;
    aspect-ratio: 5 / 7;
    margin: 0;
    background: #e7e7e3;
    color: #18191b;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.qcard-left  { left: 9%;  top: 15%; height: 72%; transform: rotate(-13deg); }
.qcard-right { right: 9%; top: 15%; height: 72%; transform: rotate(13deg); }
.qcard-front { left: 50%; z-index: 3; transform: translateX(-50%) rotate(-2deg); }

.qcard img {
    position: absolute;
    left: -5%;
    top: 0;
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: 50% 0%;
}

.qcard-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--line);
}

.qcard figcaption {
    position: absolute;
    left: 7%;
    bottom: 4.6%;
    padding: 1.3cqw 1.8cqw 0.7cqw;
    background: #e7e7e3;
    box-shadow: -0.6cqw 0.6cqw 0 var(--line);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 7.6cqw;
    line-height: 1.1;
    letter-spacing: 0.35cqw;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
    .feature-layout { grid-template-columns: 1fr; }
    .feature-layout.is-reverse .feature-visual { order: 0; }
    .hero-scroll-cue { display: none; }
    .hero-title-club { -webkit-text-stroke-width: 1.5px; }
}

/* ---------- ナビ: ABOUT の下に展開するサブメニュー ---------- */
.nav-links > li { position: relative; }

.nav-caret {
    margin-left: 5px;
    font-size: 0.6rem;
    opacity: 0.7;
}

.nav-sub {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 190px;
    display: none;
    flex-direction: column;
    gap: 2px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* ホバーでメニューまでマウスを動かす間に消えないための橋渡し */
.nav-sub::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.nav-has-sub:hover > .nav-sub,
.nav-has-sub:focus-within > .nav-sub {
    display: flex;
}

.nav-sub a {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-sub a:hover {
    color: #ffffff;
    background: rgba(255, 31, 143, 0.15);
}

/* スマホ: ドロワー内の折りたたみ */
.mobile-sub summary {
    list-style: none;
    cursor: pointer;
}

.mobile-sub summary::-webkit-details-marker { display: none; }

.mobile-sub-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 0 8px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 31, 143, 0.4);
}

.mobile-sub-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-pure);
}

@media (max-width: 768px) {
    /* 項目が増えて展開しても切れないようにする(閉じているときの高さは変わらない) */
    .nav-mobile-drawer.active {
        max-height: 85vh;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-full-main, .hero-line, .hero-scroll-cue,
    .space-beam, .space-floor, .space-eq i { animation: none; }
    .space-eq i { transform: scaleY(0.6); }
}

/* LIVE 表示(SYS.ONLINE の置き換え。top-live.js が .is-live を付け外しする)
   既定は OFF AIR(灰色・点滅なし)。LIVE のときだけマゼンタで点が点滅する */
.status-pill.live-badge {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(125, 101, 119, 0.45);
    color: var(--text-muted);
    white-space: nowrap;
}
.status-pill.live-badge .pulse-dot {
    background-color: var(--text-muted);
    box-shadow: none;
    animation: none;
}
.status-pill.live-badge.is-live {
    background: rgba(255, 31, 143, 0.14);
    border-color: rgba(255, 31, 143, 0.7);
    color: #ff4fa6;
    font-weight: 700;
}
.status-pill.live-badge.is-live .pulse-dot {
    background-color: var(--neon-pink);
    box-shadow: 0 0 8px var(--neon-pink);
    animation: pulse 1.4s infinite;
}
@media (max-width: 480px) {
    .hud-status { flex-wrap: wrap; row-gap: 8px; }
    .status-pill.live-badge { padding: 5px 11px; letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) {
    .status-pill.live-badge.is-live .pulse-dot { animation: none; }
}
