* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #fff;
    line-height: 1.6;
}

.bgimg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('./images/shutterstock_1668562333.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.about_container {
    padding: 20px;
}

.about_bg {
    width: 40%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
}

.about_content1{
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    text-align: center;
}

.about_content2{
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    text-align: center;
}

.about_content2 h3{
    padding: 0px 90px 0px 90px;
    color: #fcca4f;
    text-align: left;
}
.about_content2 p{
    padding: 0px 90px 0 90px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: left;
}



.about_content1 h2{
    position: relative;
    display: inline-block;

    margin-bottom: 10px;
    margin-top: 25px;
    padding-bottom: 10px;

    font-size: 36px;
    font-weight: 500;
    letter-spacing: 4px;
}

.about_content1 h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: #fcca4f;
}

.company_history_container {
    background-color: white;
}

.company_history_bg {
    width: 40%;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
}

.company_history_content1{
    margin: 10px 0;
    padding: 10px;
    text-align: center;
}

.company_history_content1 h2{
    position: relative;
    display: inline-block;

    margin-bottom: 10px;
    margin-top: 25px;
    padding-bottom: 10px;

    color: #333;
    font-size: 33px;
    letter-spacing: 4px;
}

.company_history_content1 p{
    color:rgba(50, 50, 50, 0.8);
}

.company_history_content1 h2::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: #fcca4f;
}

.main_container {
    display: flex;
    justify-content: center;
    background-color: white;
}

.main_bg {
    background-color: rgba(255, 255, 255, 0.6);
    width: 1200px;
}

.main_content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
}



/* 黃點 */
.main_content {
    position: relative;
}
.main_content_text::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translateX(-50%);
    background-color: #fcca4f;
    z-index: 1
}
/* 灰線 */
.main_container {
    position: relative;
}
.main_bg::after {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 99%;
    transform: translateX(-50%);
    background-color: #ccc;
}

.main_content_img{
    width: 580px;
    height: 360px;
    background-size: contain; /* 等比縮放圖片 */
    background-repeat: no-repeat; 
    background-position: center;
}
.main_content_img1{
    background-image: url('./images/1shutterstock_2265726729.jpg');
}
.main_content_img2{
    background-image: url('./images/2shutterstock_2454248093.jpg');
}
.main_content_img3{
    background-image: url('./images/3shutterstock_2416663047.jpg');
}
.main_content_img4{
    background-image: url('./images/4shutterstock_2337247887.jpg');
}
.main_content_img5{
    background-image: url('./images/5shutterstock_2498748581.jpg');
}
.main_content_img6{
    background-image: url('./images/shutterstock_367853279.jpg');
}

.main_content_img, .main_content_text {
    flex: 1;
    padding: 10px;
    margin: 5px;
    text-align: left;
    color: #333;
}
.main_content_text h2{
    color: rgb(22, 94, 167);   
}
.main_content_text p{
    padding-left: 5px;
    line-height: 30px;
    letter-spacing: 2px;
    font-weight: 500;
}

.message {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.message_bg {
    margin-top: 100px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    width: 50%;
}

.message_title_bg {
    padding: 30px 10px 10px 10px;
    margin-bottom: 20px;
    text-align: center;
}

.message_title_bg h2{
    position: relative;
    display: inline-block;

    margin-bottom: 10px;
    margin-top: 25px;
    padding-bottom: 10px;

    font-size: 33px;
    letter-spacing: 4px;
}
.message_title_bg  h2::after{
    content: "";
    position: absolute; 
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background-color: #fcca4f;
}

.message_title_text h2{
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 4px;
}

.message_text_content {
    padding: 0px 90px 30px 90px;
    margin-bottom: 10px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
}


/* RWD */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .bgimg{
        background-image: url('');
        background-color: white;
    }

    .main_content_text::after, .main_bg::after {
        content: none;
    }

    .about_container{
        padding: 0;
    }

    .about_bg {
        width: 100%;
        padding: 0;
    }

    .about_content2 h3, 
    .about_content2 p {
        padding: 0 15px;
        font-size: 14px;
    }

    .company_history_bg {
        width: 90%;
    }

    .main_container {
        display: block;
        padding: 0 10px;
    }

    .main_bg {
        width: 100%; 
    }

    .main_content {
        display: block; 
        padding: 0 0 10px 0;
    }

    .main_content_img{
        width: 100%;
        height: 210px;
        margin: 0 0 15px 0;
    }

    .main_content_text {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .main_content_text h2{
        margin: 0 0 10px 0;
        padding: 0 15px;
    }
    .main_content_text p{
        margin: 0 0 10px 0;
        padding: 0 15px;
    }

    .message{
        padding: 0;
    }

    .message_bg {
        width: 100%;
        padding: 15px;
    }

    .message_text_content {
        padding: 0 15px; 
        font-size: 14px; 
    }

    .company_history_content1{
        margin: 0;
        padding: 0;
    }

    .about_content1, .about_content2, .message_bg {
        background-color: rgba(0, 0, 0, 0.7);
    }
}
