* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-size: 100%;
}

/* 접근성 친화 시각적 숨김 유틸리티 */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

p, h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

body {
  max-width: 1920px;
  margin: 0 auto;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #fff;
  color: #282828;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-visible {
  display: none;
}

.mobile-hidden {
  display: block;
}

.header {
  position: sticky;
  background-color: white;
  z-index: 99;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  border-bottom: #EBEBEB solid 1px;
}

.header-inner {
  position: relative;
  width: 1150px;
  height: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo-container {
  width: 160px;
  height: 31px;
}

.logo-container img {
  width: 100%;
  height: 100%;
}

.gnb ul {
  display: flex;
  align-items: center;
  gap: 42px;
}

.gnb a {
  font-weight: 400;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 41px;
  padding: 10px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.gnb a:hover {
  transform: translateY(-3px);
}

.menu-home {
  width: 72px;
}

.menu-about {
  width: 78px;
}

.menu-portfolios {
  width: 125px;
}

.menu-contact {
  width: 101px;
}

.gnb a.active {
  color: #F86902;
  font-weight: bold;
}

.gnb a.active:hover {
    color: #F86902;
}

.gnb-mobile {
  display: none;
}

.hamburger-menu {
  display: none;
  position: relative;
  width: 24px;
  height: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 101;
}

.hamburger-menu .line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #282828;
  transition: all 0.3s ease;
}

.hamburger-menu .line:nth-child(1) {
  top: 0;
}

.hamburger-menu .line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-menu .line:nth-child(3) {
  bottom: 0;
}

/* 햄버거 메뉴 활성화 시 (X 모양으로 변경) */
.hamburger-menu.is-active .line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.is-active .line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.is-active .line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

main {
  width: 100%;
}

.banner-container {
  position: relative;
  width: 100%;
  height: calc(100vw * (600 / 1920));
  max-height: 600px;
  background-image: url("../resources/main_banner.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.banner-title {
  position: absolute;
  margin: 0;
  font-family: 'Koulen', sans-serif;
  font-weight: 400;
  font-size: calc(100vw * (110 / 1920));
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
  top: 50%;
  left: 50%;
  width: calc(100vw * (630 / 1920));
  transform: translate(-50%, -50%);
}

.section-about {
  margin-top: 81px;
  padding: 0 20px;
}

.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.title-left-area {
  position: relative;
  flex-shrink: 0;
  /*padding-left: 70px;*/
  margin-left: 70px;
}

.title-right-area {
  margin-top: 20px;
  /*margin-left: 242px;*/
  max-width: 540px;
}

.section-dot {
  display: block;
  margin-left: 12px;
  width: 8px;
  height: 8px;
  background: #282828;
  border-radius: 50%;
}

.section-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nuosu SIL', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
  margin-top: 12px;
}

.title-right-area p:not(.about-strong) {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.04em;
}

p.about-strong {
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
}

.about-points {
  max-width: 1920px;
  margin: 100px auto 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.point {
  position: relative;
  padding: 10px 20px;
}

.point + .point {
  border-left: #CCCCCC solid 0.1rem;
}

.point-eyebrow {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-style: Italic;
  font-size: 20px;
  line-height: 40px;
}

.point-title {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #000000;
  margin-top: 15px;
}

.point-desc {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #000000;
  margin-top: 12px;
}

.section-portfolios {
  padding: 0 20px;
}

.section-portfolios > .section-title-container {
  margin-top: 200px;
}

.portfolios-banner-container {
  position: relative;
  max-width: 1152px;
  height: 350px;
  background-image: url("../resources/portfolios_banner.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin: 191px auto 0;
}

.portfolios-banner-title-area {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 22px;
}

.portfolios-banner-title {
  font-size: 32px;
  font-family: 'Koulen', sans-serif;
  font-weight: 400;
  color: #231815;
}

.portfolios-banner-line {
  width: 318px;
  height: 1px;
  background: #484848;
}

.portfolios-sub-title {
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 350;
  font-size: 18px;
  line-height: 32px;
  margin-top: 12px;
}

.portfolios-brands {
  margin: 123px auto;
  max-width: 1200px;
  overflow: hidden;
  position: relative;
}

.portfolios-brands ul {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-brands 25s linear infinite;
}

.portfolios-brands li {
  margin-left: 80px;
}

.portfolios-brands:hover ul {
  animation-play-state: paused;
}

.section-contact {
  margin-top: 226px;
  padding: 0 20px;
}

.contact-email-area {
  display: flex;
  justify-content: flex-end;
}

.email-title {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  margin-left: 6px;
}

.email-desc {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 32px;
}

.contact-map-container {
  max-width: 970px;
  height: 580px;
  margin: 60px auto 0;
}

.footer {
  width: 100%;
  background-color: #F5F5F5;
  margin: 180px auto 0;
  padding: 0 20px;
}

.footer-inner {
  padding-top: 60px;
  display: flex;
  justify-content: space-between;
  max-width: 850px;
  margin: 0 auto;
}

.footer-logo-image {
  width: 172px;
}

.footer-address {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 32px;
}

.footer-email {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 32px;
}

.footer-copyright {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  margin-top: 14px;
  padding-bottom: 40px;
}

/* 로고 스크롤 애니메이션 */
@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


@media (max-width: 860px) {
  .mobile-visible {
    display: block;
  }

  .mobile-hidden {
    display: none;
  }

  .header-inner {
    height: 80px;
  }

  .gnb {
    display: none; /* 모바일에서 데스크톱 메뉴 숨김 */
  }

  .hamburger-menu {
    display: block;
  }

  .gnb-mobile {
    display: block; /* 모바일에서 모바일 메뉴 표시 */
    position: fixed;
    top: 0;
    right: 0;
    width: 240px; /* 너비 축소 */
    height: 100vh;
    background-color: #fff;
    padding: 100px 40px 40px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.4s;
    z-index: 100;
  }

  .gnb-mobile.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s;
  }

  .gnb-mobile ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .gnb-mobile a {
    font-size: 20px;
    height: auto;
    padding: 10px 0;
    width: 100%;
  }

  .gnb-mobile a.active {
    color: #F86902;
    font-weight: bold;
  }

  .section-title-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .title-left-area {
    margin-left: 0;
    text-align: center;
  }

  .title-right-area {
    margin-top: 0;
    text-align: left;
    max-width: 400px;
  }

  .about-points {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    margin-top: 60px;
  }

  .point {
    padding: 0 30px;
    text-align: left;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .point + .point {
    border-left: none;
    border-top: #CCCCCC solid 1px;
    padding-top: 40px;
  }

  .portfolios-banner-title-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .portfolios-banner-title {
    font-family: 'Koulen', sans-serif;
    font-weight: 400;
    color: #231815;
    font-size: 22px;
  }

  .portfolios-banner-line {
    width: calc(100vw * (318 / 1920));
    height: 1px;
    background: #484848;
  }

  .contact-map-container {
    height: calc(100vw * (1000 / 1920));
  }

  .contact-email-area {
    justify-content: center;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 40px;
    padding-bottom: 0;
  }

  .footer-left {
    text-align: center;
  }

  .footer-right img {
    max-width: 300px;
  }
}
