/* =========================
   Reset
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: #444;
    background: #fff;

    font-family:
        "Noto Sans TC",
        "Microsoft JhengHei",
        "PingFang TC",
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}


/* =========================
   共用
========================= */

.content-container {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
}


/* =========================
   Header
========================= */

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: #fff;

    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    width: min(100% - 48px, 1280px);
    min-height: 100px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================
   Logo
========================= */

.site-logo {
    display: block;

    flex-shrink: 0;

    text-decoration: none;
}

.site-logo img {
    display: block;

    width: auto;
    max-width: 220px;
    max-height: 72px;
}


/* =========================
   Navigation
========================= */

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.menu {
    display: flex;
    align-items: center;

    gap: 2px;
}

.menu > li {
    position: relative;
}

.menu-parent {
    display: flex;
    align-items: center;
}

.main-nav a {
    display: block;

    padding: 15px 12px;

    color: #555;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #111;
    background: #f7f7f7;
}


/* =========================
   Submenu
========================= */

.submenu {
    display: none;

    position: absolute;

    top: 100%;
    left: 0;

    min-width: 210px;

    padding: 8px 0 !important;

    background: #fff;

    border: 1px solid #e5e5e5;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.08);

    z-index: 1100;
}

.submenu li {
    position: relative;
}

.submenu a {
    padding: 10px 18px;

    font-size: 15px;
}

.submenu-level3 {
    top: 0;
    left: 100%;
}


/* Desktop hover */

@media (min-width: 901px) {

    .has-submenu:hover > .submenu {
        display: block;
    }

    .has-submenu:focus-within > .submenu {
        display: block;
    }

}


/* =========================
   Submenu button
========================= */

.submenu-button {
    display: none;
}


/* =========================
   Hamburger
========================= */

.menu-button {
    display: none;

    width: 44px;
    height: 44px;

    padding: 8px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 26px;
    height: 2px;

    margin: 6px auto;

    background: #444;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* 開啟狀態 */

.menu-button.is-open span:nth-child(1) {
    transform:
        translateY(8px)
        rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform:
        translateY(-8px)
        rotate(-45deg);
}


/* =========================
   Hero
========================= */

.hero {
    width: min(100% - 48px, 1180px);
    margin: 0 auto;
    padding: 45px 0 35px;
}

.hero-image-wrap {
    position: relative;

    width: 100%;
    height: 300px;

    overflow: hidden;
}

/* Hero 圖片 */
.hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    /*
       稍微放大圖片，
       避免 blur 之後四周出現白邊
    */
    transform: scale(1.04);

    /* 模糊效果 */
    filter: blur(4px);
}

/* 淡淡的暗色遮罩，讓白字比較清楚 */
.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.16);

    z-index: 1;
}

/* 疊在圖片中央的文字 */
.hero-title {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 90%;

    padding: 0;

    transform: translate(-50%, -50%);

    text-align: center;

    z-index: 2;
}

.hero h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 400;

    line-height: 1.5;

    letter-spacing: 0.25em;

    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.english-name {
    margin: 10px 0 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 16px;

    letter-spacing: 0.06em;

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* =========================
   Quick links
========================= */

.quick-links {
    width: min(100% - 48px, 900px);

    margin: 0 auto;

    padding: 20px 0 70px;

    text-align: center;
}

.quick-links a {
    display: inline-block;

    margin: 5px 10px;

    color: #555;

    text-decoration: none;
}

.quick-links a:hover,
.quick-links a:focus-visible {
    text-decoration: underline;
}

.quick-links span {
    color: #bbb;
}


/* =========================
   Contact
========================= */

.contact-section {
    padding: 60px 0 70px;

    border-top: 1px solid #e5e5e5;

    text-align: center;
}

.contact-section h2 {
    margin: 0 0 15px;

    font-size: 28px;
    font-weight: 400;

    letter-spacing: 0.15em;
}

.contact-section p {
    margin: 0 0 25px;

    color: #666;
}

.contact-button {
    display: inline-block;

    padding: 10px 28px;

    border: 1px solid #555;

    color: #444;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
    color: #fff;
    background: #444;
}


/* =========================
   Footer
========================= */

.site-footer {
    padding: 50px 20px;

    color: #777;

    background: #f5f5f5;

    text-align: center;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.site-footer p {
    margin: 3px 0;
}

.footer-name {
    color: #555;
    font-size: 16px;
}

.copyright {
    margin-top: 18px !important;

    font-size: 12px;
}


/* =========================
   Tablet / Mobile
========================= */

@media (max-width: 900px) {

    .header-inner {
        width: 100%;
        min-height: 78px;

        padding: 10px 20px;

        flex-wrap: wrap;

        gap: 0;
    }

    /* Logo */

    .site-logo img {
        max-width: 180px;
        max-height: 58px;
    }


    /* Hamburger */

    .menu-button {
        display: block;

        margin-left: auto;
    }


    /* Navigation */

    .main-nav {
        display: none;

        width: 100%;

        margin: 10px 0 0;
    }

    .main-nav.is-open {
        display: block;
    }

    .menu {
        display: block;

        width: 100%;

        border-top: 1px solid #eee;
    }

    .menu > li {
        width: 100%;

        border-bottom: 1px solid #eee;
    }

    .menu-parent {
        width: 100%;
    }

    .menu-parent > a {
        flex: 1;
    }

    .main-nav a {
        padding: 12px 8px;

        white-space: normal;
    }


    /* 子選單按鈕 */

    .submenu-button {
        display: block;

        width: 46px;
        height: 46px;

        flex-shrink: 0;

        border: 0;

        background: transparent;

        color: #555;

        font-size: 22px;

        cursor: pointer;
    }


    /* Mobile submenu */

    .submenu {
        display: none;

        position: static;

        width: 100%;
        min-width: 0;

        padding: 0 0 5px 18px !important;

        border: 0;

        border-top: 1px solid #f0f0f0;

        box-shadow: none;

        background: #fafafa;
    }

    .has-submenu.submenu-open > .submenu {
        display: block;
    }

    .submenu-level3 {
        padding-left: 20px !important;

        background: #f5f5f5;
    }


    /* Hero */

    .hero {
        width: 100%;

        padding: 20px 0 30px;
    }

    .hero-title {
        padding: 30px 20px 5px;
    }

    .hero h1 {
        font-size: 26px;

        letter-spacing: 0.15em;
    }

    .english-name {
        font-size: 16px;
    }


    /* Quick links */

    .quick-links {
        width: 100%;

        padding: 20px 20px 50px;
    }

    .quick-links span {
        display: none;
    }

    .quick-links a {
        display: block;

        margin: 8px 0;
    }
	.hero-image-wrap {
        height: 260px;
    }

    .hero h1 {
        font-size: 25px;
        letter-spacing: 0.15em;
    }

    .english-name {
        font-size: 14px;
    }

}


/* =========================
   Small mobile
========================= */

@media (max-width: 480px) {

    .header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .site-logo img {
        max-width: 150px;
    }

    .hero h1 {
        font-size: 23px;
        letter-spacing: 0.1em;
    }

    .english-name {
        font-size: 14px;
    }
    .hero-image-wrap {
        height: 220px;
    }

    .hero h1 {
        font-size: 21px;
        letter-spacing: 0.1em;
    }

    .english-name {
        font-size: 13px;
    }
}