:root {
    --ink: #1c1612;
    --muted: #6f6258;
    --paper: #f3eee7;
    --card: #fffdfb;
    --line: #e6dacd;
    --brick: #8a3a2c;
    --gold: #c4a574;
    --night: #14110f;
    --cream: #f7f1e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 480px at 10% -10%, rgba(196, 165, 116, 0.16), transparent 60%),
        var(--paper);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.75;
    overflow-x: hidden;
}
a { color: var(--brick); }
img { max-width: 100%; display: block; }
h1, h2, h3 {
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.04em;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }

.top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    padding: 0.9rem 6vw;
    background: rgba(20, 17, 15, 0.92);
    color: var(--cream);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(196, 165, 116, 0.35);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}
.brand img {
    width: 48px;
    height: 48px;
}
.brand span span { display: block; font-family: "Noto Serif TC", serif; font-size: 1.35rem; letter-spacing: 0.14em; }
.brand small { color: var(--gold); letter-spacing: 0.28em; font-size: 0.72rem; }
.top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff4d2, var(--gold), transparent);
    background-size: 200% 100%;
    animation: sheen 5.5s linear infinite;
}
.menu {
    display: none;
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid rgba(196, 165, 116, 0.7);
    background: transparent;
    color: var(--cream);
    letter-spacing: 0.16em;
    font: inherit;
}
.top nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.2rem; }
.top nav a {
    position: relative;
    color: var(--cream);
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.top nav a::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.35rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}
.top nav a.on::after,
.top nav a:hover::after { transform: scaleX(1); }

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 78vh;
    background: var(--night);
    color: var(--cream);
    overflow: hidden;
}
.hero-photo { position: relative; overflow: hidden; min-height: 320px; }
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: drift 18s ease-in-out infinite alternate;
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 17, 15, 0.15), rgba(20, 17, 15, 0.45));
}
.hero-copy { padding: 10vh 6vw; align-self: center; position: relative; }
.hero-copy::before {
    content: "";
    position: absolute;
    inset: 12% -20% auto;
    height: 140px;
    background: linear-gradient(100deg, transparent, rgba(255, 236, 196, 0.16), transparent);
    transform: translateX(-60%);
    animation: sweep 7s ease-in-out infinite;
    pointer-events: none;
}
.hero h1 {
    background: linear-gradient(100deg, #fffaf2 20%, #f2d7a2 45%, #fffaf2 70%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 8s linear infinite;
}
.hero-copy > * { animation: rise 0.9s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.36s; }
.eyebrow {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
}
.hero .eyebrow { color: var(--gold); }
.hero p { color: #eadfD2; max-width: 38rem; }
.rule {
    width: 72px;
    height: 1px;
    background: var(--gold);
    margin: 0 0 1.1rem;
    animation: grow 1s ease both;
}
.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.4rem;
    padding: 0.6rem 1.3rem;
    background: transparent;
    color: var(--cream);
    text-decoration: none;
    border: 1px solid var(--gold);
    letter-spacing: 0.12em;
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.button:hover { background: var(--gold); color: var(--night); transform: translateY(-2px); }
.band .button { color: var(--cream); }

.wrap { width: min(1100px, calc(100% - 10vw)); margin: 0 auto; padding: 4.2rem 0; }
.page h1 { margin-top: 0.2rem; }
.lead { font-size: 1.12rem; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cards article, .jobs li, .welfare li {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1.35rem 1.4rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.cards article::before, .jobs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--gold), #fff4d2);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s ease;
}
.cards article::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    left: -50%;
    background: linear-gradient(90deg, transparent, rgba(255, 244, 210, 0.45), transparent);
    transform: skewX(-18deg);
    transition: left 0.7s ease;
    pointer-events: none;
}
.cards article:hover::after { left: 120%; }
.cards article:hover, .jobs li:hover, .gallery figure:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(36, 24, 16, 0.08);
}
.cards article:hover::before, .jobs li:hover::before { transform: scaleY(1); }
.index {
    display: block;
    color: var(--gold);
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}
.band { background: var(--night); color: var(--cream); position: relative; }
.band a { color: var(--gold); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery figure {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.gallery img { height: 260px; width: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { padding: 0.75rem 0.95rem; letter-spacing: 0.08em; }
.jobs, .welfare { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.welfare { grid-template-columns: 1fr 1fr; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.facts div {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1rem 1.1rem;
}
.facts dt { color: var(--muted); letter-spacing: 0.14em; font-size: 0.82rem; }
.facts dd { margin: 0.25rem 0 0; }
.map { width: 100%; height: min(68vh, 520px); border: 0; background: white; margin-top: 1.2rem; }
.foot {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: end;
    padding: 2.2rem 6vw 2.6rem;
    background: var(--night);
    color: #d9cbbd;
    border-top: 1px solid rgba(196, 165, 116, 0.28);
}
.foot a { color: var(--gold); }
.foot p { margin: 0.15rem 0; }
.copy { color: #9c8d80; }

.reveal {
    opacity: 0;
    transform: translateY(28px);
}
.reveal.show { animation: rise 0.8s ease forwards; }

@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}
@keyframes drift {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
@keyframes grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes sheen {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
@keyframes sweep {
    0%, 55% { transform: translateX(-70%); opacity: 0; }
    70% { opacity: 1; }
    100% { transform: translateX(80%); opacity: 0; }
}

@media (max-width: 900px) {
    .brand img { width: 40px; height: 40px; }
    .menu { display: inline-flex; align-items: center; }
    .top nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        padding: 0.4rem 6vw 1rem;
        background: rgba(20, 17, 15, 0.97);
        border-bottom: 1px solid rgba(196, 165, 116, 0.35);
    }
    .top.open nav { display: flex; }
    .top nav a { width: 100%; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-photo { height: 46vh; }
    .hero-copy { padding: 2.2rem 6vw 2.8rem; }
    .cards, .welfare, .facts, .gallery { grid-template-columns: 1fr; }
    .foot { flex-direction: column; align-items: start; }
}

@media (min-width: 640px) and (max-width: 900px) {
    .gallery { grid-template-columns: 1fr 1fr; }
    .cards { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}
