/* main {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
} */
/* section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
} */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background-color: transparent;
}
::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: lightgray;
}

/* 共用 */
section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}
section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.content {
    margin: 30px 0;
}
.title {
    margin-bottom: 5vh;
}
.title h2 {
    margin-bottom: 8px;
    text-align: center;
    font-size: 2.5rem;
}
.title p {
    text-align: center;
    font-size: 1.2rem;
}
@media screen and (max-width: 768px) {
    .title h2 {
        font-size: 2rem;
    }
}
@media screen and (max-width: 480px) {
    .title h2 {
        font-size: 1.5rem;
    }
    .title p {
        text-align: center;
        font-size: 1.1rem;
    }
}
.carousel {
    position: relative;
    /* overflow-x: hidden; */
    outline: 1px solid red;
}
.carousel ul {
    position: relative;
}
.carousel li {
    outline: 1px solid red;
    cursor: pointer;
}
.carousel .prev {
    position: absolute;
    top: calc(50% - 20px);
    left: -20px;
    width: 40px;
    aspect-ratio: 1/1;
    cursor: pointer;
    outline: 1px solid red;
}
.carousel .next {
    position: absolute;
    top: calc(50% - 20px);
    right: -20px;
    width: 40px;
    aspect-ratio: 1/1;
    cursor: pointer;
    outline: 1px solid red;
}
canvas {
    display: block;
    width: 100%;
    height: 100vh;
}

/* banner */
.banner {
    position: relative;
    overflow: hidden;
    background-color: black;
    color: white;
}
.banner .card {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.5rem;
    font-family: 'Microsoft JhengHei', sans-serif;
    cursor: pointer;
}

/* game */
.game {
    outline: 1px solid red;
}
.game ul {
    display: flex;
    flex-wrap: nowrap;
}
.game li {
    padding: 5px;
    min-width: 25%;
    aspect-ratio: 1/1;
}
.game .name {
    margin: 20px;
    padding: 0 25px;
    width: fit-content;
    outline: 1px solid red;
}
.game .describe {
    margin: 20px;
    padding: 25px;
    min-height: 150px;
    line-height: 1.5rem;
    outline: 1px solid red;
    opacity: 0;
}
@media screen and (max-width: 1024px) {
    .game li {
        min-width: 33.33%;
    }
}
@media screen and (max-width: 768px) {
    .game li {
        padding: 2.5px;
        min-width: 50%;
    }
    .game .describe {
        display: none;
    }
}
@media screen and (max-width: 480px) {
    .game li {
        padding: 1px;
        min-width: 100%;
    }
    .game .carousel .prev {
        left: 0;
    }
    .game .carousel .next {
        right: 0;
    }
    .game .describe {
        display: none;
    }
}

/* canvas */
.canvas {
    outline: 1px solid red;
}
.canvas ul {
    display: flex;
    flex-wrap: nowrap;
    aspect-ratio: calc(16 / (9 * 0.6));
}
.canvas li {
    width: 60%;
    aspect-ratio: 16/9;
    background-color: white;
}
.canvas .carousel .prev {
    display: none;
}
.canvas .carousel .next {
    display: none;
}
@media screen and (max-width: 768px) {
    .canvas ul {
        aspect-ratio: 16/9;
    }
    .canvas li {
        left: 0;
        width: 100%;
    }
    .canvas .carousel .prev {
        left: 0;
        display: block;
    }
    .canvas .carousel .next {
        right: 0;
        display: block;
    }
}

/* scroll */
.scroll {
    /* 讓sticky正常使用 */
    display: block;
    overflow: visible;
}
.scroll .screen {
    outline: 1px solid red;
}
.scroll .scroll-wrap {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    outline: 1px solid red;
}
.scroll .title {
    margin: 0;
}
.scroll a {
    font-size: 2rem;
}
.scroll .scroll-banner {
    position: relative;
    height: 200vh;
}
.scroll .scroll-banner .title h2 {
    line-height: 30vh;
}
.scroll .scroll-banner a {
    color: white;
}
.scroll .scroll-animation {
    position: relative;
    height: 400vh;
}
.scroll .scroll-animation .title {
    bottom: 100%;
    display: flex;
    justify-content: flex-end;
    height: 25vh;
    opacity: 0;
}
.scroll .scroll-animation .scroll-wrap {
    transition: all 0.2s ease-out;
}
.scroll .scroll-animation a {
    color: white;
}
.scroll .scroll-animation .test {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 50%;
    height: 100vh;
    pointer-events: none;
}
.scroll .scroll-animation p {
    color: white;
}
.scroll .scroll-horizon {
    position: relative;
    /* 事先手動填上空位 */
    height: 4125px;
    background-color: brown;
}
.scroll .scroll-horizon .screen > .title {
    display: flex;
    flex-shrink: 0;
    height: 25vh;
    transform: translateY(calc(100% + 25px));
}
.scroll .scroll-horizon .screen > .title h2 {
    margin-top: auto;
}
.scroll .scroll-horizon .screen > .horizon-by-ani {
    margin-top: 40px;
    width: 100%;
    height: 100vh;
    transform: translateX(100%)
}
.scroll .scroll-horizon .wrap {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
}
.scroll .scroll-horizon .item {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100%;
}
.scroll .scroll-horizon .wrap .frame {
    width: 100%;
    height: 80%;
    outline: blue 1px solid;
}
.scroll .scroll-horizon .wrap .title {
    margin-top: 20px;
}
.scroll .scroll-mandatory {
    position: relative;
    height: 200vh;
}
.scroll .scroll-mandatory a {
    color: black;
}

/* animation */
.animation {
    outline: 1px solid red;
}
.animation ul {
    display: flex;
    flex-wrap: nowrap;
}
.animation .wrap {
    min-width: 33.33%;
}
.animation li {
    width: 100%;
    aspect-ratio: 16/9;
}
.animation .content {
    padding-bottom: 80px;
}
.animation .carousel .prev {
    top: auto;
    bottom: -80px;
    left: calc(50% - 100px);
    width: 60px;
}
.animation .carousel .next {
    top: auto;
    bottom: -80px;
    right: calc(50% - 100px);
    width: 60px;
}

/* menu */
.menu {
    outline: 1px solid red;
}
.menu .content {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    height: 80vh;
    max-height: calc(100vh - 60px);
}
.menu .title {
    flex-shrink: 0;
}
.menu .title h2 {
    margin: 30px 0;
}
.menu .honeycomb {
    outline: 1px solid red;
    flex: 1;
}
.menu .honeycomb ul {
    scale: 1;
}
.menu .honeycomb li {
    background-color: goldenrod;
    opacity: 0.75;
}
.menu .describe {
    margin-left: 20px;
    outline: 1px solid red;
    flex: 1;
}
.menu .describe li {
    margin: 10px;
    list-style: disc;
}
@media screen and (max-width: 768px) {
    .menu .content {
        flex-direction: column;
        width: 100%;
    }
    .menu .honeycomb {
        flex: 1;
        height: 0;
    }
    .menu .honeycomb li {
        opacity: 1;
    }
    .menu .describe li {
        display: none;
    }
}
@media screen and (min-width: 769px) {
    .menu .content {
        width: 688px;
    }
    .menu .title {
        display: flex;
        flex-direction: column;
        margin: 0;
        margin-right: 40px;
        width: 180px;
    }
}
@media screen and (min-width: 1025px) {
    .menu .content {
        width: 944px;
    }
}

/* carousel */
#carousel {
    outline: 1px solid red;
}
#carousel ul {
    display: flex;
    flex-wrap: nowrap;
}
#carousel li {
    min-width: 33.33%;
    aspect-ratio: 1/1;
}
@media screen and (max-width: 480px) {
    #carousel li {
        min-width: 100%;
    }
    #carousel .carousel .prev {
        left: 0;
    }
    #carousel .carousel .next {
        right: 0;
    }
}

/* web */
.web {
    outline: 1px solid red;
}
.web ul {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}
.web li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: white;
}
.web iframe {
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    scale: calc(1/1.5);
    border: none;
    transition: all 0.5s;
}
.web .carousel .prev {
    top: 45%;
    left: 0;
    width: auto;
    height: 15%;
}
.web .carousel .next {
    top: 45%;
    right: 0;
    width: auto;
    height: 15%;
}
.web .carousel .goto {
    position: absolute;
    top: 0;
    right: 0;
    height: 15%;
    aspect-ratio: 1/1;
    cursor: pointer;
    outline: 1px solid red;
}
.web .carousel .zoom {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 15%;
    aspect-ratio: 1/1;
    cursor: pointer;
    outline: 1px solid red;
}

/* 1280up */
@media screen and (min-width: 1280px) {
    /* sidebar */
}