@charset "UTF-8";

body {
  font-family: '微軟正黑體', 'Malgun Gothic', Dotum, Tahoma, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

* {
  margin: 0px;
  padding: 0px;
}

img {
  max-width: 100%;
  height: auto;
}

:focus {
  outline: none;
}

a:hover,
a:active,
a:focus {
  text-decoration: none;
  outline: none;
}

button:focus {
  outline: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style-type: none !important;
}

h2 {
  margin: 6vw auto 2vw auto;
}

.canvas {
  z-index: 9 !important;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  overflow: hidden;
  pointer-events: none;
}

.sideBtn ul>li>a {
  -moz-transition: all 0.25s ease-in-out;
  -webkit-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}

/* modal */
button.close {
  position: absolute;
  opacity: 1;
  z-index: 999;
  top: 4vw;
  right: 10vw;
  width: 60px;
  height: 60px;
  overflow: hidden;
  cursor: pointer;
  border: solid 1px transparent;
  border-radius: 60px;
}

button.close:hover {
  background-color: #ffffff33;
}

.modal-dialog {
  opacity: 0;
  max-width: initial;
  margin: 0;
}

#popChart1 .modal-dialog,
#popChart2 .modal-dialog {
  max-width: 619px;
  margin: 0 auto;
}

.show .modal-dialog {
  opacity: 1;
  pointer-events: auto;
  transition: all .5s ease-in-out;
}

.modal-body {
  padding: 0;
  text-align: center;
}

.modal-body p {
  font-size: 1.6rem;
  -webkit-text-stroke: 0.2px black;
  text-shadow: 0px 0px 20px #20ecf0;
}

#picModal1 {
  background: url(../image/sorto_pbg1.jpg) no-repeat 50% 0%;
  background-size: cover;
}

#picModal2 {
  background: url(../image/sorto_pbg2.jpg) no-repeat 50% 0%;
  background-size: cover;
}

#popChart1 {
  background: url(../image/sorto_pbg3.jpg) no-repeat 50% 0%;
  background-size: cover;
}

#popChart2 {
  background: url(../image/sorto_pbg4.jpg) no-repeat 50% 0%;
  background-size: cover;
}

.popgif {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.popgif img {
  margin: 4vw;
}

/* modal */

/* header */
#header {
  background: url(../image/sorto_bg.jpg) no-repeat 50% 100%;
  background-size: cover;
  height: 100vh;
  position: relative;
  padding-top: 80px;
}

/* header */

/* sidebar */
.fixedBox {
  position: fixed;
  bottom: 1vw;
  left: 10vw;
  padding: 0;
  overflow: hidden;
  z-index: 999;
  transition: 1s all;
}

.fixedBox img {
  margin: 0 0.6vw;
}

.fixedBox img:hover {
  filter: hue-rotate(-100deg);
}

.sideBtn {
  position: fixed;
  top: 8vw;
  right: 4vw;
  z-index: 999;
}

.sideBtn ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sideBtn ul>li {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  outline: none;
}

.sideBtn ul>li>a {
  position: relative;
  display: block;
  padding: .2rem 0rem;
  background: linear-gradient(0deg, #de7718 0%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.sideBtn ul>li>a:hover,
.sideBtn ul>li>a:focus,
.sideBtn ul>li>a.active {
  background: linear-gradient(0deg, #7e542c 0%, #ffce80 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.sideBtn .nav-link:hover::before,
.sideBtn .nav-link.active::before {
  content: '';
  background: url(../image/sorto_s1.png) no-repeat 50% 0;
  background-size: contain;
  position: absolute;
  width: 143px;
  height: 31px;
  top: -10px;
  right: -14px;
}

#cherry a:hover,
#cherry a:focus,
#cherry a.active {
  background: linear-gradient(0deg, #ff3b7c 0%, #ffdabe 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

#cherry a:hover::before,
#cherry .active::before {
  content: '';
  background: url(../image/sorto_s2.png) no-repeat 50% 0;
  background-size: contain;
}

/* sidebar */

#tab-1 {
  background: url(../image/sorto_bg2.jpg) no-repeat 50% 0;
  background-size: cover !important;
  position: relative;
  z-index: 2;
  padding: 0 0 150px;
  overflow: hidden;
  text-align: center;
}

#tab-1>.row {
  margin: auto;
  justify-content: center;
}

.item {
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.row>.newjob:first-of-type>img {
  margin-top: 2vw;
}

.row>.newjob:first-of-type .item {
  position: absolute;
  left: 26%;
  bottom: 30%;
}

.row>.newjob:last-of-type {
  margin-left: -2vw;
}

.row>.newjob:last-of-type .item {
  position: absolute;
  left: -16%;
  bottom: 30%;
}

.newjob .item:hover {
  filter: hue-rotate(45deg);
}

.newjob {
  position: relative;
  max-width: 50vw;
}

.newarea {
  margin: 0 4vw;
}

.newarea:hover img {
  opacity: 0;
}

.cherry {
  max-width: 1200px;
  margin: 3vw auto;
}

.cherry img {
  margin: 0.4vw;
}

#s4 {
  position: relative;
  display: block;
  margin: 10vw auto 0 auto;
  background: transparent;
  border: 0;
}

#s4::after {
  content: '';
  background: url(../image/sorto_btnbg5.png) no-repeat 50% 0;
  background-size: contain;
  width: 345px;
  height: 128px;
  position: absolute;
  left: -10px;
  bottom: -100%;
}

/* 頁籤 */

@media (max-width: 1024px) {

  .sideBtn {
    top: 20vw;
  }

  .newjob {
    max-width: 100vw;
  }

  .row>.newjob:last-of-type {
    margin-left: 0;
  }
}

@media (max-width: 850px) {
  #header {
    height: 60vh;
  }

  .row>.newjob:last-of-type .item {
    left: 0;
  }
}

@media (max-width: 770px) {
  .canvas {
    display: none;
  }
}

@media (max-width: 480px) {

  .title img {
    width: 50vw;
  }

  .sideBtn {
    background-color: #00000091;
    padding: 0 4vw;
    top: 40vw;
    display: none;
  }

  /* .sideBtn ul>li {
    margin: 0;
    font-size: 14px;
  }

  .sideBtn .nav-link:hover::before,
  .sideBtn .nav-link.active::before {
    width: 100px;
    height: 20px;
    top: -6px;
    right: -6px;
  } */

  .newjob>img {
    display: none;
  }

  .row>.newjob:first-of-type .item,
  .row>.newjob:last-of-type .item {
    position: relative;
    left: 0;
    bottom: 0;
  }

  .modal-body p {
    font-size: 1rem;
    padding: 0 4vw;
  }

  button.close {
    right: 4vw;
    width: 40px;
    height: 40px;
  }

  .cherry img {
    width: 30vw;
  }

  .fixedBox {
    left: 2vw;
  }

  .fixedBox img {
    width: 20vw;
  }

  h2 img,
  #s4 {
    width: 80vw;
  }

  #s4::after {
    width: 80vw;
    left: 0px;
    bottom: -140%;
  }

}