:root {
    --bg: #fdfbf7;
    --bg-alt: #f4f0e6;
    --ink: #222222;
    --ink-2: #666666;
    --brand: #d32f2f;
    --brand-soft: #fcebea;
    --line: #e0dcd3;
    --radius: 16px;
    --max-w: 1200px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
  }
  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { display: block; max-width: 100%; }
  
  .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
  
  /* Typography */
  h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }
  h2 { font-size: 26px; font-weight: 700; margin-bottom: 24px; }
  h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
  .kicker { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; display: block; font-weight: 600; }
  
  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 100px; font-weight: 600; font-size: 15px; transition: all 0.2s; cursor: pointer; border: 1px solid transparent; }
  .btn-primary { background: var(--brand); color: #ffffff; }
  .btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
  .btn-outline { border-color: var(--line); background: transparent; color: var(--ink); }
  .btn-outline:hover { border-color: var(--ink); }

  /* Header */
  .site-header { padding: 24px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  .header-inner { display: flex; align-items: center; justify-content: space-between; }
  .brand-wrap { display: flex; align-items: center; gap: 12px; }
  .brand-logo { height: 32px; width: auto; }
  .brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
  .badge { font-size: 11px; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--brand); font-weight: 600; }
  
  /* Hero */
  .hero { padding: 88px 0; position: relative; overflow: hidden; }
  .hero-layout { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }
  .hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 32px; }
  .tag { font-size: 13px; font-weight: 500; padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-2); }
  .hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
  
  .hero-visual { position: relative; width: 100%; max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
  .hero-main-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 2; filter: saturate(1.03) contrast(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .hero-side-img { position: absolute; width: 200px; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); z-index: 1; filter: saturate(1.03) contrast(1.02); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .hero-side-img.left { left: -40px; transform: rotate(-8deg) translateY(8px); }
  .hero-side-img.right { right: -40px; transform: rotate(8deg) translateY(-8px); }
  
  .hero-caption { position: absolute; bottom: 16px; left: 16px; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 12px; border-radius: 100px; font-size: 13px; z-index: 3; backdrop-filter: blur(4px); }
  .hero-note { margin-top: 24px; font-size: 13px; color: var(--ink-2); text-align: center; }

  /* Genres */
  .genre-section { padding: 0 0 88px; }
  .genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .genre-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; transition: background 0.2s; cursor: default; background: #fff; }
  .genre-item:hover { background: var(--brand-soft); }
  .genre-title { font-size: 16px; font-weight: 600; display: block; white-space: nowrap; }
  .genre-sub { font-size: 12px; color: var(--ink-2); display: block; white-space: nowrap; margin-top: 4px; }

  /* Two Column */
  .two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; margin-bottom: 88px; }
  .col-stack { display: flex; flex-direction: column; gap: 48px; }
  
  .section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
  .section-header h2 { margin-bottom: 0; }
  .more-link { font-size: 14px; color: var(--ink-2); font-weight: 500; }
  
  .drama-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .drama-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s; display: flex; flex-direction: column; }
  .drama-card:hover { transform: translateY(-3px); }
  .drama-cover { aspect-ratio: 3/4; position: relative; overflow: hidden; }
  .drama-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(1.03) contrast(1.02); }
  .cover-mask { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
  .cover-title { position: absolute; bottom: 12px; left: 12px; color: #fff; font-size: 15px; font-weight: 600; z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
  .cover-tag { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.9); color: var(--brand); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; z-index: 2; }
  .drama-info { padding: 16px; flex-grow: 1; }
  .drama-desc { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }

  .calendar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; margin-bottom: 16px; }
  .cal-day { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 8px 0; border-radius: 8px; }
  .cal-day.today { background: var(--brand); color: #fff; }
  .cal-name { font-size: 12px; color: var(--ink-2); }
  .cal-day.today .cal-name { color: rgba(255,255,255,0.8); }
  .cal-num { font-size: 16px; font-weight: 600; }
  .cal-note { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 16px; }

  .rank-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 48px; }
  .rank-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
  .rank-num { font-size: 16px; font-weight: 800; color: var(--brand); width: 20px; text-align: center; }
  .rank-cover { width: 40px; height: 56px; border-radius: 6px; object-fit: cover; object-position: 50% 22%; }
  .rank-info { flex-grow: 1; display: flex; flex-direction: column; }
  .rank-title { font-size: 15px; font-weight: 600; }
  .rank-meta { display: flex; gap: 8px; align-items: center; margin-top: 2px; }
  .rank-tag { font-size: 11px; color: var(--ink-2); background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; }
  .rank-score { font-size: 16px; font-weight: 800; color: var(--brand); text-align: right; }
  .rank-score span { display: block; font-size: 10px; font-weight: 400; color: var(--ink-2); }

  .tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 48px; }
  .tip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .tip-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
  .tip-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

  .cert-list { display: flex; flex-direction: column; gap: 12px; }
  .cert-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
  .cert-icon { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .cert-name { font-size: 14px; font-weight: 500; }

  /* Full width sections */
  .process-section { padding: 88px 0; background: var(--bg-alt); }
  .process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
  .process-steps::before { content: ""; position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 1px; background: var(--line); z-index: 1; }
  .step-item { text-align: center; position: relative; z-index: 2; }
  .step-num { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; margin: 0 auto 16px; }
  .step-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  .step-desc { font-size: 13px; color: var(--ink-2); }

  .gallery-section { padding: 88px 0; }
  .gallery-scroll { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .gallery-scroll::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 auto; width: 300px; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.03) contrast(1.02); }

  .reviews-section { padding: 88px 0; background: var(--bg-alt); }
  .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; position: relative; }
  .quote-mark { font-size: 40px; color: var(--brand-soft); position: absolute; top: 12px; left: 16px; font-family: serif; line-height: 1; }
  .review-text { font-size: 14px; margin-bottom: 16px; flex-grow: 1; position: relative; z-index: 1; }
  .review-user { display: flex; align-items: center; gap: 12px; }
  .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
  .user-info { display: flex; flex-direction: column; }
  .user-name { font-size: 13px; font-weight: 600; }
  .user-meta { font-size: 11px; color: var(--ink-2); }

  .download-section { padding: 88px 0; }
  .download-block { background: linear-gradient(135deg, var(--brand), #b71c1c); border-radius: var(--radius); padding: 64px 24px; text-align: center; color: #fff; }
  .download-block h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; letter-spacing: -0.02em; }
  .download-desc { font-size: 15px; opacity: 0.9; margin-bottom: 32px; }
  .download-block .btn-primary { background: #fff; color: var(--brand); }
  .download-block .btn-primary:hover { background: var(--bg-alt); }

  .faq-section { padding: 88px 0; }
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
  .faq-item summary { padding: 16px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; font-size: 18px; color: var(--ink-2); font-weight: 400; }
  .faq-item[open] summary::after { content: "-"; }
  .faq-answer { padding: 0 16px 16px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: -1px; padding-top: 16px; }

  /* Footer */
  .site-footer { background: #222; color: #fff; padding: 56px 0 32px; font-size: 13px; }
  .footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 48px; }
  .footer-col h4 { font-size: 15px; margin-bottom: 16px; color: #fff; }
  .footer-col ul { display: flex; flex-direction: column; gap: 8px; }
  .footer-col a { color: #aaa; transition: color 0.2s; }
  .footer-col a:hover { color: #fff; }
  .footer-bottom { border-top: 1px solid #444; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; color: #888; gap: 16px; }
  .footer-bottom-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .age-badge { border: 1px solid #555; padding: 2px 6px; border-radius: 4px; font-size: 11px; }
  .update-time { font-size: 12px; color: #777; }

  /* Mobile Sticky Download */
  .sticky-download { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 12px 24px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 100; transition: opacity 0.3s, transform 0.3s; }
  .sticky-download.hidden { opacity: 0; transform: translateY(100%); pointer-events: none; }
  .sticky-download .btn { width: 100%; }

  @media (max-width: 1023px) {
    .two-col { grid-template-columns: 1fr; gap: 48px; }
    .hero-side-img { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 767px) {
    .container { padding: 0 16px; }
    .hero { padding: 56px 0; }
    .hero-tags { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
    .hero-tags .tag:last-child { grid-column: 1 / -1; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-caption { font-size: 11px; padding: 4px 8px; }
    .genre-grid { grid-template-columns: repeat(2, 1fr); }
    .drama-grid { grid-template-columns: repeat(2, 1fr); }
    .rank-list { gap: 8px; }
    .rank-item { padding: 8px; }
    .rank-cover { width: 32px; height: 44px; }
    .tips-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .process-steps::before { display: none; }
    .gallery-item { width: 85vw; }
    .review-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; gap: 16px; margin-right: -16px; padding-right: 16px; }
    .review-card { flex: 0 0 78vw; scroll-snap-align: start; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .sticky-download { display: block; }
    .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .two-col { margin-bottom: 56px; }
    .col-stack { gap: 32px; }
  }