/* Base Styles */
:root {
    --bg-color: #ffffff;
    --text-main: #0d1117;
    --accent-blue: #584ccc;
    --accent-purple: #db00c1;
    --accent-orange: #ffaa00;
    --accent-lime: #89eb00;
    --gray: #ededed;
    --section-padding-x: calc(100vw * 0.05);
    --section-padding-y: clamp(3rem, 8vw, 6rem);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 6px;
    --shadow-card: 0 10px 30px rgba(13, 17, 23, 0.08);
    --shadow-pop: 0 14px 30px rgba(0, 86, 255, 0.18);
    --header-h: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'ヒラギノ角ゴ ProN W3', 'Meiryo', 'メイリオ', sans-serif;
    font-weight: normal;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.8;
}

h1,
h2,
h3 {
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
}

p {
    font-weight: 700;
    font-size: 1.1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* First View - Features Seamless Background */
.fv-block {
    /* background-color: #2B3A49;*/
    background-image: url('../../images/event/roblox/bg.svg');
    background-size: 500px auto;
    background-position: center top;
    background-repeat: repeat;
}

@media screen and (min-width: 769px) {
    .fv-block {
        background-size: 800px auto;
    }
}



/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    overflow: hidden;
    /* background-color: #000; */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(353deg, #1938cb, #2898ff);*/
    /*background-color: #2B3A49;*/
    background-size: cover;
    background-position: center center;
    transform: scale(1.2);
    will-change: transform;
}

.scroll-cue {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
}

.scroll-cue span {
    writing-mode: vertical-rl;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.scroll-cue::after {
    content: '';
    width: 1px;
    height: 40px;
    background: #fff;
    animation: scroll-cue-move 1.6s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scroll-cue-move {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    40% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1) translateY(40px);
        opacity: 0;
    }
}

.hero-text-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 80vh;
    object-fit: contain;
    will-change: transform;
    z-index: 2;
}

/* Info Banner (Location & Time) */
.info-banner-wrap {
    padding: 4rem 0;
    position: relative;
}

.info-banner-mat {
    margin: 4rem 0;
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    bottom: 4px;
    transform: skewY(-3deg);
    z-index: 1;
}

.info-banner {
    background-color: #fff;
    padding: 3rem 0.75rem;
    transform: skewY(-3deg);
    margin: 0;
    position: relative;
    z-index: 2;
    clip-path: inset(50% 0);
    transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: clip-path;
    box-shadow: var(--shadow-card);
}

@media screen and (min-width: 769px) {
    .info-banner {
        padding: 7rem 1rem;
    }
}

.info-banner.is-open {
    clip-path: inset(0% 0);
}

.info-inner {
    transform: skewY(3deg);
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media screen and (min-width: 361px) {
    .info-inner {
        gap: 2rem;
    }
}

.info-block {
    width: 100%;
}

.info-lines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em 0.5em;
}

.info-line {
    flex: 0 0 100%;
    white-space: nowrap;
    box-sizing: border-box;
}


ul.info-lines .info-line {
    flex: 0 0 calc(50% - 0.25em);
    border: 2px solid var(--text-main);
    border-radius: var(--radius-sm);
    padding: 0.15em 0.6em;
}

/*
@media screen and (min-width: 769px) {
    ul.info-lines .info-line {
        flex: 0 0 calc(33.333% - 0.34em);
    }
}
*/

.info-line .dow {
    font-size: 0.7em;
}

.info-line-small {
    font-size: 0.6em;
}

.info-block h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    border-bottom: 4px solid var(--accent-purple);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.2rem;
}

@media screen and (min-width: 361px) {
    .info-block h2 {
        font-size: 1.5rem;
    }
}

.info-block p,
.info-block .info-lines {
    color: var(--text-main);
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    font-weight: 900;
    margin: 0;
}

.info-block .info-lines {
    margin-bottom: 1rem;
}


@media screen and (min-width: 769px) {

    .info-block p,
    .info-block .info-lines {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
}

/* Features Section */
.features,
.point {
    /* background: #2B3A49; */
    padding: 4rem 1rem;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 300px;
    background: #fff;
    transform: skewY(-3deg);
    z-index: -1;
}

.point::before {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 300px;

    background: #fff;
    /*
    background-image: url('../../images/event/roblox/bg-test2.png');
    background-size: 10px auto;
    background-position: center top;
    background-repeat: repeat;
*/
    transform: skewY(-3deg);
    z-index: -1;
}






.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-main);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 1.2rem;
}

.features .section-title,
.point .section-title {
    color: #fff;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}


.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1600px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2.5rem;
    counter-reset: feature-count;
}

.feature-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    counter-increment: feature-count;
}

.feature-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.feature-item:first-child img {
    filter: brightness(1.2) contrast(0.8);
}


.feature-item::before {
    content: counter(feature-count, decimal-leading-zero);
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    font-size: 2.5rem;
    font-family: 'Barlow', sans-serif;
    color: var(--accent-blue);
    opacity: 0.15;
    line-height: 1;
    z-index: 1;
}

.feature-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.feature-item h3 {
    font-size: 1.4rem;

    color: #fff;
    background: var(--accent-purple);

    padding: 0.5rem 1rem 0.3rem;
    margin-bottom: 1rem;
    min-height: 4rem;
}


@media screen and (min-width: 769px) {

    .features,
    .point {
        padding: 4rem 2rem;
    }
}



/* Split Layouts (Roblox & AI) */
.split-block {
    max-width: 1600px;
    margin: auto;
    padding: 0 0 4rem;
}

.split-row {
    display: flex;
    flex-wrap: wrap;
    /* background: var(--gray); */
}

.split-row.reverse {
    /* background: var(--gray); */
}

@media screen and (min-width: 769px) {
    .split-row.reverse {
        flex-direction: row-reverse;
    }
}

.split-image,
.split-content {
    flex: 1 1 500px;
    background-color: #fff;
}

.split-image {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/*
.split-image::before {
    content: 'IMAGE';
}
*/

.split-image.roblox-studio {
    background-image: url('../../images/event/roblox/about-roblox-studio.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.split-image.ai-usage{
     background-image: url('../../images/event/roblox/OAI_OpenAI-Blossom_White.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


.split-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media screen and (min-width: 769px) {
    .split-content {
        padding: 4rem;
    }
}

.split-content h2 {
    display: inline;
    align-self: flex-start;
    font-size: 1.8rem;
    color: #fff;
    background: var(--accent-purple);
    padding: 0.1em 0.3em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    margin-bottom: 1.2rem;
}

/* Video Placeholder */
.video-placeholder {
    max-width: 1200px;
    margin: 0 auto 3rem;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.responsive-yt iframe {
    width: 100%;
    height: 100%;
}

/* Floating Banner */
.floating-banner {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    z-index: 60;
    width: min(80%, 420px);
    height: 7rem;
    border-radius: 999px;
    background: var(--accent-lime);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-banner.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.floating-banner-icon {
    width: 6rem;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.floating-banner-break {
    display: none;
}

@media screen and (max-width: 768px) {
    .floating-banner-break {
        display: inline;
    }

    .floating-banner {
        text-align: left;
    }
}

/* Flow + Overview (PC時は横並び) */
@media screen and (min-width: 769px) {
    .flow-overview {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: center;
        gap: 4rem;
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .flow-overview .flow,
    .flow-overview .overview {
        padding: 0;
        flex: 1 1 0;
        margin: var(--section-padding-y) 0 0;
    }

    .flow-overview .map {
        flex: 1 1 100%;
        width: 100%;
        margin: 0;
    }
}

/* Flow Section */
.flow {
    max-width: 800px;
    margin: var(--section-padding-y) auto;
    padding: 0 var(--section-padding-x);
}

.flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.2rem 1.5rem;
}

.flow-item:not(:last-child)::after {
    content: '▼';
    position: absolute;
    left: 1.7rem;
    bottom: -1.7rem;
    color: var(--accent-blue);
    opacity: 0.4;
    font-size: 0.9rem;
}

.flow-number {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
}

.flow-item p {
    margin: 0;
    font-size: 1.2rem;
}

/* CTA Section */
.cta {
    position: relative;
    padding: 5rem var(--section-padding-x);
    text-align: center;


    background-image: url('../../images/event/roblox/bg-cta.svg');
    background-size: 500px auto;
    background-position: center top;
    background-repeat: repeat;


    z-index: 1;
    margin-top: 4rem;
}

@media screen and (min-width: 769px) {
    .cta {
        background-size: 800px auto;
    }

    .sp-only {
        display: none;
    }
}


.cta h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
    color: var(--text-main);
    ;
    margin-bottom: 4rem;
    /* text-shadow: 2px 2px 10px #fff; */
    padding: 0 0 0 0.6em;
}

.cta p {
    font-size: 1.5rem;
    color: var(--text-main);
    ;
    margin-bottom: 3rem;
    /* text-shadow: 2px 2px 5px #fff; */
    line-height: 1.2;
}

.prize-block {
    position: relative;
    display: inline-block;
    padding-top: clamp(15rem, 20vw, 20rem);
}

.prize-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: clamp(15rem, 20vw, 20rem);
    height: clamp(15rem, 20vw, 20rem);
    background-image: url('../../images/event/roblox/prize.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(-50%);
}

.prize-block p {
    position: relative;
    z-index: 1;
}

.btn-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media screen and (min-width: 769px) {
    .cta p {
        font-size: 2rem;
    }

    .btn-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        max-width: 760px;
        margin: 0 auto;
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    min-height: 7rem;
    background: var(--accent-lime);
    color: #000000;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    letter-spacing: 0.05em;
    box-sizing: border-box;
}

.btn-sub {
    font-size: 0.7em;
}

.btn:hover {
    transform: translateY(3px) scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Make Item */
.make-item {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    background: #fff;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.make-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.make-title {
    display: inline;
    font-size: 1.8rem;

    color: #fff;
    background: var(--accent-purple);

    padding: 0.1em 0.5em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    margin-bottom: 1.2rem;
}

.make-desc {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-main);
}

/* Overview Section */
.overview {
    max-width: 700px;
    margin: var(--section-padding-y) auto;
    padding: 0 var(--section-padding-x);
    background: none;
}

.overview-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.overview-row {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.2rem 1.5rem;
    background: #fff;
}

.overview-row:nth-child(even) {
    background: var(--gray);
}

.overview-row dt {
    color: var(--accent-blue);
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
    min-width: 5em;
}

.overview-row dd {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

/* Hero Image Parallax */
.hero-img-wrap {
    position: relative;
    overflow: hidden;
    height: 60svh;
    /* background-color: #2B3A49; */
}

.hero-img-wrap .hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1);
    will-change: transform, opacity;
    transition: opacity 0.6s ease;
}

.hero-img-wrap .hero-img#heroImg2 {
    opacity: 0;
}

/* Map Section */
.map {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-note {
    text-align: center;
    margin-top: 1rem;
    color: #000000;
    font-size: 1rem;
}

.map iframe {
    width: 100%;
    height: 450px;
}

/* Landscape */
@media (orientation: landscape) {
    /*
    .hero-bg {
        background-image: url('images/hero-bg-ls.png');
    }
    */
}

/* Scroll Fade-in */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
}

.feature-list .fade-in:nth-child(2) {
    transition-delay: 0.15s;
}

.feature-list .fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.flow-list .fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.flow-list .fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.flow-list .fade-in:nth-child(4) {
    transition-delay: 0.3s;
}