@font-face {
    font-family: "Noto Serif TC";
    src: url("../fonts/NotoSerifTC.ttf") format("truetype");
    font-style: normal;
}

:root {
    --color-primary: #79553d;
    --color-secondary: #c19a6b;
    --color-h2: #3d2b1f;
}

body {
    font-family: "Noto Serif TC";
    color: #000;
    letter-spacing: 1px;
    font-weight: 400;
    text-align: justify;
    text-align-last: left;
    line-height: 2;
}

li {
    display: flex;
    align-items: center;
}

a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.divider {
    width: 90vw;
    max-width: 1200px;
    height: 1px;
    background-color: #eee;
    border: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100vw;
    margin: 70px 0 0 0;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 100px 0;
}

/* ---------- rootpage header ---------- */
header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    position: fixed;
    z-index: 1000;
    font-size: 14px;
    background: #fff;
    box-shadow: 1px 1px 10px rgba(51, 51, 51, 0.125);
}

.nav__desktop {
    width: 90%;
    max-width: 1200px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.nav__desktop ul {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

.nav__desktop ul li {
    transition: 0.6s;
}

.nav__desktop ul li:hover {
}

.nav__desktop ul:first-of-type {
    width: 30%;
    justify-content: flex-start;
}

.nav__desktop ul:last-of-type {
    width: 30%;
    justify-content: flex-end;
}

.nav__desktop-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
    height: 100%;
}

.nav__desktop-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav__desktop-logo img {
    height: 50px;
}

.nav__responsive {
    display: none;
}

@media (max-width: 1024px) {
    .nav__desktop {
        display: none;
    }

    .nav__responsive {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        width: 100%;
    }

    .nav__responsive-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 70px;
        width: 90%;
    }

    .nav__responsive-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav__responsive-logo a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .nav__responsive-logo img {
        height: 50px;
    }

    .nav__responsive-dropmenu {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        width: 80%;
        padding: 40px 0 60px 0;
        gap: 10px;
    }

    .nav__responsive-menutoggle {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}

/* ---------- rootpage banner ---------- */
#rootpage .banner {
    width: 100vw;
    min-width: 100vw;
    height: auto;
    display: flex;
    align-items: start;
    justify-content: center;
    background: #fbf8f0;
    border-bottom: 1px solid #eee;
}

#rootpage .banner__container {
    width: 100vw;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

#rootpage .banner__image {
    width: 100vw;
    height: 100%;
    overflow: hidden;
}

#rootpage .banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#rootpage .banner__content {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 40vw;
    height: 100%;
    color: #444;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    padding: 50px 5%;
}

#rootpage .banner__content p {
    margin: 30px 0;
}

#rootpage .banner__content-cta {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 30px;
    padding: 10px 30px;
    margin: 20px 0 0 0;
    border-radius: 5px;
    color: #fff;
    background: var(--color-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    #rootpage .banner__container {
        width: 100vw;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        flex-wrap: nowrap;
    }

    #rootpage .banner__image {
        width: 100vw;
        height: 500px;
        overflow: hidden;
    }

    #rootpage .banner__image img {
        width: 100%;
        height: 500px;
        object-fit: cover;
        object-position: center;
    }

    #rootpage .banner__content {
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: center;
        width: 90vw;
        height: 100%;
        color: #444;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
        padding: 50px 5%;
    }
}

/* ---------- 通用 chapter 容器 ---------- */
.chapter__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    max-width: 1200px;
    gap: 10%;
}

.chapter__content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapter__img {
    display: flex;
    align-items: center;
    justify-content: start;
}

.chapter__img img {
    width: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.chapter__text {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.chapter__text h4 {
    color: var(--color-primary);
}

.chapter__text h2 {
    font-weight: 600;
    margin: 30px 0 0 0;
    color: var(--color-h2);
}

.chapter__text p {
    margin: 15px 0;
}

/* ---------- .mediatext--right-image ---------- */
.mediatext--right-image .chapter__container {
    flex-direction: row-reverse;
}

.mediatext--right-image .chapter__cta {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 30px;
    padding: 10px 30px;
    margin: 20px 0 0 0;
    border-radius: 5px;
    background: var(--color-secondary);
    border: 1px solid #fff;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------- .mediatext--bg-image ---------- */
.mediatext--bg-image .chapter__container {
    position: relative;
    height: 700px;
}

.mediatext--bg-image .chapter__content {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    padding: 30px;
    background: #00000010;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.mediatext--bg-image .chapter__img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.mediatext--bg-image .chapter__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mediatext--bg-image .chapter__text h4 {
    color: #fff;
    text-shadow: none;
}

.mediatext--bg-image .chapter__cta {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 30px;
    padding: 10px 30px;
    margin: 20px 0 0 0;
    border-radius: 5px;
    border: 1px solid #fff;
    color: #fff;
    background: #efefef10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ---------- RWD ---------- */
@media (max-width: 768px) {
    .chapter__container {
        flex-direction: column;
        align-items: center;
        justify-content: start;
        gap: 60px;
    }
    .mediatext--right-image .chapter__container {
        flex-direction: column;
    }
    .mediatext--bg-image {
        width: 100vw;
    }

    .mediatext--bg-image .chapter__img {
        border-radius: 0px;
    }
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0 0 10px 0;
    font-size: 14px;
    width: 100%;
    margin: 100px 0 0 0;
    background: #fff;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    width: 90vw;
    max-width: 1200px;
    margin: 60px 0 0 0;
}

.footer__box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1 1 calc(33% - 20px);
    min-width: 200px;
    gap: 10px;
    padding: 20px 0;
    border-radius: 4px;
    box-sizing: border-box;
}

.footer__box h4 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.footer__box h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-h2);
}

.footer__copyright {
    text-align: center;
    font-size: 12px;
    color: #333;
    margin-top: 20px;
}

.footer__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 80px 0;
}

@media (max-width: 1024px) {
    .footer__box {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .footer__box {
        flex: 1 1 100%;
    }
}

/* ---------- pages banner ---------- */
.pages .banner {
    width: 100vw;
}

.pages .banner__container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10%;
    position: relative;
}

.pages .banner__content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 30px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pages .banner__img {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.pages .banner__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pages .banner__text {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.pages .banner__text h4 {
    font-family: "Simonetta";
    color: #fff;
}

.pages .banner__text h2 {
    font-weight: 600;
    margin: 30px 0 0 0;
}

.pages .banner__text p {
    margin: 30px 0;
}

.pages .banner__cta {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 30px;
    padding: 10px 30px;
    margin: 20px 0 0 0;
    border-radius: 5px;
    border: 1px solid #fff;
    color: #fff;
    background: #efefef10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
