@charset "utf-8";
@media screen and (min-width: 1280px){
#ham-menu {
    background-image: url("../images/menu_back_px.png");
	background-size: cover;
    box-sizing: border-box;
    position: fixed;
    right:15%;
	transition: 0.3s;
    height: 0; 
    z-index: 1000;
	font-family: "Sawarabi Mincho";
	border-radius: 20px;
}
#ham-menu ul{
	display: flex;
	justify-content: space-around;
}
#ham-menu a:nth-of-type(1){
	margin-top: 70px;
}
#ham-menu a:nth-of-type(2){
	margin-top: 260px;
	margin-left: -20px;
}
#ham-menu a:nth-of-type(3){
	margin-top: 50px;
	margin-left: -70px;
}
#ham-menu a:nth-of-type(4){
	margin-top: 160px;
	margin-left: -20px;
}
#ham-menu a:nth-of-type(5){
	margin-top: 230px;
}
#ham-menu a:nth-of-type(6){
	margin-top: 100px;
}

#ham-menu li img{
	height: 120px;
	width: auto;
	opacity: 0;
	display: none;
	-webkit-transition: 0.3s;
	-moz-transition: 0.3s;
	-o-transition: 0.3s;
	-ms-transition: 0.3s;
	transition: 0.3s;
}
#ham-menu a:hover img{
	height: 130px;
}

#menu-background {
    background-color: #333; 
    display: block;
    height: 100%;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: all 0.3s linear 0s; 
    width: 100%;
    z-index: -10;
}

#menu-icon {
    cursor: pointer;
    display: block;
    position: fixed;
	width: 100px;
	height: 100px;
    top: 0;
	right:15%;
	transition: transform 0.3s;
    z-index: 1000;
}
#menu-icon img{
	width: 100px;
}

#menu-cb {
    display: none; /*チェックボックス本体は消しておく*/
}
#menu-cb:checked ~ #menu-icon{
	transform: translate(-980px,480px);
}
#menu-cb:checked ~ #ham-menu{
    width: 1000px;
	height: 470px;
	top: 30px;
	padding: 0 10px;
}
#menu-cb:checked ~ #ham-menu li img{
	opacity: 1;
	display: block;
}
#menu-cb:checked ~ #menu-background {
    opacity: 0.7;
    z-index: 999;
}
}

@media screen and (min-width:760px) and ( max-width:1280px) {
#ham-menu {
    background-color: #fff;
    box-sizing: border-box;
    position: fixed;
	transition: 0.3s;
    height: 0; 
    z-index: 1000;
	font-family: "Sawarabi Mincho";
	border-radius: 20px;
}
#ham-menu ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin-top: 30px;
}
#ham-menu a:nth-of-type(1){
	margin-left: 10px;
}
#ham-menu a:nth-of-type(2){
	
}
#ham-menu a:nth-of-type(3){
	margin-top: 30px;
}
#ham-menu a:nth-of-type(4){
	margin-top: 30px;
}
#ham-menu a:nth-of-type(5){
	margin-top: 30px;
}
#ham-menu a:nth-of-type(6){
	margin-top: 30px;
	margin-right: 5px;
}
#ham-menu li img{
	height: 90px;
	width: auto;
	opacity: 0;
	display: none;
	transition: all 0.7s;
}

#menu-background {
    background-color: #333; 
    display: block;
    height: 100%;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: all 0.3s linear 0s; 
    width: 100%;
    z-index: -10;
}

#menu-icon {
    cursor: pointer;
    display: block;
    position: fixed;
	width: 70px;
	height: 70px;
    top: 10px;
	right:10px;
	transition: transform 0.3s;
    z-index: 1100;
}
#menu-icon img{
	width: 100%;
}

#menu-cb {
    display: none; /*チェックボックス本体は消しておく*/
}
#menu-cb:checked ~ #menu-icon{
	transform: translate(-290px,420px);
}
#menu-cb:checked ~ #ham-menu{
    width: 290px;
	height: 420px;
	top: 30px;
	right: 50px;
}
#menu-cb:checked ~ #ham-menu li img{
	opacity: 1;
	display: block;
}
#menu-cb:checked ~ #menu-background {
    opacity: 0.7;
    z-index: 999;
}	
}

@media screen and (max-width: 760px){
#ham-menu {
    background-color: #fff;
    box-sizing: border-box;
    position: fixed;
	transition: 0.3s;
    height: 0; 
    z-index: 1000;
	font-family: "Sawarabi Mincho";
	border-radius: 20px;
}
#ham-menu ul{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin-top: 30px;
}
#ham-menu a:nth-of-type(1){
	margin-left: 10px;
}
#ham-menu a:nth-of-type(2){
	
}
#ham-menu a:nth-of-type(3){
	margin-top: 30px;
}
#ham-menu a:nth-of-type(4){
	margin-top: 30px;
}
#ham-menu a:nth-of-type(5){
	margin-top: 30px;
}
#ham-menu a:nth-of-type(6){
	margin-top: 30px;
	margin-right: 5px;
}
#ham-menu li img{
	height: 90px;
	width: auto;
	opacity: 0;
	display: none;
	transition: all 0.7s;
}

#menu-background {
    background-color: #333; 
    display: block;
    height: 100%;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: all 0.3s linear 0s; 
    width: 100%;
    z-index: -10;
}

#menu-icon {
    cursor: pointer;
    display: block;
    position: fixed;
	width: 60px;
	height: 60px;
    top: 10px;
	right:10px;
	transition: transform 0.3s;
    z-index: 1100;
}
#menu-icon img{
	width: 100%;
}

#menu-cb {
    display: none; /*チェックボックス本体は消しておく*/
}
#menu-cb:checked ~ #menu-icon{
	transform: translate(-290px,420px);
}
#menu-cb:checked ~ #ham-menu{
    width: 290px;
	height: 420px;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
}
#menu-cb:checked ~ #ham-menu li img{
	opacity: 1;
	display: block;
}
#menu-cb:checked ~ #menu-background {
    opacity: 0.7;
    z-index: 999;
}	
}