body {
    line-height: 2.2;
    letter-spacing: 0.1em;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.flip-back {
    color: var(--text-main);
    font-weight: 500;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 15px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.logo img { height: 30px; }
nav ul { display: flex; gap: 28px; }
nav a {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-main);
    perspective: 800px;
    position: relative;
    display: inline-block;
    padding: 4px 0;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}
nav a:hover::after { width: var(--hover-underline-width, 100%); }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 200;
    background: #ffffff;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: var(--floating-action-shadow);
    padding: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 999px;
    transition: all 0.4s ease;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 90%;
}

.mobile-menu a {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    letter-spacing: 0.15em;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    line-height: 1.5;
}

.mobile-menu a span.en {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 0.1em;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 5%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 4px;
}

.mobile-menu-close span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text-main);
}

.mobile-menu-close span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.mobile-menu-close span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.page-hero {
    position: relative;
    height: 40vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    margin-top: 60px;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}
.page-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}
.page-hero .en-title {
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: -15px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}
.page-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
footer {
    background-color: #fff;
    padding: 80px 0 40px;
    border-top: 1px solid #f0f0f0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}
.footer-info img {
    height: 30px;
    margin-bottom: 24px;
}
.footer-info p {
    font-size: 0.82rem;
    color: var(--text-light);
}
.footer-nav ul {
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--text-light);
    display: inline-block;
}
.footer-nav .flip-back {
    color: var(--text-light);
}
.copyright {
    text-align: center;
    font-size: 0.72rem;
    color: #ccc;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 900px) {
    header { padding: 15px 5%; }
    nav { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: flex; }
    .page-hero {
        height: 26vh;
        min-height: 220px;
        margin-top: 55px;
    }
    .page-hero .en-title {
        font-size: clamp(2.1rem, 8vw, 3.2rem);
        margin-bottom: -10px;
    }
    .page-hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        letter-spacing: 0.18em;
    }
}

@media (max-width: 600px) {
    .page-hero {
        height: 24vh;
        min-height: 190px;
    }
    .page-hero .en-title {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
        margin-bottom: -8px;
    }
    .page-hero h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.7rem);
        letter-spacing: 0.14em;
    }
}
