/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul {
  margin: 0;
}

/* --- Gmarket Sans Font --- */
@font-face {
    font-family: 'GmarketSans';
    font-weight: 300;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansLight.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'GmarketSans';
    font-weight: 500;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansMedium.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'GmarketSans';
    font-weight: 700;
    font-style: normal;
    src: url('https://cdn.jsdelivr.net/gh/webfontworld/gmarket/GmarketSansBold.woff2') format('woff2');
    font-display: swap;
}

/* --- Reset & Base Styles --- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { margin: 0; line-height: inherit; font-family: 'Noto Sans KR', sans-serif; background-color: #f8fafc; }
h1, h2, h3, h4, p, ul, blockquote, figure { margin: 0; padding: 0; }
button { background-color: transparent; background-image: none; padding: 0; cursor: pointer; }
button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; }
img, svg { display: block; vertical-align: middle; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: inherit; }

/* --- Custom Properties & Fonts --- */
.font-title { font-family: 'GmarketSans', 'Noto Sans KR', sans-serif; }

/* --- Layout & Container --- */
.container { width: 100%; margin-right: auto; margin-left: auto; padding-right: 1.5rem; padding-left: 1.5rem; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.sticky { position: sticky; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.top-0 { top: 0; }
.top-5 { top: 1.25rem; }
.right-5 { right: 1.25rem; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* --- Flexbox & Grid --- */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-between { justify-content: space-between; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(1rem * var(--tw-space-y-reverse)); }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse))); margin-bottom: calc(0.75rem * var(--tw-space-y-reverse)); }
/* --- 추가 간격 스타일 (Space Utilities) --- */
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem;
}

.space-y-12 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 3rem;
}

/* 요청하신 space-y-3도 추가했습니다. */
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:h-80 { height: 20rem; }
}

/* --- Sizing --- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-48 { height: 12rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.h-2\.5 { height: 0.625rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-none { max-width: none; }

/* --- Spacing --- */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.m-auto { margin: auto; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mb-2 { margin-bottom: 0.3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.pl-1 { padding-left: 0.4rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.-left-2 { left: -0.5rem; }
.mt-1\.5 { margin-top: 0.375rem; }

/* --- Typography --- */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-teal-600 { color: #0d9488; }
.text-teal-800 { color: #115e59; }
.text-amber-600 { color: #d97706; }
.text-amber-800 { color: #92400e; }
.text-red-600 { color: #dc2626; }
.text-white { color: #ffffff; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.leading-relaxed { line-height: 1.625; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.prose { color: #374151; } /* Simplified prose styles */
.prose a { color: #3b82f6; }
.prose a:hover { text-decoration: underline; }

/* --- Backgrounds --- */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-teal-50 { background-color: #f0fdfa; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-black { background-color: #000000; }
.bg-opacity-70 { background-color: rgba(0, 0, 0, 0.7); }

/* --- Borders --- */
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-2 { border-left-width: 2px; }
.border-l-4 { border-left-width: 4px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-200 { border-color: #bfdbfe; }
.border-teal-200 { border-color: #99f6e4; }
.border-amber-200 { border-color: #fde68a; }

/* --- Effects --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.hover\:underline:hover { text-decoration-line: underline; }
.hover\:text-gray-300:hover { color: #d1d5db; }

/* --- SVG & Images --- */
.object-cover { object-fit: cover; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }

/* --- Custom Component Styles --- */
.tab-active { border-bottom: 2px solid #3B82F6; color: #3B82F6; font-weight: 600; }
.body-scroll-lock { position: fixed; width: 100%; overflow: hidden; }
#task-modal::-webkit-scrollbar { width: 8px; }
#task-modal::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
#task-modal::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.4); border-radius: 10px; }
#task-modal::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.6); }
.cursor-pointer { cursor: pointer; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.-mb-px { margin-bottom: -1px; }
.overflow-y-auto { overflow-y: auto; }

/* --- MODAL CENTERING FIX --- */
#task-modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem; /* 상하좌우 여백 추가 */
}

.home-logo {width: 40px; height: auto; opacity: 0.4; }
.bottom{width: fit-content; height: fit-content; position: fixed; bottom: 20px; right: 1rem;  z-index:99}
.b_text_1{display: flex; align-items: flex-end; gap: 12px; flex-direction: column; justify-content: flex-end;}
.b_text_1 > div{ font-size: 15px; color: rgba(0, 0, 0, 0.4);}
.b_logo{width: 15px; height: fit-content; opacity: 0.4; }
.top-container{ width: 100%; margin-right: auto; margin-left: auto; padding-right: 1rem; padding-left: 1rem;}
.bg{width: 100%; height: 100%; margin-top: 100px;background-image: url("/img/bg.png"); background-size: auto 100%; background-position: center; background-repeat: no-repeat; background-color: #eae6e1; position: fixed; z-index:-20}
@media (min-width: 640px) {.bg {background-size: cover; }}

.op1{opacity: 0.99;}
.top_bar_bgc{background-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(5px);}

/* --- Client Logo Container --- */
.logo-container {
    display: flex; /* 로고들을 가로로 나란히 배치 */
    align-items: center; /* 세로 중앙 정렬 */
    gap: 3rem; /* 로고 사이의 간격 */
    flex-wrap: wrap; /* 화면이 좁아지면 줄바꿈 */
    margin-bottom: 2rem;
}

.logo-container img {
    /* 모든 로고의 높이를 40px로 통일 */
    height: 40px; 
    /* 가로 길이는 비율에 맞춰 자동으로 조절 */
    width: auto; 

    /* 로고를 흑백으로 처리하여 톤을 맞춤 */
    filter: grayscale(100%);
    opacity: 0.6;
    
    /* 마우스를 올리면 컬러로 바뀌는 효과 */
    transition: all 0.2s ease-in-out;
}

.logo-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 추가 간격 스타일 (Margin Bottom) --- */
.mb-6 {
  margin-bottom: 1.5rem;
}

.content-block {
  padding-left: 1.5rem; /* 24px 정도 들여쓰기 */
  border-left: 3px solid #d1d5db; /* 왼쪽에 구분선을 추가하여 시각적으로 분리 */
}
.justify-center {justify-items: center;}
.content-area {
  width: 100%; /* 항상 부모가 허락하는 공간을 100% 채우려고 노력 */
  
  /* 하지만 최대 너비는 제한함 (모바일, 태블릿) */
  max-width: 36rem; /* 576px */ 
}

/* PC와 같은 넓은 화면에서는 최대 너비를 늘려줌 */
@media (min-width: 1024px) {
  .content-area {
    max-width: 48rem; /* 768px */
  }
}