Spaces:
Running
Running
/* Hamburger Menu Styles */ | |
#menu { | |
position: absolute; | |
top: 0; | |
left: 0; | |
z-index: 10; | |
transform: translateX(-100%); | |
visibility: hidden; | |
opacity: 0; | |
background-color: rgb(31, 41, 55); | |
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; | |
backdrop-filter: blur(10px); | |
border-right: 1px solid rgba(255, 255, 255, 0.2); | |
} | |
#menu.open { | |
transform: translateX(0); | |
visibility: visible; | |
opacity: 1; | |
} | |
#menu button { | |
transition: background-color 0.2s ease; | |
background-color: rgba(0, 0, 0, 0.1); | |
margin: 2px; | |
border-radius: 8px; /* 少し角を丸める */ | |
display: flex; | |
align-items: center; | |
justify-content: flex-start; | |
gap: 10px; | |
padding: 0.75rem 1rem; | |
width: 100%; | |
text-align: left; | |
border: none; | |
color: #fff; | |
font-size: 1rem; | |
cursor: pointer; | |
} | |
#menu button:hover { | |
background-color: rgba(55, 65, 81, 0.7); | |
} | |
/* Hamburger Menu Button */ | |
#menuButton { | |
background-color: rgba(255, 255, 255, 0.1); | |
border: none; | |
border-radius: 50%; | |
padding: 0.75rem; /* サイズを少し大きく */ | |
cursor: pointer; | |
transition: background-color 0.2s ease; | |
} | |
#menuButton:hover { | |
background-color: rgba(255, 255, 255, 0.2); | |
} |