:root {
    --rwdMaxWidth: 512px;
}

.allDiv {
    /*display: none;*/
    width: 100%;
    text-align: center;
}

.frame {
    width: 100%;
}

.frameDiv {
    width: 100%;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

.caption {
    font-style: normal;
    font-weight: 700;
    font-size: 36px !important;
    line-height: 53px;
    color: #3AAFA9;
    margin-bottom: 50px;
}

.commonDiv {
    display: flex;
    flex-direction: row;
    flex-wrap:wrap;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 40px;

    width: 100%;

    flex: none;
    flex-grow: 0;
}

#awardContentDiv {
    width: auto !important;
    /*justify-content: center;*/
    flex-wrap: nowrap;
    position: relative;
}

.commonCard, .awardCard {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    width: 240px;
    height: 160px;

    background: #FFFFFF;
    border-radius: 20px;

    flex: none;
    flex-grow: 0;
}

.commonCard img {
    /*width: 185px;*/
    width: auto;
    height: 100px;
}

.commonCard span {
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #40474A;
}

.awardCard {
    position: relative;
    background-color: transparent;
}

.awardCard img {
    width: 100%;
    height: 100%;
}

.awardCard span {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 118px;
    height: 81px;
    margin: auto;
    color: #FFF59B;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 150%;
}

#interFlowFrame {
    background-color: #f7f7f7;
    padding-bottom: 30px;
    /*display: none;*/
}

#pushFrame {
    background-color: #EEEEEE;
    /*display: none;*/
}

#pushDiv {
    position: relative;
}
/* ====================== */
#triangleDiv {
    width: 100%;
    height: 20px;
    position: relative;
    display: none;
}

#triangle {
    display: none;
    position: absolute;
    left: 50%;
    top : 10px;
    width: 21px;
    height: 21px;
    border-left: 1px solid white;
    border-top: 1px solid white;
    background-color: white;
    transform: matrix(0.71, 0.69, -0.72, 0.71, 0, 0);
    z-index: 3;
}

.triangleDiv {
    width: 100%;
    height: 20px;
    position: relative;
    display: none;
}

.triangle {
    position: absolute;
    left: calc(50% - 10px);
    top : 10px;
    width: 21px;
    height: 21px;
    border-left: 1px solid white;
    border-top: 1px solid white;
    background-color: white;
    transform: matrix(0.71, 0.69, -0.72, 0.71, 0, 0);
    z-index: 3;
}

#chatDiv {
    display: none;
    position: absolute;
    z-index: 2;
    width: 100%;
}

#chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 50px;
    gap: 10px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    flex: none;
    flex-grow: 0;
}

.chatContentDiv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 10px;

    width: 100%;
    flex: none;
    flex-grow: 0;
    color: #717784;
}

.chatContent div {
    text-align: left;
}

.chatContentTitle {
    font-weight: 700;
    color: #2B7A77 !important;
    font-size: 24px;
    line-height: 120%;
}

.chatContent {
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #40474A;
    text-align: left;
}

#pushBlockScrollDiv,#awardScrollDiv {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#awardScrollDiv {
    overflow-x: auto !important;
    margin-left: auto;
    margin-right: auto;
}

#pushBlockDiv {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 40px;
    width: 100%;
    flex: none;
    flex-grow: 0;
    justify-content: space-between;
    position: relative;
    left: 0;
    top: 0;
}

.pushBlock,.pushBlockSide {
    display: flex;
    flex-direction: column;
}

.pushBlockCard {
    box-sizing: border-box;
    display: flex;
    align-items: center;

    width: 240px;
    height: 158px;

    background-color:  white;
    border: 1px solid #F4F5F6;

    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
    border-radius: 20px;

    flex: none;
    flex-grow: 0;
    cursor: pointer;
    position: relative;
}

.pushBlockCard {
    flex-direction: row;
}

.pushBlock .mainIcon,.pushBlockSide .mainIcon {
    width: auto;
    height: auto;
    max-width: calc(100% - 60px);
    max-height: 70%;
    margin-left: auto;
    margin-right: auto;
}

.pushBlock .extendIcon,.pushBlockSide .extendIcon {
    position: absolute;
    bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    left: calc(50% - 8px);
}

#pushLeftImg,#pushRightImg {
    width: 50px;
    height: 50px;
    position: absolute;
    /*top: 188px;*/
    top: 204px;
    z-index: 2;
    cursor: pointer;
    display: block;
}

#pushLeftImg {
    left: -25px;
}

#pushRightImg {
    right: -25px;
}

#pushBlockSelectDiv, #awardSelectDiv {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    height: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}

#pushBlockSelectDiv {
    /*display: flex;*/
    display: none;
}
#awardSelectDiv {
    display: none;
}

#pushBlockSelectDiv div,#awardSelectDiv div {
    width: 8px;
    height: 8px;
    background-color: #4AC8C1;
    border-radius: 10px;
    cursor: pointer;
}

#pushBlockSelectDiv div.focus, #awardSelectDiv div.focus {
    background-color: #F4D242;
}

#awardLeftImg,#awardRightImg {
    width: 30px;
    height: 30px;
    position: absolute;
    top: calc(50% - 15px);
    z-index: 2;
    cursor: pointer;
    display: none;
}

#awardLeftImg {
    left: 0;
}

#awardRightImg {
    right: 0;
}

/* ====================== */
#targetFrame {
    /*height: 787px;*/
    height: auto;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: rgba(111, 186, 44, 0.6);
    background-image: linear-gradient(0deg, rgba(111, 186, 44, 0.6), rgba(111, 186, 44, 0.6)), url("../../../img/menu/1/1-2/目標背景.jpg");
    /*display: none;*/
}

#targetFrame .caption {
    color: #2B7A77 !important;
}

.targetContentDiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;

    height: auto;
    flex: none;
    flex-grow: 0;
}

.targetContentTagDiv {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.targetContentTag {
    padding: 7px 23px 17px 23px;
    border-radius: 15px 15px 0 0;

    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    align-items: center;
    background-color: #348C87;
    color: #B8E9E6;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    font-size: 20px !important;
    line-height: 28px;
    cursor: pointer;
}

.targetContentTag img {
    width: 20px;
    height: 20px;
}

.targetContentDocDiv {
    box-sizing: border-box;
    width: 100%;
    /*min-height: 462px;*/
    padding: 50px 50px 60px 50px;
    display: flex;
    flex-direction: row;
    gap: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #06A59C;
    border-radius: 15px;
    justify-content: center;
}

#targetContentDocDivH {
    display: flex;
}
#targetContentDocDivV {
    display: none;
}

.targetContentDocItem {
    flex: 1;
    /*max-width: 300px;*/
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
}

.targetContentDocItemCaption {
    /*width: 140px;*/
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 150%;
    text-align: left;
    color: #6FBA2C;
}

.targetContentDocItemContent {
    width: calc(100% - 10px);
    text-align: left;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.targetContentDocItemContent ul {
    margin: -10px -17px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.targetContentDocItemContent ul li {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: left;
    color: #40474A;
}

.targetContentTag.onclick {
    background: linear-gradient(133.44deg, #FFFDD8 -12.28%, #00A29A 89.7%);
    color: #FDFFB0;
}

#targetIcon1.onclick {
    content:url(../../../img/menu/1/1-2/目標1_1.svg);
}
#targetIcon2.onclick {
    content:url(../../../img/menu/1/1-2/目標2_1.svg);
}
#targetIcon3.onclick {
    content:url(../../../img/menu/1/1-2/目標3_1.svg);
}
#targetIcon4.onclick {
    content:url(../../../img/menu/1/1-2/目標4_1.svg);
}
#targetIcon5.onclick {
    content:url(../../../img/menu/1/1-2/目標5_1.svg);
}

/* ====================== */
.captionFrame {
    width: 100%;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

.captionDoc {
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    text-align: justify;
    letter-spacing: 0.02em;
    color: #40474A;
}

#circleFrame {
    padding: 0 !important;
}

.circleDiv {
    width: 100%;
    position: relative;
    padding-top: 0;
    padding-bottom: 80px;
}

#circle {
    width: 90vw;
    max-width: 636px;
    height: 90vw;
    max-height: 636px;
    margin-left: auto;
    margin-right: auto;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}

.circleNkg {
    width: 45%;
    height: 45%;
    z-index: 4;
}

.circleEnvironment {
    width: 100%;
    height: 47.5%;
    position: absolute;
    z-index: 2;
    left: 2%;
    top: 0;
    cursor: pointer;
}

.circleGovernance {
    width: 43.83%;
    height: 74.82%;
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 1%;
    cursor: pointer;
}

.circleSocial {
    width: 62.58%;
    height: 64.12%;
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

#circleDialog, #bigCircleDialog {
    box-sizing: border-box;
    /*display: flex;*/
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;

    width: 310px;
    position: absolute;

    background: #F7F7F7;
    border: 1px solid #E6E6E6;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
    border-radius: 10px;

    flex: none;
    flex-grow: 0;
    z-index: 10;
}

#circleDialog.rightTop {
    left: calc(100% + 28px);
    top: 23px;
}
#circleDialog.rightBottom {
    left: calc(100% + 28px);
    bottom: 23px;
}
#circleDialog.leftBottom {
    left: -310px;
    bottom: 23px;
}

#circleDialog span,#bigCircleDialog span {
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    color: #6FBA2C;
}

#circleDialog li,#bigCircleDialog li {
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #717784;
    text-align: left;
}

#circleDialog img,#bigCircleDialog img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

#checkCircleDiv {
    width: 0;
    height: 0;
    display: none;
}

#bigCircleDiv {
    /*display: flex;*/
    display: none;
    z-index: 9;
    justify-content: center;
    align-items: center;

    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

#bigCircleDialog {
    z-index: 10;
}

#circleCloseImg {
    z-index: 10;
    display: none;
    position: absolute;
    width: 16px;
    height: 16px;
    left: 0;
    top: 0;
}

/* ------------- 金寶電子永續發展推動目標 - 環境永續 & 永續供應鏈 ------------- */

.targetContentDocDiv .content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.targetContentDocDiv .row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

#targetContentDocDivV .row {
    justify-content: left;
    flex-direction: column;
}

#targetContentDocDivV .content {
    gap: 10px;
}

.targetContentDocDiv .row .targetContentDocItemCaption {
    flex: 1;
    text-align: center;
}

.targetContentDocDiv .bar {
    width: 100%;
    height: 33px;
    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: 700;
    font-size: 16px;
    color: white;
    border-radius: 10px;
}

.targetContentDocDiv .row .targetContentDocItemContent ul {
    margin: 10px -17px;
}

.targetContentDocDiv .items {
    width: 100%;
    display: flex;
    flex-direction: column;
}
/*----------------------------------*/
@media only screen and (max-width: 1366px) {
    #checkCircleDiv {
        display: block;
    }
}
/*----------------------------------*/
@media only screen and (max-width: 1100px) {
    .frameDiv {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    #targetFrame {
        height: auto;
    }

    .caption {
        font-size: 24px !important;
        line-height: 32px;
        margin-bottom: 20px;
    }

    .captionDoc {
        font-size: 16px;
        line-height: 140%;
    }

    .targetContentDiv {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        height: auto;
        padding-left: 15px;;
        padding-right: 15px;
    }

    .targetContentTagDiv {
        flex-direction: column;
        width: auto;
        gap: 10px;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 15px;
    }

    .targetContentTag {
        flex-direction: column;
        width: 45px;;
        height: auto;
        border-radius: 15px 0 0 15px;
        padding: 15px;
        font-size: 16px !important;
        line-height: 130%;
        margin-bottom: 0;
    }

    .targetContentDocDiv {
        /*width: auto;*/
        height: auto;
        justify-content: flex-start;
        flex-direction: column;
        gap: 30px;
        padding: 30px 10px 30px 10px;
        min-height: 680px;
    }

    #targetContentDocDivH {
        display: none;
    }
    #targetContentDocDivV {
        display: flex;
        gap: 20px;
    }


    .targetContentDocItem.temp1 {
        flex: none;
    }

    .targetContentDocItemCaption {
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0.02em;
    }

    .targetContentDocItemContent {
        width: 100%;
        gap: 10px;
    }

    .targetContentDocItemContent ul {
        width: calc(100% + 10px);
    }

    .targetContentDocItemContent ul li {
        font-size: 14px;
        line-height: 120%;
        letter-spacing: 0.02em;
    }

    .targetContentDocItem {
        flex: none;
        max-width: none;
    }

    .targetContentTag img {
        margin-left: 2px;
    }

    .targetContentTag span {
        writing-mode: vertical-lr;
    }

}
/*----------------------------------*/
@media only screen and (max-width: 1079px) {
    #chat {
        width: calc(100% - 30px);
        height: auto;
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    #pushBlockSelectDiv {
        display: flex;
    }

    .chatContentTitle {
        font-size: 20px;
        line-height: 130%;
    }

    .chatContent {
        font-size: 14px;
        line-height: 120%;
    }

    #pushBlockDiv {
        gap: 10px;
    }

    #pushLeftImg,#pushRightImg {
        width: 30px;
        height: 30px;
        /*top: 155px;*/
        top: 147px;
    }

    #pushLeftImg {
        left: calc((100% - 240px - 30px) / 2);
    }

    #pushRightImg {
        left: calc(((100% - 240px - 30px) / 2) + 240px);
    }
}
/*----------------------------------*/
@media only screen and (max-width: 800px) {
    .commonDiv {
        width: 100%;
        max-width: var(--rwdMaxWidth);
        margin-left: auto;
        margin-right: auto;
        justify-content: space-between;
        gap: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    #awardContentDiv {
        width: auto !important;
        max-width: none;
    }

    .commonCard {
        width: calc(50% - 5px);
        height: 140px;
    }

    .commonCard img {
        /*width: 120px;*/
        width: auto;
        height: 64px;
    }

    .commonCard span {
        font-weight: 400;
        font-size: 14px;
        line-height: 120%;
        letter-spacing: 0.02em;
        padding-left: 20px;
        padding-right: 20px;
    }

    #awardScrollDiv {
        width: 239px !important;
    }

    #awardSelectDiv {
        display: flex;
    }

    #awardLeftImg {
        left: calc((100% - 240px - 30px) / 2);
    }

    #awardRightImg {
        left: calc(((100% - 240px - 30px) / 2) + 240px);
    }

}
/*------------  512px 以下，就認為是手機 -----------------*/
@media only screen and (max-width: 512px) {
    #checkCircleDiv {
        display: flex;
    }

    #circleDialog span,#bigCircleDialog span {
        font-size: 20px;
        line-height: 130%;
    }

    #circleDialog li,#bigCircleDialog li {
        font-size: 16px;
        line-height: 130%;
    }

    .targetContentDocDiv .row .targetContentDocItemContent ul {
        margin-left: 0;
    }

    .targetContentDocDiv .row .targetContentDocItemCaption {
        text-align: left;
    }

    .targetContentDocItemContent ul {
        width: calc(100% + 5px);
        margin: 0;
        padding-left: 20px;
    }

    #targetContentDocDivV .row .targetContentDocItemContent ul {
        gap: 0;
    }
}
/*----------------------------------*/
@media only screen and (max-width: 375px) {
    .commonDiv {
        justify-content: center;
    }

    #awardContentDiv {
        justify-content: normal !important;
    }
}
