@charset "utf-8";
/* CSS Document */

.menu-wrapper {
  position: relative;
}

.menu-icon {
  width: 40px;
  height: 30px;
  position: fixed; /* ← fixedにして常に右上固定 */
  top: 30px;
  right: 50px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
}

@media(max-width: 767px){
.menu-icon{
right: 5%;
}
}

.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
}

/* ハンバーガーがXに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ背景 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 1;
}

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体（左から出す） */
.menu {
  position: fixed;
  top: 0;
  right: -500px; /* ← 初期位置を右へ */
  width: 500px;
  height: 100%;
  background: #f5f5f1;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.4s ease;
  z-index: 2;
}

@media(max-width: 767px){
.menu{
right: -100%;
width: 100%;
}
}

#menu-toggle:checked ~ .menu {
  right: 0; /* ← 開いたときは左0へ */
}

.menu ul {
  list-style: none;
  padding: 80px 0;
	text-align: center;
}

.menu li {
  margin: 20px 0;
}

.about-img{
width: 150px;
height: 200px;
margin: 20px auto;
border-radius: 50%;
overflow: hidden;
background-color: #797979;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
}


/*ホバーアニメーション--------------------------------------------*/
.menu {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
  border-bottom:　2px;
}

.menu:hover{
  color: #333;
}

.menu a {
  position: relative;
	font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.menu a::after {
  position: absolute;
  left: 0;
  content: '';
  width: 100%;
  height: 2px;
  background: #c80044;
  bottom: -10px;
  transform: scale(0, 1);
  transition: transform 0.5s;
  transform-origin: center top;
}

.menu a:hover::after {
  transform: scale(1, 1)
}


@media(max-width: 767px){
.menu a::after{
display: none
}
}