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

/*ハンバーガーメニュー*/
.menu-wrapper {
  position: relative;
}

.menu-icon{
  width: 60px;
  height: 60px;
  position: fixed; /* ← fixedにして常に左上固定 */
  top: 3vh;
  right: 50px;
  cursor: pointer;
  z-index: 3;
  display: inline-block;
	border-radius: 999px;
	border: 3px solid #517b76;
	padding: 11px 0;
}

@media(max-width: 767px){
.menu-icon{
	width: 45px;
	height: 45px;
	top: 2%;
	right: 5%;
	padding: 9px 0;
}
}

.menu-icon span{
  display: block;
  height: 4px;
  margin: 5px 14px 5px 14.5px;
  background: #517b76;
  border-radius: 2px;
  transition: 0.4s;
}

@media(max-width: 767px){
.menu-icon span{
height: 2.5px;
margin: 4px 10px;
}
}

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

@media(max-width: 767px){
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-6.5px) 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: #f7f4e6;
  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;
	text-align: center;
  line-height: 3em;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.menu li{
  margin: 10px 0;
}

.menu li img{
width: 1em;
margin-right: 0.3em;
vertical-align: middle;
}

.menu a{
  color: #517b76;
  font-size: 1.2rem;
	position: relative;
}

.menu a:hover{
	opacity: .8;
}

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

.menu a:hover::after {
  transform: scale(1, 1);
  transform-origin: left top;
}

.arrow_r {
  position: relative;
  display: inline-block;
  padding-left: 20px;
}
.arrow_r:before {
  content: '';
  width: 6px;
  height: 6px;
  border: 0;
  border-top: solid 2px #517b76;
  border-right: solid 2px #517b76;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}