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

@font-face {
    font-family: "Noto Sans";
    src: url("../fonts/NotoSans-VariableFont_wdth,wght.ttf") format("truetype");
    font-style: normal;
}

:root {
    --color-primary: #091b54;
    --color-content: #030e30;
    --color-secondary: #d3b796;
}

body {
    font-family: "Noto Sans";
    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;
    height: 1px;
    background-color: #eee;
    border: none;
}

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

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90vw;
    max-width: 1200px;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100vw;
    background: #ffffff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 12px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    max-width: 1400px;
    height: 70px;
}

.header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 30%;
}

.logo__img {
    height: 40px;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.header .nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header .nav__link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.header .nav__link:hover {
    color: var(--color-primary);
}

.header__social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    gap: 2rem;
}

.header .social__link {
    color: var(--color-primary);
    transition: opacity 0.2s ease;
}

.header .social__link:hover {
    opacity: 0.7;
}

.header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.toggle__icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 1000px) {
    .header__inner {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        height: auto;
        min-height: 70px;
        padding: 15px 0;
    }

    .header__logo {
        width: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 90vw;
    }

    /* 顯示漢堡按鈕（桌機預設是 display:none） */
    .header__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 隱藏社群連結（可選） */
    .header__social {
        display: none;
    }

    /* 導覽列預設隱藏（點擊漢堡才出現） */
    .header__nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: start;
        justify-content: center;
    }

    /* 點擊漢堡展開時（由 JS 控制） */
    .header__nav.is-open {
        display: flex;
    }

    /* 導覽清單改為直式 */
    .header .nav__list {
        flex-direction: column;
        align-items: start;
        gap: 1rem;
        padding: 4rem 0;
    }

    /* 漢堡開關圖示切換 */
    .toggle__icon--close {
        display: none;
    }

    .header__toggle[aria-expanded="true"] .toggle__icon--open {
        display: none;
    }

    .header__toggle[aria-expanded="true"] .toggle__icon--close {
        display: inline;
    }
}

.homepage .banner {
    position: relative;
    width: 100vw;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/banner-1.png") center/cover no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.homepage .banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 2rem;
    width: 100%;
    max-width: 1200px;
}

.homepage .banner__content {
    padding: 70px 0 0 0;
    max-width: 700px;
}

.homepage .banner__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.homepage .banner__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.homepage .banner__button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.homepage .layout-split {
    display: flex;
    justify-content: center;
    width: 100vw;
    padding: 6rem 0;
}

.homepage .layout-split__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    gap: 4rem;
}

.homepage .layout-split__media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.homepage .layout-split__img {
    width: 100%;
    border-radius: 5px;
    height: auto;
    object-fit: contain;
}

.homepage .layout-split__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: justify;
    letter-spacing: 3px;
}

.homepage .layout-split__title {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.homepage .layout-split__text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--color-content);
}

.homepage .layout-split__button {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 60px;
    width: auto;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.homepage .layout-split--reverse .layout-split__inner {
    flex-direction: row-reverse;
}

@media (max-width: 1000px) {
    .homepage .layout-split__inner {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .homepage .layout-split--reverse .layout-split__inner {
        flex-direction: column;
    }

    .homepage .layout-split__img {
        width: 90vw;
        max-width: 500px;
    }
}

.masonry {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 0;
    letter-spacing: 3px;
    gap: 15px;
}

.masonry__header {
    width: 90vw;
    text-align: center;
    margin-bottom: 3rem;
}

.masonry__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.masonry__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.masonry__inner {
    width: 90vw;
    column-count: 4;
    column-gap: 1rem;
}

.masonry__item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.masonry__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

/* RWD */
@media (max-width: 992px) {
    .masonry__inner {
        column-count: 2;
    }
}
.footer {
    color: #fff;
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    margin-top: 100px;
    background: var(--color-primary);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap; /* 小螢幕自動換行 */
    justify-content: space-between;
    gap: 2rem; /* 控制欄位水平/垂直間距 */
    width: 90vw;
    max-width: 1200px;
    margin: 0 auto;
}

.footer__logo,
.footer__info,
.footer__nav,
.footer__social {
    flex: 1 1 auto; /* 寬度可伸縮，高度自適應 */
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 控制子元素間距 */
}

.footer__nav .nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer__nav .nav__link,
.footer__social .social__link,
.footer__info .info__item {
    text-decoration: none;
    transition: color 0.3s;
}

.footer__nav .nav__link:hover,
.footer__social .social__link:hover {
}

.footer__social {
    display: flex;
    align-items: start;
    flex-direction: row;
}

.footer__copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 150px;
    font-size: 0.8rem;
}

/* RWD 響應式 */
@media (max-width: 1000px) {
    .footer__inner {
        flex-direction: column; /* 欄位堆疊 */
        align-items: center; /* 所有欄位置中 */
        gap: 100px; /* 控制垂直間距 */
    }

    .footer__nav .nav__list {
        flex-direction: column; /* 導航項目垂直排列 */
        gap: 0.8rem;
    }

    .footer__social {
        justify-content: center;
    }
}
