@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===== 布局外壳 ===== */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== 侧边栏（aside > nav > ul > li > a） ===== */
.site-aside {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}
.site-aside.is-open {
  transform: translateX(0);
}
.aside-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}
.aside-nav ul li a {
  display: block;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  line-height: 1.2;
  transition: opacity 0.2s;
}
.aside-nav ul li a:hover { opacity: 0.6; }

/* ===== 遮罩 ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ===== 顶部 Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}
.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  line-height: 1.2;
}
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 主内容区 ===== */
.page-main {
  flex: 1;
}
/* 契约：main > div > article */
.page-article {
  width: 100%;
}

/* ===== HR 装饰（h2/h3 后紧跟） ===== */
hr {
  border: none;
  border-top: 2px solid #000;
  margin: 1rem 0 2rem;
}

/* ===== 通用 Eyebrow ===== */
.review-eyebrow,
.compare-eyebrow,
.ranking-eyebrow,
.faq-eyebrow,
.about-eyebrow,
.privacy-eyebrow,
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0.75rem;
}

/* ===== 默认页面 H1 ===== */
.page-h1,
.review-h1,
.compare-h1,
.ranking-h1,
.faq-h1,
.about-h1,
.privacy-h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

/* ===== 默认 layout sections ===== */
.page-hero-section {
  padding: 5rem 2rem 3rem;
  border-bottom: 2px solid #000;
}
.page-content-section {
  padding: 3rem 2rem;
  max-width: 72ch;
}
.page-date, .page-mod {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

/* ===== HOME ===== */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  border-bottom: 2px solid #000;
  overflow: hidden;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 2rem 4rem;
  background: #fff;
}
.hero-h1 {
  font-size: clamp(3rem, 10vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1rem;
  max-width: 40ch;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #333;
}
.hero-cta {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1rem 2.5rem;
  min-height: 44px;
  line-height: 1;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s;
}
.hero-cta:hover { background: #333; }

.hero-collage {
  position: relative;
  background: #000;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  bottom: -0.15em;
  right: -0.05em;
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero-img {
  position: absolute;
  object-fit: cover;
}
.hero-img-1 {
  top: 0; left: 0;
  width: 75%;
  height: 75%;
  z-index: 1;
}
.hero-img-2 {
  bottom: 0; right: 0;
  width: 60%;
  height: 60%;
  z-index: 2;
  border: 4px solid #fff;
}

.home-content-section {
  padding: 4rem 2rem;
  max-width: 72ch;
  border-bottom: 2px solid #000;
}

.home-featured {
  padding: 4rem 2rem;
  border-bottom: 2px solid #000;
}
.home-featured h2,
.home-cards h2 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
}

.feat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
/* 子页列表契约：a > strong，a 不在 li/dt/dd/td 里 */
.feat-link {
  display: flex;
  align-items: center;
  border: 2px solid #000;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}
.feat-link:hover { background: #000; color: #fff; }
.feat-link strong { font-weight: 700; }

.home-cards {
  padding: 4rem 2rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
/* 卡片：柔阴影，圆角 4px */
.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1.5px solid #000;
  border-radius: 4px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  transition: box-shadow 0.2s, transform 0.2s;
}
.child-card:hover {
  box-shadow: 6px 6px 0 #000;
  transform: translate(-2px, -2px);
}
.child-card strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card-desc {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}
.child-card time {
  font-size: 0.8rem;
  color: #888;
  margin-top: auto;
}

/* ===== REVIEW ===== */
.review-header-section {
  padding: 5rem 2rem 3rem;
  border-bottom: 2px solid #000;
}
.review-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #555;
}
.review-hero-img-wrap {
  margin-top: 2rem;
  max-width: 800px;
}
.review-hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}
.review-body-section {
  padding: 3rem 2rem;
  max-width: 72ch;
}
.review-related {
  padding: 3rem 2rem;
  border-top: 2px solid #000;
}
.review-related h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.related-list li a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  min-height: 44px;
  line-height: 1.4;
}
.related-list li a:hover { text-decoration: underline; }

/* ===== COMPARE ===== */
.compare-header-section,
.compare-content-section,
.compare-refs {
  padding: 4rem 2rem;
}
.compare-header-section {
  border-bottom: 2px solid #000;
  padding-bottom: 3rem;
}
.compare-content-section {
  max-width: 80ch;
  border-bottom: 2px solid #000;
}
.compare-refs h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.compare-ref-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.compare-ref-link {
  display: flex;
  align-items: center;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  min-height: 44px;
  box-shadow: 3px 3px 0 #000;
  transition: background 0.2s, color 0.2s;
}
.compare-ref-link:hover { background: #000; color: #fff; }
.compare-ref-link strong { font-weight: 700; }

/* ===== RANKING ===== */
.ranking-header-section,
.ranking-content-section,
.ranking-list-section {
  padding: 4rem 2rem;
}
.ranking-header-section {
  border-bottom: 2px solid #000;
  padding-bottom: 3rem;
}
.ranking-content-section {
  max-width: 72ch;
  border-bottom: 2px solid #000;
}
.ranking-list-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1rem;
}
.rank-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #000;
  min-height: 60px;
  text-decoration: none;
  transition: background 0.15s;
}
.rank-item:hover { background: #f5f5f5; }
.rank-num {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #000;
  line-height: 1;
}
.rank-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.rank-desc {
  font-size: 0.85rem;
  color: #555;
  max-width: 30ch;
  text-align: right;
}

/* ===== FAQ ===== */
.faq-header-section,
.faq-content-section,
.faq-nav-section {
  padding: 4rem 2rem;
}
.faq-header-section { border-bottom: 2px solid #000; padding-bottom: 3rem; }
.faq-content-section { max-width: 72ch; border-bottom: 2px solid #000; }
.faq-nav-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.faq-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.faq-nav-link {
  display: flex;
  align-items: center;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  min-height: 44px;
  box-shadow: 3px 3px 0 #000;
  transition: background 0.2s, color 0.2s;
}
.faq-nav-link:hover { background: #000; color: #fff; }
.faq-nav-link strong { font-weight: 700; }

/* ===== ABOUT ===== */
.about-header-section,
.about-content-section,
.about-links-section {
  padding: 4rem 2rem;
}
.about-header-section { border-bottom: 2px solid #000; padding-bottom: 3rem; }
.about-content-section { max-width: 72ch; border-bottom: 2px solid #000; }
.about-links-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.about-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.about-nav-link {
  display: flex;
  align-items: center;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 #000;
  transition: background 0.2s, color 0.2s;
}
.about-nav-link:hover { background: #000; color: #fff; }
.about-nav-link strong { font-weight: 700; }

/* ===== PRIVACY ===== */
.privacy-header-section,
.privacy-content-section,
.privacy-links-section {
  padding: 4rem 2rem;
}
.privacy-header-section { border-bottom: 2px solid #000; padding-bottom: 3rem; }
.privacy-content-section { max-width: 72ch; border-bottom: 2px solid #000; }
.privacy-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #555;
}
.privacy-links-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.privacy-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.privacy-nav-link {
  display: flex;
  align-items: center;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 #000;
  transition: background 0.2s, color 0.2s;
}
.privacy-nav-link:hover { background: #000; color: #fff; }
.privacy-nav-link strong { font-weight: 700; }

/* ===== 页脚 ===== */
/* 契约：footer > address，footer ul > li > a */
.site-footer {
  border-top: 2px solid #000;
  margin-top: auto;
}
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #000;
  color: #fff;
  padding: 3rem 2rem;
}
.footer-cta-text {
  font-size: clamp(1.2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.footer-cta-link {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  min-height: 44px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.footer-cta-link:hover { background: #fff; color: #000; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem 2rem;
  border-bottom: 2px solid #000;
}
.footer-address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-links-col ul li a {
  display: block;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  min-height: 40px;
  line-height: 1.3;
  border-bottom: 1px solid #eee;
  transition: opacity 0.2s;
}
.footer-links-col ul li a:hover { opacity: 0.6; }
.footer-bottom {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
}

/* ===== 正文内容样式 ===== */
.home-content-section h2,
.home-content-section h3,
.review-body-section h2,
.review-body-section h3,
.compare-content-section h2,
.compare-content-section h3,
.ranking-content-section h2,
.ranking-content-section h3,
.faq-content-section h2,
.faq-content-section h3,
.about-content-section h2,
.about-content-section h3,
.privacy-content-section h2,
.privacy-content-section h3,
.page-content-section h2,
.page-content-section h3 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 2rem 0 0.75rem;
  line-height: 1.2;
}
.home-content-section p,
.review-body-section p,
.compare-content-section p,
.ranking-content-section p,
.faq-content-section p,
.about-content-section p,
.privacy-content-section p,
.page-content-section p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  color: #111;
}
.review-body-section ul,
.review-body-section ol,
.compare-content-section ul,
.compare-content-section ol,
.ranking-content-section ul,
.ranking-content-section ol,
.faq-content-section ul,
.faq-content-section ol,
.about-content-section ul,
.about-content-section ol,
.privacy-content-section ul,
.privacy-content-section ol,
.page-content-section ul,
.page-content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
  line-height: 1.75;
}
.review-body-section ol,
.compare-content-section ol,
.faq-content-section ol,
.about-content-section ol,
.privacy-content-section ol,
.page-content-section ol { list-style: decimal; }

/* ===== Stagger 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerIn 0.4s forwards;
    animation-delay: calc(var(--i, 0) * 0.07s);
  }
  @keyframes staggerIn {
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .stagger-item { opacity: 1; transform: none; animation: none; }
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 1rem; }
  .brand { font-size: 1rem; }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-text {
    padding: 3rem 1.25rem 2rem;
    order: 1;
  }
  .hero-collage {
    min-height: 40vw;
    order: 0;
  }
  .hero-h1 { font-size: clamp(2.5rem, 12vw, 6rem); }

  .page-hero-section,
  .review-header-section,
  .compare-header-section,
  .ranking-header-section,
  .faq-header-section,
  .about-header-section,
  .privacy-header-section {
    padding: 3rem 1.25rem 2rem;
  }
  .page-content-section,
  .home-content-section,
  .review-body-section,
  .compare-content-section,
  .ranking-content-section,
  .faq-content-section,
  .about-content-section,
  .privacy-content-section {
    padding: 2rem 1.25rem;
  }
  .home-featured,
  .home-cards,
  .review-related,
  .compare-refs,
  .ranking-list-section,
  .faq-nav-section,
  .about-links-section,
  .privacy-links-section {
    padding: 2rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
  }
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem;
    gap: 1rem;
  }
  .rank-item {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .rank-desc {
    grid-column: 2;
    text-align: left;
    max-width: none;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(2rem, 13vw, 4rem); }
  .page-h1,
  .review-h1,
  .compare-h1,
  .ranking-h1,
  .faq-h1,
  .about-h1,
  .privacy-h1 {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }
}
