/* 레이아웃 CSS */

/* 검정 바 디바이더 */
.willowDiv {
  height: 72px;
  width: 100vw;
  background: #000;
  background-size: 750px 72px;
  background-repeat: repeat;
  background-position: center 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
  display: block;
}

@media all and (max-width: 767.98px) {
  .willowDiv {
    height: 43px;
    background-size: auto 43px;
    margin: 30px 0;
  }
}

/* 포트폴리오 섹션 */
.portfolio {
  padding: 80px 0;
  background-color: #fff;
}

.portfolio .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
}

.portfolio .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.portfolio .col-xl-4,
.portfolio .col-xl-8 {
  padding: 0 15px;
  box-sizing: border-box;
}

.portfolio .col-xl-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.portfolio .col-xl-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.portfolio h2.ko {
  font-size: 4.224em; /* 3.52em * 1.2 */
  font-weight: 700;
  margin: 0 0 25px 0;
  line-height: 1.4;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  color: #000;
  letter-spacing: -0.01em;
}

.portfolio h2.ko small {
  display: block;
  font-size: 0.64em; /* 0.8em * 0.8 */
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  text-transform: uppercase;
}

.portfolio h3.ko {
  font-size: 1.57em !important; /* 2em * 0.8 - 1px */
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin: 0;
  margin-top: 97px;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  letter-spacing: -0.01em;
}

.portfolio .portfolio-grid {
  margin-top: 40px;
  overflow: visible;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio .portfolio-slider-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio .portfolio-slide {
  width: auto;
  height: auto;
  overflow: visible;
}

.portfolio .portfolio-pagination {
  display: none;
}

.portfolio .pfItem {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.portfolio .pfItem img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #000;
  box-sizing: border-box;
  object-fit: cover;
}

.portfolio .pfItem .box {
  background-color: #fff;
  color: #000;
  padding: 15px 20px;
  text-align: center;
  font-size: 1.6em; /* 2em * 0.8 */
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: 1px solid #000;
  margin-top: 10px;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  display: block;
  box-sizing: border-box;
  letter-spacing: -0.01em;
}

.portfolio .pfItem .box:hover {
  background-color: #f5f5f5;
  border-color: #ddd;
}

.portfolio .goPfBtnBox {
  display: flex;
  align-items: flex-end;
  padding-bottom: 40px;
}

.portfolio .mobile-only {
  display: none;
}

.portfolio .goPortfolio {
  display: inline-block;
  padding: 15px 40px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-size: 1.6em; /* 2em * 0.8 */
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: 1px solid #000;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  letter-spacing: -0.01em;
}

.portfolio .goPfBtnBox-mobile {
  display: none;
  text-align: center;
  margin-top: 30px;
  padding: 0 15px;
}

.portfolio .goPortfolio:hover {
  background-color: #333;
  border-color: #333;
}

/* 반응형 */
@media all and (max-width: 1200px) {
  .portfolio .col-xl-4,
  .portfolio .col-xl-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .portfolio .col-xl-8.order-xl-2 {
    order: 3;
  }

  .portfolio .col-xl-4.order-xl-1 {
    order: 4;
  }

  .portfolio .goPfBtnBox-mobile {
    order: 5;
  }

  .portfolio .goPfBtnBox {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
}

@media all and (max-width: 1024px) {
  .portfolio .pc-only {
    display: none !important;
  }

  .portfolio .mobile-only {
    display: block !important;
  }

  .portfolio-header {
    margin-bottom: 30px;
  }

  .portfolio-content {
    display: flex;
    flex-direction: column;
  }

  .portfolio-content .col-xl-8.order-xl-2 {
    order: 1;
  }

  .portfolio-content .goPfBtnBox-mobile {
    order: 2;
  }

  .portfolio .portfolio-grid {
    padding: 0 15px;
    width: 100%;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .portfolio .pfItem {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 1px;
  }

  .portfolio .pfItem img {
    width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    height: auto;
  }
}

@media all and (max-width: 768px) {
  .portfolio {
    padding: 50px 0;
  }

  .portfolio .container {
    padding: 0 20px;
    overflow: visible;
  }

  .portfolio .row {
    overflow: visible;
  }

  .portfolio-header {
    margin-bottom: 30px;
  }

  .portfolio h2.ko {
    font-size: 2.7648em; /* 3.456em * 0.8 */
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #000;
    font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  }

  .portfolio h2.ko small {
    font-size: 0.512em; /* 0.64em * 0.8 */
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
  }

  .portfolio h3.ko {
    font-size: calc(1.52em - 1px); /* 1.9em * 0.8 - 1px */
    line-height: 1.8;
    margin-top: 10px;
    letter-spacing: -0.01em;
  }

  .portfolio .pfItem {
    margin-bottom: 0;
  }

  .portfolio .pfItem img {
    border: 1px solid #000;
    box-sizing: border-box;
  }

  .portfolio .pfItem .box {
    font-size: 1.42em; /* 1.9em * 0.8 */
    padding: 15px 0px;
    border: 1px solid #000;
    margin-top: 10px;
    background-color: #fff;
    line-height: 1.5;
    letter-spacing: -0.01em;
  }

  .portfolio .goPfBtnBox-mobile {
    margin-top: 25px;
  }

  .portfolio .goPortfolio {
    font-size: 1.52em; /* 1.9em * 0.8 */
    padding: 15px 35px;
    width: 100%;
    max-width: 100%;
    display: block;
    line-height: 1.5;
    letter-spacing: -0.01em;
  }
}

/* WORK PROCESS 섹션 */
.work-process {
  padding: 80px 0;
  background-color: #e9ebf1;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
}

.work-process .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
}

.work-process-header {
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid #000;
}

.work-process h2.ko {
  font-size: 4.224em; /* 3.52em * 1.2 */
  font-weight: 700;
  margin: 0 0 25px 0;
  line-height: 1.4;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  color: #000;
  letter-spacing: -0.01em;
}

.work-process h2.ko small {
  display: block;
  font-size: 0.64em; /* 0.8em * 0.8 */
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  text-transform: uppercase;
}

.work-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.process-item {
  display: flex;
  flex-direction: column;
  padding: 30px;
  position: relative;
}

.process-item {
  border-right: 1px solid #000;
}

.process-item:nth-child(3n) {
  border-right: none;
}

.process-item:nth-child(n + 4) {
  border-top: 1px solid #000;
}

.process-image {
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
}

.process-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.process-content {
  flex: 1;
}

.process-title {
  font-size: 1.68em; /* 1.6em + 0.08em */
  font-weight: 700;
  color: #000;
  margin: 0 0 15px 0;
  line-height: 1.5;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  letter-spacing: -0.01em;
}

.process-title .process-number {
  font-weight: 700;
  margin-right: 5px;
}

.process-title .subtitle {
  font-size: 0.8em;
  font-weight: 400;
  color: #666;
  margin-left: 5px;
}

.process-text {
  font-size: 1.04em;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
  margin: 0;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  letter-spacing: -0.01em;
}

/* 모바일 스타일 */
@media all and (max-width: 1024px) {
  .work-process {
    padding: 50px 0;
  }

  .work-process-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
  }

  .work-process h2.ko {
    font-size: 3.456em; /* 2.88em * 1.2 */
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #000;
    font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  }

  .work-process h2.ko small {
    font-size: 0.64em; /* 0.8em * 0.8 */
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
  }

  .work-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .process-item {
    padding: 20px;
    border-right: 1px solid #000;
  }

  .process-item:nth-child(2n) {
    border-right: none;
  }

  .process-item:nth-child(n + 3) {
    border-top: 1px solid #000;
  }

  .process-image {
    margin-bottom: 15px;
  }

  .process-title {
    font-size: 1.48em; /* 1.4em + 0.08em */
    margin-bottom: 12px;
  }

  .process-text {
    font-size: 1.02em;
    line-height: 1.7;
  }
}

@media all and (max-width: 768px) {
  .work-process {
    padding: 40px 0;
  }

  .work-process-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000;
  }

  .work-process h2.ko {
    font-size: 2.7648em; /* 3.456em * 0.8 */
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: #000;
    font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  }

  .work-process h2.ko small {
    font-size: 0.512em; /* 0.64em * 0.8 */
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
  }

  .work-process-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-item {
    padding: 20px;
    border-right: none;
  }

  .process-item:not(:first-child) {
    border-top: 1px solid #000;
  }

  .process-title {
    font-size: 1.58em; /* 1.3em + 0.08em */
  }

  .process-text {
    font-size: 1.03em;
  }
}

/* AI 활용 디자인 섹션 */
.ai-design {
  padding: 80px 0;
  background-color: #fff;
}

.ai-design .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
}

.ai-design-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
}

.ai-design-header {
  flex: 0 0 40%;
  text-align: left;
}

.ai-design h2.ko {
  font-size: 4.224em; /* 3.52em * 1.2 */
  font-weight: 700;
  margin: 0 0 25px 0;
  line-height: 1.4;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  color: #000;
  letter-spacing: -0.01em;
}

.ai-design h2.ko small {
  display: block;
  font-size: 0.64em; /* 0.8em * 0.8 */
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  text-transform: uppercase;
}

.ai-design-intro {
  font-size: 1.51em;
  font-weight: 400;
  color: #333;
  line-height: 1.8;
  margin: 0;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  letter-spacing: -0.01em;
}

.ai-design-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ai-design-item {
  display: flex;
  flex-direction: column;
}

.ai-design-image {
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
}

.ai-design-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ai-design-label {
  font-size: 1.2em;
  font-weight: 700;
  color: #000;
  text-align: center;
  font-family: "NanumSquareNeoVariable", "NanumSquareNeo", sans-serif;
  letter-spacing: -0.01em;
  margin-top: 5px;
}

/* 모바일 스타일 */
@media all and (max-width: 1024px) {
  .ai-design {
    padding: 50px 0;
  }

  .ai-design-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .ai-design-header {
    text-align: left;
  }

  .ai-design h2.ko {
    font-size: 3.456em; /* 2.88em * 1.2 */
    margin-bottom: 20px;
  }

  .ai-design h2.ko small {
    font-size: 0.64em;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
  }

  .ai-design-intro {
    font-size: 1.35em;
    line-height: 1.7;
  }

  .ai-design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .ai-design-label {
    font-size: 1em;
  }
}

@media all and (max-width: 768px) {
  .ai-design {
    padding: 40px 0;
  }

  .ai-design-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .ai-design-header {
    text-align: left;
  }

  .ai-design h2.ko {
    font-size: 2.7648em; /* 3.456em * 0.8 */
    margin-bottom: 15px;
  }

  .ai-design h2.ko small {
    font-size: 0.512em; /* 0.64em * 0.8 */
    margin-bottom: 10px;
    letter-spacing: -0.02em;
  }

  .ai-design-intro {
    font-size: 1.17em;
    line-height: 1.6;
  }

  .ai-design-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .ai-design-label {
    font-size: 0.9em;
  }
}
