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

:root {
  --white: #F8F9FA;
  --beige: #F3ECDA;
  --yellow: #CBA26B;
  --blue: #003956;
  --dark: #343434;
  --grey: #EEF0F3;
  --dark-grey: #666666;
  --green: rgba(13, 236, 218, 0.5);
  --dark-blue: rgba(9, 79, 141, 0.5);
  --light-blue: rgba(17, 181, 223, 0.5);
}

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

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

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

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

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

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


*,
*::after,
*::before {
  box-sizing: border-box;
}

:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem var(--white), 0 0 0 0.35rem var(--blue);
}

body:not(.focus-visible) :focus:not(.focus-visible) {
  outline: 0 !important;
  box-shadow: none !important;
}

/* BS5修改預設 */
html,
body {
  font-family: 'Noto Serif', 'Noto Serif TC', serif;
  line-height: 1.75;
  letter-spacing: 1.5px;
  background: url('../../images/pattern.png'), #010A42;
  /* background: 
    url('../../images/pattern.png'),
    radial-gradient(
      circle at 50% 0,
      rgba(13, 236, 218, 0.5),
      rgba(255, 0, 0, 0) 70.71%
    ),
    radial-gradient(
      circle at 6.7% 75%,
      rgba(9, 79, 141, 0.5),
      rgba(0, 0, 255, 0) 70.71%
    ),
    radial-gradient(
      circle at 93.3% 75%,
      rgba(17, 181, 223, 0.5),
      rgba(0, 255, 0, 0) 70.71%
    ),
    var(--blue); */
  color: var(--white);
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700 !important;
  letter-spacing: 6px;
}

/* section {
  margin-top: clamp(32px, 30vw, 95px);
  margin-bottom: clamp(32px, 30vw, 95px);
} */

hr {
  margin: 2rem 0;
}

hr:not([size]) {
  height: 5px;
}

.form-control {
  border-radius: 0;
}

.text-yellow {
  color: var(--yellow) !important;
}

.text-blue {
  color: var(--blue) !important;
}

.text-beige {
  color: var(--beige) !important;
}

.btn-green {
  background-color: var(--green);
  color: var(--white) !important;
}

.btn-beige {
  background-color: var(--beige);
  color: var(--dark);
}

/* .max-section {
  max-width: 1600px;
  margin: 0 auto;
} */

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

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

.decorate {
  margin-left: -15px;
  margin-bottom: -7px;
  vertical-align: bottom;
  height: 4rem;
}


/* navbar start */
.navbar-nav .nav {
  background: url('../../images/pattern.png'), #010A42;
  color: var(--yellow);
  /* background: 
    url('../../images/pattern.png'),
    radial-gradient(
      circle at 50% 0,
      rgba(4, 139, 189, 0.5),
      rgba(255, 0, 0, 0) 70.71%
    ),
    radial-gradient(
      circle at 6.7% 75%,
      rgba(9, 79, 141, 0.5),
      rgba(0, 0, 255, 0) 70.71%
    ),
    radial-gradient(
      circle at 93.3% 75%,
      rgba(17, 181, 223, 0.5),
      rgba(0, 255, 0, 0) 70.71%
    ),
    var(--blue); */
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-brand:hover,
a:hover {
  opacity: .7;
  color: var(--yellow);
  background-color: transparent;
  transition: .5s;
}

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


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

.header-bg-img {
  height: clamp(500px, 88vh, 820px);
  width: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 991.9px) and (orientation:portrait) {
  .header-bg-img {
    height: clamp(500px, 90vh, 820px);
  }
}

@media (max-width: 991.9px) and (orientation:landscape) {
  .header-bg-img {
    height: clamp(600px, 90vh, 800px);
  }
}

@media (max-width: 539.9px) {
  .header-bg-img {
    height: clamp(500px, 70vh, 700px);
  }
}

.header-box {
  position: relative;
}
/* header 輪播 end *

/* top start */
.top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 1vw;
  z-index: 999;
  border: none;
  outline: none;
  color: var(--dark);
  background-color: transparent;
  cursor: pointer;
  border-radius: 0px;
}
/* top end */

.fixed-top .nav .nav-link {
  border-radius: 0;
  color: var(--white) !important;
  width: 25%;
  border-right: 1px solid var(--white);
  padding: 0.5rem;
}
.fixed-top .nav .nav-link:nth-child(4) {
  border-right: 0;
}

.fixed-top .nav .nav-link:hover,
.fixed-top .nav .nav-link:focus,
.fixed-top .nav .nav-link.active {
  opacity: 1;
}

.fa-icon {
  margin-right: 6px;
}

@media (max-width:767.9px) {
  .fa-icon {
    font-size: 2rem;
    margin-right: auto;
    margin-left: auto;
    margin-top: 5px;
    display: block;
  }
  .fixed-top .nav .nav-link span {
    font-size: 70%;
    font-weight: 600;
  }
}
  
/* map start */
.map .title {
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

@media (max-width: 1199.9px) {
  .map .title {
    -webkit-writing-mode: horizontal-tb;
    writing-mode: horizontal-tb;
  }
}
/* map end */