@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');
@import url('./GlowSansSC-Compressed.css');

:root {
  --light: #F8F9FA;
  --black: #343434;
  --grey: #EEF0F3;
  --dark-grey: #666666;
}


/* 文字反白的狀況 */
::-moz-selection {
  /* Code for Firefox */
  color: var(--dark);
  background: var(--white);
}

::selection {
  color: var(--dark);
  background: var(--white);
}

/* 網頁捲軸【寬度】 */
::-webkit-scrollbar {
  width: 8px;
}

/* 網頁捲軸【背景】顏色 */
::-webkit-scrollbar-track {
  background: var(--light);
}

/* 網頁捲軸【把手】顏色 */
::-webkit-scrollbar-thumb {
  background: var(--black);
}

.modal ::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 10px;
}


.modal ::-webkit-scrollbar-thumb {
  border-radius: 10rem;
  background: var(--light);
}

/* 網頁捲軸【滑過時】把手的顏色 */
::-webkit-scrollbar-thumb:hover {
  background: var(--black);
}


/* BS5修改預設 */
html {
  height: 100%;
}

html,
body {

  overflow-x: hidden;
  overflow-y: auto;
  /* font-family: 'GlowSansSC-Compressed', 'Noto Sans TC', sans-serif; */
  font-family: 'Noto Serif TC',  sans-serif;
  /* font-family: 'Noto Sans TC', sans-serif; */
  /* line-height: 1.75; */
  letter-spacing: 1.2px;
  background-color: var(--light);
  color: var(--black);
  font-weight: 500;
  font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700 !important;
  /* font-family: 'GlowSansSC-Compressed', 'Noto Sans TC', sans-serif; */
  font-family: 'Noto Serif TC',  sans-serif;
  /* font-family: 'Noto Sans TC', sans-serif; */
  letter-spacing: 2px;
}

.uppercase {
  text-transform: uppercase !important;
}

.hideme {
  opacity: 0;
}

/* navbar start */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-brand:hover,
a:hover {
  opacity: .7;
  color: var(--black) !important;
  transition: .5s;
}

.navbar-nav .nav-link,
.navbar-brand,
a {
  color: var(--black) !important;
  cursor: pointer;
}


/* navbar end */

/* 漢堡選單 start */

.burger-menu span {
  display: block;
  position: relative;
  width: 26px;
  height: 1px;
  background: var(--black);
  visibility: inherit;
  opacity: 1;
  transform: matrix(1, 0, 0, 1, 0, 0);
  transition: transform .3s ease-in-out, top .5s ease, -webkit-transform .3s ease-in-out;
}

.burger-menu span:nth-child(2),
.burger-menu span:nth-child(3) {
  margin-top: 8px;
}

.active .burger-menu span:nth-child(1) {
  -webkit-transform-origin: top left;
  transform-origin: top left;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.active .burger-menu span:nth-child(2) {
  visibility: hidden;
  opacity: 0;
}

.active .burger-menu span:nth-child(3) {
  -webkit-transform-origin: bottom left;
  transform-origin: bottom left;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/* 漢堡選單 end */


/* loading start */
.loading-layout {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 9999;
  top: 0;
  left: 0;
  background: var(--light);
  color: var(--black);
}

.loading {
  position: absolute;
  top: calc(50% - 70.5px);
  left: 0;
  /* -webkit-transform: translateY(-50%);
  transform: translateY(-50%); */
  text-align: center;
  width: 100%;
}

/* loading end */



/* side start */
.side-left {
  position: fixed;
  top: calc(50% - 106px);
  left: 2.45rem;
  z-index: 9;
  font-size: 0.8rem;
  line-height: 0.8rem;
  color: var(--black);
  cursor: pointer;
  writing-mode: vertical-lr;
  text-orientation: sideways-right;
}

.side-left a {
  margin-top: 1rem;
}

.side-right {
  position: fixed;
  bottom: 20px;
  right: 1.5rem;
  z-index: 9;
  font-size: 0.8rem;
  line-height: 0.8rem;
  color: var(--black);
  cursor: pointer;
}

.scroll,
.top {
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-transition: -webkit-transform .3s ease 0s;
  transition: -webkit-transform .3s ease 0s;
  writing-mode: vertical-lr;
  text-orientation: sideways-right;
}

.scroll span {
  overflow: hidden;
  position: relative;
  width: 9px;
  height: 32px;
}

.scroll span::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  width: 1px;
  height: 32px;
  background: var(--black);
  -webkit-animation: lineAniTop 1.5s cubic-bezier(0.45, 0.05, 0.3, 0.93) 1s infinite;
  animation: lineAniTop 1.5s cubic-bezier(0.45, 0.05, 0.3, 0.93) 1s infinite;
}

.top span {
  display: block;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--black);
  margin-bottom: 1em;
  -webkit-transition: all .5s;
  transition: all .5s;
}

.top:hover span {
  -webkit-transform: translate(0, -5px);
  transform: translate(0, -5px);
}

@-webkit-keyframes lineAniTop {
  0% {
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: center top;
    transform-origin: center top;
  }

  30% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: center top;
    transform-origin: center top;
  }

  30.001% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }

  60% {
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }

  100% {
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }
}

@keyframes lineAniTop {
  0% {
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: center top;
    transform-origin: center top;
  }

  30% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: center top;
    transform-origin: center top;
  }

  30.001% {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }

  60% {
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }

  100% {
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
  }
}

/* side end */

/* header 輪播 start */
.header-banner {
  position: relative;
}

.header-bg-img {
  height: 100vh;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  padding-bottom: 6vh;
}

.header-box {
  position: relative;
}

.header-title {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 40%;
  width: 44%;
}

.header-name {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 60%;
  width: 15%;
}

@media (max-width: 999.9px) {
  .header-title {
    left: 8%;
    top: 45%;
    width: 84%;
  }
  
  .header-name {
    left: 5vw;
    top: calc(62px + 3vw);
    width: 21%;
  }
}

@media (max-width: 575.9px) {
  .header-title {
    left: 3vw;
    top: calc(62px + 3vw);
    width: 15%;
  }
  
  .header-name {
    left: 11%;
    top: 50%;
    width: 50%;
  }
}

.header-btn {
  width: 10rem;
  height: 10rem;
  padding: 2rem;
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: 3%;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--black);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}

.header-btn:hover {
  background-color: rgba(248, 249, 250, .85) !important;
}

.animate__fadeInLeft__header {
  -webkit-animation-name: fadeInLeft__header;
  animation-name: fadeInLeft__header;
}

@keyframes fadeInLeft__header {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-10%, 0, 0);
    transform: translate3d(-10%, 0, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

@-webkit-keyframes fadeInLeft__header {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(-10%, 0, 0);
    transform: translate3d(-10%, 0, 0)
  }

  to {
    opacity: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0)
  }
}

/* header 輪播 end */

/* about start */
.about .gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* margin: 0 5.72% 150px; */
  height: 1100px;
}

.about-list {
  width: 600px;
  position: relative;
  z-index: 2;
}

.about li {
  list-style: none !important;
}

.about .gallery ul.oc_list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.about .gallery img {
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.about .gallery .oc01 {
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  max-width: 330px;
}

.about .gallery .oc02 {
  position: absolute;
  left: 30%;
  top: 0;
  width: 12%;
  max-width: 220px;
}

.about .gallery .oc03 {
  position: absolute;
  right: 20%;
  top: 0;
  width: 13%;
  max-width: 240px;
}

.about .gallery .oc04 {
  position: absolute;
  right: 0;
  top: 0;
  width: 8%;
  max-width: 150px;
}

.about .gallery .oc05 {
  position: absolute;
  right: 20%;
  top: 26%;
  width: 9%;
  max-width: 140px;
}

.about .gallery .oc06 {
  position: absolute;
  left: 0;
  top: 32%;
  width: 8%;
  max-width: 150px;
}

.about .gallery .oc07 {
  position: absolute;
  right: 0;
  top: 30%;
  width: 11%;
  max-width: 180px;
}

.about .gallery .oc08 {
  position: absolute;
  left: 0;
  top: 50%;
  width: 15%;
  max-width: 220px;
}

.about .gallery .oc09 {
  position: absolute;
  right: 0;
  top: 50%;
  width: 17%;
  max-width: 220px;
}

.about .gallery .oc10 {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 15%;
  max-width: 250px;
}

.about .gallery .oc11 {
  position: absolute;
  left: 24%;
  bottom: 0;
  width: 10%;
  max-width: 150px;
}

.about .gallery .oc12 {
  position: absolute;
  left: 42%;
  bottom: 0;
  width: 18%;
  max-width: 300px;
}

.about .gallery .oc13 {
  position: absolute;
  right: 17%;
  bottom: 0;
  width: 10%;
  max-width: 130px;
}

.about .gallery .oc14 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13%;
  max-width: 170px;
}

@media screen and (max-width: 1400px) {
  .about .gallery {
    height: 900px;
  }
}

@media screen and (max-width: 1200px) {
  .about .gallery {
    height: 700px;
  }
}

@media screen and (max-width: 1000px) {
  .about .gallery {
    height: 600px;
  }
}

@media screen and (max-width: 768px) {
  .about .gallery {
    margin: 0 0 20%;
    height: 860px;
  }

  .about .gallery .container h2 {
    font-size: 1.8rem;
  }

  .about .gallery .container p {
    font-size: 1.2rem;
  }

  .about .gallery .oc01 {
    left: 0;
    top: 0;
    width: 160px;
  }

  .about .gallery .oc02 {
    right: 20%;
    left: auto;
    top: 0;
    width: 110px;
  }

  .about .gallery .oc03 {
    right: auto;
    left: 20%;
    top: 20%;
    width: 100px;
  }

  .about .gallery .oc04 {
    right: 0;
    top: 20%;
    width: 70px;
  }

  .about .gallery .oc05 {
    right: 14%;
    top: auto;
    bottom: 25%;
    width: 70px;
  }

  .about .gallery .oc06 {
    left: 20%;
    top: auto;
    bottom: 0;
    width: 70px;
  }

  .about .gallery .oc08 {
    left: 10%;
    top: auto;
    bottom: 14%;
    width: 110px;
  }

  .about .gallery .oc09 {
    right: 0;
    top: auto;
    bottom: 4%;
    width: 160px;
  }

  .about .gallery .oc07,
  .about .gallery .oc10,
  .about .gallery .oc11,
  .about .gallery .oc12,
  .about .gallery .oc13,
  .about .gallery .oc14 {
    display: none;
  }
}

/* about end */


/* welfare start */

.welfare .nav-link.active {
  opacity: 1;
  text-decoration: underline;
}

.welfare p {
  margin-bottom: 0.5rem !important;
}

.welfare .img-box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.welfare img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: center center;
}

.economy-bg {
  background-image: url('../../img/economy.jpg');
  background-attachment: fixed;
  background-color: var(--dark-grey);
  background-blend-mode: multiply;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  color: var(--light);
  padding: 3rem !important;
}

.lohas-bg {
  background-image: url('../../img/lohas.jpg');
  background-attachment: fixed;
  background-color: var(--dark-grey);
  background-blend-mode: multiply;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  color: var(--light);
  padding: 3rem !important;
}

/* welfare end */

/* modal start */
.modal .modal-content {
  background-color: transparent !important;
  border: 0;
}

.modal-body {
  border-radius: 6px 5px 5px 6px;
}

.modal-footer {
  position: relative;
  margin-top: -1.8rem;
  z-index: 1;
  /* background-image: linear-gradient(to bottom, transparent 0%,#000000 45%); */
}

.modal img {
  width: 100%;
}

/* modal end */

/* new list start */

.news-list .slick-slide {
  transform: scale(0.9);
  transition: transform 1.2s cubic-bezier(0, .6, .4, 1);
}

.news-list .slick-slide.slick-center {
  transform: scale(1);
  transition: transform 1.2s cubic-bezier(0, .6, .4, 1);
}

.news-list .slick-slide:hover {
  transform: scale(0.85);
}

.news-list .slick-next {
  right: -40px;
}

.news-list .slick-prev {
  left: -48px;
}

.news-list .slick-prev:before,
.news-list .slick-next:before {
  font-family: 'Font Awesome 5 Free';
  color: var(--black);
  font-size: 1.8rem;
  font-weight: 900;
  opacity: 1;
}

.news-list .slick-prev:before {
  content: '\f104';
}

.news-list .slick-next:before {
  content: '\f105';
}

.news-list img {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 1rem;
}

/* new list end */


.btn-circle-black {
  width: 7rem;
  height: 7rem;
  padding: 1.5rem;
  border-radius: 50%;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--black) !important;
  color: var(--light) !important;
  transition: transform 1.2s cubic-bezier(0, .6, .4, 1);
  transform: scale(1);
}

.btn-circle-black a,
.btn-circle-black a:hover {
  color: var(--light) !important;
}

.btn-circle-light {
  width: 7rem;
  height: 7rem;
  padding: 1.5rem;
  border-radius: 50%;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--light) !important;
  color: var(--black) !important;
  transition: transform 1.2s cubic-bezier(0, .6, .4, 1);
  transform: scale(1);
}

.btn-circle-light a,
.btn-circle-light a:hover {
  color: var(--black) !important;
}

.btn-circle-black:hover,
.btn-circle-light:hover {
  transform: scale(1.3);
}

.btn-times-circle {
  background: #000000 !important;
  color: var(--light) !important;
  border-radius: 50%;
  border: 0 !important;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  width: 47px;
  height: 47px;
  text-align: center;
}

.btn-times-circle .fas {
  display: inline;
}

.bg-grey {
  background-color: var(--grey);
}

.text-dark-grey {
  color: var(--dark-grey);
}

.btn:focus,
button:focus,
.btn:active,
button:active {
  border: 0;
  box-shadow: 0 0 0 0 !important;
}