/* font */
/* Pretendard */
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}


/* Bootstrap 커스텀 */
.container {
  max-width: 1440px;
}
@media (min-width: 1200px) {
  .h1, h1 {
    font-size: 3.75rem;
  }
}
/* 고해상도 */
@media (min-width: 2000px) {
  html {
    font-size: 18px;
  }

  .container {
    max-width: 1600px;
  }
}


/* 공통 CSS */
:root {
  --softit-primary: #182439;
  --softit-primary-rgb: 24, 36, 57;
  --barobugo-primary: #572F21;
  --barobugo-primary-rgb: 87, 47, 33;
  --baroflower-primary: #4F6F5A;
  --baroflower-primary-rgb: 79, 111, 90;
}
body {
  font-family: 'Pretendard', sans-serif;
}
main > section:not(#main-visual) {
  padding: 70px 0;
}
.h-100dvh {
  height: 100dvh;
}
.keep-all {
  word-break: keep-all;
}
.flex-1 {
  flex: 1 1 0;
}
.pointer-cursor {
  cursor: pointer;
}
.bg-opacity-5 {
  --bs-bg-opacity: 0.05;
}
.bg-softit {
  background-color: rgba(var(--softit-primary-rgb), var(--bs-bg-opacity, 1)) !important;
}
.bg-barobugo {
  background-color: rgba(var(--barobugo-primary-rgb), var(--bs-bg-opacity, 1)) !important;
}
.bg-baroflower {
  background-color: rgba(var(--baroflower-primary-rgb), var(--bs-bg-opacity, 1)) !important;
}
.text-softit {
  color: var(--softit-primary) !important;
}
.text-barobugo {
  color: var(--barobugo-primary) !important;
}
.text-baroflower {
  color: var(--baroflower-primary) !important;
}
.btn-softit,
.btn-softit:hover,
.btn-softit:active {
  color: #fff !important;
  background-color: var(--softit-primary) !important;
  border-color: var(--softit-primary) !important;
}
.btn-barobugo,
.btn-barobugo:hover,
.btn-barobugo:active {
  color: #fff !important;
  background-color: var(--barobugo-primary) !important;
  border-color: var(--barobugo-primary) !important;
}
.btn-baroflower,
.btn-baroflower:hover,
.btn-baroflower:active {
  color: #fff !important;
  background-color: var(--baroflower-primary) !important;
  border-color: var(--baroflower-primary) !important;
}
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title > p:first-of-type {
  font-size: 1rem;
}
.sub-visual{
  height: 240px;
}
.sub-visual h1{
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
@media (max-width: 991px) {
  .m-fs-14 {
    font-size: 14px !important;
  }
  .m-fs-16 {
    font-size: 16px !important;
  }
  .m-fs-20 {
    font-size: 20px !important;
  }
  .section-title h2{
    font-size: 24px !important;
  }
}
@media (min-width: 992px) {
  main > section:not(#main-visual) {
    padding: 120px 0;
  }
  .section-title {
    margin-bottom: 56px;
  }
  .section-title > p {
    font-size: 1.25rem !important;
  }
  .sub-visual{
    height: 500px;
  }
}

/* header.php */
#header {
  transition: transform 0.3s ease, background-color 0.3s ease;
}
/* 스크롤 상태 */
#header.is-hidden {
  transform: translateY(-100%);
}
#header.is-scrolled {
  background-color: #fff;
  box-shadow: var(--bs-box-shadow-sm);
}
#header.is-scrolled .nav-link {
  color: #111 !important;
}
#header .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}
#header.is-scrolled .navbar-toggler-icon {
  filter: none;
}
/* 드롭다운 화살표 제거 */
#header .dropdown-toggle::after {
  display: none;
}
/* 드롭다운 메뉴 활성화 색상 */
#header .dropdown-item.active,
#header .dropdown-item:active {
  color: #fff;
  background-color: #182439;
}
/* 버튼 focus 효과 제거 */
#header .navbar-toggler:focus,
#header .navbar-toggler:focus-visible,
#header .navbar-toggler:active,
#mobile-menu .btn-close:focus,
#mobile-menu .btn-close:focus-visible,
#mobile-menu .btn-close:active {
  outline: 0;
  box-shadow: none;
}
/* 모바일 서비스 메뉴 +/- 아이콘 */
#mobile-menu .collapse-icon {
  position: absolute;
  right: 20px;
  width: 12px;
  height: 12px;
}
#mobile-menu .collapse-icon::before,
#mobile-menu .collapse-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 1px;
  background-color: currentColor;
  transform: translateY(-50%);
}
#mobile-menu .collapse-icon::after {
  transform: translateY(-50%) rotate(90deg);
}
/* 서비스 메뉴 활성화 시 - 아이콘 */
#mobile-menu [aria-expanded="true"] .collapse-icon::after {
  transform: translateY(-50%) rotate(0);
}
@media (min-width: 992px) {
  /* PC 서비스 드롭다운 */
  #header .dropdown-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  #header .dropdown:hover > .dropdown-menu {
    display: block;
  }
  #header-logo{
    width: auto;
  }
}

/* footer.php */
#footer #top-btn{
  right: 12px;
  bottom: 16px;
}
#footer #top-btn svg {
  width: 18px;
  height: 18px;
}
@media (min-width: 992px) {
  #footer #footer-logo{
    width: auto;
  }
  #footer #top-btn{
    right: 20px;
    bottom: 20px;
  }
  #footer #top-btn svg {
    width: 25px;
    height: 25px;
  }
}

/* main.php */
#main-visual{
  background-image: url("../img/main_01.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
#main-visual h1{
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ABOUT */
#about .about-card-icon svg {
  width: 40px;
  height: 40px;
}
#about .about-card-label {
  font-size: 1rem;
}
@media (min-width: 992px) {
  .about-card-icon svg {
    width: 70px;
    height: 70px;
  }
  .about-card-label {
    font-size: 1.25rem;
  }
}
@media (min-width: 2000px) {
  #about{
    padding: 240px 0 !important;
  }
}

/* SERVICES */
#services {
  --service-bg-color: rgba(var(--softit-primary-rgb), .05);
  padding: 0 !important;
}
#services .service-tab {
  transition: transform 0.3s ease;
}
#services .services-sticky {
  padding: 120px 0;
}
/* SERVICES 배경 오브젝트 */
#services .services-bg {
  display: block !important;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
#services .services-bg::before,
#services .services-bg::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 80px;
  background-color: var(--service-bg-color);
  transition: background-color .8s ease;
}
/* 오른쪽 위 */
#services .services-bg::before {
  top: -300px;
  right: -250px;
  transform: rotate(25deg);
}
/* 왼쪽 아래 */
#services .services-bg::after {
  bottom: -300px;
  left: -250px;
  transform: rotate(-25deg);
}
@media (max-width: 991px) {
  #services .service-tab img{
    height: 20px;
  }
  #services .service-tab:last-child img{
    height: 18px;
  }
  #services .service-icon{
    flex: 1;
  }
  #services .service-icon svg{
    width: 35px;
    height: 35px;
  }
}
@media (min-width: 992px) {
  #services{
    position: relative;
    height: 200dvh;
  }
  #services .services-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #services .service-tab.active {
    transform: translateX(15px);
  }
}


/* PARTNERS */
#partners .swiper-wrapper {
  transition-timing-function: linear !important;
}
#partners .swiper-wrapper img {
  height: 60px;
  width: auto;
}
@media (min-width: 992px) {
  #partners .swiper-wrapper img {
    height: auto;
  }
}

/* CONTACT */
#contact #map {
  height: 250px;
}
#main #contact .contact-item,
#service-v6 #contact .contact-item{
  background-color: var(--bs-secondary-bg);
}
#contact .contact-icon {
  width: 60px;
  height: 60px;
}
#contact .contact-icon svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 991px){
  #contact .contact-item p:first-of-type{
    font-size: 18px !important;
  }
}
@media (min-width: 992px) {
  #contact #map {
    height: 500px;
  }
  #main #contact .contact-item,
  #service-v6 #contact .contact-item {
    position: relative;
    background-color: transparent;
    border-radius: 0 !important;
  }
  #main #contact .contact-item:not(:last-child)::after,
  #service-v6 #contact .contact-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: var(--bs-border-color);
  }
  #contact .contact-icon {
    width: 80px;
    height: 80px;
  }
  #contact .contact-icon svg {
    width: 40px;
    height: 40px;
  }
}


/* company.php */
#company .about-card {
  position: relative;
  width: calc(50% - 8px);
}
#company .about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 30px;
  height: 4px;
  background-color: var(--softit-primary);
  transform: translateX(-50%);
}
#company .about-card-icon {
  width: 40px;
  height: 40px;
}
@media (min-width: 992px) {
  #company .about-card {
    width: 284px;
  }
  #company .about-card::before {
    width: 56px;
    height: 5px;
  }
  #company .about-card-icon {
    width: 60px;
    height: 60px;
  }
}

/* service-v6.php */
#service-v6 .sub-visual{
  background-image: url("../img/service-v6_02.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 991px) {
  #service-v6 .screen-swiper img{
    min-height: 185px;
  }
  #service-v6 .screen-swiper .swiper-slide:nth-child(2) img {
    object-position: left;
  }
  #service-v6 .screen-swiper .swiper-slide:nth-child(3) img {
    object-position: right;
  }
  #service-v6 #screen .screen-tab {
    width: calc((100% - 16px) / 3);
    font-size: 16px !important;
    background-color: white;
    padding: 10px;
  }
}
@media (min-width: 992px) {
  #service-v6 .sub-visual{
    background-image: url("../img/service-v6_01.webp");
  }
  #service-v6 #screen .screen-tab {
    color: #111 !important;
    background-color: transparent !important;
    border: 0;
    border-radius: 0;
  }
  #service-v6 #screen .screen-tab.active {
    color: var(--softit-primary) !important;
    font-weight: 700;
  }
}

/* service-barobugo.php */
#service-barobugo .sub-visual{
  background-image: url("../img/service-barobugo_02.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
/* 바로부고 기능 아이콘 */
#service-barobugo .overview-icon {
  width: 50px;
  height: 50px;
  background-color: #F9F5F2;
}
#service-barobugo .overview-icon svg {
  width: 25px;
  height: 25px;
}
@media (min-width: 992px) {
  #service-barobugo .sub-visual{
    background-image: url("../img/service-barobugo_01.webp");
  }
  #service-barobugo .overview-icon {
    width: 60px;
    height: 60px;
  }
  #service-barobugo .overview-icon svg {
    width: 30px;
    height: 30px;
  }
}


/* service-baroflower.php */
#service-baroflower .sub-visual{
  background-image: url("../img/service-baroflower_02.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
@media (min-width: 992px) {
  #service-baroflower .sub-visual{
    background-image: url("../img/service-baroflower_01.webp");
  }
}