@charset "UTF-8";
@media screen and (max-width: 958px) {
.menu-wrapper {
  position: relative;
}

.menu-icon2 {
  width: 45px;
  height: 45px;
  position: fixed; /* ← fixedにして常に左上固定 */
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
	background: #d4d4cc;
	border-radius: 50%;
}

.menu-icon {
  width: 45px;
  height: 45px;
  position: fixed; /* ← fixedにして常に左上固定 */
  top: 24px;
  right: 20px;
  cursor: pointer;
  z-index: 4;
  display: inline-block;
}

.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 6px;
  background: white;
  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: -100%; /* ← 初期位置を左へ */
  width: 100%;
  height: 100%;
  transition: right 0.5s ease;
  z-index: 2;
}

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

.menu ul {
  list-style: none;
  padding: 60px 20px;
}

.menu li {
  margin: 20px 0;
}

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

.menu a:hover {
  color: #007bff;
}
}
@media screen and (min-width: 959px) {
.menu-wrapper {
  position: relative;
}

.menu-icon2 {
	display: none;
}

.menu-icon {
	display: none;
}
	
/* メニュー本体（左から出す） */
.menu {
  position: fixed;
  top: 0;
  right: -50%; /* ← 初期位置を左へ */
  width: 100%;
  height: 100%;
  transition: right 0.5s ease;
  z-index: 2;
}

.menu ul {
  list-style: none;
  padding: 60px 20px;
}

.m2 {
	height: 120px;
  padding: 10px 0;
	margin: 0 auto;
}
	
	.menu img{
		max-width: 600px;
	}
	
.m2 img:hover{
		margin-top: -5px;
		transition: 0.25s;
	}
}
