body {
    font-family: 'Hachi Maru Pop', 'LINE SEED JP', sans-serif;
    /* text-shadow: 1px 1px 1px rgb(0, 0, 0, 0.7), 2px 1px 0px rgb(255, 121, 193); */
    background-color: #0a0a0a;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden
}

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

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



.char-fade {
    animation: charFade 1.2s ease-out forwards
}

.site-brand {
    overflow: visible
}

.site-brand .logo {
    display: none;
    height: 6rem;
    width: auto;
    max-width: none;
    object-fit: contain;
    position: relative;
    z-index: 30;
}

body.has-logo .site-brand .logo {
    display: inline-block;
    height: 10rem;
    width: auto;
    max-width: none;
    object-fit: contain;
    position: relative;
    z-index: 30;
}

@media (min-width:1024px) {

    /* constrain logo to its column (left half) at large screens */
    .site-brand .logo {
        height: auto
    }

    body.has-logo .site-brand .logo {
        height: auto
    }

    .site-brand .logo,
    body.has-logo .site-brand .logo {
        max-width: 100%;
        height: auto;
        max-height: 22rem
    }
}

body.has-logo .site-brand .text-title {
    display: none;
}

#fixed-web-png {
    position: absolute;
    top: -20vw;
    left: -5vw;
    z-index: 5;
    pointer-events: none;
    max-width: 64vw;
    max-height: 64vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.3;
    transform: rotate(30deg);
    transform-origin: 0 0;
    transition: opacity .2s, transform .2s
}

.screenshot-wrap {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth
}

.screenshot-wrap img {
    scroll-snap-align: center;
    flex: 0 0 auto
}

.scrollbar-hide::-webkit-scrollbar {
    display: none
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none
}

.character-img {
    filter: drop-shadow(0 12px 24px rgba(255, 255, 255, 0.08)) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.08));
    -webkit-filter: drop-shadow(0 12px 24px rgba(255, 255, 255, 0.08)) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.08));
    position: relative;
    z-index: 10
}

/* Mobile-only character (placed above buttons) */
.mobile-character {
    display: none;
    width: 90%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    margin: 0 auto 1rem
}

@media (max-width:1024px) {
    .mobile-character {
        display: block
    }

    .character-img {
        display: none
    }
}

a {
    cursor: pointer;
    animation: transform 0.3s ease
}

a:hover {
    transform: translateY(-2px)
}

.screenshot-wrap.scrollbar-hide {
    -ms-overflow-style: auto;
    scrollbar-width: auto;
}

.screenshot-wrap.scrollbar-hide::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.screenshot-wrap::-webkit-scrollbar {
    height: 6px;
}

.screenshot-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
}

.screenshot-wrap::-webkit-scrollbar-track {
    background: transparent;
}

@media (pointer: fine) {
    .screenshot-wrap.scrollbar-hide::-webkit-scrollbar {
        display: block;
        height: 12px;
    }

    .screenshot-wrap::-webkit-scrollbar {
        height: 12px;
    }
}

button,
a,
p,
footer {
    font-family: 'LINE SEED JP';
    text-shadow: none;
}

@media (min-width: 1024px) {
    .char-fade {
        animation-name: charFadePC;
        transform-origin: top center;
    }
}

@keyframes charFadePC {
    from {
        opacity: 0;
        transform: scale(1.7) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1.7) translateY(-20px);
    }
}

.mobile-logo {
    display: none;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: none;
    z-index: 0;
}

@media (max-width: 1023px) {

    /* Hide original visual logo on mobile */
    body.has-logo .site-brand .logo {
        display: none;
    }

    /* Adjust main section layout for mobile flow */
    section.min-h-screen {
        flex-direction: column !important;
        justify-content: flex-start;
        padding-top: 0;
    }

    /* Show mobile independent logo - Natural Flow */
    body.has-logo .mobile-logo {
        display: block;
        position: relative;
        /* Flow naturally */
        margin: 0 auto;
        width: min(92vw, 620px);
        max-width: 92vw;
        height: auto !important;
        padding: 0;
        box-sizing: content-box;
        object-fit: contain;
        flex: 0 0 auto;
        align-self: center;
        z-index: 10;
    }

    .hero-grid {
        /* Content follows the image */
        width: 100%;
        padding-top: 0.5rem;
        padding-bottom: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Hide the PC h1/logo since we have the full mobile image */
    .hero-grid h1 {
        display: none;
    }
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-family: 'LINE SEED JP', sans-serif;
    pointer-events: none;
    opacity: 0.8;
}

.scroll-indicator span {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    animation: arrowBounce 2s infinite;
}

@keyframes arrowBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    40% {
        transform: translateY(-10px) rotate(45deg);
    }

    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Preloader: hide page content until main character image is ready */
body.preload {
    overflow: hidden;
}

body.preload .preloader {
    display: flex;
}

.preloader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #201526 0%, #120918 100%);
    color: #efe7f4;
    z-index: 9999;
    font-family: 'LINE SEED JP', sans-serif;
    font-size: 1rem;
    opacity: 1;
    visibility: visible;
}

/* When preload class is on body, hide everything except the preloader overlay */
body.preload > *:not(.preloader) {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms ease, visibility 500ms ease;
}

/* Ensure main page content transitions when preload is removed */
body > *:not(.preloader) {
    transition: opacity 500ms ease, visibility 500ms ease;
}

/* Preloader inner visuals */
.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preloader-logo {
    width: 400px;
    max-width: 60vw;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
    transform-origin: center;
    animation: preloader-bounce 3000ms infinite ease-in-out;
}

@keyframes preloader-bounce {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

.spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.spinner span {
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255,255,255,0.08);
    border-top-color: rgb(255,140,200);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.preloader-text {
    color: #eaeaea;
    font-family: 'LINE SEED JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Fade children (logo, spinner, text) with the preloader */
.preloader-inner > * {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 500ms ease, transform 500ms ease;
}
.preloader--hide .preloader-inner > * {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

/* Fade-out when hiding */
.preloader {
    transition: opacity 500ms ease, visibility 500ms ease;
}
.preloader--hide { opacity: 0; visibility: hidden; }

/* Larger logo & spinner on desktop */
@media (min-width: 1024px) {
    .preloader-logo { width: 400px; max-width: 50vw; }
    .spinner { width: 64px; height: 64px; }
    .spinner span { border-width: 6px; }
    .preloader-text { font-size: 1.05rem; }
}