/* All--------------------------------------------------------------------------- */

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "微軟正黑體", Nanum Barun Gothic, sans-serif;
  background: #000;
  color: #3e3e3e;
  font-weight: 400;
  line-height: 24px;
}

img {
  max-width: 100%;
  height: auto;
}

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
  outline: none;
}

header {
  z-index: 999;
}

::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar-button {
  display: none
}

button {
  border: none;
  background-color: transparent !important;
}

/* landscape----------------------------- */
.landscape {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  overflow: auto;
  background: #33313e;
  display: none;
  z-index: 9999;
}

.landscape span {
  position: absolute;
  right: 0;
  top: 50%;
  margin: 0;
  width: 100%;
  text-align: center;
  -webkit-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.landscape span>p {
  color: #ccc;
  margin: 0;
  font-size: 16px;
}

/* landscape-end--------------------- */

/* sidebar */
.sideBtn {
  display: none;
}

/*-- section --*/
h1 {
  margin: 6% 0 2% 0;
}

h2 {
  position: relative;
  width: 20%;
  text-align: left;
  color: rgb(0, 0, 0);
  margin: 4% 0 0 0;
}

h2 span:first-of-type {
  display: inline-block;
  width: 70px;
  height: 1px;
  background: rgb(0, 0, 0);
  margin-bottom: 8px;
  line-height: 18px;
}

h2 span:last-of-type {
  display: inline-block;
  border: solid 1px  rgb(0, 0, 0);
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  padding: 10px;
}

h3 {
  margin-right: 1%;
}

h3 img:first-of-type {
  margin-bottom: 6%;
}

h4 {
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
  margin: 4% 0;
}

h4 span {
  display: inline-block;
  background-color: #ffd52b;
  padding: 0.4% 1%;
  color: black;
  margin-right: 1%;
  white-space: nowrap;
}

h6 {
  display: inline-block;
  width: 60px;
  line-height: 14px;
  font-size: 18px;
  font-weight: bold;
  border-left: solid 2px black;
  margin-right: 2%;
  padding-left: 6px;
  float: left;
}

.s0 {
  position: relative;
  width: 100vw;
  height: 140vh;
  background: url(../image/rain_bg.jpg) no-repeat center center;
  background-size: cover;
  overflow: hidden;
}


.scene {
  position: relative;
}

.rainani{
  position: absolute;
  top: 16vh;
}

.rainani5{
  position: absolute;
  top:17vh;
  left: 39vw;

}

.rainani6{
  position: absolute;
  top:23vh;
  left: 26vw;

}

.rainani3{
  position: absolute;
  top:13vh;
  left: 75vw;

}

.role {
  position: absolute;
  width: 1336px;
  height: 1701px;
  margin-top: -5%;
  margin-left: 42%;
  background: url(../image/rain_main.png) no-repeat center center;
}

.role2 {
  position: absolute;
  width: 349px;
  height: 397px;
  margin-top: 1%;
  margin-left: 37%;
  background: url(../image/rain_water.png) no-repeat center center;
}

.role3 {
  position: absolute;
  width: 455px;
  height: 938px;
  background: url(../image/rain_monster.png) no-repeat center center;
  right: 0;
}

.role4 {
  position: absolute;
  width: 251px;
  height: 279px;
  margin-top: 90vh;
  margin-left: 48vw;
  top: 0;
  background: url(../image/rain_monster2.png) no-repeat top center;
}

.role5 {
  position: absolute;
  width: 787px;
  height: 1171px;
  margin-top: 20%;
  right: 3%;
  background: url(../image/rain_jf1.png) no-repeat top center;
}

.role6 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background: url(../image/royal_flower2.png) no-repeat top center;
}

.role7 {
  position: absolute;
  width: 781px;
  height: 1171px;
  top: 30px;
  right: 8%;
  background: url(../image/rain_j1.png) no-repeat top center;
}

.role8 {
  position: absolute;
  width: 1176px;
  height: 1277px;
  top: -45px;
  right: -3%;
  background: url(../image/rain_j2.png) no-repeat top center;
}

.logo {
  position: absolute;
  left: 8vw;
  bottom: 61vh;
  display: flex;
  flex-direction: column;
  align-items:center;

}



.popyt {
  background: url(../image/rain_v2.png) no-repeat center center;
  background-size: contain;
}

.popyt:hover img {
  opacity: 0;
}

button.close {
  position: absolute;
  top: -10%;
  right: 0;
}

/* .list4 {
  display: flex;
  justify-content: center;
  margin: 16% auto 20% auto;
}

.list4 div {
  margin: 0 1%;
  position: relative;
}

.list4 div::after {
  content: '';
  width: 64px;
  height: 200px;
  background: url(../image/royal_c0.png) no-repeat top center;
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.list4 div:hover:after {
  background: url(../image/royal_c00.png) no-repeat top center;
} */

.list4 div::after,
.role,
.role2,
.role3,
.role4,
.role5,
.role6,
.role7,
.role8 {
  background-size: contain;
}

/*-- section end -- */

#footer {
  position: relative;
  z-index: 2;
  margin: auto;
  margin-top:-3%;
}

.copyright {
  text-align: center;
}

.phonehome {
  display: none;
}

.phjob{
  display: none;
}
.phjob2{
  display: none;
}




/* footer-end */
@media (max-width: 1400px) {
  .popyt{
    margin-bottom: -40%;
    left: 12vw;
  }
  #footer{
    margin-top: -5%;
  }
}


@media (max-width: 1200px) {
  .popyt{
    margin-bottom: 0;

  }
  
  #footer{
    margin-top: -8%;
  }
}


@media (max-width: 540px) {
  .popyt{
    margin-bottom: -83%;
    left: 27vw;
  }
  #footer{
    margin-top: -6%;
  }
}

@media (max-width: 480px) {

  body {
    background-color: white;
    ;
  }
  

  button.close {
    top: -30%;
  }

  .sideBtn {
    position: fixed;
    right: 5px;
    bottom: 15vh;
    z-index: 999;
    display: block;
  }

  .sideBtn ul {
    margin: 0;
    padding: 0;
  }

  .sideBtn ul>li {
    display: block;
  }

  .sideBtn ul>li>a {
    display: inline-block;
    /* background-color: #0c3eba; */
    width: 120px;
    height: 120px;
    /* color: #fff;
    font-size: 20px;
    text-align: center;
    line-height: 50px;
    margin: 4px;
    opacity: .85;
    border-radius: 7px;
    border: 2px solid #455ecd; */
  }

  .s0 {
    height: 100vh;
  }

  .s1 {
    background-size: 500%;
  }

  .logo {
    left: auto;
    transform: none;
  }

  .popyt {
    width: 37vw;
    margin-bottom: 0;
    margin-top: -10vh;
    
  }


  .role {
    margin-top: -80%;
    margin-left: -200%;
    height: 120vh;
  }

  .role2,
  .role3,
  .role4 {
    width: 120vw;
    height: 50vh;
  }

  .role2 {
    margin-top: auto;
    margin-left: -16%;
    bottom: 0;
  }

  .role3 {
    margin-top: auto;
    margin-left: -20%;
    bottom: 0;
  }

  .role5 {
    right: -110%;
    margin-top: -100%;
    height: 140vh;
  }

  .role7 {
    right: -100%;
    margin-top: -90%;
    height: 140vh;
  }

  .role8 {
    right: -86%;
    margin-top: -40%;
    height: 140vh;
  }

  .list4 {
    margin: 80% auto 20% auto;
  }

  #footer {
    margin-top: -8%;
    background-color: #000;
  }
  .phonehome{
    display: flex;
    background: url(../image/phhome.jpg) no-repeat 50% 50%;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    margin-top: 62px;
    justify-content: center;
  }

  .phonehome button {

  }

  .s0{
    display: none;
  }
  #job {
    background: none !important;
    padding: 0 !important;
  }
  #job #scene , #job .content2, #job .title {
    display: none;
  }

  #job2 #scene , #job2 .content2, #job2 .title {
    display: none;
  }

  #job2 {
    background: none !important;
    padding: 0 !important;
  }

  h6{
    font-size: 23px;
  }

  .titlerain{
    display: flex;
    justify-content: center; 
    align-items: center; 
  }

  .phjob{
    display: block;
    width: 100vw;
    margin-top: 58px;
  } 

  .phjob2{
    display: block;
    width: 100vw;
    height: 970px;
    margin-top: 58px;
    background-size: cover;
  } 

  .role5{
    display: none;
  }


}

@media (max-width: 380px) {
  .role {
    margin-left: -230%;
  }
  .popyt {
    width: 35vw;
    margin-bottom: 0;
    margin-top: -10vh;
    
  }
}


@media (max-width: 300px) {

  h2 {
    margin: 12% 0 6% 0;
  }

  .s1 {
    background-size: 530%;
  }

  .role2,
  .role3,
  .role4,
  .role6 {
    display: none !important;
  }

  .role {
    margin-top: -80%;
    margin-left: -320%;
  }

  .role5 {
    right: -190%;
    margin-top: -110%;
  }

  .role7 {
    right: -166%;
    opacity: 0.4;
  }

  .role8 {
    right: -130%;
    opacity: 0.4;
  }

  
  .popyt {
    width: 35vw;
  }


}

/* 手機橫向 */
/* orientation: landscape and max-device-width: 850px */
@media only screen and (orientation: landscape) and (max-device-width: 850px) {
  .landscape {
    display: block
  }
}

/* media-end */