@charset "UTF-8";

/* ═══════════════════════════════════════════════════════════════
   common.css — 범용 유틸 클래스 + 공용 애니메이션(@keyframes)

   로드: theme/design/head.sub.php (<head> 안, reset.css 뒤 / 섹션 CSS 앞)

   style.css · header.css · footer.css 에 흩어져 있던 것을 통합했다.
   - 표시 제어: .pc / .mobile / .tablet / .hide / .show / .flowhid …
   - 배치 유틸: .absol / .rltv / .flexrow / .flexcol / .absol_cover / .back_img …
   - 텍스트 유틸: .noto / .bold / .medium / .thin / .txct / .white / .lh …
   - 마퀴·슬라이드 공용: .image_sd* / .slide_y* / .flow_sd* / .swiper*
   - @keyframes 39종 (ddm·blk·marquee·scaleOpa·shake·line-*·spin 등)

   ★ 섹션 전용 스타일은 여기 넣지 않는다 (css/style.css 등 각 섹션 CSS 로).
   ═══════════════════════════════════════════════════════════════ */

/* Lenis: native window scroll/sticky 유지. 내부 메뉴·모달만 관성 대상에서 제외. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
/* 모바일은 Lenis 를 켜지 않으므로(2026-09-29) html.lenis 의 auto 를 대신한다 — reset.css smooth 가 살아나면 같은 문서 해시 이동이
   ScrollTrigger 갱신에 끊겨 엉뚱한 곳에 멈춘다. reduce 는 원래 Lenis 가 꺼져 있던 그대로(smooth) 둔다. */
@media (max-width: 599px) and (prefers-reduced-motion: no-preference) { html { scroll-behavior: auto; } }

/* ══ 디자인 토큰 (:root) ══
   디자이너 텍스트본(포션의 참고사항 txt 등)에서 추린 폰트·컬러를 여기에 등록한다.
   ★ style.css 가 아니라 이 파일이다 — style.css 는 메인 페이지에서만 로드되므로
     거기 :root 를 두면 서브·게시판 페이지와 header.css/footer.css 에서 토큰이 미정의가 된다.
     common.css 는 head.sub.php 가 전 페이지에 싣는다.
   등록 절차는 portion 스킬 참조. Pretendard 는 광역 카스케이드라 토큰 불필요. */
:root {
  --font-noto-sans-kr: "Noto Sans KR", sans-serif;
  --color-brand: #9c7350;
  --color-social-hover: #fcb033;
  --color-brand-dark: #422f24;
  --color-surface: #21201e;
  --color-muted: #767676;
  --color-cream: #f1f2eb;
  /* 인라인 편집 에디터(css/site-text-editor.css)가 쓰기만 하고 정의하지 않는 버튼 색 — 빠지면 저장 버튼의 배경이 무효가 돼 흰 글씨만 남아 사라진다 */
  --color-blue-btn: #0776e6;
  --color-blue-deep: #0668ca;
  /* PC 헤더 현재 행(.header_current) 하단선의 윗변 y(뷰포트 기준). 도입 고정 구간에서 섹션 머리 선
     (.con05_line · .con11_line · .con18_line · .con23_line)이 이 선과 한 줄로 겹치도록 쓴다.
     = .header top 68 + 로고행 46 + 현재 행 58.213 (px 쪽) + .header_nav 마진 53 (100vw 쪽) − 선 1px.
     ★ header.css 의 .header / .header_top / .header_nav / .header_current 값을 바꾸면 여기도 같이 고친다. */
  --chrome-line-top: calc(var(--px) * 172.213 + 100vw * 53 / 1905 - 1px);
  /* --color-point: #______;  ← 브랜드 포인트색.
     헤더 메뉴 호버(.header_menu_1:hover) · 퀵바 문의하기 버튼 배경(.quick_submit_div)
     · 퀵바 전화번호(.quick_call) 가 이 토큰을 쓴다.
     ★ 비워두면 조용히 깨진다 — CSS 변수는 미정의 시 선언 자체가 무효가 되어
       background-color 가 초기값 transparent 로 떨어지고, 흰 글자라 버튼이 안 보인다.
       (이미지 미비는 깨진 아이콘으로 보이지만 색 토큰은 아무 표시가 없다) */
}

body {
  font-family: var(--font-noto-sans-kr);
  font-optical-sizing: auto;
}

/* 랜딩의 sticky는 window를 기준으로 한다. 본문 섹션(main~con27)은 같은 page_wrap 안에서 겹친다. 푸터는 덮기 대상이 아니라 con27 아래로 이어진다(.rltv 로 고정된 섹션 위에 그림). */
body.has-cover-flow {
  overflow-x: clip;
  overflow-y: visible;
}
.has-cover-flow #content_wrap,
.has-cover-flow #content_wrap > .clear-both {
  display: contents;
}

.flowhid {
  overflow: hidden;
}

.hide {
  display: none !important;
}

.hideopa {
  opacity: 0 !important;
}

.show {
  opacity: 1 !important;
}

@keyframes ddm3 {
  0% {
    transform: scale(1);
  }
  50% {
    transform: rotate(-8deg);
  }
  65% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ddm4 {
  0% {
    transform: scale(1);
  }
  25% {
    transform: rotate(-2deg);
  }
  50% {
    transform: scale(1.05);
  }
  75% {
    transform: rotate(2deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes blk3 {
  0% {
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  99% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes rotate_image {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes scaleOpa {
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@keyframes scaleOpa2 {
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes ddm {
  0% {
    transform: scale(1);
  }
  50% {
    transform: matrix(1.05, 0.01, 0.01, 1.05, 0, -30);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rotate_imageY {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes ddm2 {
  0% {
    transform: scale(1);
  }
  50% {
    transform: translateY(20px);
  }
  75% {
    transform: scale(1.02);
    transform: translateY(10px);
  }
  100% {
    transform: scale(1);
    transform: translateY(0px);
  }
}

@keyframes scaleOpa3 {
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes smoke {
  0% {
    transform: translateY(30%) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-30%) scale(1.1);
    opacity: 0;
  }
}

.smoke {
  animation: smoke 4s infinite linear;
}

@keyframes light {
  0%, 31%, 34%, 39%, 42%, 47% {
    opacity: 0;
  }
  5%, 30%, 35%, 38%, 43%, 46% {
    opacity: 0.4;
  }
  50%, 55%, 60%, 67%, 51%, 54%, 68%, 100% {
    opacity: 1;
  }
  70% {
    opacity: 0.2;
  }
}

@keyframes marqueeX {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes marqueeX_r {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes marqueeY {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes marqueeY_r {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes opa {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes shakeAndFall {
  0% {
    transform: translate(0, -50%) rotate(0);
    opacity: 0;
  }
}

.shakeTwice {
  animation: shakeTwice 2s ease-in-out infinite;
  transform-origin: center;
}

.shakeTwices {
  animation: shakeTwices 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes shakeTwice {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(5deg);
  }
  20% {
    transform: rotate(-5deg);
  }
  30% {
    transform: rotate(4deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes shakeTwices {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(3deg);
  }
  20% {
    transform: rotate(-3deg);
  }
  30% {
    transform: rotate(2deg);
  }
  40% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

div.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.swiper-wrapper.flow {
  pointer-events: none;
  transition-timing-function: linear;
}

.swiper-button-disabled {
  opacity: 0.3;
}

.noto {
  font-family: "Noto Serif", serif;
}

.notokr {
  font-family: "Noto Serif KR", serif;
}

.exbold {
  font-weight: 800;
}

.bold {
  font-weight: 700;
}

.sebold {
  font-weight: 600;
}

.medium {
  font-weight: 500;
}

.regular {
  font-weight: 400;
}

.flight {
  font-weight: 200;
}

.thin {
  font-weight: 100;
}

.animate-blk {
  animation: blk 1s infinite ease-in-out;
}

.scaleOpa {
  animation: scaleOpa infinite 2s;
}

.scaleOpa2 {
  animation: scaleOpa2 infinite 2s;
}

.light {
  animation: light infinite 5s;
}

.rotate_img {
  animation: rotate_image 10s infinite linear;
}

.white {
  color: white;
}

.txct {
  text-align: center;
}

.lh {
  line-height: 1.5;
}

/* reveal 대신 사용 start */
/* 왼쪽부터 나타나기 */
.clip_off02 {
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: all 0.8s;
}

/* 가운데에서 나타나기 */
.clip_off {
  clip-path: polygon(50% 0, 50% 0, 50% 100%, 50% 100%);
  transition: all 0.8s;
}

/* gsap에서 넣을 class */
.clip_on {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
}

/* reveal 대신 사용 end */
.absol_cover {
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.max_width {
  width: unset !important;
  max-width: 101%;
}

.back_img {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

/* image_sd */
.image_sd_wrap {
  overflow: hidden;
}

.image_sd {
  animation: marqueeX 20s infinite linear;
}

.image_sd .absol {
  left: 100%;
}

.image_sd_r {
  animation: marqueeX_r 20s infinite linear;
}

.image_sd_r .absol {
  right: 100%;
}

/* image_sd end */
/* y_slide start */
.slide_y_wrap {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0%;
  overflow: hidden;
}

.slide_y {
  animation: marqueeY 20s infinite linear;
}

.slide_y img.absol {
  top: 100%;
}

.slide_y_r {
  animation: marqueeY_r 20s infinite linear;
}

.slide_y_r img.absol {
  bottom: 100%;
}

/* y_slide end */
/* flow_sd 가로 (여러 이미지 마퀴) start */
.flow_sd {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.flow_sd_move {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  animation: marqueeX 20s infinite linear;
}

.flow_sd_move_r {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  animation: marqueeX_r 20s infinite linear;
}

.flow_sd_move_item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.flow_sd_move_item02 {
  left: 100%;
}

.flow_sd_move_item02_r {
  right: 100%;
}

.flow_sd_img {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* flow_sd 가로 end */
/* flow_sd 세로 (여러 이미지 마퀴) start */
.flow_sd_y {
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

.flow_sd_y_move {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  animation: marqueeY 10s infinite linear;
}

.flow_sd_y_move_r {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  animation: marqueeY_r 10s infinite linear;
}

.flow_sd_y_move_item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.flow_sd_y_move_item02 {
  top: 100%;
}

.flow_sd_y_move_item02_r {
  bottom: 100%;
}

.flow_sd_y_img {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* flow_sd 세로 end */
/* swiper-arr */
.btn_arr {
  z-index: 2;
  cursor: pointer;
}

.arr_next {
  transform: rotateY(180deg);
}

/* swiper-arr */
iframe {
  width: 100%;
  height: 100%;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-lock {
  display: none !important;
}

.swiper {
  margin: 0;
  z-index: 0;
}

b {
  font-weight: 700;
}

.obj > img {
  height: 100%;
  object-fit: cover;
}

.pc-mobile {
  display: flex !important;
}

.mobile-pc {
  display: none !important;
}

.pc {
  display: flex !important;
}

.pc-inline {
  display: inline !important;
}

/* 줄바꿈 분기(md/모바일/줄바꿈_가이드.md): PC·모바일 공통은 그냥 <br>, 모바일만 .mo_br, PC만 .pc_br */
.mo_br {
  display: none;
}

.pc_br {
  display: block;
}

/* 헤더 교체 전의 공통 모바일 표시 계약을 유지한다. */
@media screen and (max-width: 599px) {
  .pc-mobile,
  .pc-inline {
    display: none !important;
  }
  .mobile-pc {
    display: flex !important;
  }
  .mo_br {
    display: block;
  }
  .pc_br {
    display: none;
  }
}

/* 버튼 아이콘(모바일 전용): 라벨 오른쪽에 이동 링크 › (.btn_go) · 다운로드 ↓ (.btn_dl). PC 는 규칙이 없어 그대로(왼쪽 점).
   호스트 = 브랜드색 바탕 · 흰 글자 · 라벨이 가운데 정렬된 flex 버튼(라벨과의 간격은 호스트 gap) */
@media screen and (max-width: 599px) {
  /* › = 상담 퀵바(.quick_consult::after)와 같은 흰 2px 꺾쇠 */
  .btn_go::after {
    content: "";
    flex-shrink: 0;
    width: 1.4vw;
    height: 1.4vw;
    margin-left: -0.4vw;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
  }

  .btn_dl::after {
    content: "";
    flex-shrink: 0;
    width: 3.6vw;
    height: 3.6vw;
    background-color: #fff;
    -webkit-mask: url("/images/btn_download.svg") center / 100% 100% no-repeat;
    mask: url("/images/btn_download.svg") center / 100% 100% no-repeat;
  }
}

.tablet {
  display: none !important;
}

.mobile {
  display: none !important;
}

.absol {
  position: absolute;
}

.rltv {
  position: relative;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flexrow {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.flexcol {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* ══ 카드 호버 (card-m01 — con24 카드 호버를 공통으로 올린 것, 값 동일) ══
   테두리 브랜드색 · 면 흰색 · 아래로 옅은 그림자, 0.3s. 터치(hover 없음)는 미적용.
   등장 모션(tile·slide)이 쓰는 opacity·transform·filter 는 카드에서 건드리지 않는다.
   .hover_card       테두리 있는 카드(크림·흰 면 — 흰 면은 면 변화 없음)
   .hover_card_ring  테두리 없는 카드 — 테두리를 새로 넣으면 안쪽이 1px 밀려서 안쪽 1px 링으로 대신한다
   .hover_card_dark  진한 갈색 면 — 흰색으로 뒤집지 않고 한 톤만 밝힌다
   .hover_zoom       사진 래퍼(overflow:hidden) — 부모 .hover_card 에 올리면 안쪽 사진만 천천히 1.04배 */
.hover_card {
  transition: border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover_zoom img {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hover_card:hover {
    border-color: var(--color-brand);
    background-color: #fff;
    box-shadow: 0 calc(var(--px) * 10) calc(var(--px) * 24) rgba(66, 47, 36, 0.14);
  }

  .hover_card_ring:hover {
    box-shadow: inset 0 0 0 1px var(--color-brand), 0 calc(var(--px) * 10) calc(var(--px) * 24) rgba(66, 47, 36, 0.14);
  }

  .hover_card_dark:hover {
    background-color: #4d3729;
  }

  .hover_card:hover .hover_zoom img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hover_card {
    transition: none;
  }

  .hover_zoom img {
    transition: none;
  }
}

@keyframes marquee3 {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes blk {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 0;
  }
  31% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ddm_m {
  0% {
    transform: scale(1);
  }
  50% {
    transform: matrix(1.05, 0.01, 0.01, 1.05, 0, -15);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ddm_m_reverse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: matrix(0.8, 0.01, 0.01, 0.8, 0, -5);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes blk2 {
  0% {
    opacity: 0;
  }
  49% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  99% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes line-top {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(13px);
  }
}

/* 추가된 부분 */
@keyframes line-top-reverse {
  0% {
    transform: translateY(13px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes line-top-rotate {
  0% {
    transform: translateY(13px) rotateZ(0deg);
  }
  100% {
    transform: translateY(13px) rotateZ(45deg);
  }
}

/* 추가된 부분 */
@keyframes line-top-rotate-reverse {
  0% {
    transform: translateY(13px) rotateZ(45deg);
  }
  100% {
    transform: translateY(13px) rotateZ(0deg);
  }
}

@keyframes line-mid {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

/* 추가된 부분 */
@keyframes line-mid-reverse {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes line-mid-invisible {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes line-bot {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-13px);
  }
}

/* 추가된 부분 */
@keyframes line-bot-reverse {
  0% {
    transform: translateY(-13px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes line-bot-rotate {
  0% {
    transform: translateY(-13px) rotateZ(0deg);
  }
  100% {
    transform: translateY(-13px) rotateZ(135deg);
  }
}

/* 추가된 부분 */
@keyframes line-bot-rotate-reverse {
  0% {
    transform: translateY(-13px) rotateZ(135deg);
  }
  100% {
    transform: translateY(-13px) rotateZ(0deg);
  }
}

/* -------------------header 커스텀 시작------------------- */
@keyframes dropHeader {
  0% {
    top: -5rem;
  }
  100% {
    top: 0;
  }
}

@keyframes insertHeader {
  0% {
    top: 0;
  }
  100% {
    top: -7rem;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ══ 인라인 편집(site_text_editor) 공통 — 방문자에게도 보여야 하므로 에디터 UI CSS(admin 전용)가 아니라 여기에 둔다 ══ */
/* 강조 — admin 이 툴바 「강조」로 감싸는 span */
.st-em {
  color: var(--color-brand);
}

/* 서식 복원 — reset.css 의 자동서식 제거(0,0,1)를 편집영역([data-st-key]) 안에서만 (0,1,1) 로 되살린다.
   빠지면 툴바의 B/I/S 가 저장은 되는데 방문자 화면에서 안 보인다 */
[data-st-key] :is(i, em) { font-style: italic; }
[data-st-key] :is(b, strong) { font-weight: bolder; }
[data-st-key] :is(s, del, strike) { text-decoration: line-through; }
[data-st-key] :is(u, ins) { text-decoration: underline; }
