/* CSS Document */
/* RWD：手機斷點 */
@media (min-width: 576px) {
  .gallery-slide .swiper-wrapper {
    flex-wrap: wrap;
    gap: 4rem;
  }
  .gallery-slide .swiper-slide {
    flex: 0 1 calc((100% - 4rem) / 2);
  }
  .about-slide .swiper-slide img {
    height: 100%;
  }
}
@media (max-width: 1200px) {
  .case-title h5 {
    font-size: 3rem;
  }
  main {
    margin-top: 17rem
  }
  .about {
    gap: 3rem;
  }
  .case-figure-circle {
    font-size: 2.8rem
  }
}
@media (max-width: 575px) {
  .sw {
    display: block
  }
  .swiper-button-prev, .swiper-button-next {
    width: calc(var(--section-margin) * 0.8);
    height: calc(var(--section-margin) * 0.8);
  }
  header {
    position: fixed;
    width: 100%;
    top: 0
  }
  .hero {
    flex-direction: column
  }
  .hero-right {
    flex: 1
  }
  .hero-title {
    font-size: 6rem;
    text-align: center;
    left: 0;
    top: 0;
    width: 100%;
    color: #fff;
    margin-top: 0.4em;
  }
  .hero .swiper-slide img {
    aspect-ratio: 1.45 / 1;
  }
  aside {
    background-color: #5a575680;
    text-align: center;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(30px);
    z-index: 29;
    transition: all .3s
  }
  .aside-logo {
    display: block;
    padding: 0;
    width: 100%;
    max-width: 100px;
    margin: auto;
    filter: brightness(0) invert(1);
  }
  .tagline {
    display: none
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
  }
  main {
    margin: 100px auto auto;
  }
  .top-nav {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* 預設關閉 */
    align-items: center;
    justify-content: center;
  }
  body.menu-open .top-nav {
    display: flex;
    z-index: 29
  }
  .nav-links {
    flex-direction: column;
    font-size: 4rem;
  }
  .nav-links a {
    color: #fff
  }
  /*home-about */
  .about {
    scroll-margin-top: 120px;
  }
  .about-right {
    text-align: center
  }
  .about-figures {
    flex: 0 1 50%;
    flex-direction: row
  }
  .about-figure {
    flex-direction: column
  }
  .about-figure p {
    text-align: left;
    font-size: 2.4rem;
  }
  .about-figure-circle {
    flex: 0 0 var(--circle-width);
    width: var(--circle-width);
    height: var(--circle-width);
    border-radius: 500px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
  }
  .about-figure-circle span {
    line-height: 1.2
  }
  /*home-portfolio */
  .portfolio {
    padding: 0 var(--container-padding);
  }
  .case-heading {
    font-size: 3.6rem;
  }
  .case-figures {
    flex-direction: column;
    margin-top: calc(var(--section-margin) * 0.5);
    justify-content: center;
    gap: 5rem;
  }
  .case-figure {
    flex-direction: row;
  }
  .case-figure-circle {
    flex: 0 0 var(--circle-width);
    border: 1px solid var(--color-primary);
  }
  .case-01, .case-02 {
    display: block !important;
    position: relative
  }
  .case-title {
    position: absolute;
    bottom: 5px;
    right: 10px;
    z-index: 2
  }
  .case-title h5 {
    font-size: 3rem;
    color: #fff;
  }
  .case-title h5:before {
    background-image: url(../images/ico-logo-w.png);
  }
  .slide-btn {
    font-size: 2rem;
    margin-top: 0;
    padding: 0;
    text-align: left
  }
  .slide-btn:before {
    content: none;
  }
  .case-banner {
    margin: calc(var(--section-margin) * 0.5) auto auto;
  }
  .case-figure p {
    white-space: normal;
  }
  /*home-service */
  .service {
    padding: 0 var(--container-padding);
  }
  .service-figures {
    flex-direction: column;
    gap: 3rem;
    margin: calc(var(--section-margin) * 0.5) 0;
  }
  .service-figure {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .service-figure .img-wrap {
    flex: 0 0 var(--circle-width);
    width: var(--circle-width);
    height: var(--circle-width);
    display: flex;
  }
  .service-figure figcaption {
    position: static;
    transform: none
  }
  .service-figures > i {
    width: calc(var(--circle-width)*0.5);
    height: 100%;
    top: 0;
    border-bottom: none;
    border-right: 3px solid #a39f9d
  }
  /*contact */
  .contact {
    scroll-margin-top: 120px;
  }
  .contact h4 {
    position: absolute;
    top: -100px;
    border-radius: 500px;
    border-color: #7a6a56;
    color: #7a6a56;
  }
  .contact .form-wrap {
    flex-direction: column;
    margin-top: calc(11rem + 100px);
  }
  .form-act {
    text-align: center
  }
  /*footer */
  footer {
    background-color: #5a575640
  }
  .footer {
    flex-direction: column;
    color: #fff;
  }
  .footer a {
    color: #fff
  }
  .ft-logo {
    flex: 1
  }
  .ft-logo img {
    max-width: 150px;
    filter: brightness(0) invert(1);
  }
  .social img {
    filter: brightness(0) invert(1);
  }
  /*inner */
  .entry-title {
    padding: var(--container-padding) calc(var(--container-padding) * 1.5);
  }
  .content-block {
    flex-direction: column-reverse
  }
  .works-loop {
    padding: calc(var(--container-padding) * 1.5)
  }
  .works-loop li {
    flex: auto;
  }
  .services-loop ul {
    font-size: 2rem;
  }
  .services-loop > div {
    flex: auto;
    padding: 0 0 0 4rem;
  }
  .service-pic {
    text-align: right;
  }
  .photo-portrait {
    width: 100%;
  }
  .post-top {
    flex-direction: column-reverse
  }
  .post-mid {
    margin-top: 12rem
  }
  .post-article {
    flex-direction: column-reverse !important;
  }
  .article-heading {
    flex-direction: column;
  }
  .article-heading:after {
    height: 10px;
    min-height: auto;
    width: 96px;
    align-self: center;
  }
  .post-bottom .case-figure {
    flex-direction: column;
  }
  /* 手機選單開啟時鎖住背景捲動 */
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open aside {
    background-color: transparent;
  }
}