.service-head{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}
.aboutT2.a{
    margin-bottom: 25px;
    line-height: 1.2;
}
.aboutT1.a{
    margin-bottom: 35px;
}
.service-head svg{
    width: 10%;
    height: auto;
}
.vspace.maxW{
    color: var(--Color1);
}
.service-head-text{
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 160px;
}
.material-content.ser{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 120px;
    padding: 0 20px;
    position: relative;
    align-items: flex-start;
}
.material-content.ser:last-child{
    margin: 0 0 120px;
}
.material-content.ser .text-block{
    flex: 1 !important;
    width: 420px;
}
.text-block.ser{
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
 }
.text-block.ser.last{
    background:transparent;
    border: none;
    box-shadow: none;
}
.aboutT1.ser{
    font-size: 32px;
    font-weight: 500;
    position: relative;
    padding-left: 34px;
}
.bigen{
    font-size: 120px;
    font-weight: 500;
    font-family: "Balthazar", serif;
    color: rgba(130, 93, 42, 0.2);
    position: absolute;
    top: -61px;
    left: 0;
    z-index: 0;
}
.story-content.ser{
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}
.story-content.ser ol{
    font-size: 18px;
    line-height: 2;
    list-style-type: none;
    counter-reset: item;
    padding: 0;
}
.story-content.ser ol li{
    counter-increment: item;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    transition: all 0.3s ease;
}
.story-content.ser ol li:before{
    content: counter(item);
    background: var(--Color6);
    color: var(--Color1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.text-block.ser.right{
    margin-top: 300px;
}
.text-block.ser .inLtit.text-block{
    margin: 30px 0;
}

.inLtit.text-block i {
    width: 100%
}

.text-block.ser .inLtit::before{
    right: 0;
}

.text-block.ser.two{
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.material-content.ser.two .text-block{
    width: 300px;
}
.text-block.ser.two .aboutT1.B{
    padding-left: 30px;
}
.text-block.ser.two .story-content{
    padding-left: 30px;
}
.text-block.ser.two.right .aboutT1.B{
    padding-left: 140px;
}
.text-block.ser.two.right .story-content{
    padding-left: 140px;
}
.material-content.ser.two{
    z-index: 1;
    gap: 100px;
}
.text-block-wrap {
    display: flex;
    align-items: flex-start;
}
.inLtit.text-block.ser.two{
    margin: 10px 0 30px;
}
.inLtit.text-block.ser.two i{
    width: 100%!important;
}
.text-block.ser.two .inLtit::before {
    right: 0;
}
.text-block.ser.two.right .inLtit::before{
    transform: scaleX(-1);
    left: 0;
}
.vspace.maxW{
    position: relative;
}
.vspace.maxW .inLtit:first-child::before {
    left: 45.9%;
    transform: rotate(90deg);
    top: 1600px;
    margin: 0;
    position: absolute;
}
.vspace.maxW .inLtit.text-block.ser.two:first-child i {
    width: 2px !important;
    height: 1700px;
    left: 50%;
    transform: translateX(-50%);
    top: -32px;
    margin: 0;
    position: absolute;
}
.ser-item {
    margin: 23px 0;
    flex-shrink: 0;
    position: relative;
    background-color: var(--Color6);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--Color7);
    box-shadow: inset 0px -2px 5px var(--Color4), inset 0px 3px 7px rgba(0, 0, 0, 0.15);
}
.ser-item svg{
    width: 60px;
    height: 60px;
}
.ser-item img{
    width: 60px;
    height: 60px;
}
.text-block.ser.two {
    flex: 1;
    padding-top: 20px;
}
.text-block.ser.two.right{
    margin-top: 0;
}
.text-block-wrap.right{
    margin-top: 280px;
}

.text-block.ser.two .aboutT1.B {
    font-size: 40px;
    color: var(--Color1);
    font-family: "Balthazar", serif;
}

.text-block.ser.two .story-content p {
    font-size: 20px;
    line-height: 2;
    font-weight: 400;
    color: var(--Color1);
}
.text-block.ser.two:hover{
    transform: none;
    box-shadow: none;
}
.service-head-text.two{
    margin: 160px auto;
    text-align: left;
    max-width: 500px;
    border: 1px solid var(--Color7);
    background: var(--Color9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0px -2px 5px var(--Color4), inset 0px 3px 7px rgba(0, 0, 0, 0.15);
}
.service-head-text.two ol{
    padding-left: 20px;
}
.service-head-text.two li{
    margin: 15px 0;
    line-height: 1.8;
    color: var(--Color1);
}
.service-head-text.two .aboutT1.a{
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--Color1);
    border-bottom: 1px solid var(--Color7);
}
@media (min-width: 1220px) {
    .text-block.ser.right .inLtit::before{
        right: unset;
        left: 0px;
    }
    .text-block.ser.right .aboutT1.ser{
        padding-left: 235px;
    }
    .text-block.ser.right .story-content{
        padding-left: 235px;
    }
    .text-block.ser.right .bigen{
        right: 40px;
        left: unset;
    }
}

@media (max-width: 1219.98px) {
    .material-content.ser.w{
        flex-direction: unset;
        gap: 80px;
    }
    .material-content.ser{
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
    }
    .material-content.ser .text-block{
        width: calc(100% - 40px);
        padding: 0;
    }
    .text-block.ser{
        padding: 30px;
    }
    .text-block.ser.right{
        margin-top: 200px;
    }
    .text-block.ser .inLtit.text-block {
        margin: 20px 0;
    }
    .inLtit.text-block i {
        width: calc(100% + 40px)!important;
    }
    .text-block.ser .inLtit::before{
        right: -40px;
    }
    .aboutT1.ser{
        font-size: 24px;
    }
    .story-content.ser ol{
        font-size: 16px;
    }
    .service-head-text{
        font-size: 16px;
    }
    .bigen{
        font-size: 80px;
        top: -30px;
    }
    
    .text-block-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 40px auto 0;
        z-index: 1;
    }
    .text-block-wrap.right {
        margin-top: 0;
    }
    .inLtit.text-block.ser.two:not(.st){
        display:none;
    }
    .vspace.maxW .inLtit.text-block.ser.two:first-child i{
        height: 2100px;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }
    .vspace.maxW .inLtit:first-child::before{
        top: 2000px;
        left: 50.2%;
        transform: translateX(-50%) rotate(90deg);
        position: absolute;
    }
    .material-content.ser.two{
        gap: 60px;
    }
    .material-content.ser.two .text-block {
        display: flex;
        justify-content: space-between;
        gap: 80px;
    }
    .text-block.ser.two .aboutT1.B,
    .text-block.ser.two.right .aboutT1.B{
        flex: 1;
        padding-left: 20px;
        font-size: 32px;
    }
    .text-block.ser.two .story-content,
    .text-block.ser.two.right .story-content{
        flex: 1;
        padding-left: 0;
    }
    .text-block.ser.two .story-content p,
    .text-block.ser.two.right .story-content p{
        margin: 0;
        font-size: 16px;
    }
}
@media (max-width: 767.98px) {
    .material-content.ser.w{
        flex-direction: column;
        margin-bottom: 80px;
    }
    .inPline {
        height: 260px;
    }
    .inLtit.text-block i {
        width: calc(100% + 80px)!important;
    }
    .text-block.ser .inLtit::before{
        right: -80px;
    }
    .text-block.ser.right{
        margin-top: 0px;
    }
    .vspace.maxW .inLtit:first-child::before{
        left: 50.4%;
    }
    .vspace.maxW .inLtit.text-block.ser.two:first-child i{
        top: -90px;
        height: 2150px;
    }
}

.inPline.ser{
    background-image: url(../img/SVG/inLbtit2.svg);
}

.inPline svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.inPtit {
    background-image: url(../img/SVG/inLbbg2.svg);
    position: relative;
    width: 100%;
    height: 100%;
}


.cls-1 {
    opacity: 0.3;
}

/* 調整錨點跳轉位置，讓目標元素置頂顯示 */
html {
    scroll-padding-top: 100px; /* 調整這個值來控制跳轉後的頂部間距 */
}

/* 或者使用 scroll-margin-top 來調整特定元素的跳轉位置 */
#ser1, #ser2, #ser3, #ser4, #ser5, #ser6, #ser7, #ser8, #ser9, #ser10 {
    scroll-margin-top: 100px; /* 調整這個值來控制跳轉後的頂部間距 */
}
