/* Overlay style */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.9);
    z-index: 1000;
    overflow: auto;
}
/* Overlay closing cross */
.overlay .overlay-close {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 15px;
    top: 15px;
    overflow: hidden;
    border: none;
    background: url(../img/cross.png) no-repeat center center;
    text-indent: 200%;
    color: transparent;
    outline: none;
    z-index: 100;
    cursor: pointer;
}
/* Menu style */
.overlay div {
    text-align: center;
    position: relative;
    top: 50%;
    height: auto;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 15% 3%;
}
.overlay h2, #mens .overlay h2, #babykids .overlay h2, #living .overlay h2 {
    font-size: 170%;
    background: none;
    color: #333;
    font-weight: normal;
}
.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    min-width: 100%;
    height: 100%;
    position: relative;
}
.overlay ul li {
    display: block;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    font-size: 130%;
    margin: 10px auto;
}
.overlay ul li.active a {
    color: #fff;
    background: #e70012;
    border-radius: 5px;
    border: 1px solid #e70012;
}
.overlay ul li a {
    display: block;
    color: #333;
    background: #fff;
    text-decoration: none;
    padding: 3% 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: all 0s;
}
.overlay ul li a:hover {
    background: #e70012;
    color: #fff;
    border: none;
    border: 1px solid #e70012;
}
/* Effects */
.overlay-scale {
    visibility: hidden;
    opacity: 0;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transition: -webkit-transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
    transition: transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
}
.overlay-scale.open {
    visibility: visible;
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-transform 0.4s, opacity 0.4s;
    transition: transform 0.4s, opacity 0.4s;
}

/*----------------------------------------------------ブレークポイント・PCサイズ以上*/
@media screen and (min-width: 1024px) {
.overlay ul {
    display: inline-block;
    min-width: auto;
    height: 100%;
    margin: 0 auto;
}
.overlay ul li {
    width: 120px;
    height: 100px;
    float: left;
    margin: 10px;
}
.overlay ul li a {
    padding: 36px 0;
    transition: all .3s;
}
}

/*＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ブレークポイント・タブレットサイズ以上PCサイズ以下*/
@media screen and (min-width: 640px) and (max-width: 1023px) {
.overlay ul {
    min-width: 100%;
	margin: 0 auto;
}
.overlay ul li {
    width: 18%;
    height: 100%;
    float: left;
    margin: 1%;
}
.overlay ul li a {
    padding: 10% 0;
    transition: all .3s;
}

}
