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

.menu-wrapper {
  position: relative;
}

.menu-icon {
  width: 40px;
  height: 30px;
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
}

.menu-icon span {
  display: block;
  height: 2px;
  margin: 8px 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: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  transition: right 0.4s ease;
  z-index: 2;
}

#menu-toggle:checked ~ .menu {
  right: 0; /* ← 開いたとき */
}
.menu .gl-nav {
  list-style: none;
  padding: 60px 20px;
	text-align: center;
}
.menu .gl-nav li {
	color: #ccc;
	margin: 20px 0 1rem;
	font-size: 1.8rem;
	font-weight: 100;
}
.menu .gl-nav li span{display: block; font-size: .6rem; letter-spacing: 2px;}
.menu a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}
.menu a:hover {
  color: #5d73c9;
}
.sns{margin-top: 2rem;}
.sns-btn{width: 100%; margin: 0 auto; padding: 0; text-align: center;}
.sns-btn li a{display: block; }
.sns-btn li{width: 2rem; display: inline-block; margin:0 .5rem;}
