/* CSS Document */
/* RWD：手機斷點 */
@media (min-width:1960px) {
  body:not(.project-single) .top-img img {
    width: 50vw;
    max-height: 320px;
    aspec-ratio: inherit
  }
}
@media (min-width: 1600px) {
  .container {
    max-width: 1440px;
  }
}
@media (min-width:1200px) {
  header {
    padding: 0 clamp(1.5rem, 7.5vw, 20rem);
  }
}
@media (min-width: 992px) {
  header {
    padding: 0 1.5rem;
    border-bottom: 5px solid var(--color-primary);
  }
  header .dropdown-menu {
    animation: .5s slideup;
  }
  header .dropdown:hover > .dropdown-menu {
    display: block;
  }
  header .dropdown > .dropdown-toggle:active {
    pointer-events: none;
  }
  header .nav-link {
    padding: 1.5em 0 0 0;
    transition: all .3s;
    height: 11rem;
  }
}
@media (min-width: 768px) {
  .top-wrapper {
    /*min-height: 24rem;*/
    min-height: auto;
  }
}
/*max-width */
@media (max-width: 1440px) and (min-width:1200px) {
  :root {
    font-size: 50%
  }
}
/*max-width */
@media (max-width: 1440px) {
  body:not(.project-single) .top-img img {
    width: 60vw;
    aspect-ratio: 2 / 0.75;
  }
}
@media (max-width: 1119px) {
  :root {
    font-size: 50%;
  }
  .slide-title {
    font-size: 1.8rem
  }
}
@media (max-width: 991px) /*手機版選單*/ {
  :root {
    --height-nav-link: 6.6rem;
  }
  header {
    border-bottom: 2px solid var(--color-primary);
  }
  header .navbar {
    height: var(--height-nav-link);
    align-content: center
  }
  header .navbar-brand {
    margin: auto;
    height: 100%;
    align-content: center
  }
  header .navbar-collapse {
    position: absolute;
    top: 6.8rem;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px #0003;
    background-color: #f0f0f0
  }
  header .navbar-nav {
    width: 100%;
    margin: clamp(2rem, 3.8vw, 7.5rem) auto;
    gap: 0
  }
  header .navbar-nav > .nav-item {
    width: 100%;
  }
  header .nav-link {
    width: 100%;
    text-align: center
  }
  .logo {
    height: 100%;
    max-height: 4rem;
    width: auto;
  }
  /* 次選單動態 */
  header .navbar .dropdown-menu {
    text-align: center;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
  }
  header .navbar .dropdown-menu.show {
    max-height: 500px; /* 要比實際高度大 */
    opacity: 1;
    transform: translateY(0);
  }
  .footer {
    flex-direction: column;
    padding: 3rem 1.5rem 6rem;
  }
  body:not(.project-single) .top-img img {
    width: 50vw;
    aspect-ratio: 2/1.25
  }
  .about .member h3 {
    font-size: 2.8rem;
  }
  .journal-list {
    flex-direction: column
  }
  .journal-content {
    width: 100%
  }
  .project-single .page-title {
    flex: 0 0 50%;
  }
  .project-single .top-img img {
    height: 100%
  }
  .project-single .page-title h2 {
    font-size: 3.2rem;
  }
  .map {
    font-size: 0.6rem;
  }
  .journal-list figure {
    margin-right: 0
  }
}
@media (max-width: 575px) {
  :root {
    --height-nav-link: 6.6rem;
    font-size: 62.5%;
  }
  .footer strong {
    font-size: 2.1rem;
  }
  h1.entry-title {
    font-size: 4rem;
    margin: 0.5em auto
  }
  h2, .home h2 {
    font-size: 3.2rem;
  }
  h3, .office-inf h3 {
    font-size: 2.6rem;
  }
  .top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .top-wrapper {
    flex-direction: column
  }
  .top-wrapper.position-absolute {
    transform: none !important;
    position: static !important
  }
  .page-title {
    align-self: flex-start;
    flex: auto
  }
  body:not(.project-single) .top-img img {
    width: 100%;
  }
  /*about */
  .about h3 {
    font-size: 2.8rem;
  }
  .member {
    flex-direction: column;
  }
  .member figure {
    width: 100%
  }
  .member img {
    width: 45vw;
  }
  .member-1 {
    margin-right: 2.5rem;
  }
  .member-2 {
    margin-left: 2.5rem;
  }
  .member-1 h3 {
    left: 2rem
  }
  .member-1 p {
    padding-left: 2rem
  }
  .member-2 h3 {
    right: 2rem
  }
  .member-2 p {
    padding-right: 2rem
  }
  .team-banner {
    aspect-ratio: 1 / .37;
    object-fit: cover;
    padding: 0 2rem
  }
  .team-member {
    flex-direction: column;
  }
  .journal .tab-content ul {
    flex-direction: column
  }
  /*project single */
  .project-single .page-title {
    flex: auto
  }
  .project-single .project {
    padding: 4rem 0;
    gap: 2rem
  }
  /* home */
  .home .swiper img {
    aspect-ratio: 1 / 1.4;
    object-fit: cover;
  }
  .home section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .home section > .container.p-5 {
    padding: 3rem 0 !important
  }
  .intro .container > .d-flex {
    flex-direction: column-reverse;
    gap: 0
  }
  .intro figure {
    margin: 0 1.5rem
  }
  .intro article {
    position: static;
    width: 100%;
  }
  .intro article p {
    text-align: justify;
  }
  .intro article br {
    display: none
  }
  .news .container > .d-flex {
    flex-direction: column;
  }
  .news article {
    margin-top: 0;
    width: 100%
  }
  .news ul li a {
    flex-direction: column;
    padding: 1em 0;
  }
  .news ul li a i {
    display: block
  }
  .work .container > .d-flex {
    flex-direction: column;
  }
  .work .container > .d-flex > article {
    margin-top: 2rem;
    width: 100%;
  }
  .map {
    font-size: 0.6rem;
    height: 115vw;
  }
  .map-wrap {
    font-size: 0.25rem;
    transform-origin: center top;
    transform: scale(3)
  }
  .spot {
    width: 48%
  }
  .spot ul {
    width: 100%;
  }
}
@keyframes slideup {
  from {
    transform: translateY(25px);
  }
  to {
    transform: translateY(0);
  }
}