html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
}

/* ナビゲーションバーのスクロール効果 */
#main-nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
/* ナビゲーションホバー */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}
.nav-link:hover {
    background-color: #dbeafe;
    color: #1e40af;
}
.nav-link:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

/* モバイルメニュー展開時 */
body.menu-open {
    /* スクロールを禁止 */
    overflow: hidden;
    /* iOS等のモバイルブラウザで背景固定をより確実にする */
    position: relative;
    width: 100%;
}

/* カスタムアニメーション */
.mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}
.mobile-menu.active {
    transform: translateX(0%);
}

/* オーバーレイのフェード */
#menu-overlay {
    transition: opacity 0.3s ease;
}



/* 印刷時のスタイル */
@media print {
    #main-nav {
        position: static !important;
        box-shadow: none !important;
        transition: none !important;
    }
    .nav-scrolled {
        background-color: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    #menu-overlay {
        display: none !important;
    }
    #mobile-menu {
        display: none !important;
    }
}
