@charset "UTF-8";

.c-nav-button {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 0.7em;
	font-family: "typos";
	position: absolute;
	top: 0.6rem;
	right: 0rem;
	padding: 10px;
	cursor: pointer;
	z-index: 1001;
}
footer .c-nav-button{
	position: relative;
	top: unset;
    right: unset;
}

.dot-grid {
	display: grid;
	grid-template-columns: repeat(3, 8px);
	grid-template-rows: repeat(3, 8px);
	gap: 5px;
	width: fit-content;
}

.dot-grid span {
	width: 8px;
	height: 8px;
	background-color: #fff;
	border-radius: 2px;
	transition: transform 0.3s, opacity 0.3s;
}

/* アニメーション例（クリック時に変化） */
.c-nav-button.open .dot-grid span:nth-child(2),
.c-nav-button.open .dot-grid span:nth-child(4),
.c-nav-button.open .dot-grid span:nth-child(6),
.c-nav-button.open .dot-grid span:nth-child(8) {
	transform: scale(0);
	opacity: 0;
}

.c-nav-button.open .dot-grid span:nth-child(1),
.c-nav-button.open .dot-grid span:nth-child(3),
.c-nav-button.open .dot-grid span:nth-child(5),
.c-nav-button.open .dot-grid span:nth-child(7),
.c-nav-button.open .dot-grid span:nth-child(9) {
	transform: rotate(45deg);
}

.c-nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 50%;
	height: 100%;
	background: rgba(51, 51, 51, 0.8);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: right 0.5s ease;
	z-index: 1000;
}

.c-nav.open {
	right: 0%;
}

.c-nav ul {
	list-style: none;
    width: 90%;
    line-height: 1.5em;
}

.c-nav ul li {
	border-bottom: 1px solid #fff;
	margin: 1rem 0;
	padding: 1rem 2rem;
	opacity: 0;
	transform: translateY(20px);
	transform-origin: top right;
	transition: all 0.5s ease;
}
.c-nav ul li a{
	position:relative;
	padding: 0 0 0 30px;
}
.c-nav ul li a:before{
	content: "";
    border-top: 2px solid #fff;
    border-right: 2px solid #FFF;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: rotate(45deg) translate(0, -50%);
	transition: all ease 0.5s;
}
.c-nav ul li a:hover:before{
	border-top: 3px solid #fff;
    border-right: 3px solid #FFF;
	left:5px;
}
.c-nav.open ul li {
	opacity: 1;
	transform: translateY(0);
}
@media all and (min-width: 769px) {
	.c-nav-button{
		display: none;
	}
}
@media all and (max-width:768px){
	.c-nav {
		width:90%;
		height: 100%;
	}
	.c-nav-button{
		font-size: 0.8em;
		position:relative;
		top: 0;
        right: 0;
	}
	footer .dot-grid{
		gap:2px;
		margin:0 auto;
	}
	footer .dot-grid span{
		width: 6px;
    	height: 6px;
	}
}