/*-----------全部------------*/
/* 這裡是共用的樣式 */

* {
    box-sizing: border-box;
    font-family: "MingLiU", Arial, sans-serif;
}

html{
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
}
h1{
    font-size: 2vw;
}
h2{
    font-size: 1.5vw;
}
h3{
    font-size: 1.1vw;
}
p{
    font-size: 1vw;
}
/*-----------header------------*/
header {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 10%;
    background-color: #f1f1f1;
    border-bottom: 0.5vw solid black;
    display: flex;
    align-items: center;
  }
  
  .logo {
    padding-left: 3%;
    width: 30%;
  }
  
  .logo img {
    top: 1%;
    width: 100%;
  }

  .title{
    padding-left: 5%;
    width: 70%;
  }
  
  .button {
    font-size: 1.8vw;
    text-align: center;
    display: inline-block;
    width: 170%;
    color: #000000;
    background-color: transparent;
    border: none;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .button:hover,
  .dropdown:hover .button {
    background-color: rgba(0, 0, 0, 0.609);
    color: #ffffff;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
    z-index: 999;
    float: left;;
    margin-right: 7%;
  }
  
  .dropdown-content {
    font-size: 1.5vw;
    text-align: center;
    width: 170%;
    display: none;
    z-index:999;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.609);
    box-shadow: 0vw 1.6vw 0.8vw 0vw rgba(0, 0, 0, 0.2);
    padding: 0;
  }
  
  .dropdown-content a {
    display: block;
    padding: 1%;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .dropdown-content a:hover {
    background-color: #838181;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }

/*-----------body------------*/

body {
    margin: 0;
    margin-top: 10vh;
    /* 為了避免標題遮擋內容，給body一個上邊距 */

}

/*-----------main------------*/
main {
    margin: 5%;
    flex-grow: 1;
}

.custom-hr {
    border: none;
    border-top: 1px solid rgb(194, 194, 194);
    width: 80%;
    margin: 2% auto;
}

/*-----------footer------------*/
footer {
    background-image: url(picture/footer.png);
    display: flex;
    justify-content: space-between;
    background-color: #f1f1f1;
    color: #f1f1f1;
    padding: 2%;
}

footer img {
    background-color: aliceblue;
}

.column {
    flex-basis: 30%;
}

/*-----------子選單------------*/
#關於我們 {
    scroll-margin-top: 130px;
}

#品質政策 {
    scroll-margin-top: 130px;
}

#環境政策 {
    scroll-margin-top: 130px;
}

#技術服務 {
    scroll-margin-top: 130px;
}

#技術機台 {
    scroll-margin-top: 130px;
}

#服務流程{
    scroll-margin-top: 130px;
}

#g1 {
    scroll-margin-top: 130px;
}

#g2 {
    scroll-margin-top: 130px;
}

#g3 {
    scroll-margin-top: 130px;
}

#g4 {
    scroll-margin-top: 130px;
}

#g5 {
    scroll-margin-top: 130px;
}
#g6 {
    scroll-margin-top: 130px;
}

#g7 {
    scroll-margin-top: 130px;
}

#g8 {
    scroll-margin-top: 130px;
}