body {
    font-family: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
    color: #fff;
    overflow-x: hidden;
}

/* --- Intro Animation --- */

#intro {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 1s ease;
}

.intro-logo span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    color: #fff;
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    letter-spacing: 0.18em;
    transition: all 0.25s ease;
}

.intro-logo span.show {
    opacity: 1;
    transform: translateY(0);
}

.intro-copy-group {
    text-align: center;
    margin-top: 1.4rem;
}

.intro-main {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(10px);
    color: #fff;
    animation: fadeInMain 1.2s ease forwards 0.4s;
}

.intro-sub {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: #ddd;
    margin-top: 0.4rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInSub 1.2s ease forwards 1.1s;
}

@keyframes fadeInMain {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSub {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#intro.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* --- Hero --- */

header.hero {
    height: 85vh;
    min-height: 700px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

header.hero.fade-in {
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4em;
    letter-spacing: 0.12em;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.8rem;
}

.hero-content .intro-main {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: #fff;
    animation: fadeInMain 1.3s ease forwards 0.4s;
}

.hero-content .intro-sub {
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: #e5e5e5;
    animation: fadeInSub 1.3s ease forwards 1s;
}

/* --- Navigation --- */

.nav {
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 20;
}

.logo {
    font-weight: bold;
    letter-spacing: 0.08em;
    font-size: 1.2rem;
}

/* 中央のリンク部分 */

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex: 1;
    text-align: center;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.nav-links li a:hover {
    opacity: 0.8;
}

/* 右端エリア（マイページ＋ハンバーガー） */

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Login Button --- */

.login-btn {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
}

/* --- Hamburger --- */

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.menu-toggle span {
    display: block;
    background: #fff;
    height: 2px;
    width: 22px;
    margin: 4px 0;
    transition: all 0.3s ease;
    transform-origin: center center;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

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

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -10px);
}

/* --- Responsive --- */

@media (max-width: 900px) {
    .nav {
        justify-content: space-between;
        padding: 0 1.2rem;
    }
    .logo {
        font-size: 1.2rem;
        position: relative;
    }
    /* スマホ時の右側配置（マイページ＋メニュー） */
    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    .login-btn {
        display: inline-block;
        padding: 0.35rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 9999px;
    }
    .menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        z-index: 1000000;
    }
    /* フルスクリーンメニュー */
    .nav-links {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(0, 0, 0, 0.95);
        opacity: 0;
        pointer-events: none;
        transform: scale(1.05);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
        gap: 1px;
    }
    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }
    .nav-links li {
        margin: 1.4rem 0;
    }
    .nav-links li a {
        font-size: 1.1rem;
    }
    .hero-content h1 {
        font-size: 2.6rem;
    }
}
