/*main*/
body {
    background: url('../img/babycake/bg.jpg') repeat;
}

#scrollUp {
    bottom: 135px;
    background: url(../img/com/top2.png) no-repeat;
}

#scrollUp:hover {
    bottom: 100px;
}

.potato-frame2 {
    padding: 0 15px;
    margin: 30px auto;
    max-width: 1360px;
    text-align: center;
}

.potato-frame2:before,
.potato-frame2:after {
    display: none;
}

.potato-frame2 img {
    position: relative;
    border-radius: 0;
    width: auto;
}

.potato-frame2 .pic img {
    width: 100%;
}

.potato-frame2 .dialog {
    position: absolute;
    top: 30%;
    left: -120px;
    animation-name: swing;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-duration: 2s;
    animation-delay: .5s;
}

.potato-frame2 .scroll {
    position: absolute;
    bottom: 0;
    right: 15px;
}

.footer {
    padding-top: 60px;
}

#footer-farmer {
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    height: auto;
}

#footer-copyright {
    position: relative;
    bottom: auto;
    text-align: center;
    margin-left: 0;
}



/*babycake*/
.babycake {
    background-color: #ffffff;
    padding: 80px 0;
    overflow: hidden;
}

.babycake .container {
    width: 1280px;
    padding: 0;
}



/*about*/
.babycake-about {
    text-align: center;
    position: relative;
    margin-bottom: 100px;
}

.babycake-about .txt {
    margin-bottom: 60px;
}

.babycake-about .txt h3 {
    color: #868686;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.6em;
    margin: 60px 0 80px;
}

.babycake-about .txt p {
    font-size: 22px;
    line-height: 2.5em;
    margin-bottom: 15px;
}

.babycake-about .pic {
    position: relative;
}

.babycake-about .about-pic {
    max-width: 100%;
}

.babycake-about .about-txt {
    position: absolute;
    top: 90px;
    left: 40px;
}

.babycake-about .try {
    position: absolute;
    right: 15px;
    bottom: -50px;
    animation-name: pulse;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-duration: 2s;
    animation-delay: .5s;
}

.babycake-about .try img {
    width: 250px;
}



.line-s {
    display: none;
}




/*product*/
.babycake-product {
    padding-top: 120px;
}

.item {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.item img {
    max-width: 100%;
}

.item-desc {
    margin-bottom: 60px;
}

.item-desc .pic {
    width: 65%;
    position: relative;
}

.item-desc .product-pic {
    border-radius: 5px;
}

.item-desc .product-txt {
    position: absolute;
    top: -5%;
    right: -35%;
    animation-name: swing;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-duration: 2s;
    animation-delay: .5s;
}

.item-desc .txt {
    width: 35%;
    padding-left: 25px;
    font-size: 17px;
    line-height: 2.5em;
}

.item-desc .txt p {
    margin-bottom: 0;
}

.item-figure {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.item-figure figure {
    position: relative;
    width: 25%;
    overflow: hidden;
}

.item-figure figure * {
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.item-figure figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    padding-right: 20px;
    text-align: center;
}

.item-figure .figure-slogan {
    width: 20%;
    padding-left: 30px;
    padding-bottom: 30px;
}

.item-figure figure .hover {
    background: url('../img/babycake/product-hover.png') no-repeat;
    min-width: 246px;
    position: absolute;
    top: 0;
    bottom: 0;
    opacity: 0;
}

.item-figure figure .hover h3 {
    color: #ffffff;
    padding-top: 5px;
    padding-right: 20px;
    text-align: center;
}

.item-figure figure .hover .txt {
    padding: 60px 20px 0 45px;
    position: absolute;
    top: 15%;
    vertical-align: middle;
}

.item-figure figure .hover span {
    display: block;
    padding-left: 60px;
    padding-top: 5px;
}

.item-figure figure:last-of-type .hover {
    text-align: center;
}

.item-figure figure:last-of-type .hover .txt {
    padding: 60px 45px 0;
}

.item-figure figure:hover .hover {
    opacity: 1;
}

.item-figure figure:hover figcaption {
    opacity: 0;
}

.item-info {
    background: url('../img/babycake/info-bg.png') left top no-repeat #ffffff;
    background-size: contain;
}

.item-info .txt {
    padding-left: 250px;
}

.item-info .txt p {
    font-size: 22px;
    line-height: 2.2em;
    margin-bottom: 40px;
}




/*contact*/
.babycake-contact {
    padding: 80px 0;
    overflow: hidden;
}

.babycake-contact .container {
    width: 1280px;
}

.babycake-contact .txt {
    text-align: center;
}

.babycake-contact .txt p {
    font-size: 24px;
    line-height: 2.5em;
    margin-bottom: 30px;
}

.contact_form .form_box {
    margin-bottom: 25px;
    padding: 10px 0;
}

.contact_form .form_box:after {
    width: 80%;
    left: 20%;
    background: url(../img/babycake/contact-line.png) right repeat-x;
}

.contact_form .form_box2:after {
    width: 92%;
    left: 6%;
}

.contact_form .form_box label {
    font-size: 24px;
    width: 20%;
}

.contact_form .form_box2 label {
    width: 10%;
}

.contact_form input.text {
    width: 70%;
}

.contact_form input.code {
    width: 50%;
}

.contact_form .form_box .form-control {
    box-shadow: none;
    border: none;
}

.contact_form .form_box .form-control:focus {
    border-color: #a8cb00;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(169, 203, 0, .6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(169, 203, 0, .6);
}

.contact_form .form_box .select {
    display: inline-block;
    font-size: 24px;
    width: 75%;
}

.contact_form .form_box .select .form-control {
    -webkit-appearance: none;
    /*Chrome*/
    -moz-appearance: none;
    /*FF*/
    appearance: none;
    /*CSS3*/
    background: url("../img/arrow.png") no-repeat scroll right center;
    padding: 2px 18px 2px 5px;
    text-align: center;
    display: inline-block;
    width: 25%;
}

.contact_form .file-wrap {
    position: relative;
}

.contact_form .filename {
    width: 80%;
}

.contact_form .file {
    width: 150px;
    height: 45px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 40px;
    opacity: 0;
}

.contact_form .btn {
    color: #ffffff;
    font-size: 22px;
    width: 150px;
    height: 45px;
    background-color: #a9cb00;
    border-radius: 0;
    cursor: pointer;
}



@media (max-width: 1680px) {

    /*main*/
    .potato-frame2 .dialog {
        left: 15px;
    }

    .potato-frame2 .dialog img {
        width: 300px;
    }
}

@media (max-width: 1280px) {

    /*main*/
    .babycake .container {
        width: auto;
        padding: 0 15px;
    }

    /*product*/
    .item-desc .pic {
        width: 60%;
    }

    .item-desc .txt {
        width: 40%
    }

    .item-desc .product-txt {
        width: 300px;
        top: -30%;
    }

    .item-figure figure {
        text-align: center;
        margin-bottom: 20px;
    }

    .item-figure figcaption {
        padding-right: 0;
    }

    .item-figure .figure-slogan {
        display: none;
    }

    .item-figure figure .hover {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .item-figure figure .hover h3 {
        padding-right: 0;
    }

    .item-figure figure .hover .txt {
        left: 0;
        right: 0;
        text-align: center;
        padding: 60px 0 0;
    }


    /*contact*/
    .babycake-contact .container {
        width: auto;
    }


    .contact_form .form_box2:after {
        left: 8%;
    }

    .contact_form .form_box label,
    .contact_form .form_box .select,
    .contact_form .btn {
        font-size: 20px;
    }

    .contact_form input.text {
        width: 60%;
    }

    .contact_form input.code {
        width: 40%;
    }
}

@media (max-width: 1200px) {

    /*product*/
    .item-info .txt {
        padding-left: 280px;
    }
}

@media (max-width: 1080px) {

    /*main*/
    .potato-frame2 .dialog img {
        width: 250px;
    }

    .potato-frame2 .scroll {
        bottom: -20px;
    }


    /*product*/
    .item-figure {
        margin-bottom: 40px;
    }

    .item-info {
        background: url('../img/babycake/info-bg-s.png') left top no-repeat #ffffff;
        background-size: auto;
    }

    .item-info .txt {
        padding-left: 0;
        padding-top: 100px;
    }

    .item-info .txt p {
        font-size: 16px;
    }


    /*contact*/
    .contact_form .form_box2:after {
        left: 10%;
    }
}

@media (max-width: 991px) {

    /*main*/
    .potato-frame2 .dialog img {
        width: 200px;
    }


    /*about*/
    .babycake-about .about-txt {
        width: 300px;
    }


    /*product*/
    .babycake-product {
        padding-top: 100px;
    }

    .item-desc {
        flex-direction: column;
    }

    .item-desc .pic {
        width: 100%;
    }

    .item-desc .product-txt {
        top: -20%;
        right: -5%;
    }

    .item-desc .txt {
        width: 100%;
        padding-left: 0;
        padding-top: 30px;
        text-align: center;
    }

    .item-figure {
        flex-wrap: wrap;
    }

    .item-figure figure {
        width: 40%;
        margin-bottom: 40px;
    }



    /*contact*/
    .contact_form .form_box:after {
        left: 12%;
    }

    .contact_form .form_box label {
        width: 12%;
    }

    .contact_form input.text,
    .contact_form .form_box .select {
        width: 80%;
    }

    .contact_form input.filename,
    .contact_form input.code {
        width: 60%;
    }

    .contact_form .file {
        right: 30px;
    }

    .contact_form .col-md-4 {
        text-align: center;
    }
}

@media (max-width: 800px) {

    /*product*/
    .item-desc .product-txt {
        top: -10%;
        right: 0;
    }
}

@media (max-width: 767px) {

    /*about*/
    .babycake-about .slogan img {
        width: 250px;
    }

    .babycake-about .pic {
        padding-top: 60px;
    }

    .babycake-about .about-txt {
        top: 0;
        left: 15px;
    }

    .babycake-about .try {
        bottom: -80px;
    }

    .babycake-about .try img {
        width: 180px;
    }

    .babycake-about .txt h3 {
        font-size: 22;
    }

    .babycake-about .txt p {
        font-size: 20px;
    }



    .line {
        display: none;
    }

    .line-s {
        display: block;
    }




    /*product*/
    .item-info .txt p {
        font-size: 20px;
    }


    /*contact*/
    .babycake-contact .txt p {
        font-size: 20px;
    }

    .babycake-contact img {
        width: 250px;
    }

    .contact_form .form_box:after,
    .contact_form .form_box2:after {
        width: 100%;
        left: 0;
    }

    .contact_form .form_box label,
    .contact_form input.text,
    .contact_form .form_box .select {
        width: 100%;
    }

    .contact_form input.text {
        margin-left: 0;
    }

    .contact_form input.filename,
    .contact_form input.code {
        width: 70%;
    }

}

@media (max-width: 650px) {

    /*main*/
    .potato-frame2 {
        margin: 30px auto;
    }

    .potato-frame2 .dialog {
        top: 0;
    }

    .potato-frame2 .dialog img {
        width: 150px;
    }

    .potato-frame2 .scroll {
        bottom: -50px;
    }

    #footer-farmer {
        position: relative;
        top: auto;
    }


    /*about*/
    .babycake-about .txt h3 {
        font-size: 20px;
    }

    .babycake-about .txt p {
        font-size: 16px;
    }

    .babycake-about .try {
        right: 45px;
        bottom: -135px;
    }


    /*product*/
    .item-desc .product-txt {
        width: 200px;
    }

    .item-desc .txt {
        font-size: 16px;
    }

    .item-info .txt p {
        font-size: 16px;
    }


    /*contact*/
    .babycake-contact .txt p {
        font-size: 16px;
    }
}

@media (max-width: 550px) {

    /*main*/
    .footer {
        padding-top: 60px;
    }

    #footer-farmer {
        position: relative;
        top: auto;
        width: 100%;
        left: auto;
        margin-left: 0;
    }

    /*product*/
    .item-figure figure {
        width: 100%;
    }


    /*contact*/
    .babycake-contact img {
        width: 200px;
    }

    .contact_form input.filename {
        width: 100%;
        margin-bottom: 10px;
    }

    .contact_form .file {
        top: auto;
        right: auto;
        left: 0;
        bottom: 10px;
    }

    .contact_form input.code {
        width: 60%;
    }
}

@media (max-width: 400px) {

    /*main*/
    .potato-frame2 .dialog img {
        width: 120px;
    }

    .potato-frame2 .scroll img {
        width: 60px;
    }

    .footer {
        padding: 40px 0 10px;
        background-size: cover;
    }


    /*product*/
    .item-desc .product-txt {
        width: 200px;
        top: -40%;
    }


    /*contact*/
    .contact_form .form_box .select .form-control {
        width: 20%;
    }

    .contact_form input.code {
        width: 40%;
    }
}