/* ============================================================
   Common CSS
   ============================================================ */

/* -------------------------
   CSS 변수 (Custom Properties)
-------------------------- */
:root {

  /* 컬러 - 브랜드 */
  --color-primary:        #b24e2a;
  --color-primary-hover:  #2563eb;
  --color-primary-light:  #eff4ff;
  --color-secondary:      #6c5ce7;

  /* 컬러 - 텍스트 */
  --color-text:           #1a1714;
  --color-text-sub:       #555555;
  --color-text-muted:     #888888;
  --color-text-disabled:  #bbbbbb;
  --color-text-white:     #ffffff;

  /* 컬러 - 배경 */
  --color-bg:             #ffffff;
  --color-bg-point:       #faf9f7;
  --color-bg-:        #1c1c1c;
  --color-bg-gray:        #f7f8fa;

  /* 컬러 - 선/구분선 */
  --color-border:         #e0e0e0;
  --color-border-dark:    #cccccc;

  /* 컬러 - 상태 */
  --color-success:        #00c48c;
  --color-error:          #ff4d4f;
  --color-warning:        #faad14;
  --color-info:           #1890ff;

  /* 폰트 사이즈 */
  --font-xs:   12px;
  --font-sm:   14px;
  --font-md:   16px;
  --font-lg:   18px;
  --font-xl:   20px;
  --font-2xl:  24px;
  --font-3xl:  28px;
  --font-4xl:  32px;
  --font-5xl:  40px;

  /* 폰트 웨이트 */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* 줄간격 */
  --lh-tight:   1.3;
  --lh-normal:  1.5;
  --lh-loose:   1.8;

  /* 자간 */
  --ls-tight:  -0.05em;
  --ls-normal: -0.02em;

  /* 간격 */
  --spacing-4:   4px;
  --spacing-8:   8px;
  --spacing-12:  12px;
  --spacing-16:  16px;
  --spacing-20:  20px;
  --spacing-24:  24px;
  --spacing-32:  32px;
  --spacing-40:  40px;
  --spacing-48:  48px;
  --spacing-56:  56px;
  --spacing-64:  64px;
  --spacing-80:  80px;
  --spacing-100: 100px;
  --spacing-120: 120px;

  /* border-radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  /* 그림자 */
  --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.12);

  /* 트랜지션 */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* z-index */
  --z-dropdown: 100;
  --z-header:   200;
  --z-modal:    300;
  --z-toast:    400;
  --z-tooltip:  500;

  /* 레이아웃 */
  --max-width:      1280px;
  --header-height:  80px;
  --side-padding:   40px;

}


/* -------------------------
   공통 레이아웃
-------------------------- */

/* 페이지 최대 너비 컨테이너 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

/* 섹션 내부 여백 */
.inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* 섹션 상하 여백 */
.section {
  padding: var(--spacing-100) 0;
}


/* -------------------------
   공통 유틸리티
-------------------------- */

/* 스크린리더 전용 숨김 */
.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 숨김 */
.hidden { display: none !important; }

/* 말줄임 */
.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 2줄 말줄임 */
.ellipsis-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 3줄 말줄임 */
.ellipsis-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* flex 유틸 */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }

/* clearfix */
.clearfix::after { content: ''; display: block; clear: both; }


/* -------------------------
   공통 버튼
-------------------------- */

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 24px;
  font-size: var(--font-md);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

/* 기본 (채운 버튼) */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-white);
  border: 1px solid var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }


/* 섹션 버튼 */
.btn-wrap .section-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  border: 1px solid oklch(0.55 0.14 40);
  color: oklch(0.55 0.14 40);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  transition: background 0.25s, color 0.25s;
}

.btn-wrap .arrow-btn::after {
  content: '→';
  transition: transform 0.2s;
}

.btn-wrap .section-btn:hover {
  background: oklch(0.55 0.14 40);
  color: #fff;
}

.btn-wrap .arrow-btn:hover::after {
  transform: translateX(4px);
}


/* 외곽선 버튼 */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-light); }

/* 회색 버튼 */
.btn-gray {
  background: var(--color-bg-gray);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
}
.btn-gray:hover { background: #efefef; }

/* 버튼 사이즈 */
.btn-sm { height: 36px; padding: 0 16px; font-size: var(--font-sm); border-radius: var(--radius-sm); }
.btn-lg { height: 56px; padding: 0 32px; font-size: var(--font-lg); }

/* 비활성화 */
.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}


/* -------------------------
   공통 인풋
-------------------------- */

.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: var(--font-md);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.input::placeholder { color: var(--color-text-muted); }
.input:focus { border-color: var(--color-primary); outline: 0; }
.input.error { border-color: var(--color-error); }
.input:disabled { background: var(--color-bg-gray); color: var(--color-text-disabled); cursor: not-allowed; }

.textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: var(--font-md);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  resize: vertical;
  line-height: var(--lh-normal);
  transition: border-color var(--transition);
}
.textarea::placeholder { color: var(--color-text-muted); }
.textarea:focus { border-color: var(--color-primary); outline: 0; }


/* -------------------------
   공통 텍스트
-------------------------- */

.text-primary  { color: var(--color-primary); }
.text-sub      { color: var(--color-text-sub); }
.text-muted    { color: var(--color-text-muted); }
.text-error    { color: var(--color-error); }
.text-success  { color: var(--color-success); }
.text-white    { color: var(--color-text-white); }

.text-xs   { font-size: var(--font-xs); }
.text-sm   { font-size: var(--font-sm); }
.text-md   { font-size: var(--font-md); }
.text-lg   { font-size: var(--font-lg); }
.text-xl   { font-size: var(--font-xl); }
.text-2xl  { font-size: var(--font-2xl); }
.text-3xl  { font-size: var(--font-3xl); }

.fw-regular  { font-weight: var(--fw-regular); }
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }


/* -------------------------
   공통 구분선
-------------------------- */

.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: var(--spacing-24) 0;
}


/* -------------------------
   반응형 분기점 (참고용)
   - Desktop  : 1280px 이상
   - Laptop   : 1024px ~ 1279px
   - Tablet   : 768px  ~ 1023px
   - Mobile   : 767px 이하
-------------------------- */

@media (max-width: 1279px) {
  :root {
    --side-padding: 24px;
  }
}

@media (max-width: 1023px) {
  :root {
    --side-padding:   20px;
    --header-height:  60px;
  }
  .section { padding: var(--spacing-80) 0; }
}

@media (max-width: 767px) {
  :root {
    --side-padding: 16px;
    --font-3xl:     24px;
    --font-4xl:     26px;
    --font-5xl:     30px;
  }
  .section { padding: var(--spacing-64) 0; }
}





/* -------------------------
  add css
-------------------------- */
.wrap {position: relative;}

  /* btn css */
.btn-wrap .more-btn { display: inline-block; font-size: 20px; color: #111; font-weight: 500; position: relative;}
.btn-wrap .more-btn i { color: #111;}
.btn-wrap .more-btn:after { content:''; position: absolute; bottom: -2px; left:0; width:0; height:1px; transition: width 0.6s; background: #333;}
.btn-wrap .more-btn:hover:after { width: 100%;}

  /* toast css */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(16px); background: rgba(30, 30, 30, 0.92); color: #fff; padding: 12px 24px;  border-radius: 999px; font-size: 0.875rem; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 9999; transition: opacity 0.3s ease, transform 0.3s ease;}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0);}

/* -------------------------
  header css
-------------------------- */



/* -------------------------
  footer css
-------------------------- */