/* Shared foundation */
:root {
    --paper: #f4f2ec;
    --ink: #30362e;
    --olive: #374033;
    --muted: #74776d;
    --line: #d5d6cc;
    --accent: #a79777;
    --gutter: clamp(24px, 6vw, 116px);
    --serif: Georgia, 'Noto Serif TC', 'PMingLiU', serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, 'Microsoft JhengHei', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    font-weight: 700;
}

h1, h2 {
    font-family: var(--serif);
    letter-spacing: .06em;
    line-height: 1.5;
}

h1 {
    font-size: clamp(32px, 4vw, 64px);
}

h2 {
    font-size: clamp(27px, 2.6vw, 43px);
}

h3 {
    font-size: 21px;
    line-height: 1.6;
}

p {
    margin-bottom: 1.3em;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #ad7749;
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 100;
    padding: 12px;
    background: white;
}

.skip-link:focus {
    top: 10px;
}

.site-header {
    height: 102px;
    padding: 0 3.4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--paper);
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand img {
    width: 200px;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
}






#site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.6vw, 28px);
    font-size: 15px;
    letter-spacing: .05em;
}

#site-nav > a {
    position: relative;
    white-space: nowrap;
}

#site-nav > a:not(.nav-phone)::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--olive);
    transition: width .25s;
}

#site-nav > a:hover::after, #site-nav > a[aria-current]::after {
    width: 100%;
}

.nav-phone {
    border: 1px solid var(--line);
    padding: 8px 14px;
    font-size: 15px;
}

.menu-toggle {
    display: none;
}

.section-pad {
    padding: 105px var(--gutter);
}

.eyebrow {
    font-size: 13px;
    letter-spacing: .2em;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 22px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 45px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    font-size: 13px;
    letter-spacing: .08em;
}

.text-link span, .button span {
    transition: transform .25s;
}

.text-link:hover span, .button:hover span {
    transform: translate(3px, -3px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 205px;
    gap: 44px;
    border: 1px solid currentColor;
    padding: 15px 24px;
    font-size: 13px;
    letter-spacing: .1em;
    transition: background .25s, color .25s;
}

.button.light {
    color: #fff;
}

.button.light:hover {
    background: #fff;
    color: var(--ink);
}

.button.dark {
    color: white;
    background: var(--olive);
    border-color: var(--olive);
}

.button.dark:hover {
    background: #525d48;
}

.page-hero {
    padding: 35px var(--gutter) 76px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #53594c;
    background: #343c32;
    color: #fffdf5;
    isolation: isolate;
}

.page-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 52%;
    z-index: -2;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(26, 33, 26, .84), rgba(26, 33, 26, .64) 65%, rgba(26, 33, 26, .48));
    z-index: -1;
}

.page-hero .breadcrumb,
.page-hero .eyebrow {
    color: #ece8dc;
}

.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.page-hero h1 {
    max-width: 1050px;
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.page-hero .intro {
    color: #ece8dc;
    font-size: 16px;
    position: relative;
    z-index: 1;
    margin: 0;
}

.hero-index {
    position: absolute;
    right: 5vw;
    bottom: -85px;
    font: 270px var(--serif);
    color: rgba(255, 253, 245, .12);
    pointer-events: none;
}

.case-grid, .service-grid, .news-grid, .three-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.image-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.image-link img {
    aspect-ratio: 1.4;
    object-fit: cover;
    transition: transform .7s;
}

.image-link:hover img {
    transform: scale(1.035);
}

.image-arrow {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    background: var(--paper);
    display: grid;
    place-items: center;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin: 22px 0 12px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .1em;
}

.case-card h3 {
    font-size: 19px;
}

.case-card h3 a:hover, .news-card h3 a:hover {
    color: #867452;
}

.service-card img {
    aspect-ratio: .97;
    transition: filter .3s;
}

.service-card:hover img {
    filter: brightness(.88);
}

.service-card-copy {
    padding: 28px 0;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.service-card-copy .eyebrow {
    font-size: 13px;
}

.service-card h3 {
    font-size: 23px;
    margin: 15px 0 10px;
}

.service-card p {
    font-size: 13px;
    padding-right: 38px;
    color: var(--muted);
    margin: 0;
}

.round-arrow {
    position: absolute;
    right: 0;
    bottom: 27px;
    font-size: 23px;
}

.news-card img {
    aspect-ratio: 1.5;
}

.news-card .eyebrow {
    margin: 23px 0 16px;
    color: var(--muted);
}

.news-card h3 {
    font-size: 21px;
}

.news-card > p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
}

.news-card .text-link {
    border-color: var(--line);
}

.contact-band {
    padding: 76px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    color: #f6f5ee;
    background-color: var(--olive);
    background-image: linear-gradient(100deg, rgba(40, 51, 38, .9), rgba(40, 51, 38, .77)), url('../images/case/06.jpg');
    background-size: cover;
    background-position: center 57%;
    background-repeat: no-repeat;
}

.contact-band h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 47px);
}

.contact-band .eyebrow {
    color: #c7c9bc;
}

.site-footer {
    padding: 64px var(--gutter) 25px;
    background: #252d28;
    color: #f0eee4;
}

.footer-top, .footer-bottom, .footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid #596054;
    align-items: center;
}

.footer-name {
    font-size: 21px;
    font-family: var(--serif);
    margin-bottom: 12px;
    letter-spacing: .08em;
}

.footer-top .eyebrow {
    margin-bottom: 0;
    font-size: 13px;
}

.footer-tel {
    font: clamp(23px, 3vw, 42px) var(--serif);
}

.footer-tel span {
    margin-left: 30px;
}

.footer-bottom {
    padding: 32px 0;
    font-size: 13px;
}

.footer-bottom nav {
    display: flex;
    gap: 23px;
    flex-wrap: wrap;
    align-content: flex-start;
    font-size: 15px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    padding-top: 20px;
    border-top: 1px solid #596054;
    color: #c4cbbd;
    align-items: center;
}

.footer-legal small {
    font-size: 13px;
    letter-spacing: .04em;
}

.back-top {
    font-size: 22px;
}

.detail-banner {
    padding: 45px var(--gutter) 0;
}

.detail-banner img {
    aspect-ratio: 2.15;
    max-height: 750px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 1.65fr;
    gap: 10vw;
}

.article-layout aside h2 {
    font-size: 31px;
}

.article-layout aside p {
    font-size: 14px;
    color: var(--muted);
}

.article-copy > section {
    padding-bottom: 37px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 130px;
}

.article-copy h2 {
    font-size: 28px;
}

.article-copy p {
    color: #5d6359;
    line-height: 2.2;
}

.info-note, .disclosure {
    font-size: 13px;
    color: var(--muted);
    border-left: 2px solid var(--accent);
    padding: 15px 22px;
    background: #eeeee6;
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 0 var(--gutter) 70px;
}

@media (min-width: 1700px) {
    body {
        font-size: 17px;
    }

    .section-pad {
        padding-top: 130px;
        padding-bottom: 130px;
    }

}

@media (max-width: 1280px) {
    .nav-phone {
        display: none;
    }

    #site-nav {
        gap: 22px;
    }


.case-grid, .service-grid, .news-grid {
        gap: 24px;
    }

}

@media (max-width: 1050px) {
    .site-header {
        height: 80px;
        padding: 0 24px;
    }

    .brand img {
        width: 180px;
        height: auto;
    }


.brand-small {
        display: inline;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        border: 0;
        background: none;
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    .menu-toggle span {
        display: block;
        width: 27px;
        height: 1px;
        background: var(--ink);
        transition: transform .25s;
    }

    .menu-toggle[aria-expanded='true'] span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-toggle[aria-expanded='true'] span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    #site-nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        height: calc(100dvh - 80px);
        background: var(--paper);
        padding: 35px var(--gutter);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
    }

    #site-nav.is-open {
        display: flex;
    }

    #site-nav a {
        padding: 15px 0;
        font-size: 15px;
        border-bottom: 1px solid var(--line);
    }

    #site-nav a::after {
        display: none;
    }

    #site-nav .nav-phone {
        display: block;
        border: 0;
        font-size: 15px;
        margin-top: 20px;
    }

    .section-pad {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-grid, .news-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-card img {
        aspect-ratio: 1.6;
    }

    .news-card img {
        aspect-ratio: 1.8;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .article-layout aside {
        padding-bottom: 30px;
        border-bottom: 1px solid var(--line);
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-index {
        font-size: 190px;
        bottom: -40px;
    }

}

@media (max-width: 560px) {
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .page-hero {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .breadcrumb {
        margin-bottom: 35px;
        font-size: 13px;
    }

    .page-hero h1 {
        font-size: 31px;
    }

    .page-hero .intro {
        font-size: 14px;
    }

    .case-grid, .three-cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-band {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-name {
        font-size: 18px;
    }

    .footer-bottom nav {
        gap: 16px;
    }

    .footer-legal {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-banner {
        padding: 24px 0 0;
    }

    .detail-banner img {
        aspect-ratio: 1.3;
    }

    .detail-nav .text-link {
        gap: 15px;
        font-size: 13px;
    }

    .article-copy h2 {
        font-size: 24px;
    }


}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

}

/* Readable typography and a consistent navigation scale across every page. */
small {
    font-size: 13px;
}

.site-header {
    box-shadow: 0 5px 24px rgba(30, 34, 27, .04);
}

.button {
    min-height: 48px;
}

@media (max-width: 560px) {
    .site-header {
        padding-inline: 18px;
        gap: 10px;
    }

    .brand {
        gap: 9px;
    }


.brand-small {
        margin-left: 6px;
        letter-spacing: 0;
    }


.menu-toggle {
        flex-shrink: 0;
    }
}
