.carousel-wrap{
    margin: 20px 0;
    overflow: hidden;
}
.carousel-wrap > .carousel-list{
    list-style-type: none;
    margin: 0 0 -17px 0;
    padding:  0 20px 17px 0;
    overflow-x: scroll;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 30px;
}
.group.group-for-you .carousel-wrap > .carousel-list{
    gap: 45px;
}
.carousel-wrap > .carousel-list > li{
    position: relative;
    text-align: center;
}

.carousel-wrap > .carousel-list > li figure{
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.group.group-for-you .carousel-wrap > .carousel-list > li figure{
    width: 115px;
    height: 45px;
}
.group.group-for-you .carousel-wrap > .carousel-list > li figure img{
    width: 30% !important;
    height: auto !important;
}
.group.group-for-you .carousel-wrap > .carousel-list > li[data-for="pension-fund"] figure img{
    width: auto !important;
    height: 75% !important;
}
.group.group-for-you .carousel-wrap > .carousel-list > li[data-for="overseas-insurance"] figure img{
    width: auto !important;
    height: 70% !important;
}
.group.group-products .carousel-wrap > .carousel-list > li figure{
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background-color: #F6F1F4;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.group .carousel-wrap > .carousel-list > li label{
    margin-top: 20px;
    display: block;
    cursor: pointer;
    text-decoration: none;
}
.group.group-for-you .carousel-wrap > .carousel-list > li label{
    font-size: 80%;
}
.group.group-products .carousel-wrap > .carousel-list > li label{
    font-weight: bold;
}
.carousel-wrap > .carousel-list > li a{
    color: #4B4B4B;
    text-decoration: none;
}
.group.group-products .carousel-wrap > .carousel-list > li.life-insurance a{
    color: #8C2368;
}
.group.group-products .carousel-wrap > .carousel-list > li.loss-of-working-capacity a{
    color: #E43D3C;
}
.group.group-products .carousel-wrap > .carousel-list > li.health-insurance a{
    color: #007162;
}
.group.group-products .carousel-wrap > .carousel-list > li.finance a{
    color: #F1961D;

}
.group.group-products .carousel-wrap > .carousel-list > li.pension-savings a{
    color: #142B75;
}
.group.group-for-you{
    position: relative;
}
.popup-wrap{
    display: none;
}
.popup-wrap.open{
    display: block;
    position: absolute;
    left: 0;
    z-index: 1000;
}
.popup-wrap.open .the-popup{
    height: 100%;
    width: 100%;
    position: relative;
}
body.home #main-content{
    position: relative;
}
.popup-wrap.popup-products.open{
    background-color: #FFF;
    top: 0;
    width: 100%;
    height: 100%;
}
.popup-wrap.popup-products.open > .the-popup .close{
    margin: 20px 25px;
    display: inline-block;
}
.popup-wrap.open.popup-products .popup-content.active{
    text-align: center;
    overflow-x: hidden;
    position: absolute;
    bottom: 0;
    height: 90%;
    left: 0;
    width: 100%;
}
.popup-wrap.open.popup-products .popup-content.active img{
    height: 100px !important;
    width: auto !important;
}
.popup-wrap.open.popup-products .popup-content.active figcaption{
    font-weight: 500;
    font-size: 130%;
    margin-top: 10px;
}
.popup-wrap.open.popup-products .amount-wrap{
    width: 60%;
    margin: 40px 20%;
    background-color: #F6F1F4;
    border-radius: 25px;
    padding: 20px 0;
}
.popup-wrap.open.popup-products .amount-wrap:first-child{
    margin: 80px 20% 40px 20%;
}
.popup-wrap.open.popup-products .amount-wrap .future-allowance-title,
.popup-wrap.open.popup-products .amount-wrap .current-amount-title{
    margin: 0 0 10px 0;
}
.popup-wrap.open.popup-products .amount-wrap .amount{
    font-size: 250%;
    font-weight: 100;
}
.popup-wrap.popup-for-you.open{
    bottom: -40px; /* - parent margin-bottom */
    width: calc(100% - 80px);
    padding: 40px;
    background-color: rgba(246, 241, 244, 0.95);
}
.popup-wrap .popup-content{
    display: none;
}
.popup-wrap.open .popup-content.active{
    display: block;
}
.popup-wrap.popup-for-you.open .popup-content.active{
    font-size: 70%;
}

.popup-wrap.popup-for-you .popup-content figure{
    padding: 0;
    margin: 0;
}

.popup-content .popup-title{
    margin: 0 0 5px 0;
    font-size: 120%;
}
.popup-content p{
    margin: 0;
}
.popup-wrap.open.popup-products .popup-content.active::before{
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: absolute;
    top: 8%;
    right: -32px;
}
.popup-wrap.open.popup-products .popup-content.active::after{
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    position: absolute;
    top: 20%;
    left: -32px;
}
.popup-wrap.open.popup-products .popup-content[data-field="life-insurance"] .future-allowance-title,
.popup-wrap.open.popup-products .popup-content[data-field="life-insurance"] .current-amount-title{
    color: #8C2368;
}
.popup-wrap.open.popup-products .popup-content[data-field="loss-of-working-capacity"] .future-allowance-title,
.popup-wrap.open.popup-products .popup-content[data-field="loss-of-working-capacity"] .current-amount-title{
    color: #E43D3C;
}
.popup-wrap.open.popup-products .popup-content[data-field="health-insurance"] .future-allowance-title,
.popup-wrap.open.popup-products .popup-content[data-field="health-insurance"] .current-amount-title{
    color: #007162;
    margin-bottom: 20px;
    display: block;
}
.popup-wrap.open.popup-products .popup-content[data-field="finance"] .future-allowance-title,
.popup-wrap.open.popup-products .popup-content[data-field="finance"] .current-amount-title{
    color: #F1961D;
}
.popup-wrap.open.popup-products .popup-content[data-field="pension-savings"] .future-allowance-title,
.popup-wrap.open.popup-products .popup-content[data-field="pension-savings"] .current-amount-title{
    color: #142B75;
}

.popup-wrap.open.popup-products .popup-content.active[data-field="life-insurance"]::before,
.popup-wrap.open.popup-products .popup-content.active[data-field="life-insurance"]::after{
    background-color: #8C2368;
}
.popup-wrap.open.popup-products .popup-content.active[data-field="loss-of-working-capacity"]::before,
.popup-wrap.open.popup-products .popup-content.active[data-field="loss-of-working-capacity"]::after{
    background-color: #E43D3C;
}
.popup-wrap.open.popup-products .popup-content.active[data-field="health-insurance"]::before,
.popup-wrap.open.popup-products .popup-content.active[data-field="health-insurance"]::after{
    background-color: #007162;
}
.popup-wrap.open.popup-products .popup-content.active[data-field="finance"]::before,
.popup-wrap.open.popup-products .popup-content.active[data-field="finance"]::after{
    background-color: #F1961D;
}
.popup-wrap.open.popup-products .popup-content.active[data-field="pension-savings"]::before,
.popup-wrap.open.popup-products .popup-content.active[data-field="pension-savings"]::after{
    background-color: #142B75;
}
.popup-wrap.open.popup-products .scroll-wrap{
    height: 70%;
}
.popup-wrap.open.popup-products ul.health-insurance-list{
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    width: 70%;
}
.popup-wrap.open.popup-products ul.health-insurance-list li{
    margin-bottom: 5px;
    background-color: #F6F1F4;
    border-radius: 25px;
    text-align: right;
    position: relative;
    padding: 12px 50px;
}
.popup-wrap.open.popup-products ul.health-insurance-list li.no{
    padding: 11px 50px 11px 10px;
}
.popup-wrap.open.popup-products ul.health-insurance-list li.yes::before{
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #007162;
    background-image: url("/images/V.png");
    background-size: 12px 8px;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 5px;
    right: 5px;
}
.popup-wrap.open.popup-products ul.health-insurance-list li.no::before{
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #E43D3C;
    background-image: url("/images/X.png");
    background-size: 9px 9px;
    background-repeat: no-repeat;
    background-position: center center;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 5px;
    right: 5px;
}
.popup-wrap.open.popup-products ul.health-insurance-list li.no a.btn{
    float: left;
}
.popup-wrap.open.popup-products ul.health-insurance-list li.no::after{
    content: " ";
    clear: both;
    display: block;
}

.popup-content a.btn:hover,
.popup-content a.btn{
    display: inline-block;
    background-color: #FFF;
    border: 1px solid #8C2368;
    border-radius: 10px;
    color: #8C2368;
    padding: 2px 5px;
    text-decoration: none;
    margin: 5px 0;
}
.popup-wrap.open.popup-products .popup-content a.btn:hover,
.popup-wrap.open.popup-products .popup-content a.btn{
    margin: 0;
    font-size: 80%;
}
body.home #main-content > .group{
    flex-grow: 1;
}
.sub-title{
    font-weight: bold;
}
@media only screen and (max-width : 500px){
    .group.group-products .carousel-wrap > .carousel-list > li figure{
        width: 150px;
        height: 150px;
    }
}
