/* 初期状態（デスクトップ時） */
.drawer-menu {
    display: flex;
    gap: 20px;
    justify-content: flex-end; /* 右寄せにする */
}


.drawer-toggle {
    display: none; /* デスクトップではボタンを非表示 */
}

/* 800px以下のデバイスでハンバーガーメニューを有効に */

@media screen and (max-width: 800px) {
    .drawer-menu {
        display: none; /* 初期状態ではメニューを非表示 */
        flex-direction: column;
        position: absolute;
        top: 50px; /* ヘッダーの高さに応じて調整 */
        left: 0;
        width: 100%;
        background: white;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .drawer-menu li {
        padding: 15px 0;
    }

    .drawer-toggle {
        display: block; /* ボタンを表示 */
        position: absolute;
        top: 18px;
        right: 15px;
        width: 50px; /* クリック範囲を広げる */
		height: 30px; /* クリック範囲を広げる */
		background: none;
		border: none;
		cursor: pointer;
		z-index: 10; /* メニューの上に表示 */
    }
	
	
	/* アイコンの見た目も調整 */
	.drawer-hamburger-icon {
		width: 30px;
		height: 3px;
		background: black;
		position: absolute;
		top: 30%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
  /*  .drawer-hamburger-icon {
        display: block;
        width: 30px;
        height: 3px;
        background: black;
        position: relative;
    }*/


	
    .drawer-hamburger-icon::before,
    .drawer-hamburger-icon::after {
        content: "";
        position: absolute;
        width: 30px;
        height: 3px;
        background: black;
        left: 0;
        transition: 0.3s;
    }

    .drawer-hamburger-icon::before {
        top: -10px;
    }

    .drawer-hamburger-icon::after {
        top: 10px;
    }

    /* メニューが開いた時のスタイル */
    .drawer-menu.open {
        display: flex;
    }

    /* ハンバーガーメニューのアニメーション */
    .drawer-toggle.active .drawer-hamburger-icon {
        background: transparent;
    }

    .drawer-toggle.active .drawer-hamburger-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .drawer-toggle.active .drawer-hamburger-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
}
/* オーバーレイ（メニュー背景）のスタイル */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
}

/* メニューが開いたときにオーバーレイを表示 */
.drawer-menu.open ~ .drawer-overlay {
    display: block;
}