/* =========================================
   TIALA.art — Global Navigation Style
   Minimal, Silent, Poetic
========================================= */

html,
body {
    overflow-x: hidden;
    /* ← ページ全体で統一 */
}


/* ─── Header Base ─────────────────────── */
header {
    width: 100%;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    position: sticky;
    /* positioned: yes → 子のabsoluteの基準OK */
    top: 0;
    z-index: 100;
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    /* ↓ クリッピング原因を排除（メニューが隠れないように） */
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
    /* ← これを追加 */
}

/* ─── Logo ─────────────────────────────── */
header .logo {
    display: block;
    text-decoration: none;
    font-family: 'Shippori Mincho', 'Quicksand', serif;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    color: #111;
    margin-bottom: 1.2rem;
    transition: opacity 0.3s ease;
}

header .logo span {
    font-family: 'Quicksand', sans-serif;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.15em;
}

header .logo:hover {
    opacity: 0.6;
}

/* ─── Navigation ───────────────────────── */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    font-family: 'Quicksand', 'Shippori Mincho', serif;
    color: #333;
    font-size: 0.95rem;
    letter-spacing: 0.07em;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover effect (underline animation) */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: #111;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #111;
}

/* ─── Hamburger Button ─────────────────── */
/* ─── Hamburger Button ─────────────────── */
@media (max-width: 780px) {
    header {
        width: 100%;
        background: #fafafa;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2.8rem 1rem 1.4rem;
        /* 高さを全ページで統一 */
        overflow: visible;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ─ ハンバーガー位置 ─ */
    .menu-btn {
        display: flex;
        position: absolute;
        top: 50%;
        /* ← 中央揃え */
        right: 1rem;
        /* ← Contact基準（TOPでも一致） */
        transform: translateY(-50%);
        /* ← 完全中央化 */
        width: 22px;
        height: 18px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1001;
        box-sizing: border-box;
    }

    .menu-btn span {
        display: block;
        height: 2px;
        background: #222;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* ─ メニュー展開 ─ */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(250, 250, 250, 0.98);
        text-align: center;
        padding: 1.4rem 0;
        border-top: 1px solid #eee;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .nav-links.show {
        display: flex;
        animation: fadeDown 0.35s ease forwards;
    }

    .nav-links a {
        padding: 0.9rem 0;
        font-size: 1.05rem;
    }

    /* ─ ハンバーガーアニメーション ─ */
    .menu-btn.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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

    @keyframes fadeDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}