@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&family=Noto+Serif+TC:wght@200;300;400;500;600;700;900&display=swap");

@font-face {
    font-family: "Lato-Light";
    src: url(../fonts/Lato-Light.ttf);
}

@font-face {
    font-family: "Lato-Regular";
    src: url(../fonts/Lato-Regular.ttf);
}

@font-face {
    font-family: "Lato-Bold";
    src: url(../fonts/Lato-Bold.ttf);
}

[data-aos="opacity-heightdown"] {
    opacity: 1;
    clip-path: inset(0% 0 100% 0);
    /* 初始状态下完全隐藏 */
}

[data-aos="opacity-heightdown"].aos-animate {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    /* 显示全部图片 */
}

[data-aos="opacity-left"] {
    opacity: 1;
    clip-path: inset(0% 100% 0 0);
    /* 初始状态下完全隐藏 */
}

[data-aos="opacity-left"].aos-animate {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    /* 显示全部图片 */
}

[data-aos="opacity-right"] {
    opacity: 1;
    clip-path: inset(0% 0 0 100%);
    /* 初始状态下完全隐藏 */
}

[data-aos="opacity-right"].aos-animate {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    /* 显示全部图片 */
}

[data-aos="opacity-x"] {
    opacity: 1;
    clip-path: inset(0% 100% 0 100%);
    /* 初始状态下完全隐藏 */
}

[data-aos="opacity-x"].aos-animate {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    /* 显示全部图片 */
}

.opacity {
    animation: opacity 2s ease 0s forwards;

}

@keyframes opacity-left {

    from {
        opacity: 0;
        clip-path: inset(0% 100% 0 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.opacity-left {
    animation: opacity-left 2s ease 0s forwards;
    animation-delay: 1s;
}

:root {}

body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    --vw-base: calc(100vw / 1920);
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

button,
input,
textarea,
select,
option {
    margin: 0;
    padding: 0;
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    border-radius: 0;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}


img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.container {
    width: 100%;
    height: auto;
    position: relative;
    /* overflow: hidden; */
    flex-shrink: 0;
}

.main1 {
    width: 100%;
    height: calc(398* var(--vw-base));
    position: relative;
    overflow: hidden;

}

.main1-bg {
    width: 100%;
    height: 100%;
    scale: 1.2;
    filter: brightness(0.5);
    animation: backgroundScale 6s ease forwards 0.6s, filterDark 3s ease .4s forwards;
}

@keyframes backgroundScale {
    from {
        scale: 1.2;
    }

    to {
        scale: 1;
    }
}

@keyframes filterDark {
    from {
        filter: brightness(0.5);
        /* 一開始加深，變暗 */
        opacity: 1;
    }

    to {
        filter: brightness(1);
        /* 回到原色 */
        opacity: 1;
    }
}

.main1-txt {
    position: absolute;
    right: calc(208* var(--vw-base));
    top: calc(127* var(--vw-base));
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation: opacity 2s ease 0s forwards;
}

.main1 h1 {
    color: #ffffff;
    font-size: calc(40* var(--vw-base));
    font-family: "Lato-Bold";
    letter-spacing: 0.2em;
    transform: translateX(calc(100* var(--vw-base)));
    animation: slideLeft 2s ease 0.3s forwards;
}

@keyframes slideLeft {
    from {
        transform: translateX(calc(100* var(--vw-base)));
    }

    to {
        transform: translateX(0);
    }
}

.main1 h2 {
    color: #ffffff;
    font-size: calc(30* var(--vw-base));
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.05em;
    transform: translateX(calc(-100* var(--vw-base)));
    animation: slideRight 1.6s ease .3s forwards;
}

@keyframes slideRight {
    from {
        transform: translateX(calc(-100* var(--vw-base)));
    }

    to {
        transform: translateX(0);
    }
}

@keyframes opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

.main2 {
    width: 100%;
    height: calc(783* var(--vw-base));
    position: relative;
    background-image: url(../img/01/bg2.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.main2 .content {
    position: absolute;
    left: calc(278* var(--vw-base));
    top: calc(178* var(--vw-base));
}

.main2 .content h1 {
    color: #000000;
    font-size: calc(25* var(--vw-base));
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.05em;
}

.main2 .content h2 {
    color: #313131;
    margin-top: calc(28* var(--vw-base));
    font-size: calc(20* var(--vw-base));
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.2em;
    line-height: calc(37.1* var(--vw-base));
    text-align: justify;
}

.main2 .content .txt1 {
    width: calc(620* var(--vw-base));
}

.main2 .content .txt2 {
    margin-top: calc(104* var(--vw-base));
    ;
    width: calc(652* var(--vw-base));
}

.main2-pic {
    position: absolute;
    right: 0;
    top: 0;
    width: calc(783* var(--vw-base));
    height: auto;
}

.main2-pic img {
    position: relative;
    top: calc(-300* var(--vw-base));
    height: auto;
    width: 100%;
}

.main3 {
    position: relative;
    width: 100%;
    height: calc(287* var(--vw-base));
    background-image: url(../img/01/bg3.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main3 .txt .en {
    color: #ff4200;
    font-size: calc(40* var(--vw-base));
    font-family: "Lato-Bold";
    letter-spacing: 0.2em;
}

.main3 .txt {
    position: relative;
    color: #313131;
    font-size: calc(30* var(--vw-base));
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.05em;
}

.main3 .redline {
    position: absolute;
    left: calc(104* var(--vw-base));
    bottom: calc(-50* var(--vw-base));
    width: calc(182* var(--vw-base));
    height: 1px;
    background-color: #ff4200;
}

.main4 {
    position: relative;
    width: 100%;
    height: calc(837* var(--vw-base));
    background-color: #ffffff;
    display: flex;

}

.main4-pic1,
.main4-pic2,
.main4-pic3 {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.main4-pic-bg {
    width: 100%;
    height: 100%;
    filter: brightness(1);
    transition: all .6s ease .2s;
}

.main4-pic-bg img {
    width: 100%;
    height: 100%;
    /* animation: backgroundScale 8s ease 0s forwards; */
    overflow: hidden;
}


.main4-pic1 {
    position: relative;

}

.main4 h1 {
    color: #ffffff;
    font-size: calc(32.5* var(--vw-base));
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.05em;
}

.main4 h2 {
    color: #ffffff;
    font-size: calc(20* var(--vw-base));
    font-family: "Noto Sans TC";
    font-weight: 300;
    letter-spacing: 0.2em;
    text-align: center;
    opacity: 0;
    transition: all .6s ease .4s;
}

.main4 .whiteLine {
    position: relative;
    margin: calc(20* var(--vw-base)) 0;
    width: calc(60* var(--vw-base));
    height: calc(1* var(--vw-base));
    background-color: #fff;
}

.main4-pic1 .txt,
.main4-pic2 .txt,
.main4-pic3 .txt {
    position: absolute;
    width: 100%;
    left: calc(0* var(--vw-base));
    top: calc(680* var(--vw-base));
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 1s ease;
}

.main4-pic:hover .txt {
    position: absolute;
    left: calc(0* var(--vw-base));
    top: calc(423* var(--vw-base));
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main4-pic:hover h2 {
    opacity: 1;
}

.main4-pic:hover .main4-pic-bg {
    filter: brightness(0.6);
}