@charset "UTF-8";
/* ===================== CSS 변수 및 전역 스타일 ===================== */
:root {
    --color-primary: #7c3aed;
    --color-primary-hover: #6d28d9;
    --color-heading: #1e1b4b;
    --color-text: #111827;
    --color-bg: #ffffff;
    --color-bg-light: #f5f3ff;
    --color-border: #e5e7eb;
    --color-muted: #6b7280;
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.4;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

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

ul, ol {
    list-style: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

th, td {
    border: 1px solid var(--color-border);
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: var(--color-bg-light);
    font-weight: 600;
}

/* ===================== 헤더 ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.header-wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
}

.custom-logo {
    display: block;
    height: 44px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-navigation .menu-link {
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text);
    padding: 10px 12px;
    display: block;
    transition: color 0.2s ease;
}

.main-navigation .menu-link:hover {
    color: var(--color-primary);
}

/* 헤더 문의 버튼 */
.header-contact-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-contact-btn:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
}

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
}

/* ===================== 메인 콘텐츠 ===================== */
.site-content {
    min-height: calc(100vh - 200px);
}

/* ===================== Hero 섹션 ===================== */
.hero-section {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
    padding: 25px 20px 30px;
}

.hero-section h1 {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-heading);
    margin-bottom: 15px;
}

.hero-section h1 span {
    color: var(--color-primary);
}

.hero-image {
    width: 100%;
    max-width: var(--container-width);
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-cta:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===================== 콘텐츠 섹션 ===================== */
.content-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

.content-section h2.section-title {
    border-bottom: none;
    display: block;
}

.content-section p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ===================== 정보 카드 ===================== */
.info-card {
    background-color: var(--color-bg-light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-primary);
}

.info-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.info-card .card-desc {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===================== 아이콘 리스트 ===================== */
.info-item {
    margin-bottom: 20px;
}

.info-item .item-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.info-item .item-desc {
    color: var(--color-text);
    line-height: 1.7;
}

/* ===================== 만화 그리드 ===================== */
.manga-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.manga-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.genre-group {
    margin-bottom: 40px;
}

.genre-label {
    background-color: var(--color-bg-light);
    padding: 10px 20px;
    font-weight: 700;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.manga-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: var(--color-bg-light);
    border-radius: 10px;
    padding: 15px;
}

.manga-card .card-image {
    flex-shrink: 0;
    width: 100px;
    border-radius: 8px;
    overflow: hidden;
}

.manga-card .card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.manga-card .card-content {
    flex: 1;
}

.manga-card .card-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-heading);
}

.manga-card .card-content p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
}

/* ===================== 비교 테이블 ===================== */
.comparison-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.comparison-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.comparison-section td strong {
    color: var(--color-heading);
}

/* ===================== 대체사이트 카드 그리드 ===================== */
.alt-site-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.alt-site-card {
    background: var(--color-bg-light);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
}

.alt-site-card .site-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    border-radius: 8px;
}

.alt-site-card .site-desc {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    text-align: left;
}

/* ===================== FAQ 섹션 ===================== */
.faq-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.faq-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-of-type {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--color-text);
    line-height: 1.7;
}

/* ===================== CTA 섹션 ===================== */
.cta-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-muted);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
}

.cta-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===================== 주소 박스 ===================== */
.address-box {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.address-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.address-link {
    display: inline-block;
    background: #ffffff;
    color: var(--color-primary);
    font-size: 22px;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.address-link:hover {
    background: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.address-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 12px;
}

/* ===================== 푸터 ===================== */
.site-footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-nav {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.footer-nav a {
    color: var(--color-text);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-nav span {
    color: var(--color-border);
    margin: 0 8px;
}

.footer-content .copyright {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.footer-content .disclaimer {
    font-size: 13px;
    color: var(--color-muted);
}

/* ===================== 스크롤 투 탑 ===================== */
#scroll-top-btn {
    display: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

#scroll-top-btn.show {
    display: flex;
}

#scroll-top-btn:hover {
    background-color: var(--color-primary-hover);
}

/* ===================== 스페이서 ===================== */
.section-spacer {
    height: 20px;
}

/* ===================== 모바일 메뉴 드로어 ===================== */
.mobile-menu-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.mobile-menu-drawer.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #ffffff;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-close-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text);
}

.mobile-nav {
    margin-top: 50px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav .menu-link {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-bg-light);
}

.mobile-nav .menu-link:hover {
    color: var(--color-primary);
}

/* ===================== 404 페이지 ===================== */
.error-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.error-section h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-bottom: 40px;
}

.error-home-btn:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
}

.error-links {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.error-links h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

.error-links ul {
    text-align: left;
}

.error-links li {
    margin-bottom: 10px;
}

.error-links a {
    display: block;
    padding: 12px 15px;
    background-color: #ffffff;
    border-radius: 6px;
    color: var(--color-text);
    font-size: 15px;
    transition: all 0.2s ease;
}

.error-links a:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* ===================== 스킵 링크 ===================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ===================== 반응형 ===================== */
@media (max-width: 1024px) {
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .alt-site-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 921px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-wrap {
        padding: 0 15px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .manga-card {
        flex-direction: column;
    }

    .manga-card .card-image {
        width: 100%;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .manga-grid {
        grid-template-columns: 1fr;
    }

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

    .comparison-section table {
        font-size: 14px;
    }

    .comparison-section th,
    .comparison-section td {
        padding: 10px;
    }
}

@media (max-width: 544px) {
    .hero-section {
        padding: 30px 15px 20px;
    }

    .hero-section h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-cta,
    .cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .content-section,
    .manga-section,
    .comparison-section,
    .faq-section,
    .cta-section {
        padding: 25px 15px;
    }

    .info-card {
        padding: 20px;
    }

    #scroll-top-btn {
        right: 15px;
        bottom: 15px;
    }
}
