.ptown-container {
    min-height: 620px;
    overflow: hidden;
}
.ptown-base {
    background-image :url(../images/town_back.png);
    width: 960px;
    min-height: 620px;
    position: relative;
    transform-origin: left top;
}
.ptown-front {
    background-image :url(../images/town_back_1.png);
    height: 185px;
    position: absolute;
    bottom: 0px;
    width: 100%;
    pointer-events: none;
}
.ptown-middle {
    background-image :url(../images/town_back_2.png);
    min-height: 216px;
    position: absolute;
    bottom: 165px;
    width: 100%;
    pointer-events: none;
}
.ptown-back {
    background-image :url(../images/town_back_3.png);
    min-height: 210px;
    position: absolute;
    top: 108px;
    width: 100%;
    pointer-events: none;
}
.ptown-0 {
    background-image: url(../images/town_btn_01.png);
    position: absolute;
    width: 85px;
    height: 101px;
    bottom: 93px;
    left: 310px;
    transform-origin:center bottom;
}
.ptown-tbtn-0 {
    display: block;
    width: 65px;
    height: 100px;
}
.ptown-1 {
    background-image: url(../images/town_btn_02.png);
    position: absolute;
    width: 114px;
    height: 94px;
    bottom: 84px;
    right: 280px;
    transform-origin:center bottom;
}
.ptown-tbtn-1 {
    display: block;
    margin-left: 10px;
    width: 77px;
    height: 88px;
}
.ptown-2 {
    background-image: url(../images/town_btn_03.png);
    position: absolute;
    width: 163px;
    height: 143px;
    bottom: 119px;
    left: 124px;
    transform-origin:center bottom;
}
.ptown-tbtn-2 {
    display: block;
    margin-left: 17px;
    width: 99px;
    height: 124px;
}
.ptown-3 {
    background-image: url(../images/town_btn_04.png);
    position: absolute;
    width: 187px;
    height: 119px;
    bottom: 142px;
    right: 73px;
    transform-origin:center bottom;
}
.ptown-tbtn-3 {
    display: block;
    margin-left: 0px;
    width: 135px;
    height: 114px;
}
.ptown-4 {
    background-image: url(../images/town_btn_05.png);
    position: absolute;
    width: 253px;
    height: 239px;
    bottom: 164px;
    right: 322px;
    transform-origin:center bottom;
}
.ptown-tbtn-4 {
    display: block;
    margin-left: 0px;
    width: 185px;
    height: 234px;
}
.ptown-5 {
    background-image: url(../images/town_btn_06.png);
    position: absolute;
    width: 127px;
    height: 150px;
    bottom: 270px;
    right: 596px;
    transform-origin:center bottom;
}
.ptown-tbtn-5 {
    display: block;
    margin-left: 0px;
    width: 68px;
    height: 146px;
}
.ptown-6 {
    background-image: url(../images/town_btn_07.png);
    position: absolute;
    width: 159px;
    height: 190px;
    bottom: 252px;
    left: 621px;
    transform-origin:center bottom;
}
.ptown-tbtn-6 {
    display: block;
    margin-left: 0px;
    margin-top: 42px;
    width: 134px;
    height: 132px;
}
.ptown-7 {
    background-image: url(../images/town_btn_08.png);
    position: absolute;
    width: 152px;
    height: 164px;
    top: 102px;
    right: 434px;
    transform-origin:center bottom;
}
.ptown-tbtn-7 {
    display: block;
    margin-left: 0px;
    width: 98px;
    height: 160px;
}
.ptown-house-anim0 {
    animation: bounds-scale 0.3s ease-in-out 0s normal;
}
@keyframes bounds-scale {
    0% {
        transform: scaleY(1);
    }
    20% {
        transform: scaleY(0.9);
    }
    60% {
        transform: scaleY(1.1);
    }
    100% {
        transform: scaleY(1);
    }
}
/* car */
.pcar {
    position: absolute;
    background:url(../images/town_pcar.png);
    width: 39px;
    height: 27px;
    top: 215px;
    left: -39px;
    
    animation:
        pcar-anim1 20s linear 0s infinite normal,
        pcar-anim2 20s linear 0s infinite normal;
    
}
.ppos1 {
    background-position: 0px 0px;
}
.ppos2 {
    background-position: -39px 0px;
}
.ppos3 {
    background-position: -78px 0px;
}
.ppos4 {
    background-position: 39px 0px;
}
@keyframes pcar-anim1 {
    0% {
        left: -39px;
    }
    100% {
        left: 960px;
    }
}
@keyframes pcar-anim2 {
    0% {
        top: 215px;
    }
    29% {
        top: 397px;
        background-position: -39px 0px;
    }
    29.1% {
        background-position: -78px 0px;
    }
    50% {
        top: 274px;
        background-position: -78px 0px;
    }
    50.1% {
        background-position: -39px 0px;
    }
    71% {
        top: 397px;
        background-position: -39px 0px;
    }
    71.1% {
        background-position: -78px 0px;
    }
    100% {
        top: 225px;
        background-position: -78px 0px;
    }
}

/* title */
.ptown-title {
    font-size: 0;
    position: absolute;
    top: 5px;
    width: 100%;
    text-align: center;
}
.ptown-t[data-num] {
    background: url(../images/town_title.png);
    background-repeat: no-repeat;
    position: relative;
    
}
.ptown-t[data-num]:before {
    content: '';
    display: block;
}
.ptown-title .ptown-t {
    display: inline-block;
    width: 55px;
    height: 57px;
}
.ptown-title .ptown-t[data-num="0"] {
    background-position: 0 0;
    animation: bounds-pos 2s ease-in-out 0s infinite normal;
}
.ptown-title .ptown-t[data-num="1"] {
    background-position: -55px 0;
    animation: bounds-pos 2s ease-in-out 0.2s infinite normal;
}
.ptown-title .ptown-t[data-num="2"] {
    background-position: -110px 0;
    animation: bounds-pos 2s ease-in-out 0.4s infinite normal;
}
.ptown-title .ptown-t[data-num="3"] {
    background-position: -165px 0;
    animation: bounds-pos 2s ease-in-out 0.6s infinite normal;
}
.ptown-title .ptown-t[data-num="4"] {
    background-position: -220px 0;
    animation: bounds-pos 2s ease-in-out 0.8s infinite normal;
}
.ptown-title .ptown-t[data-num="5"] {
    background-position: -275px 0;
    animation: bounds-pos 2s ease-in-out 1s infinite normal;
}
.ptown-title .ptown-t[data-num="6"] {
    background-position: -330px 0;
    animation: bounds-pos 2s ease-in-out 1.2s infinite normal;
}
.ptown-title .ptown-t[data-num="7"] {
    background-position: -385px 0;
    animation: bounds-pos 2s ease-in-out 1s infinite normal;
}
.ptown-title .ptown-t[data-num="8"] {
    background-position: -440px 0;
    animation: bounds-pos 2s ease-in-out 0.8s infinite normal;
}
.ptown-title .ptown-t[data-num="9"] {
    background-position: -495px 0;
    animation: bounds-pos 2s ease-in-out 0.6s infinite normal;
}
.ptown-title .ptown-t[data-num="10"] {
    background-position: -550px 0;
    animation: bounds-pos 2s ease-in-out 0.4s infinite normal;
}
.ptown-title .ptown-t[data-num="11"] {
    background-position: -606px 0;
    animation: bounds-pos 2s ease-in-out 0.2s infinite normal;
}
.ptown-title .ptown-t[data-num="12"] {
    background-position: -662px 0;
    animation: bounds-pos 2s ease-in-out 0s infinite normal;
}
/* sky small-cloud */
.ptown-scloud-left {
    position: absolute;
    background: url(../images/town_scloud_left.png);
    width: 168px;
    height: 102px;
    top: -10px;
    left: -20px;
}
.ptown-scloud-right {
    position: absolute;
    background:url(../images/town_scloud_right.png);
    width: 165px;
    height: 77px;
    top: -10px;
    right: -20px;
}

/* loading object */
.ptown-loading {
    position: relative;
}
.ptown-loadblock {
    position: absolute;
    top: 0;
    width: 674px;
    height: 621px;
}
.ptown-cloud-left {
    background:url(../images/town_cloud_left.png);
    left: 0;
}
.ptown-cloud-right {
    background: url(../images/town_cloud_right.png);
    right: 0;
}
.ptown-cloud-anim1 {
    animation: ptown-anim-load1 1s ease-out 0s normal both;
}
.ptown-cloud-anim2 {
    animation: ptown-anim-load2 1s ease-out 0s normal both;
}
@keyframes ptown-anim-load1 {
    0% {
        left: 0;
    }
    100% {
        left: -674px;
    }
}
@keyframes ptown-anim-load2 {
    0% {
        right: 0;
    }
    100% {
        right: -674px;
    }
}

/* sky object */
.ptown-sky-pipo {
    position: absolute;
    background: url(../images/town_pipo_sky.png);
    top: 250px;
    right: -150px;
    width: 81px;
    height: 93px;
    animation:
        ptown-sky-anim1 20s linear 1s infinite,
        ptown-sky-anim2 1s ease-in-out 0s infinite alternate;
}
.ptown-sky-heri_n {
    position: absolute;
    background: url(../images/town_heri_n.png);
    top: 100px;
    right: -150px;
    width: 118px;
    height: 75px;
    animation: ptown-sky-anim1 30s linear 5s  infinite;
}
@keyframes ptown-sky-anim1 {
    0% {
        right: -150px;
    }
    50% {
        right: 960px;
    }
    100% {
        right: 960px;
    }
}
@keyframes ptown-sky-anim2 {
    0% {
        margin-top: 0px;
    }
    100% {
        margin-top: 30px;
    }
}

/* btn */
.ptown-guide-btn {
    position: absolute;
    filter: drop-shadow(0px 1px 1px rgba(0,0,0,0.6));
    margin-top: 0px;
}
.ptown-guide-btn-base {
    position: absolute;
    white-space: nowrap;
    font-weight: bold;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px 5px 15px;
    color: #fff !important;
    background-color: #F15A24 !important;
    border: 5px solid #02284D !important;
    border-radius: 100vh;
    text-decoration: none;
}
.ptown-anim0 {
    animation: btn-first 1.5s ease-in-out 0s normal both ;
}
.ptown-anim1 {
    animation: btn-in 0.2s ease-out 0s normal both;
}
.ptown-anim2 {
    animation: btn-out 0.1s ease-out 0s normal both;
}
.ptown-anim3 {
    animation: btn-sm 0.5s ease-out 0s normal both;
}
.ptown-guide-btn[data-num="0"] {
    top: 430px;
    left: 340px;
}
.ptown-guide-btn[data-num="1"] {
    top: 440px;
    right: 342px;
}
.ptown-guide-btn[data-num="2"] {
    top: 360px;
    left: 193px;
}
.ptown-guide-btn[data-num="3"] {
    top: 370px;
    right: 190px;
}
.ptown-guide-btn[data-num="4"] {
    top: 350px;
    left: 480px;
}
.ptown-guide-btn[data-num="5"] {
    top: 209px;
    left: 275px;
}
.ptown-guide-btn[data-num="6"] {
    top: 222px;
    right: 265px;
}
.ptown-guide-btn[data-num="7"] {
    top: 104px;
    left: 420px;
}

@keyframes bounds {
    0% {
        margin-top: 0px;
    }
    50% {
        margin-top: -5px;
    }
    100% {
        margin-top: 0px;
    }
}
@keyframes btn-in {
    0% {
        opacity: 0;
        transform: scale(0);
        margin-top: 0px;
    }
    80% {
        margin-top: -10px;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        margin-top: 0px;
    }
}
@keyframes btn-out {
    0% {
        opacity: 1;
        transform: scale(1);
        margin-top: 0px;
    }
    100% {
        opacity: 0;
        transform: scale(0);
        margin-top: 10px;
    }
}
@keyframes btn-first {
    0% {
        opacity: 0;
        transform: scale(0);
        margin-top: 0px;
    }
    20% {
        margin-top: -10px;
    }
    40% {
        opacity: 1;
        transform: scale(1);
        margin-top: 0px;
    }
    80% {
        opacity: 1;
        transform: scale(1);
        margin-top: 0px;
    }
    100% {
        opacity: 0;
        transform: scale(0);
        margin-top: 10px;
    }
}
@keyframes bounds-pos {
    0% {
        top: 0px;
    }
    50% {
        top: 5px;
    }
    100% {
        top: 0px;
    }
}
@keyframes btn-sm {
    0% {
        opacity: 0;
        transform: scale(0);
        margin-top: 0px;
    }
    80% {
        margin-top: -10px;
    }
    100% {
        opacity: 1;
        transform: scale(1);
        margin-top: 0px;
    }
}
