@charset "utf-8";

/* ****************** 공통클래스 ********************** */
.area {
  max-width: 134rem;
  position: relative;
  margin: 0 auto;
}
.table-layout {
  display: table;
  width: 100%;
  height: 100%;
}
.table-cell-layout {
  display: table-cell;
  width: 100%;
  height: 100%;
  vertical-align: middle;
}
.blind {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  font-size: 0;
  line-height: 0;
}

/* ****************** SUB LAYOUT ********************** */
/* SUB LAYOUT :: 비주얼 */
.sub-visual {
  position: relative;
  overflow: hidden;
  width: calc(100% - 8rem);
  height: 40rem;
  z-index: 1;
  background-size: cover;
  object-fit: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 2rem;
  margin: 0 auto;
}
.sub-visual h2,
.sub-visual p {
  color: var(--bs-white);
  opacity: 0;
  filter: Alpha(opacity=0);
  -ms-transform: translateY(3rem);
  -o-transform: translateY(3rem);
  -moz-transform: translateY(3rem);
  -webkit-transform: translateY(3rem);
  transform: translateY(3rem);
  -webkit-transition:
    opacity 1s,
    transform 1s;
  -moz-transition:
    opacity 1s,
    transform 1s;
  -o-transition:
    opacity 1s,
    transform 1s;
  -ms-transition:
    opacity 1s,
    transform 1s;
  transition:
    opacity 1s,
    transform 1s;
}
.sub-visual h2 {
  font-weight: 700;
  font-size: 5rem;
  font-family: "GMarketSans";
  margin-bottom: 3.4rem;

  -webkit-transition-delay: 0.3s;
  -moz-transition-delay: 0.3s;
  -o-transition-delay: 0.3s;
  -ms-transition-delay: 0.3s;
  transition-delay: 0.3s;
}
.sub-visual p {
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.4;
  -webkit-transition-delay: 0.6s;
  -moz-transition-delay: 0.6s;
  -o-transition-delay: 0.6s;
  -ms-transition-delay: 0.6s;
  transition-delay: 0.6s;
}
.sub-visual.active h2 {
  opacity: 1;
  filter: Alpha(opacity=100);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  -moz-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.sub-visual.active p {
  opacity: 1;
  filter: Alpha(opacity=100);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  -moz-transform: translateY(0);
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
/* Breadcrumb */

.sub-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 1.4rem;

  color: rgba(255, 255, 255, 0.95);

  line-height: 1;
  font-weight: 400;
  display: none;
}

.sub-breadcrumb i {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
}
/* ****************** MODAL LAYERPOPUP ********************** */
.popup-wrap {
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  padding: 1.5rem;
  z-index: 99999;
}

.popup {
  width: 100%;
  position: relative;
  max-width: 110rem;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  background: #363b3e;
}
.popup-wrap.full {
  padding: 0;
}
.popup-wrap.full .popup {
  max-width: 100%;
  border-radius: 0;
  height: 100vh;
  background: transparent;
}
.popup-head {
  background: var(--bs-primary);
  padding: 2rem 3.5rem;
  color: var(--bs-white);
  font-size: 2rem;
  font-weight: 600;
  font-family: "Paperozi";
}
.popup-wrap.full .popup-head,
.popup-wrap.full .popup-body {
  background: transparent;
}
.popup-wrap.full .popup-head {
  font-size: 6rem;
  padding: 4vw 4vw 2vw;
}
.popup-wrap.full .popup-body {
  padding-left: 4vw;
  padding-right: 4vw;
}
.popup-body {
  background: var(--bs-white);
  padding: 2rem;
}
.body-content.scroll {
  width: 100%;
  word-break: break-word;
  overflow-x: auto;
  max-height: 55rem;
  padding: 2rem;
  line-height: 1.4em;
}
.popup-foot {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: var(--bs-white);
}
.popup-wrap.full .popup-foot {
  right: 4vw;
  top: 4vw;
}
.pop-btn {
  color: var(--bs-white);
  cursor: pointer;
}
.pop-btn i {
  color: var(--bs-white);
}

@media all and (max-width: 1320px) {
  .area {
    padding: 0 1.5rem;
  }
}

@media all and (max-width: 800px) {
  body,
  table,
  th,
  td,
  button,
  select,
  input,
  textarea {
    font-size: 1.6rem; /* 루트 축소로 약 14px */
  }
}

/* ****************** SUB LAYOUT ********************** */
@media all and (max-width: 1220px) {
}
@media all and (max-width: 800px) {
  .sub-visual {
    height: 23rem;
    width: calc(100% - 4rem);
  }

  .sub-visual h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
  }
  .sub-visual p {
    font-size: 1.3rem;
  }
}

.img-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--bs-primary);
  z-index: 2;
  transform-origin: right center;
}

/* ========================================
   Portfolio common
======================================== */

.portfolio-page,
.portfolio-detail {
  --portfolio-color-main: #173d64;
  --portfolio-color-point: #2877b5;
  --portfolio-color-line: #dedede;
  --portfolio-color-gray: #777;
  color: #222;
}

.portfolio-page .inner,
.portfolio-detail .inner {
  width: calc(100% - 6rem);
  max-width: 132rem;
  margin: 0 auto;
}

/* ========================================
   Archive visual
======================================== */

.portfolio-visual {
  padding: 15rem 0 11rem;
  background-color: #f5f7f9;
  text-align: center;
}

.portfolio-visual__eyebrow {
  margin: 0 0 2rem;
  color: var(--portfolio-color-point);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-visual__title {
  margin: 0;
  color: #111;
  font-size: clamp(3.8rem, 4vw, 6.4rem);
  font-weight: 700;
  line-height: 1.2;
}

.portfolio-visual__description {
  margin: 2.8rem 0 0;
  color: #666;
  font-size: 1.8rem;
  line-height: 1.7;
}

/* ========================================
   Category
======================================== */

.portfolio-section {
  padding: 11rem 0 14rem;
}

.portfolio-category {
  margin-bottom: 6rem;
}

.portfolio-category__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-category__item a {
  display: flex;
  min-width: 12rem;
  height: 4.8rem;
  align-items: center;
  justify-content: center;
  padding: 0 2.4rem;
  border: 1px solid #ddd;
  border-radius: 5rem;
  background-color: var(--bs-white);
  color: #555;
  font-size: 1.6rem;
  transition:
    border-color 0.3s,
    background-color 0.3s,
    color 0.3s;
}

.portfolio-category__item a:hover,
.portfolio-category__item a.is-active {
  border-color: var(--portfolio-color-main);
  background-color: var(--portfolio-color-main);
  color: var(--bs-white);
}

/* ========================================
   Portfolio list
======================================== */

.portfolio-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-list__item {
  min-width: 0;
}

.portfolio-card {
  display: block;
  color: inherit;
}

.portfolio-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #eee;
}

.portfolio-card__image::after {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 48, 80, 0.45);
  opacity: 0;
  transition: opacity 0.4s;
  content: "";
}

.portfolio-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.06);
}

.portfolio-card:hover .portfolio-card__image::after {
  opacity: 1;
}

.portfolio-card__empty {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #999;
}

.portfolio-card__more {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 5.8rem;
  height: 5.8rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.portfolio-card__more::before,
.portfolio-card__more::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--bs-white);
  transform: translate(-50%, -50%);
  content: "";
}

.portfolio-card__more::before {
  width: 1.8rem;
  height: 1px;
}

.portfolio-card__more::after {
  width: 1px;
  height: 1.8rem;
}

.portfolio-card:hover .portfolio-card__more {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.portfolio-card__content {
  padding-top: 2.4rem;
}

.portfolio-card__category {
  margin: 0 0 1rem;
  color: var(--portfolio-color-point);
  font-size: 1.4rem;
  font-weight: 600;
}

.portfolio-card__separator {
  margin: 0 0.5rem;
}

.portfolio-card__title {
  overflow: hidden;
  margin: 0;
  color: #222;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   Empty
======================================== */

.portfolio-empty {
  display: flex;
  min-height: 30rem;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #222;
  border-bottom: 1px solid #ddd;
  color: #777;
}

/* ========================================
   Pagination
======================================== */

.portfolio-pagination {
  margin-top: 8rem;
}

.portfolio-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.portfolio-pagination .page-numbers {
  display: flex;
  min-width: 4.2rem;
  height: 4.2rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid #ddd;
  color: #666;
}

.portfolio-pagination .page-numbers:hover,
.portfolio-pagination .page-numbers.current {
  border-color: var(--portfolio-color-main);
  background-color: var(--portfolio-color-main);
  color: var(--bs-white);
}

/* ========================================
   Portfolio detail
======================================== */

.portfolio-detail__header {
  padding: 15rem 0 7rem;
  border-bottom: 1px solid var(--portfolio-color-line);
  text-align: center;
}

.portfolio-detail__category {
  margin: 0 0 2.4rem;
  color: var(--portfolio-color-point);
  font-size: 1.6rem;
  font-weight: 600;
}

.portfolio-detail__category span {
  margin: 0 0.7rem;
}

.portfolio-detail__category a {
  color: inherit;
}

.portfolio-detail__title {
  max-width: 90rem;
  margin: 0 auto;
  color: #111;
  font-size: clamp(3.4rem, 4vw, 5.6rem);
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
}

.portfolio-detail__date {
  display: block;
  margin-top: 3rem;
  color: #999;
  font-size: 1.5rem;
}

.portfolio-detail__body {
  padding: 8rem 0 12rem;
}

.portfolio-detail__thumbnail {
  overflow: hidden;
  margin: 0 0 7rem;
}

.portfolio-detail__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-detail__content {
  max-width: 100rem;
  margin: 0 auto;
  color: #555;
  font-size: 1.8rem;
  line-height: 1.9;
}

.portfolio-detail__content > :first-child {
  margin-top: 0;
}

.portfolio-detail__content > :last-child {
  margin-bottom: 0;
}

.portfolio-detail__content img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Detail navigation
======================================== */

.portfolio-detail-navigation {
  padding-bottom: 12rem;
}

.portfolio-detail-navigation__posts {
  border-top: 1px solid #222;
}

.portfolio-detail-navigation__item {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  min-height: 8rem;
  align-items: center;
  border-bottom: 1px solid var(--portfolio-color-line);
}

.portfolio-detail-navigation__label {
  color: #222;
  font-size: 1.5rem;
  font-weight: 600;
}

.portfolio-detail-navigation__item a,
.portfolio-detail-navigation__item p {
  overflow: hidden;
  margin: 0;
  color: #666;
  font-size: 1.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-detail-navigation__item a:hover {
  color: var(--portfolio-color-point);
}

.portfolio-detail-navigation__bottom {
  display: flex;
  justify-content: center;
  margin-top: 6rem;
}

.portfolio-list-button {
  display: flex;
  min-width: 16rem;
  height: 5.4rem;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  border: 1px solid #222;
  color: #222;
  font-size: 1.5rem;
  font-weight: 600;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.portfolio-list-button:hover {
  background-color: #222;
  color: var(--bs-white);
}

.portfolio-list-button__icon {
  display: grid;
  grid-template-columns: repeat(2, 0.4rem);
  gap: 0.3rem;
}

.portfolio-list-button__icon i {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  background-color: currentColor;
}

/* ========================================
   Responsive
======================================== */

@media screen and (max-width: 1024px) {
  .portfolio-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .portfolio-page .inner,
  .portfolio-detail .inner {
    width: calc(100% - 4rem);
  }

  .portfolio-visual {
    padding: 10rem 0 7rem;
  }

  .portfolio-visual__description {
    font-size: 1.5rem;
  }

  .portfolio-section {
    padding: 7rem 0 9rem;
  }

  .portfolio-category {
    margin-bottom: 4rem;
  }

  .portfolio-category__list {
    justify-content: flex-start;
  }

  .portfolio-category__item {
    width: calc(50% - 0.5rem);
  }

  .portfolio-category__item a {
    width: 100%;
    min-width: 0;
    padding: 0 1.2rem;
    font-size: 1.4rem;
  }

  .portfolio-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 4.5rem;
  }

  .portfolio-card__title {
    font-size: 2rem;
  }

  .portfolio-detail__header {
    padding: 10rem 0 5rem;
  }

  .portfolio-detail__body {
    padding: 5rem 0 8rem;
  }

  .portfolio-detail__thumbnail {
    margin-bottom: 4.5rem;
  }

  .portfolio-detail__content {
    font-size: 1.6rem;
    line-height: 1.8;
  }

  .portfolio-detail-navigation {
    padding-bottom: 8rem;
  }

  .portfolio-detail-navigation__item {
    display: block;
    min-height: 0;
    padding: 2rem 0;
  }

  .portfolio-detail-navigation__label {
    display: block;
    margin-bottom: 1rem;
  }
}

.sitemap {
  display: flex;
  flex-wrap: wrap;
}

.sitemap > li {
  width: 18%;
  margin: 1%;
}

.sitemap > li > a {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--bs-black);
  margin-bottom: 1.5rem;
  color: var(--bs-white);
}
.sitemap .sub-menu {
  margin-top: 2vw;
}
.sitemap .sub-menu li {
  padding: 1rem 0;
}
.sitemap .sub-menu li a {
  color: var(--bs-white);
  font-size: 2rem;
  font-weight: 300;
}

/* ==================================================
   Sub Navigation
================================================== */

.sub-nav {
  position: relative;
  z-index: 98;
  width: 100%;
  background: #f3f3f3;
  border-bottom: 1px solid #ddd;
}

.sub-nav-inner {
  display: flex;
  width: 100%;
  height: 7rem;
  margin: 0 auto;
}

.sub-nav-home {
  flex: 0 0 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #cccccc;
  background: #acacac;
}

.sub-nav-home a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--bs-white);
  font-size: 2rem;
  text-decoration: none;
}

.sub-nav-home a:hover {
  color: var(--bs-white);
}

.sub-nav-item {
  position: relative;
  flex: 0 0 24rem;
  border-left: 1px solid #cccccc;
}

.sub-nav-item:last-child {
  border-right: 1px solid #cccccc;
}

.sub-nav-item:last-child .sub-nav-button i {
  background: var(--bs-primary);
}

.sub-nav-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 7rem;
  padding: 0 2.5rem;
  border: 0;
  background: transparent;
  color: #595959;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.sub-nav-button i {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #acacac;
  text-align: center;
  line-height: 4rem;
  color: var(--bs-white);
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.sub-nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: -1px;
  z-index: 100;

  width: calc(100% + 0.2rem);

  max-height: 0;
  overflow: hidden;

  background: #f3f3f3;
  border: 1px solid #cccccc;
  border-top: 0;

  opacity: 0;
  visibility: hidden;

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    visibility 0.35s ease;
}

.sub-nav-item.is-open .sub-nav-dropdown {
  max-height: 50rem;
  opacity: 1;
  visibility: visible;
}

.sub-nav-item.is-open .sub-nav-button i {
  transform: rotate(180deg);
}

.sub-nav-dropdown a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 5.2rem;
  padding: 0 2.5rem;

  border-top: 1px solid #ccc;

  background: #f3f3f3;
  color: #555;

  font-size: 1.5rem;
  text-decoration: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.sub-nav-dropdown a:first-child {
  border-top: 0;
}

.sub-nav-dropdown a:hover {
  background: var(--bs-white);
  color: #111;
}

.sub-nav-dropdown a.active {
  background: var(--bs-white);
  color: #111;
  font-weight: 600;
}

/*sub nav 다른 타입 2뎁스만 나열 */
.sub-nav-2depth {
  position: relative;
  width: 100%;
  background: var(--bs-white);
}

.sub-nav-2depth-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.sub-nav-2depth-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 50%;
  height: 8.8rem;

  color: #999;
  font-size: 2.2rem;
  font-weight: 400;
  text-decoration: none;
  font-family: var(--bs-font-title);

  transition: color 0.3s ease;
  border-bottom: 2px solid #cccccc;
}

.sub-nav-2depth-link:hover {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.sub-nav-2depth-link.active {
  color: var(--bs-primary);
  font-weight: 500;
  border-color: var(--bs-primary);
}

@media (max-width: 768px) {
  .sub-nav-2depth-link {
    height: 6.8rem;

    font-size: 1.8rem;
  }
}

@media (max-width: 500px) {
  .sub-nav-2depth-link {
    height: 4.8rem;

    font-size: 1.6rem;
  }
}
@media (max-width: 1320px) {
  .sub-nav-inner.area {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 768px) {
  .sub-nav-inner {
    height: 5.6rem;
  }

  .sub-nav-home {
    flex: 0 0 5.6rem;
    border-left: 0;
  }

  .sub-nav-home a {
    font-size: 1.7rem;
  }

  .sub-nav-item {
    flex: 1 1 0;
  }
  .sub-nav-item:last-child {
    border-right: 0;
  }
  .sub-nav-button {
    height: 5.6rem;
    padding: 0 1rem;
    font-size: 1.4rem;
  }

  .sub-nav-button i {
    font-size: 1.2rem;
    width: 2.4rem;
    height: 2.4rem;
    line-height: 2.4rem;
    min-width: 2.4rem;
  }

  .sub-nav-dropdown a {
    min-height: 4.8rem;
    padding: 0 1.6rem;
    font-size: 1.4rem;
  }
}

.sub-title {
  padding-top: 7rem;
}
.sub-title h3 {
  text-align: center;
  font-size: 5rem;
  font-weight: 500;
  font-family: var(--bs-font-title);
}

.sub-container {
  padding: 6rem 0 10rem;
}

@media (max-width: 768px) {
  .sub-title {
    padding-top: 3rem;
  }
  .sub-title h3 {
    font-size: 2.5rem;
  }
  .sub-container {
    padding: 3rem 0 5rem;
  }
}
