/* ============================================================================
   top-banner
=============================================================================== */
section.top-banner .photo {
    height: 150px;
    background-image: url(../images/photos/banner_photo_app_01.jpg);
}
@media (min-width : 768px) {
    section.top-banner .photo { height: 200px;}
}
/* ============================================================================
   features
=============================================================================== */
section.features { position: relative; }
section.features .tabs {
    position: absolute;
    right: 15px; bottom: 80px;
    width: calc(100% - 174px);
}
section.features .tabs ul {
    display: flex;
    align-items: center;
}
section.features .tabs ul li {
    background: #99a6ae;
    font-size: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    -webkit-transition: all .8s ease;
    transition:         all .8s ease;
}
section.features .tabs ul li a {
    display: block;
    padding: 2px;
}
section.features .tabs ul li.ui-state-active {
    width: 100%;
    background: #b0c708;
}
section.features .tabs ul li .icon {
    width: 36px;
}
section.features .tab-content .item {
    display: flex;
    align-items: flex-start;
}
section.features .tab-content .txtbox {
    width: calc(100% - 154px);
    padding-top: 20px;
    padding-bottom: 120px;
}
section.features .tab-content .txtbox ul,
section.features .tab-content .txtbox p {
    /*font-size: 15px;*/
    font-size: 13px;
    font-weight: 400;
    color: #546a79;
}
section.features .tab-content .txtbox .ttl {
    font-size: 26px;
    line-height: 1.2em;
    color: #38454f;
    padding-bottom: 14px;
}
section.features .tab-content .photobox {
    position: relative;
    width: 164px;
    background: url(../images/photos/homesec_photo_app_frame.png) no-repeat 50% 50%;
    background-size: 100% auto;
    margin-left: -16px;
    z-index: 2;
}
section.features .tab-content .photobox:after {
    content: '';
    display: block;
    padding-bottom: 187%;
}
section.features .tab-content .photobox > .photo {
    position: absolute;
    left: 50%; top: 48.6%;
    -webkit-transform: translate(-50%,-50%);
    transform:         translate(-50%,-50%);
    background-position: 50% 50%;
    background-size: 100% auto;
    background-repeat: no-repeat;
    width: 120px;
}
section.features .tab-content .photobox > .photo:after {
    content: '';
    display: block;
    padding-bottom: 178%;
}
@media (min-width : 768px) {
    section.features .container { position: relative; }
    section.features .tabs {
        position: absolute;
        right: initial; left: 0; bottom: initial; top: calc(50% - 20px);
        -webkit-transform: translateY(-50%);
        transform:         translateY(-50%);
        width: 100%;
    }
    section.features .tabs ul {
        width: 240px;
        flex-direction: column;
        align-items: flex-start;
    }
    section.features .tabs ul li {
        position: relative;
        width: 100%;
        justify-content: flex-start;
        font-size: 16px;
        line-height: 40px;
        padding-bottom: 0;
        margin-bottom: 1px;
    }
    section.features .tabs ul li:after {
        position: absolute;
        top: 0; left: 0;
        content: '';
        display: block;
        width: 50px;
        height: 50px;
        background: #000;
        opacity: 0.1;
        z-index: 1;
    }
    section.features .tabs ul li .icon {
        position: relative;
        z-index: 2;
        width: 40px;
        margin: 5px;
    }
    section.features .tabs ul li a {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        color: #fff;
    }
    section.features .tabs ul li span.txt { margin-left: 8px; }
    section.features .tabs ul li.ui-state-active,
    section.features .tabs ul li.ui-state-active:after {
        height: 80px;
    }
    section.features .tab-content {
        padding-left: 260px;
        margin-top: -140px;
    }
    section.features .tab-content .item {
        flex-direction: row-reverse;
    }
    section.features .tab-content .txtbox {
        width: calc(100% - 300px);
        padding-top: 140px;
    }
    section.features .tab-content .txtbox ul,
    section.features .tab-content .txtbox p {
        font-size: 15px;
    }
    section.features .tab-content .photobox { width: 300px;}
    section.features .tab-content .photobox > .photo { width: 220px; }
}
/* ============================================================================
   principle
=============================================================================== */
section.principle {
    position: relative;
    margin-top: -65px;
    padding-top: 65px;
    padding-bottom: 50px;
    background-color: #3c70ab;
}
section.principle .principle-ttl {
    padding-bottom: 20px;
}
section.principle .principle-main {
    width: calc(100% + 30px);
    padding-bottom: 20px;
    margin-left: -15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
section.principle .principle-main .row {
    width: calc(300% - 140px);
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 8px;
}
section.principle .item {
    position: relative;
    height: 100%;
    padding: 30px 20px 40px 20px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
    margin-right: 15px;
}
section.principle .item.diner {
    background: url(../images/grandient_app_red.jpg) repeat-x 50% 50%;
    background-size: auto 100%;
}
section.principle .item.exercise {
    background: url(../images/grandient_app_blue.jpg) repeat-x 50% 50%;
    background-size: auto 100%;
}
section.principle .item.routine {
    background: url(../images/grandient_app_purple.jpg) repeat-x 50% 50%;
    background-size: auto 100%;
}
section.principle .item .ttl {
    position: relative;
    font-size: 24px;
    line-height: 1.5em;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding-bottom: 24px;
}
section.principle .item .ttl:after {
    position: absolute;
    bottom: 20px; left: 0;
    content: '';
    display: inline-block;
    width: 146px;
    height: 2px;
    background-color: #fff;
}
section.principle .item .ttl .icon {
    width: 44px;
}
section.principle .item .txt {
    font-size: 14px;
    line-height: 1.6em;
    color: #fff;
}
section.principle .note {
    position: absolute;
    bottom: 10px; left: 15px; right: 15px;
    font-size: 12px;
    color: #fff;
    opacity: 0.5;
}
@media (min-width : 768px) {
    section.principle {
        margin-top: -160px;
        padding-top: 80px;
    }
    section.principle .principle-main,
    section.principle .principle-main .row {
        width: 100%;
    }
    section.principle .principle-main {
        margin-left: 0;
        overflow: initial;
    }
    section.principle .principle-main .row {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
    section.principle .item {
        padding: 30px 30px 60px 30px;
        margin-right: 0;
    }
    section.principle .note {
        position: relative;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        text-align: right;
        margin-top: -10px;
    }
    section.principle .item .ttl {
        flex-direction: column;
        align-items: center;
    }
    section.principle .item .ttl .icon {
        width: 90px;
    }
    section.principle .item .ttl:after { display: none; }
    section.principle .item .txt { font-size: 15px;}
}
/* ============================================================================
   solutions
=============================================================================== */
section.solutions {
    position: relative;
    background-color: #3c70ab;
}
section.solutions .solutions-ttl {
    padding-bottom: 20px;
}
section.solutions .solutions-main {
    width: calc(100% + 30px);
    padding-bottom: 20px;
    margin-left: -15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
section.solutions .note {
    position: absolute;
    bottom: 10px; left: 15px; right: 15px;
    font-size: 12px;
    color: #fff;
    opacity: 0.5;
}
section.solutions .solutions-main .row {
    width: calc(600% - 320px);
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 8px;
}
section.solutions .item {
    position: relative;
    height: 100%;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
    margin-right: 15px;
}
section.solutions .item.health {
    background: url(../images/photos/app_solutions_01.jpg) no-repeat 50% 50%;
    background-size: cover;
}
section.solutions .item.defecate {
    background: url(../images/photos/app_solutions_02.jpg) no-repeat 50% 50%;
    background-size: cover;
}
section.solutions .item.tooth {
    background: url(../images/photos/app_solutions_03.jpg) no-repeat 50% 50%;
    background-size: cover;
}
section.solutions .item.skin {
    background: url(../images/photos/app_solutions_04.jpg) no-repeat 50% 50%;
    background-size: cover;
}
section.solutions .item.routine {
    background: url(../images/photos/app_solutions_05.jpg) no-repeat 50% 50%;
    background-size: cover;
}
section.solutions .item.eyes {
    background: url(../images/photos/app_solutions_06.jpg) no-repeat 50% 50%;
    background-size: cover;
}
section.solutions .item:after {
    content: '';
    display: inline-block;
    padding-bottom: 100%;
}
section.solutions .mask {
    position: absolute;
    top: 15px; bottom: 15px; left: 15px; right: 15px;
    background: url(../images/grandient_cate_blue.png) repeat-x 50% 50%;
    background-size: auto 100%;
    width: calc(100% - 30px);
}
section.solutions .coverbox,
section.solutions .detailbox {
    position: absolute;
    top: 50%; left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform:         translate(-50%,-50%);
    width: 100%;
    height: 100%;
    padding: 15px;
}
section.solutions .coverbox,
section.solutions .coverbox .ttl {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
section.solutions .coverbox .ttl {
    width: 100%;
    color: #fff;
    font-size: 24px;
    line-height: 1.4em;
    letter-spacing: 2px;
    font-weight: 600;
    padding-bottom: 20px;
}
section.solutions .coverbox .ttl .icon {
    width: 66%;
    max-width: 150px;
    margin-bottom: -10%;
}
section.solutions .detailbox .ttl,
section.solutions .detailbox .txt {
    color: #fff;
    font-size: 14px;
    padding-bottom: 8px;
}
section.solutions .detailbox .txt { padding-bottom: 16px; }
section.solutions .detailbox .ttl { padding-top: 6px; }
section.solutions .detailbox .ttl > span {
    display: inline-block;
    border: 1px #fff solid;
    padding: 2px 8px;
}
section.solutions .detailbox p {
    display: flex;
    align-items: center;
}
section.solutions .detailbox p span {
    white-space: nowrap;
    display: inline-block;
}
section.solutions .detailbox p span.ln {
    position: relative;
    width: 100%;
}
section.solutions .detailbox p span.ln:after {
    position: absolute;
    top: 50%; left: 5px; right: 5px;
    -webkit-transform: translateY(-50%);
    transform:         translateY(-50%);
    content: '';
    width: calc(100% - 10px);
    height: 1px;
    border-top: 1px #fff dotted;
    opacity: 0.8;
}
/***** transitions *****/
section.solutions .mask,
section.solutions .detailbox,
section.solutions .coverbox {
    -webkit-transition: all .3s ease;
    transition:         all .3s ease;
}
section.solutions .on .mask {
    background-image: url(../images/grandient_cate_green.png);
}
section.solutions .detailbox {
    top: 60%;
    opacity: 0;
}
section.solutions .on .detailbox {
    top: 50%;
    opacity: 1;
    -webkit-transition: all .6s ease;
    transition:         all .6s ease;
    -webkit-transition-delay: .1s;
    transition-delay:         .1s;
}
section.solutions .coverbox {
    opacity: 1;
}
section.solutions .on .coverbox {
    opacity: 0;
}
@media (min-width : 768px) {
    section.solutions .solutions-main,
    section.solutions .solutions-main .row {
        width: 100%;
    }
    section.solutions .solutions-main {
        margin-left: 0;
        overflow: initial;
    }
    section.solutions .solutions-main .row {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
    section.solutions .note {
        position: relative;
        bottom: 0; left: 0; right: 0;
        width: 100%;
        text-align: right;
        margin-top: -10px;
    }
}
/* ============================================================================
   challenge
=============================================================================== */
section.challenge {
    padding-bottom: 40px;
}
section.challenge .challenge-ttl {
    padding-bottom: 20px;
}
section.challenge h4 {
    font-size: 0;
    line-height: 0;
    background: url(../images/photos/challenge_title.png) no-repeat 50% 50%;
    background-size: 100% auto;
    margin-left: 6px;
    margin-right: 6px;
}
section.challenge h4:after {
    content: '';
    display: block;
    padding-bottom: 68%;
}
section.challenge .gifts-main {
    position: relative;
    margin-top: 20px;
    margin-bottom: 30px;
    margin-left: 6px;
    margin-right: 6px;
}
section.challenge .gifts-main .mask {
    position: absolute;
    top: -5px; left: -5px; right: -5px;
    background: url(../images/photos/challenge_gift_mask.png) no-repeat 50% 50%;
    background-size: 100% auto;
    z-index: 3;
}
section.challenge .gifts-main .mask:after {
    content: '';
    display: block;
    padding-bottom: 72.6%;
}
section.challenge .controls {
    position: absolute;
    bottom: 10px; right: 0;
    display: inline-block;
    z-index: 4;
}
section.challenge .controls button {
    width: 40px;
    height: 40px;
    font-size: 0;
    line-height: 0;
    background: #a6afb6;
    opacity: 0.8;
    border: none;
}
section.challenge .controls button:after {
    position: relative;
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin:  0 auto;
    background: url(../images/icons/icon_arrow_t_light.png) no-repeat 50% 50%;
    background-size: 100% auto;
}
section.challenge .controls button.slick-prev:after {
    -webkit-transform: rotate(-90deg);
    transform:         rotate(-90deg);
}
section.challenge .controls button.slick-next:after {
    -webkit-transform: rotate(90deg);
    transform:         rotate(90deg);
}
section.challenge .slick-gifts .item {
    position: relative;
    padding-bottom: 60px;
}
section.challenge .slick-gifts .photo {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
section.challenge .slick-gifts .photo:after {
    content: '';
    display: block;
    padding-bottom: 72.6%;
}
section.challenge .slick-gifts .name {
    position: absolute;
    z-index: 99;
    bottom: 30px;
    width: 100%;
    height: 20px;
    font-size: 16px;
    text-align: center;
    color: #222;
}
section.challenge .slick-gifts .ptr { color: #8db700; padding-right: 8px; }
section.challenge .slick-gifts .slick-dots {
    position: absolute;
    bottom: 76px; left: 50%;
    -webkit-transform: translateX(-50%);
    transform:         translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}
section.challenge .slick-gifts .slick-dots li {
}
section.challenge .slick-gifts .slick-dots button {
    width: 8px;
    height: 8px;
    font-size: 0;
    line-height: 0;
    border-radius: 50%;
    background: #fff;
    border: none;
    padding: 0;
    margin: 0 4px;
}
section.challenge .slick-gifts .slick-active button {
    width: 12px;
    height: 12px;
    background: #a1c800;
}
section.challenge .challenge-main {
    padding: 25px 15px;
    background: url(../images/grandient_bg_blue_2.png) repeat-x 50% 50%;
    background-size: auto 100%;
    -webkit-box-shadow: 8px 8px 0px 0px rgba(0,0,0,0.05);
    box-shadow:         8px 8px 0px 0px rgba(0,0,0,0.05);
}
section.challenge .challenge-main .ttl {
    font-size: 20px;
    line-height: 1.2em;
    font-weight: 600;
    color: #fff;
    padding-bottom: 20px;
}
section.challenge .challenge-main .ttl span {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}
section.challenge .challenge-main .ttl span:after {
    position: absolute;
    bottom: 0; left: 0;
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
}
section.challenge .challenge-main .icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
}
section.challenge .challenge-main .star-gn {
    background: url(../images/icons/icon_star_green.png) no-repeat 50% 50%;
    background-size: auto 100%;
}
section.challenge .challenge-main .star-yw {
    background: url(../images/icons/icon_star_yellow.png) no-repeat 50% 50%;
    background-size: auto 100%;
}
@media (min-width : 768px) {
    section.challenge { padding-top: 80px; padding-bottom: 80px; }
    section.challenge .challenge-ttl { padding-bottom: 40px;}
    section.challenge .controls button { opacity: 0.4; }
    section.challenge .controls button.on { opacity: 1; }
    section.challenge .controls button.slick-prev { right: 44px; }
    section.challenge .btn-main { text-align: left; }
    section.challenge .challenge-main {
        padding: 30px 40px 50px 40px;
        -webkit-box-shadow: 20px 20px 0px 0px rgba(0,0,0,0.05);
        box-shadow:         20px 20px 0px 0px rgba(0,0,0,0.05);
    }
    section.challenge .challenge-main .ttl {
        font-size: 32px;
        letter-spacing: 2px;
    }
    section.challenge .challenge-main .ttl span { padding-bottom: 0; }
    section.challenge .challenge-main .ttl span:after {
        left: initial; right: -40px;
        height: 100%;
        width: 4px;
    }
}
