:root {
    --bg: #faf9f7;
    --fg: #0f0f0f;
    --space: 4.6rem;
    --logo: "Sawarabi Mincho", serif;
    --sans: "Inter", sans-serif;
}

/* ===============================
   HEADER（元の見た目そのまま）
=============================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 2rem var(--space);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 249, 247, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--logo);
    font-weight: 400;
    letter-spacing: 0.12em;
    font-size: 1.7rem;
    line-height: 1.5;
    position: relative;
    top: 2px;
}

/* ===============================
   GLOBAL NAV（PCデザイン）
=============================== */

nav.global-nav {
    display: flex;
    align-items: center;
}

nav.global-nav a {
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--fg);
    margin-left: 1.8rem;
    display: inline-block;
    position: relative;
    overflow: visible;
    font-family: var(--sans);
}

/* ===============================
   GLOBAL NAV — アニメーション
=============================== */

.global-nav a span {
    display: inline-block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .38s ease, transform .38s ease;
    will-change: opacity, transform;
}

/* hover 時：ふわっと消える */
nav.global-nav a:hover span {
    opacity: 0;
    transform: translateY(6px);
}

/* JS付与：全部落とす */
.global-nav a.hovering span {
    opacity: 0;
    transform: translateY(8px);
    transition-duration: .28s;
}

/* JS付与：1文字ずつ復活 */
.global-nav a.hovering span.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition:
        opacity .45s ease,
        transform .45s cubic-bezier(.25, .8, .25, 1);
}

/* ===============================
   MOBILE — ハンバーガー表示
=============================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;

    position: fixed;
    top: 1.5rem;
    right: 1.9rem;

    width: 44px;
    height: 44px;
    z-index: 101;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--fg);
    transition: transform 0.28s ease, opacity 0.22s ease, top 0.28s ease;
    position: absolute;
    left: 10px;
    transform-origin: center;
}

.menu-toggle .bar-top {
    top: 12px;
}

.menu-toggle .bar-mid {
    top: 20px;
}

.menu-toggle .bar-bottom {
    top: 28px;
}

/* 開いた時の ✕ 変形 */
.menu-toggle[aria-expanded="true"] .bar-top {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar-mid {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .bar-bottom {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===============================
   MOBILE — ナビ展開
=============================== */

@media (max-width: 768px) {
    :root {
        --space: 1.9rem;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem var(--space);
    }

    .logo {
        white-space: normal;
        display: flex;
        flex-direction: column;
        line-height: 1.3;
        gap: 0.15rem;
    }

    .logo::after {
        font-family: var(--logo);
        opacity: 0.9;
        font-size: 1.25rem;
        margin-top: -0.2rem;
    }

    .menu-toggle {
        display: block;
        position: relative;
        top: 0;
        right: 0;
    }

    nav.global-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 90;
        background: var(--bg);
        padding-top: 80px;

        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }

    body.menu-open nav.global-nav {
        display: flex;
    }

    nav.global-nav a {
        margin: 0;
        padding: 1rem 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 80%;
        text-align: center;
    }
}

a {
    text-decoration: none;
    color: #000;
}