/* 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: white;
  margin: 4% 0 0 0;
}

h2 span:first-of-type {
  display: inline-block;
  width: 70px;
  height: 1px;
  background: white;
  margin-bottom: 8px;
  line-height: 18px;
}

h2 span:last-of-type {
  display: inline-block;
  border: solid 1px white;
  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: 120vh;
  background: url(../image/royal_bg.jpg) no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.s1 {
  position: relative;
  width: 100vw;
  background: url(../image/royal_bg2.jpg) no-repeat center top;
  background-size: cover;
  overflow: hidden;
  text-align: center;
}

#scene {
  position: relative;
}

.role {
  position: absolute;
  width: 2206px;
  height: 2455px;
  margin-top: -54%;
  margin-left: 0%;
  background: url(../image/royal_main.png) no-repeat center center;
}

.role2 {
  position: absolute;
  width: 2223px;
  height: 1685px;
  margin-top: 60%;
  margin-left: -16%;
  background: url(../image/royal_wind.png) no-repeat center center;
}

.role3 {
  position: absolute;
  width: 2692px;
  height: 1764px;
  margin-top: 45%;
  margin-left: -25%;
  background: url(../image/royal_flower.png) no-repeat center center;
}

.role4 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background: url(../image/royal_water.png) no-repeat top center;
}

.role5 {
  position: absolute;
  width: 1132px;
  height: 1645px;
  top: -6%;
  right: 0%;
  background: url(../image/royal_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: 933px;
  height: 1355px;
  top: -14%;
  right: 4%;
  background: url(../image/royal_j1.png) no-repeat top center;
}

.role8 {
  position: absolute;
  width: 1200px;
  height: 1225px;
  top: -14%;
  right: 0%;
  background: url(../image/royal_j2.png) no-repeat top center;
}

.logo {
  position: absolute;
  left: 50%;
  bottom: 0%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  z-index: 0;
  text-align: center;
}

.popyt {
  background: url(../image/royal_v2.png) no-repeat center center;
  background-size: contain;
  margin-bottom: -30px;
}

.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: -4%;
}

.copyright {
  text-align: center;
}

/* footer-end */

@media (max-width: 2560px) and (min-width: 2000px) {
  .role {
    margin-top: -33%;
    margin-left: 10%;
  }

  .role2 {
    margin-top: 40%;
    margin-left: 0%;
  }

  .role3 {
    margin-top: 40%;
    margin-left: -10%;
  }

  .role8 {
    top: -4%;
  }

}

@media (max-width: 1440px) {

  h2 {
    width: 60%;
    margin: 4% 0 2% 0;
  }

  .role {
    margin-top: -70%;
    margin-left: -16%;
  }

  .role2 {
    width: 100%;
    height: 100%;
    margin-top: 40%;
    margin-left: -8%;
  }

  .role3 {
    width: 100%;
    height: 100%;
    margin-top: 50%;
    margin-left: 2%;
  }

  .role4 {
    top: 20%;
    opacity: 0.6;
  }

  .role5 {
    right: -30%;
  }

  .role8 {
    top: 0%;
  }


}

@media (max-width: 1024px) {

  .role {
    margin-top: -90%;
    margin-left: -40%;
  }

  .role2 {
    margin-top: 60%;
  }

  .role3 {
    margin-top: 70%;
    margin-left: -3%;
  }

  .role5 {
    right: -50%;
  }

  .role7 {
    right: -34%;
  }

  .role8 {
    right: -24%;
  }

  .logo {
    top: auto;
    bottom: 0%;
  }

  .s1 {
    height: auto;
  }

  .list4 {
    flex-wrap: wrap;
    margin: 50% auto 20% auto;
  }

  .list4 div {
    margin: 0 1% 200px 1%;
  }

  .map>div {
    width: 100%;
  }

  #boss2 .content2>div:nth-of-type(3) {
    width: 50vw;
  }

  #footer {
    margin-top: -5%;
  }

}

@media (max-width: 768px) {

  button.close {
    position: absolute;
    top: -20%;
    right: 2%;
  }

  .role {
    margin-top: -100%;
    margin-left: -60%;
  }

  .role2 {
    margin-left: -4%;
  }

  .role3 {
    margin-left: 0%;
  }

  .role5,
  .role7,
  .role8 {
    opacity: 0.4;
  }

  .role7 {
    right: -56%;
  }

  .role8 {
    right: -40%;
  }

  .list4 {
    margin: 70% auto 20% auto;
  }

  #footer {
    margin-top: -8%;
  }

}

@media (max-width: 480px) {

  body {
    background-color: #363368;
    ;
  }

  button.close {
    top: -30%;
  }

  .sideBtn {
    position: fixed;
    right: 5px;
    bottom: 30vh;
    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: 100px;
    height: 50px;
    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: 50vw;
  }

  .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: -10%;
  }
}

@media (max-width: 380px) {
  .role {
    margin-left: -230%;
  }
}

@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;
  }

}

/* 手機橫向 */
/* orientation: landscape and max-device-width: 850px */
@media only screen and (orientation: landscape) and (max-device-width: 850px) {
  .landscape {
    display: block
  }
}

/* media-end */