* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-image: url('../img/bg-img.gif');
    font-family: 'M PLUS Rounded 1c', sans-serif;

}
img:hover {
    cursor: pointer;
}
#box {
    width: 90vw;
    /* max-width: 1920px; */
    height: 85vh;
    position:relative;
}
.title {
    width: auto;
    padding: 5px;
    background-color: #eee;
    font-size: 60px;
    border: 10px solid #B3FF00;
    border-radius: 30px;
    color: #B3FF00;
    text-shadow:2px 2px #8BC700;
    letter-spacing: .1em;
    position: absolute;
    right: 0;
    top: 7vh;
    z-index: 9999;
}
.title-default {
    transform: rotate(0deg);
}
.title-after {
    transform: rotate(10deg)
}
.item {
    width: 100%;
    height: auto;
}

/* スズメ */
.suzume-wrap {
    width: 200px;
    height: 200px;
    left: 0px;
    top: 0px;
    position:absolute;
}

/* おやじ */
.oyaji-wrap {
    max-width: 200px;
    height: auto;
    left: -40%;
    bottom: -30px;
    position:absolute;
    z-index: 99;
}

.shop-wrapper {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -9999;
    display: table;
}
/* バー */
.bar-shop {
    width: 31%;
    height: auto;
    display: table-cell;
    margin-right: 20px;
}

/**
 * 蕎麦屋
 */
.soba-shop {
    width: 31%;
    height: auto;
    display: table-cell;
    position: relative;
    z-index: 9;
}
.signboard {
    width: 72%;
    height: auto;
    position: absolute;
    top: 5%;
    left: 20%;
    z-index: 9999;
}
/* 店内 */
.interior {
    position: absolute;
    bottom: 0;
    left: 7%;
}
/* 店左パーツ */
.soba-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: auto;
}
.door-left {
    left: 15%;
}

/* 店左パーツ */
.soba-right {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50%;
    height: auto;
    z-index: 999;
}
.door-right {
    /* left: 45%; */
    left: 50%;
    z-index: 999;
}

/* ドア */
.door {
    width: 35%;
    height: auto;
    position: absolute;
    bottom: 0;
}

/**
 * ラーメン屋
 */
.ramen-shop {
    width: 31%;
    height: auto;
    display: table-cell;
    z-index: 999
}


/* スズメ (回転アニメーション) */
.rotate-anime {
    animation: rotate-anime 2.0s linear infinite;
}
@keyframes rotate-anime {
    0% {transform: rotate(0);}
    100% {transform: rotate(360deg);}
}

/* 回転アニメーション (速) */
.eary-rotate-anime {
    animation: eary-rotate-anime 1.0s linear infinite;
}
@keyframes eary-rotate-anime {
    0% {transform: rotate(0);}
    100% {transform: rotate(360deg);}
}

/* スズメおやじ (直進) */
.advance-animation {
    animation: advance 4s ease-in-out forwards;
}
@keyframes advance {
    0% {transform: translateX(0px);}
    100% {transform: translateX(20vw);}
}
/* スズメおやじ (左右の動き) */
.oyaji-horizontal-animation {
    animation: oyaji-horizontal .5s infinite forwards;
}
@keyframes oyaji-horizontal {
    0% {transform: translateX(0);}
    100% {transform: translateX(2px);}
}

/* ドアのアニメーション */
.open-door-left {
    transform: translateX(-75%);
    transition: 1s;
}
.open-door-right {
    transform: translateX(75%);
    transition: 1s;
}
.close-door-left {
    transform: translateX(-15%);
    transition: 1s;
}
.close-door-right {
    transform: translateX(15%);
    transition: 1s;
}
/* ドア再度閉じる */
.close-door-left-after {
    transform: translateX(0%);
    transition: 1s;
}
.close-door-right-after {
    transform: translateX(3%);
    transition: 1s;
}
/* ドア故障の動き(左右の動き) */
.door-horizontal-animation {
    animation: doorHorizontal 1s infinite forwards;
}
@keyframes doorHorizontal {
    0% {transform: translateX(0);}
    100% {transform: translateX(2px);}
}


@media screen and (max-width: 1048px) {

    #box {
        /* height: 65vh; */
    }
    .title {
        width: auto;
        font-size: 26px;
        border: 3px solid #B3FF00;
       border-radius: 10px;
        right: 0;
        top: 10vh;
    }
    /* スズメ */
    .suzume-wrap {
        width: 30%;
        height: auto;
    }
    /* おやじ */
    .oyaji-wrap {
        width: 45%;
        bottom: -15px;
        height: auto;
    }
    /* 蕎麦屋 */
    .soba-shop {
        width: 200px;
    }
    .door {
        top: 33%;
    }
}
