* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent; /* Chrome, Safari and Opera */
}

/* ヘッダー - スクロールバーとかぶらないように修正 */
header {
    display: flex;
    position: fixed;
    background-color: #FFFFFF;
    padding: 20px;
    height: 80px;
    width: 100%;
    z-index: 10000;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* スクロールバーを考慮した幅設定 */
    width: 100vw;
    left: 0;
    right: 0;
}

@media screen and (min-width: 801px) {
  .telBtn {
    pointer-events: none;
  }
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c5530;
}

/* ハンバーガーメニュー - 常に表示 */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 20px;
    justify-content: space-between;

    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ハンバーガーメニュー アクティブ状態 */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ナビゲーション - 常にハンバーガーから表示 */
nav {
    display: none;
    position: fixed;
    top: 80px;
    right: 0;
    background-color: white;
    width: 250px;
    height: calc(100vh - 80px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    overflow-y: auto;
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
    padding: 30px 20px;
}

.menu-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.menu-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.menu-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.menu-item a:hover {
    color: #2c5530;
}

/* オーバーレイ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.nav-overlay.active {
    display: block;
}

/* レスポンシブデザイン - ハンバーガーメニューを常に表示 */
@media (min-width: 768px) {
    /* デスクトップでもハンバーガーメニューを表示 */
    .hamburger {
        display: flex;
    }
    
    /* ナビゲーションの幅を調整 */
    nav {
        width: 300px;
    }
    
    .menu-item a {
        font-size: 1.2rem;
    }
    
    .logo {
        margin-left: 40px; /* デスクトップではより大きな余白 */
    }
}



/* タブレットサイズの調整 */
@media (max-width: 1024px) and (min-width: 769px) {
    nav {
        width: 280px;
    }
}

/* モバイルサイズの調整 */
@media (max-width: 480px) {
    .hamburger {
        width: 25px;
        height: 18px;
        margin-right: 15px;
    }
    
    nav {
        width: 100%;
        right: 0;
    }
    
    .logo {
        margin-left: 15px;
        font-size: 20px;
    }
    
    .menu-item a {
        font-size: 1rem;
    }
}