@charset "UTF-8";

/* =========================================
   변수
   ========================================= */
:root {
    --color-bg:          #000000;
    --color-bg-dark:     #090909;
    --color-bg-hero:     #010101;
    --color-header-bg:   #111111;
    --color-text:        #ffffff;
    --color-text-muted:  #cccccc;
    --color-link-yellow: #f9ff00;
    --color-link-red:    #f80101;
    --color-red-accent:  #e13207;
    --color-border:      #ffffff;
    --color-bg-box:      #0d0d0d;
    --font-size-sm:      0.9rem;
    --font-size-md:      1.05rem;
    --font-size-body:    clamp(14px, 0.875rem + 0.42vw, 18px);
    --wide-width:        1280px;
    --spacing-sm:        1rem;
    --spacing-md:        clamp(2rem, 3vw, 2.5rem);
    --spacing-lg:        clamp(4rem, 5vw, 4rem);
    --spacing-xl:        clamp(6rem, 8vw, 6.5rem);
    /* 메인 히어로 배너(yas-hero-banner)와 동일 노출 크기 */
    --hero-banner-max-w: 1080px;
    --hero-banner-max-h: 430px;
}

/* =========================================
   전역 리셋
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 16px; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: 1.55;
}

a { color: var(--color-link-yellow); text-decoration: underline; }
a:hover { text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--color-text); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(1.5rem, 1.378rem + 1.47vw, 2.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.25rem, 1.25rem + 1.26vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.119rem + 1.06vw, 1.75rem); }
h4 { font-size: clamp(0.98rem, 0.984rem + 0.87vw, 1.5rem); }

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

/* =========================================
   레이아웃
   ========================================= */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   헤더
   ========================================= */
.site-header {
    background-color: var(--color-header-bg);
    padding: 20px var(--spacing-sm);
}

.header-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
}

.header-logo a { display: inline-block; line-height: 0; }
.header-logo img { width: 260px; height: auto; }

.site-nav { position: relative; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    fill: var(--color-text);
    padding: 4px;
}

.nav-toggle svg path { fill: var(--color-text); }

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
    list-style: none;
}

.nav-list li a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(14px, 0.875rem + 0.63vw, 20px);
}

.nav-list li a:hover { text-decoration: underline; }

/* =========================================
   히어로 섹션 - 기본 (블로그·서브 페이지)
   ========================================= */
.hero-section {
    background-color: var(--color-bg-hero);
    padding: var(--spacing-xl) var(--spacing-sm);
    display: flex;
    justify-content: center;
}

.hero-section:has(.hero-inner) {
    padding: var(--spacing-md) var(--spacing-sm);
}

.hero-inner {
    max-width: var(--wide-width);
    width: 100%;
    padding: 0 var(--spacing-sm);
    text-align: left;
}

.hero-inner--center { text-align: center; }

.hero-title {
    font-size: clamp(1.6rem, 1.4rem + 1.8vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-desc {
    font-size: var(--font-size-body);
    opacity: 0.85;
    line-height: 1.6;
}

/* =========================================
   히어로 섹션 - 배너형 (메인 홈페이지)
   ========================================= */
.hero-section.hero-section--banner {
    display: block;
    padding: 0;
    background-color: var(--color-bg);
}

.hero-banner {
    width: 100%;
    max-width: var(--hero-banner-max-w);
    margin: 0 auto;
    line-height: 0;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    max-height: var(--hero-banner-max-h);
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-info {
    text-align: center;
    padding: 1.5rem var(--spacing-sm) 2rem;
    background-color: var(--color-bg);
}

/* 메인 히어로 하단 블록 — 서브페이지 히어로와 동일 톤(그라데이션·빨간 라인) */
.hero-section.hero-section--banner .hero-info {
    background: linear-gradient(160deg, #0c0c0c 0%, #060606 55%, #111 100%);
    border-bottom: 3px solid var(--color-link-red);
    padding: 1.75rem var(--spacing-sm) 2.25rem;
}

.hero-info-kicker {
    margin-bottom: 0.5rem;
}

.hero-info-title {
    font-size: clamp(1.1rem, 1rem + 1.2vw, 1.7rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.2rem;
    line-height: 1.4;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   CTA 버튼
   ========================================= */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: var(--spacing-lg) 0;
}

.hero-cta a {
    display: block;
    width: 100%;
    max-width: 360px;
    text-align: center;
    background-color: var(--color-link-red);
    color: var(--color-text);
    text-decoration: none;
    font-size: clamp(16px, 1rem + 0.5vw, 22px);
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(248, 1, 1, 0.35);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.hero-cta a:hover {
    background-color: var(--color-red-accent);
    box-shadow: 0 6px 18px rgba(248, 1, 1, 0.5);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-text);
}

.hero-info .hero-cta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.hero-info .hero-cta a {
    width: auto;
    min-width: 200px;
    max-width: none;
}

/* =========================================
   빵부스러기 (Breadcrumb)
   ========================================= */
.breadcrumb {
    background-color: var(--color-bg-dark);
    padding: 0.6rem var(--spacing-sm);
}

.breadcrumb-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    opacity: 0.7;
}

.breadcrumb-inner a { color: var(--color-text); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }

/* =========================================
   본문 콘텐츠 영역
   ========================================= */
.content-wrap { padding: var(--spacing-sm); }

.content-area {
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

/* 메인 인트로 — 히어로와 본문 사이 여백 (과밀·과다 사이) */
.content-area > h1 {
    padding-top: clamp(2.75rem, 3.6vw, 3.35rem);
    margin-bottom: 1.2rem;
}
/* 본문 h2/h3 — 섹션 간격 */
.content-area > h2 { padding-top: clamp(2.2rem, 3.1vw, 2.75rem); margin-bottom: var(--spacing-sm); }
/* 첫 h2는 도입문 직후라 약간만 덜 벌림 */
.content-area > h2:first-of-type { padding-top: 1.25rem; }
.content-area > h3 { padding-top: clamp(1.1rem, 1.9vw, 1.45rem); margin-bottom: var(--spacing-sm); }
.content-area > h4 { margin-bottom: var(--spacing-sm); }

.content-area p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-body);
    line-height: 1.7;
}

.content-area ul,
.content-area ol {
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-body);
    line-height: 1.7;
}

.content-area ul li,
.content-area ol li { margin-bottom: 0.4rem; }

.text-body {
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-sm);
}

.text-center {
    text-align: center;
    font-size: var(--font-size-body);
    margin-bottom: 0.5rem;
}

/* 구분선 — 본문 블록 간 시각적 간격 */
.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    opacity: 0.5;
    width: 100%;
    margin: clamp(2.35rem, 3.4vw, 2.95rem) auto;
}

.content-img {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.content-img img {
    border: 1px solid var(--color-border);
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 본문 이미지 — 히어로 배너와 동일 가로·세로 제한 */
.content-img--hero-banner {
    max-width: var(--hero-banner-max-w);
    margin-left: auto;
    margin-right: auto;
}

.content-img--hero-banner img {
    width: 100%;
    max-height: var(--hero-banner-max-h);
    object-fit: cover;
    object-position: center;
    display: block;
    border: none;
}

.content-list {
    font-size: var(--font-size-body);
    padding-left: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.content-list li { margin-bottom: 0.5rem; }

.author-bio { padding-bottom: var(--spacing-xl); }

/* =========================================
   추천 글
   ========================================= */
.related-posts > h2 {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* =========================================
   게시물 메타 (작성자·날짜)
   ========================================= */
.post-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 14px;
    opacity: 0.55;
    margin-bottom: var(--spacing-sm);
}

.post-meta--hero {
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
}

/* =========================================
   유사 사이트 비교 카드 그리드
   ========================================= */
.site-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin: 1.5rem 0;
}

.site-compare-card {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
}

.site-compare-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.site-compare-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.site-compare-list {
    list-style: disc;
    padding-left: 1.3rem;
    margin: 0;
}

.site-compare-list li {
    font-size: clamp(13px, 0.85rem + 0.2vw, 16px);
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 0.25rem;
}

.site-compare-list li:last-child { margin-bottom: 0; }

/* =========================================
   FAQ 아코디언
   ========================================= */
.faq-accordion {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--color-text);
    font-size: var(--font-size-body);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-question:hover { background-color: rgba(255, 255, 255, 0.05); }

.faq-question[aria-expanded="true"] {
    background-color: rgba(248, 1, 1, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.faq-icon::after  { width: 2px; height: 14px; top: 3px; left: 9px; }

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.4rem;
}

.faq-answer.open {
    max-height: 300px;
    padding: 1rem 1.4rem 1.2rem;
}

.faq-answer p {
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    line-height: 1.75;
    margin: 0;
}

/* =========================================
   블로그 목록
   ========================================= */
.blog-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.blog-card a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #333;
    background-color: var(--color-bg-box);
    transition: border-color 0.2s;
}

.blog-card a:hover { border-color: var(--color-border); }

.blog-card-img {
    margin: 0;
    overflow: hidden;
    line-height: 0;
}

.blog-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card-body { padding: 1rem; }

.blog-card-title {
    font-size: clamp(14px, 0.875rem + 0.42vw, 17px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-keyword {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-link-red);
    margin-bottom: 0.4rem;
}

.blog-card-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0.4rem 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 14px;
    opacity: 0.55;
}

/* =========================================
   서브페이지 공통 (회사·개인정보·이용약관)
   ========================================= */
.subpage-hero {
    background: linear-gradient(160deg, #0c0c0c 0%, #060606 55%, #111 100%);
    border-bottom: 3px solid var(--color-link-red);
    padding: 2.25rem var(--spacing-sm) 2rem;
}

.subpage-hero-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
}

.subpage-kicker,
.subpage-hero-kicker,
.hero-info-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-link-red);
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.subpage-lead,
.subpage-hero-desc {
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 42rem;
}

.site-footer {
    background-color: var(--color-bg-dark);
    padding: var(--spacing-lg) var(--spacing-sm);
}

.footer-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.footer-logo-col { flex: 0 0 30%; min-width: 200px; }
.footer-logo { margin-bottom: var(--spacing-sm); }
.footer-logo img { width: 260px; max-width: 100%; height: auto; }

.footer-links-col {
    flex: 0 0 50%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: space-between;
    align-items: flex-start;
}

.footer-link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link-group ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
}

.footer-link-group ul li a:hover { text-decoration: underline; }

.footer-link-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    font-style: normal;
    font-family: inherit;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.footer-copyright {
    text-align: center;
    font-size: clamp(14px, 0.875rem + 0.1vw, 15px);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

/* =========================================
   반응형
   ========================================= */

@media (max-width: 960px) {
    .footer-links-col { flex: 0 0 100%; }
    .blog-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nav-toggle { display: block; }

    .nav-list {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        background-color: var(--color-header-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        min-width: 160px;
        border: 1px solid #333;
        z-index: 100;
    }

    .nav-list.is-open { display: flex; }

    .hero-info .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-info .hero-cta a {
        width: 100%;
        max-width: 320px;
    }

    .site-compare-grid { grid-template-columns: 1fr; }

    .footer-logo-col { flex: 0 0 100%; }

    .footer-links-col {
        flex: 0 0 100%;
        gap: var(--spacing-sm);
    }

    .blog-list { grid-template-columns: 1fr; }
}


/* 회사정보 테이블 */

/* 정책 페이지 공통 - notice box */
.notice-box {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid var(--color-red-accent);
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.notice-box strong {
    color: var(--color-text);
}

/* 정책 페이지 메타 정보 줄 */
.policy-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* 회사 서비스 카드 그리드 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.service-card {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 1.25rem;
    border-top: 2px solid var(--color-red-accent);
}
.service-card h3 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}
.service-card p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
.info-table th,
.info-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}
.info-table th {
    width: 120px;
    color: var(--color-link-red);
    font-weight: 600;
    white-space: nowrap;
}
.info-table td {
    color: var(--color-text);
}
@media (max-width: 480px) {
    .info-table th { width: 90px; font-size: 0.85rem; }
    .info-table td { font-size: 0.85rem; }
}
.content-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0 2rem;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.compare-table th,
.compare-table td {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    vertical-align: middle;
}
.compare-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-link-red);
    font-weight: 600;
}
.compare-table td:first-child {
    text-align: left;
    color: var(--color-text-muted);
    white-space: nowrap;
}
@media (max-width: 480px) {
    .compare-table th,
    .compare-table td { font-size: 0.85rem; padding: 0.55rem 0.65rem; }
}

/* 구글 지도 래퍼 */
.map-wrap {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.subpage-hero-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}