::-webkit-scrollbar:horizontal {
    height: 4px !important;
}

.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;

    display: flex;
    flex-direction: column;
    gap: 30px;

    position: relative;
}

.frameDiv.noTop {
    padding-top: 0;
}

#tagFrame {
    background-color: #F9F7F4;
}

#tagContentDiv {
    display: flex;
    gap: 50px;
    flex-direction: column;
    margin-bottom: 30px;
}

.tagBlock {
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    border: 1px solid #F4F5F6;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    position: relative;
}

.tagBlock img {
    width: 100px;
    height: auto;
}

.tagBlockContentDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 5px;

    /*width: 850px;*/
    width: calc(100% - 130px);
    flex: none;
    order: 1;
    flex-grow: 1;
}

.tagBlockTitle {
    font-weight: bold;
    font-size: 28px;
    line-height: 150%;
    color: #2B7A77;

    display: flex;
    align-items: center;
    letter-spacing: 0.04em;
    text-align: justify;

    flex: none;
    align-self: stretch;
    flex-grow: 0;
}

.tagBlockContent {
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;
    color: #717784;
    display: flex;
    align-items: center;
    text-align: justify;
    letter-spacing: 0.4px;
}

.caption {
    font-style: normal;
    font-weight: bold;
    font-size: 36px !important;
    line-height: normal;
    color: #3AAFA9;
}

.smallCaption {
    color: #2B7A77 !important;
    font-size: 28px !important;
    font-style: normal !important;
    font-weight: bold !important;
    line-height: 150% !important;
    letter-spacing: 1.12px !important;
}

.contentDiv {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 100%;
    flex: none;
    flex-grow: 0;
}

.contentDiv span,.contentDoc {
    font-style: normal;
    font-weight: normal;
    font-size: 20px;
    line-height: 150%;
    text-align: justify;
    letter-spacing: 0.4px;
    color: #40474A;
}

.targetFrameScrollDiv {
    width: 100%;
    max-width: 1080px;
    overflow-x: auto;
    margin-left: auto;
    margin-right: auto;
}

.targetFrameDiv {
    display: flex;
    flex-direction: column;
    /*width: 100%;*/
    /*max-width: 1080px;*/
    width: 1080px;
    /*margin-left: auto;*/
    /*margin-right: auto;*/
}

#targetCaption {
    width: 100%;
    max-width: 1080px;
    height: 60px;
    border-radius: 5px;
    border: 2px solid #2B7A77;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2B7A77;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: 0.4px;
}

.targetDiv {
    margin-top: 20px;
    /*width: 100%;*/
    /*width: 1080px;*/
    position: relative;
    height: 60px;
}

.targetBlock {
    width: calc((100% / 3) + 32px);
    height: 100%;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    color: white;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    position: absolute;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    padding-left: 24px;
    border-radius: 5px 0 0 5px;
}

.targetTag {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #F7F7F7;
    margin-left: 12px;
    margin-right: 5px;
    margin-bottom: 2px;
}

#shortTarget {
    background-image: url("../../../img/menu/4/4-7/target_1.svg");
    z-index: 3;
    width: 38.42%;
    left: 7px;
}

#middleTarget {
    background-image: url("../../../img/menu/4/4-7/target_2.svg");
    z-index: 2;
    width: 31.48%;
    left: calc(38.42% - 7px + 7px);
}

#longTarget {
    background-color: #C8B400;
    z-index: 1;
    width: 30%;
    left: calc(70% - 14px + 7px);
    border-radius: 5px !important;
}

.targetContentDiv {
    width: 100%;
    height: 150px;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 7px;
    padding-right: 7px;
}

.targetBlockContent {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 5px;
    text-align: left;

    color: #F7F7F7;
    font-size: 16px;
    font-style: normal;
    font-weight: normal;
    line-height: 150%;
    letter-spacing: 0.32px;
    padding: 20px;
}

#shortTargetContent {
    width: 37%;
    background-color: #2B7A77;
}

#middleTargetContent {
    width: 30.3%;
    background-color: #3AAFA9;
}

#longTargetContent {
    width: 30.3%;
    background-color: #C8B400;
}

.imageBlockScrollDiv {
    width: 100%;
    overflow-x: auto;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.imageBlock {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
    gap: 30px;
    width: 100%;
    position: relative;
    left: 0;
    top: 0;
}

.imageBlock img {
    max-width: 525px;
    height: auto;
}

.leftImg,.rightImg {
    width: 50px !important;
    height: 50px !important;
    position: absolute;
    top: calc(50% - 25px);
    z-index: 2;
    cursor: pointer;
    display: none;
}

.leftImg {
    left: -10px;
}

.rightImg {
    right: -10px;
}

#plotContentDiv {
    position: relative;
}

.imageBlockSelectDiv {
    /*display: flex;*/
    display: none;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    height: 10px;
}

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

.imageBlockSelectDiv div.focus {
    background-color: #F4D242;
}

#tag1 {
    background-image: url("../../../img/menu/4/4-7/標準化.svg");
    z-index: 4;
    width: 25.83%;
    left: 0;
}
#tag2 {
    background-image: url("../../../img/menu/4/4-7/自動化.svg");
    z-index: 3;
    width: 25.09%;
    left: calc(25.83% - 30px);
    justify-content: center;
}
#tag3 {
    background-image: url("../../../img/menu/4/4-7/數位化.svg");
    z-index: 2;
    width: 27.40%;
    left: calc(50.92% - 60px);
    justify-content: center;
}
#tag4 {
    background-color: #C8B400;
    z-index: 1;
    width: calc(21.67% + 120px);
    left: calc(78.32% - 120px);
    justify-content: center;
    border-radius: 0 5px 5px 0;
}

.historyDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.historyDiv img {
    max-width: 123px;
    max-height: 90px;
}

.historyMap1, .historyMap2 {
    display: flex;
    width: 160px;
    height: 260px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;

    border-radius: 20px;
    border: 2px solid #008CDB;
    background-color: white;
    padding-bottom: 20px;
    padding-top: 20px;
}

.historyMap1 div {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.historyMap2 {
    width: 320px;
}

.historyMap3 {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.historyMap4, .historyMap5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.historyMap5 {
    gap: 55px;
}

.historyHead {
    font-size: 20px;
    font-style: normal;
    font-weight: bold;
    line-height: 150%;
    letter-spacing: 0.4px;
    color: #008CDB;
}

.historyFoot {
    color: #005B8E;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: bold;
    line-height: 150%;
}

.historyFoot.hide {
    visibility: hidden;
}

.historyScrollDiv {
    width: 100%;
    overflow-x: auto;
}

/*-------------------------------------------------------*/
@media only screen and (max-width: 1080px) {
    .frameDiv {
        padding-right: 15px;
        padding-left: 15px;
    }

    #targetCaption {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
    }

    .targetFrameScrollDiv {
        width: calc(100% - 30px);
    }
}

/*------------  512px 以下，就認為是手機 -----------------*/
@media only screen and (max-width: 512px) {
    ::-webkit-scrollbar:horizontal {
        height: 5px !important;
    }

    .frameDiv {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .caption {
        font-size: 24px !important;
        line-height: 31.92px !important;
    }

    .contentDoc {
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0.32px;
    }

    .targetFrameDiv {
        width: 750px;
    }

    #shortTarget {
        width: 45.14%;
        left: 0;
    }

    #middleTarget {
        width: 31.07%;
        left: calc(45.14% - 7px);
    }

    #longTarget {
        width: 25.96%;
        left: calc(76.21% - 16px);
    }

    .historyMap5 {
        gap: 15px;
    }

    .targetContentDiv {
        padding-left: 0;
        padding-right: 0;
        height: 124px;
    }

    #shortTargetContent {
        width: 43%;
    }

    #middleTargetContent {
        width: 28.77%;
    }

    #longTargetContent {
        width: 25.95%;
    }

    .targetBlockContent {
        padding: 20px 0;
        font-size: 14px;
        letter-spacing: 0.28px;
    }

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

    .imageBlockScrollDiv {
        width: calc(100% - 30px);
    }

    .imageBlockSelectDiv {
        display: flex;
    }

    .imageBlock img {
        width: 100%;
        height: auto;
    }

    .rightImg {
        display: block;
    }

    .historyDiv img {
        max-width: none;
        width: auto;
        height: 50px;
    }

    .historyMap1, .historyMap2 {
        height: 160px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .targetDiv {
        height: 50px;
    }

    #targetTagDiv {
        width: 914px;
    }

    .historyHead {
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0.32px;
    }

    .historyMap2 {
        width: 203px;
    }

    #tag1 {
        width: 30.22%;
        left: 0;
    }
    #tag2 {
        width: 24.05%;
        left: calc(30.22% - 30px);
    }
    #tag3 {
        width: 26.21%;
        left: calc(54.27% - 60px);
    }
    #tag4 {
        width: calc(19.5% + 120px);
        left: calc(80.48% - 120px);
    }

    .tagBlock {
        gap: 10px;
    }

    .tagBlock img {
        width: 50px;
    }

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

    .tagBlockContent {
        font-size: 16px;
        line-height: 130%;
        letter-spacing: 0.32px;
    }

    #tagContentDiv {
        gap: 20px;
    }
}