/* 背景 */
.bg_fixed {
    position: fixed;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: var(--z_bg);
}

.bg_fixed>img {
    position: absolute;
    filter: blur(150px);
    transform: rotate(0);
}

.bg_fixed>img:nth-child(1) {
    top: -50%;
    left: -15%;
    animation: page_bg_1 28s infinite;
}

.bg_fixed>img:nth-child(2) {
    filter: blur(200px);
    bottom: 10%;
    right: -10%;
    animation: page_bg_2 28s infinite;
}

/* Banner */
.banner {
    width: 100%;
    height: 60vh;
    min-width: 250px;
    display: flex;
    align-items: center;
    position: relative;
}

.banner>.title {
    width: var(--wide_block);
    max-width: var(--wide_max);
    margin: 70px auto 0;
    color: var(--green);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.banner>.title>h2, .banner>.title>p {
    margin: 0;
}

.banner>.title>h1 {
    font-family: var(--family_Corbel);
    font-weight: 400;
    margin: 0;
    letter-spacing: 4px;
    line-height: 1;
}

.marquee_wrap {
    width: 100%;
    height: 10em;
    position: absolute;
    bottom: -2rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.marquee {
    height: 10em;
    width: 100%;
    position: relative;
    font-weight: 800;
}

.element {
    font-size: 8rem;
    line-height: 1.2;
    color: hsla(0, 0%, 100%, 0.7);
    font-weight: 800;
    font-family: var(--family_Corbel);
    position: absolute;
    z-index: var(--z_bg);
    left: 0;
    bottom: 0;
    /* animation: marquee 2s forwards linear; */
    white-space: nowrap;
}

@media screen and (max-width: 1200px) {
    .banner {
        height: 45vh;
    }
}

/* 內容 */
section.wrapper {
    width: var(--wide_block);
    max-width: var(--wide_max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
    position: relative;
}

.wrapper>.page_content {
    width: calc(100% - 20% - 1rem);
    padding: var(--section_margin) var(--page_content_padding);
    background: white;
    border-radius: var(--radius_page);
}

.wrapper>.page_content:not(:last-child) {
    margin: 0 0 var(--page_content_padding);
}

/* page nav */
.wrapper>.page_nav {
    width: 20%;
    height: max-content;
    max-height: 100vh;
    overflow: auto;
    position: sticky;
    top: 0;
    left: inset;
    flex-shrink: 0;
    z-index: var(--z_header);
}

.page_nav_ham {
    display: none;
}

.page_list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.page_list>p {
    margin: 0;
    color: var(--green);
    font-weight: 600;
}

.download .page_list>p:nth-of-type(2) {
    margin: .8rem 0 0;
}

.highlight .page_list>p {
    margin: .8rem 0 0;
}

.page_list>a {
    color: var(--gray);
    display: flex;
    align-items: flex-start;
}

.page_list>a:hover {
    color: var(--green);
}

.page_list>a>span:nth-child(1) {
    color: var(--green);
    margin: 0 .5rem 0 0;
    text-align: center;
    width: 1rem;
}

@media screen and (max-width: 912px) {
    .wrapper>.page_content {
        width:100%;
    }

    .wrapper>.page_nav {
        width: fit-content;
        height: max-content;
        position: fixed;
        top: unset;
        bottom: 1rem;
        left: 1rem;
        transform: translateY(0);
        overflow: unset;
    }

    .page_nav_ham {
        position: relative;
        display: block;
        width: 3rem;
        height: 3rem;
        background: var(--bg);
        box-shadow: var(--shadow);
        border-radius: var(--radius_3);
        cursor: pointer;
        z-index: var(--z_header_ham);
        transition: .3s;
    }

    .page_nav_ham>span {
        position: absolute;
        content: "";
        width: 4px;
        height: 4px;
        background: var(--line);
        border-radius: 50%;
        left: 50%;
        top: 50%;
        transition: .3s;
    }

    .page_nav_ham.active>span {
        width: 1.2rem;
        height: 1px;
    }

    .page_nav_ham>span:nth-child(1) {
        transform: translate(-50%, calc(-50% - 8px));
    }

    .page_nav_ham>span:nth-child(2) {
        transform: translate(-50%, calc(-50%));
        opacity: 1;
    }

    .page_nav_ham>span:nth-child(3) {
        transform: translate(-50%, calc(-50% + 8px));
    }

    .page_nav_ham.active>span:nth-child(1) {
        transform: translate(-50%, calc(-50%)) rotate(45deg);
    }

    .page_nav_ham.active>span:nth-child(2) {
        opacity: 0;
    }

    .page_nav_ham.active>span:nth-child(3) {
        transform: translate(-50%, calc(-50%)) rotate(-45deg);
    }
    
    .page_list {
        padding: 1.5rem;
        border-radius: var(--radius_3);
        position: absolute;
        z-index: var(--z_header);
        bottom: calc(100% + .2rem);
        left: 0;
        background: white;
        box-shadow: var(--shadow);
        width: max-content;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 4.2rem - 1rem);
        overflow-y: auto;
    }
}

/* 通用 */
.page_content>div:not(:last-child) {
    margin: 0 0 var(--section_margin);
}

.cate_title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}
.cate_title>h2 {
    font-family: var(--family_Corbel);
    margin: 0 1rem 0 0;
    color: var(--green);
    line-height: 1;
}

.cate_title>p {
    font-size: var(--size_p);
    color: var(--gray);
    margin: 0;
}
.groups {
    width: 100%;
    box-sizing: border-box;
}

.group:not(:last-child) {
    margin: 0 0 var(--section_margin);
}
.group>h3 {
    display: flex;
    align-items: flex-start;
    color: var(--gray);
    font-weight: 400;
    margin: 1rem 0;
    line-height: 1;
}

.group>h3>span:first-child {
    color: var(--green);
    margin: 0 .5rem 0 0;
    width: 1.5rem;
}

.group_line {
    background: url(../image/line.png) no-repeat;
    background-size: 0% 100%;
    width: 100%;
    height: 2px;
    transition: 1s;
}

.group_line.active {
    background-size: 100% 100%;
}

/* 未開放 */
.unpublished>.container {
    width: var(--narrow_block);
    max-width: var(--narrow_max);
    margin: 0 auto;
    padding: var(--section_margin) var(--page_content_padding);
    background: white;
    border-radius: var(--radius_page);
}

.unpublished>.container>h2 {
    font-family: var(--family_Corbel);
    color: var(--green);
    margin: 0 0 2rem;
}

.unpublished>.container>p {
    font-size: var(--size_p);
    color: var(--gray_dark);
}

.unpublished>.container>p>span {
    color: var(--blue);
}

.unpublished .container>a {
    width: max-content;
    background: var(--blue);
    padding: .3rem 2.15rem .3rem .35rem;
    border-radius: 50px;
    font-size: var(--size_hint);
    display: flex;
    align-items: center;
    justify-content:center;
    overflow: hidden;
    position: relative;
    transition: .3s;
    margin: 4rem auto 0;
}

.unpublished .container>a:hover {
    padding: .3rem 1.25rem;
}

.unpublished .container>a>span {
    color: white;
    transition: .3s;
    height: 1.8rem;
}

.unpublished .container>a>span:nth-child(1) {
    padding: 0 .8rem;
    display: flex;
    align-items: center;
}

.unpublished .container>a>span:nth-child(2) {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translate(0, -50%);
    background: white;
    width: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.unpublished .container>a i {
    color: var(--blue);
    font-size: var(--size_p);
    letter-spacing: 0;
} 

.unpublished .container>a:hover>span:nth-child(2) {
    transform: translate(1rem, -50%);
    opacity: 0;
}

/* 下載專區 */
.download .hint {
    width: 100%;
    color: var(--gray_dark);
    display: flex;
    align-items: baseline;
    margin: 1rem 0 0;
    line-height: 1.25;
}

.download .hint>span {
    font-family: var(--family_Corbel);
    font-size: var(--size_p);
    width: 1.4rem;
    height: 1.4rem;
    line-height: 1.3rem;
    text-align: center;
    letter-spacing: 0;
    border: 1px solid var(--gray_dark);
    border-radius: 50%;
    margin: 0 .6rem 0 0;
    flex-shrink: 0;
}

.download .tr {
    display: flex;
    align-items: first baseline;
    gap: .5rem;
    padding: 1.2rem 0;
}

.download .tr:not(:last-child) {
    border-bottom: 1px solid var(--line);
}

.download .td {
    font-size: var(--size_p);
}

.download .td:first-child {
    width: 4rem;
    /* text-align: center; */
    color: var(--blue);
    font-weight: 600;
    flex-shrink: 0;
}

.download .td:nth-child(2) {
    width: 100%;
}

.download .td:nth-child(3), .download .td:nth-child(4) {
    align-self: center;
    width: 130px;
    flex-shrink: 0;
    display: flex;
}

.download .td>p {
    line-height: 1.25;
}

.download .td:nth-child(2)>p:nth-child(1) {
    color: var(--gray_dark);
    margin: 0 0 .5rem;
}
.download .td:nth-child(2)>p:nth-child(2) {
    color: var(--gray);
    margin: 0;
}

.download .td>a {
    width: max-content;
    background: var(--blue);
    padding: .3rem 2.15rem .3rem .35rem;
    border-radius: 50px;
    font-size: var(--size_hint);
    display: flex;
    align-items: center;
    justify-content:center;
    overflow: hidden;
    position: relative;
    transition: .3s;
    margin: 0 auto;
}

.download .td>a:hover {
    padding: .3rem 1.25rem;
}

.download .td>a>span {
    color: white;
    transition: .3s;
    height: 1.8rem;
}

.download .td>a>span:nth-child(1) {
    padding: 0 .8rem;
    display: flex;
    align-items: center;
}

.download .td>a>span:nth-child(2) {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translate(0, -50%);
    background: white;
    width: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.download .td>a i {
    color: var(--blue);
    font-size: var(--size_p);
    letter-spacing: 0;
} 

.download .td>a:hover>span:nth-child(2) {
    transform: translate(1rem, -50%);
    opacity: 0;
}

@media screen and (max-width: 1200px) {
    .download .tr {
        gap: .3rem;
    }

    .download .td:first-child {
        width: 3.2rem;
    }

    .download .td:nth-child(3), .download .td:nth-child(4) {
        width: 110px;
    }
}

@media screen and (max-width: 768px) {
    .download .tr {
        flex-wrap: wrap;
        gap: .8rem;
        padding: 1.5rem 0;
        justify-content: space-between;
    }
    
    .download .tr:not(:last-child) {
        border-bottom: 1px solid var(--line);
    }
    
    .download .td {
        font-size: var(--size_p);
    }
    
    .download .td:first-child {
        width: 100%;
        text-align: start;
        color: var(--blue);
    }
    
    .download .td:nth-child(2) {
        width: 100%;
    }

    .download .td:nth-child(3),.download .td:nth-child(4) {
        width: calc(50% - .4rem);
    }

    .download .td:nth-child(4) {
        display: none;
    }

    .download .td:nth-child(4):has(a) {
        display: block;
    }

    .download .td>a {
        width: 100%;
    }
}

/* 精選重播 */
.highlight .group>h3>span {
    position: relative;
    height: var(--size_h3);
}

.highlight .group>h3>span:first-child:after {
    position: absolute;
    content:"";
    background: var(--green);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.highlight .items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4rem 2%;
    margin: var(--content_padding) 0;
}

.highlight .item {
    width: 32%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.75rem;
}

.highlight .item_content {
    width: 100%;
}

.highlight .item_content>a {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius_3);
    overflow: hidden;
    margin: 0 0 1.5rem;
}

.highlight .item_content>a>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.highlight .item_content>p {
    font-size: var(--size_p);
    line-height: 1.25;
    margin: 0;
}

.highlight .item_content>p:nth-of-type(1) {
    color: var(--gray_dark);
    margin: 0 0 .5rem;
}

.highlight .item_content>p:nth-of-type(2) {
    color: var(--gray);
}

.highlight .item_btn {
    width: 100%;
    display: flex;
    justify-content: right;
}

.highlight .item_btn>a {
    width: max-content;
    background: var(--blue);
    padding: .3rem 2.15rem .3rem .35rem;
    border-radius: 50px;
    font-size: var(--size_hint);
    display: flex;
    align-items: center;
    justify-content:center;
    overflow: hidden;
    position: relative;
    transition: .3s;
}

.highlight .item_btn>a>span {
    color: white;
    transition: .3s;
    height: 1.8rem;
}

.highlight .item_btn>a>span:nth-child(1) {
    padding: 0 .8rem;
    display: flex;
    align-items: center;
}

.highlight .item_btn>a>span:nth-child(2) {
    position: absolute;
    top: 50%;
    right: .35rem;
    transform: translate(0, -50%);
    background: white;
    width: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.highlight .item_btn>a i {
    color: var(--blue);
    font-size: var(--size_hint);
    letter-spacing: 0;
} 

.highlight .item_content>a:hover>img, .highlight .item:has(.item_btn>a:hover) .item_content>a>img{
    transform: scale(1.12);
}

.highlight .item:has(.item_content>a:hover) .item_btn>a, .highlight .item_btn>a:hover {
    padding: .3rem 1.25rem;
}

.highlight .item:has(.item_content>a:hover) .item_btn>a>span:nth-child(2), .highlight .item_btn>a:hover>span:nth-child(2) {
    transform: translate(1rem, -50%);
    opacity: 0;
}

@media screen and (max-width: 1380px) {
    .highlight .items {
        gap: 4rem 6%;
    }
    
    .highlight .item {
        width: 47%;
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .highlight .items {
        gap: 4rem 6%;
    }
    
    .highlight .item {
        width: 100%;
        gap: 1rem;
    }
}


/* 輪播尺寸 */
#lightcase-case {
    width: 72vw !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.lightcase-contentInner {
    width: 72vw !important;
    height: 45vw !important;
}

.lightcase-contentInner>iframe {
    width: 72vw !important;
    height: 45vw !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

@media screen and (max-width: 768px) {
    #lightcase-case {
        width: 80vw !important;
    }

    .lightcase-contentInner {
        width: 80vw !important;
        height: 50vw !important;
    }

    .lightcase-contentInner>iframe {
        width: 80vw !important;
        height: 50vw !important;
    }
}

@media screen and (max-width: 500px) {
    #lightcase-case {
        width: 88vw !important;
    }

    .lightcase-contentInner {
        width: 88vw !important;
        height: 55vw !important;
    }

    .lightcase-contentInner>iframe {
        width: 88vw !important;
        height: 55vw !important;
    }
}