@import url("reset.css");
@import url("layout.css");
@import url("hero-section.css");
@import url("scroll-sections.css");
@import url("gallery.css");
@import url("counter.css");
@import url("particles.css");
@import url("responsive.css");

/* ==========================================================================
   ヘッダー・ナビゲーション基本設定
   ========================================================================== */

.header {
    background: transparent;
    backdrop-filter: blur(1px);
}

.nav {
    font-size: 0.6rem;
    color: #fff;
    line-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 var(--spacing-lg, 20px);
    margin-top: 2vw;
}
.head_project {
    margin-right: 30px;
}

.nav-menu {
    margin-left: auto;
    margin-right: 20px; /* 右端から20px内側に */
}

@media (max-width: 480px) {
.scroll-indicator {
    bottom: -35% !important;
    }
    .nav {
        margin-top: 2vw;
    }
    .nav-menu a {
        font-size: 0.7rem;
    }
    .head_project {
        margin-right: 30px;
    }
}
.nav-logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-logo a,
.nav-logo .head_project {
    display: inline;
}

.nav-logo img {
    width: 55px;
    margin-right: 5px;
}

.sitename {
    font-size: 1rem;
    padding: 0 10px 0 0;
}

/* PC表示用ナビゲーションメニュー */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 1px;
    gap: var(--spacing-sm, 30px);
    align-items: center;
}
.nav-menu ul {
    width: auto;
    margin-left: 0%;
}
.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--color-secondary, #fff);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: var(--font-weight-normal, 400);
    letter-spacing: 0.05em;
    padding: var(--spacing-sm, 8px) var(--spacing-md, 12px);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

/* CTAボタン（Reservation） */
.nav-cta {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: var(--spacing-sm, 8px) var(--spacing-lg, 20px) !important;
    border-radius: 25px !important;
    font-weight: var(--font-weight-medium, 500) !important;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   ハンバーガーメニューボタン
   ========================================================================== */

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.nav-toggle:active {
    transform: scale(0.95);
}

/* ハンバーガーの線（3本線） */
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 1px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.nav-toggle span:nth-child(1) {
    top: 12px;
}

.nav-toggle span:nth-child(2) {
    top: 19px;
}

.nav-toggle span:nth-child(3) {
    top: 26px;
}

/* ×ボタンへの変形 */
.nav-toggle.is-active {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
}

.nav-toggle.is-active span {
    background: #ffffff;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.nav-toggle.is-active span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.nav-toggle.is-active span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

/* タブレット表示（1024px以下） */
@media (max-width: 1024px) {
    .nav-menu {
        gap: var(--spacing-lg, 20px);
    }
    
    .nav-menu a {
        font-size: var(--font-size-sm, 14px);
        padding: var(--spacing-xs, 4px) var(--spacing-sm, 8px);
    }
}

/* モバイル表示（768px以下） */
@media (max-width: 768px) {
    .nav {
        position: relative;
        z-index: 1003;
    }
    
    .sitename {
        font-size: 0.6rem;
    }
    
    /* ハンバーガーボタンを表示 */
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1500;
    }
    
    /* メニューを右からスライドイン */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px 40px;
        gap: 25px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1001;
        overflow-y: auto;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* メニューオープン状態 */
    .nav-menu.is-active {
        right: 0;
    }
    
    /* メニューアイテムアニメーション */
    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .nav-menu.is-active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* 段階的表示 */
    .nav-menu.is-active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.is-active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.is-active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.is-active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.is-active li:nth-child(5) { transition-delay: 0.3s; }
    
    /* モバイルメニューリンク */
    .nav-menu a {
        display: block;
        width: 75%;
        font-size: 18px;
        font-weight: 400;
        padding: 18px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
        color: #ffffff;
        transition: all 0.3s ease;
        position: relative;
        padding: 10px 26% !important;
    }
    
    .nav-menu a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.6);
        transition: width 0.3s ease;
        transform: translateY(-50%);
    }
    
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 15px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .nav-menu a:hover::before {
        width: 30px;
    }
    
    /* モバイル用CTAボタン */
    .nav-menu .nav-cta {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 12px !important;
        padding: 20px 25px !important;
        margin-top: 30px !important;
        text-align: center;
        font-weight: 500 !important;
        font-size: 16px !important;
    }
    
    .nav-menu .nav-cta:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1)) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    }
    
    /* 背景オーバーレイ */
    .nav-menu.is-active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 60vw;
        height: 77vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
        animation: fadeIn 0.4s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    /* ボディスクロール防止 */
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* 小画面（480px以下） */
@media (max-width: 480px) {
    .nav {
        padding: 0 15px;
    }
    
    .sitename {
        font-size: 0.6rem;
    }
    
    .nav-toggle {
        width: 36px;
        height: 36px;
    }
    
    .nav-toggle span {
        width: 18px;
        height: 2px;
    }
    
    .nav-toggle span:nth-child(1) {
        top: 11px;
    }
    
    .nav-toggle span:nth-child(2) {
        top: 17px;
    }
    
    .nav-toggle span:nth-child(3) {
        top: 23px;
    }
    
    .nav-toggle.is-active span:nth-child(1),
    .nav-toggle.is-active span:nth-child(3) {
        top: 17px;
    }
    
    .nav-menu {
        width: 90%;
        max-width: 280px;
        padding: 80px 25px 30px;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 15px 0;
    }
}

/* ==========================================================================
   アクセシビリティとユーザビリティ
   ========================================================================== */

/* フォーカス状態 */
.nav-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.nav-menu a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* アニメーション無効設定 */
@media (prefers-reduced-motion: reduce) {
    .nav-menu,
    .nav-menu li,
    .nav-toggle,
    .nav-toggle span,
    .nav-menu a {
        transition: none !important;
        animation: none !important;
    }
}

/* PC携帯表示用ナビゲーションメニューを右側に移動 */


.nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右に配置 */
    width: 100%;
    padding: 0 0 0 2vw;

}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    
    gap: var(--spacing-xl, 30px);
    align-items: center;
    /* margin-left: auto は不要（justify-content: space-betweenで自動配置） */
}
@media (max-width: 768px) {
    .nav-menu {
        padding: 5vw;
    }
}
/* モバイル動画最適化CSS */
.hero-video.optimized {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
    z-index: 2 !important;
}

.hero-advanced-fallback {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
}

@media (max-width: 768px) {
    .hero-video.optimized {
        transform: translate(-50%, -50%) scale(1.02) !important;
    }
}