@charset "UTF-8";

@media screen and (min-width: 1921px) {
  html {
    font-size: 11.5px;
  }

  header .menu a {
    font-size: 17px;
  }

  header .logo img {
    max-width: 70px;
  }
}

@media (max-width: 1480px) {
  html {
    font-size: 9px;
  }

  .wrap {
    width: 90%;
  }

  /* ================================
   Footer
================================ */

  @media (max-width: 1280px) {
    html {
      font-size: 8px;
    }
    .wrap {
      width: 96%;
    }
  }
  /* ================================
   Header
================================ */
  header .hamburger {
    display: block;
  }

  header nav .menu {
    display: none;
    flex-direction: column;
  }

  header nav .menu.active {
    display: flex;
  }

  /* ================================
   Footer
================================ */
}

@media (max-width: 768px) {
  html {
    font-size: 7px;
  }

  .wrap {
    width: 92%;
  }

  /* ================================
   Header
================================ */
  header {
    height: 70px;
  }

  header .logo img {
    max-width: 55px;
  }

  /* ================================
   popup
================================ */
  .popup {
    width: 90vw;
  }

  .popup .content {
    width: 100%;
    height: auto;
  }

  .popup .downbox {
    padding: 2.5rem 2.2rem;
  }

  .popup .btn-today .icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
  }

  .popup .btn-today img {
    width: 2.5rem;
    height: 2.5rem;
  }

  /* ================================
   Main
================================ */
  main {
    background-image: url("/img/main_mobile_image.jpg");
  }

  main .textbox {
    padding-bottom: 40px;
  }

  main .mobile {
    display: block;
  }

  main .circle {
    bottom: 27%; /* 원의 수직 위치 */
    right: -6.5%; /* 원의 수평 위치 */
  }

  /* ================================
   sticky-wrapper
================================ */
  .number {
    transform: translate(-50%, -175px) rotate(var(--number-rotation));
  }

  .sticky-wrapper .mobile {
    display: block;
  }
  /* ================================
   differ
================================ */
  .differ .leftbox {
    display: none;
  }

  .differ p {
    width: auto;
  }

  /* ================================
   introduce
================================ */
  .introduce .wrap {
    display: flex;
    flex-direction: column;
  }

  .introduce .rightbox {
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
  }

  .introduce h2 {
    margin-bottom: 40px;
  }

  .introduce ul {
    margin-top: 24px;
  }

  .introduce img {
    border-radius: 14px;
    max-width: 100%;
  }

  /* ================================
   portfolio
================================ */
  .portfolio .downbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
  }

  .portfolio .imgbox .p14 {
    top: 80%;
    right: 1.1rem;
    padding: 0.6rem 2.2rem;
    font-weight: 500;
  }

  .portfolio span {
    top: 80%;
    right: 1.1rem;
    padding: 0.7rem 2.2rem;
    font-weight: 500;
  }

  /* ================================
   service
================================ */
  .service .downbox {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(8, auto);
    gap: 1.5rem;
  }

  .service .card {
    padding: 4rem 3.5rem;
    border-radius: 12px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* ================================
   Footer
================================ */
  footer .topbox img {
    max-width: 130px;
  }

  footer .middlebox {
    flex-direction: column;
    align-items: flex-start;
    gap: 5.5rem;
  }

  footer .middlebox .top-content {
    gap: 3rem;
  }

  footer .middlebox table {
    width: 100%;
  }

  footer .middlebox .subbox {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  footer .downbox li {
    padding-left: 0;
    white-space: nowrap;
  }

  footer .downbox li + li {
    border-left: none;
  }
}
