﻿:root {
      --bg-main: #F5F1E8;
      --bg-alt: #FAF7EF;
      --bg-card: #FFFDF7;
      --bg-accent: #E7E5E4;
      --bg-dark: #111111;
      --text-main: #171717;
      --text-muted: #44403C;
      --color-red: #DD0000;
      --color-gold: #FFCE00;
      --color-blue: #2563EB;
      --border-color: #D6D3C8;
      --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { width: 100%; overflow-x: hidden; font-family: var(--font-system); scroll-behavior: smooth; background: var(--bg-main); color: var(--text-main); }
    body { width: 100%; margin: 0; overflow-x: hidden; line-height: 1.5; }
    img { max-width: 100%; height: auto; }

    
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      width: 100%;
      background: rgba(245, 241, 232, 0.92);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-color);
    }
    .header-inner {
      width: min(1200px, calc(100% - 32px));
      min-height: 72px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      max-width: 100%;
      text-decoration: none;
      flex-shrink: 0;
    }
    .logo img {
      display: block;
      height: 40px;
      width: auto;
      max-width: 150px;
      object-fit: contain;
      flex-shrink: 0;
    }
    .logo span {
      display: inline-block;
      font-size: 18px;
      font-weight: 800;
      line-height: 1.2;
      color: var(--text-main);
      white-space: nowrap;
      max-width: 180px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .desktop-nav-wrap {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      justify-content: flex-end;
      overflow: hidden;
    }
    .desktop-nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      white-space: nowrap;
    }
    .desktop-nav::-webkit-scrollbar { display: none; }
    .desktop-nav a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 13px;
      border-radius: 999px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .desktop-nav a:hover {
      color: var(--color-red);
      background: rgba(221, 0, 0, 0.08);
    }
    .mobile-menu-btn {
      display: none;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 14px;
      background: rgba(23, 23, 23, 0.06);
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      flex: 0 0 auto;
    }
    .mobile-menu-btn span {
      display: block;
      width: 20px;
      height: 2px;
      border-radius: 999px;
      background: var(--text-main);
    }
    .mobile-nav-mask {
      position: fixed;
      inset: 0;
      z-index: 1100;
      background: rgba(23, 23, 23, 0.4);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .25s ease, visibility .25s ease;
    }
    .mobile-drawer {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1110;
      width: min(86vw, 360px);
      height: 100vh;
      height: 100dvh;
      max-width: 90vw;
      background: var(--bg-card);
      color: var(--text-main);
      transform: translateX(-105%);
      transition: transform .28s ease;
      box-shadow: 24px 0 60px rgba(0,0,0,.15);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-right: 1px solid var(--border-color);
    }
    .drawer-head {
      min-height: 76px;
      padding: 16px 16px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid var(--border-color);
      flex: 0 0 auto;
    }
    .drawer-logo { min-width: 0; }
    .drawer-logo img { height: 34px; max-width: 120px; }
    .drawer-logo span { font-size: 16px; max-width: 145px; }
    .drawer-close {
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 14px;
      background: rgba(23, 23, 23, 0.06);
      color: var(--text-main);
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
      flex: 0 0 auto;
    }
    .drawer-body {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      padding: 14px;
    }
    .drawer-nav {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .drawer-nav a {
      display: flex;
      align-items: center;
      width: 100%;
      min-height: 48px;
      padding: 13px 14px;
      border-radius: 14px;
      background: var(--bg-main);
      color: var(--text-main);
      text-decoration: none;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.35;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere;
      border: 1px solid var(--border-color);
    }
    .drawer-nav a:hover {
      background: rgba(221, 0, 0, 0.08);
      color: var(--color-red);
    }
    body.drawer-open { overflow: hidden; touch-action: none; }
    body.drawer-open .mobile-nav-mask { opacity: 1; visibility: visible; pointer-events: auto; }
    body.drawer-open .mobile-drawer { transform: translateX(0); }

    
    .site-footer {
      position: relative;
      z-index: 1;
      width: 100%;
      background: var(--bg-dark);
      color: #E7E5E4;
      padding: 56px 0 24px;
      overflow: hidden;
    }
    .footer-inner {
      width: min(1200px, calc(100% - 32px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
      gap: 28px;
      align-items: start;
    }
    .footer-brand { min-width: 0; }
    .footer-brand p {
      margin: 16px 0 0;
      color: #A8A29E;
      line-height: 1.8;
      font-size: 14px;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    .footer-logo span { color: #FFFDF7; }
    .footer-column { min-width: 0; }
    .footer-column h3 { margin: 0 0 14px; font-size: 15px; color: var(--color-gold); font-weight: 800; border-bottom: 2px solid var(--color-red); padding-bottom: 6px; width: fit-content; }
    .footer-column ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
    .footer-column li { min-width: 0; }
    .footer-column a, .footer-column span {
      display: inline;
      color: #D6D3C8;
      text-decoration: none;
      font-size: 14px;
      line-height: 1.55;
      white-space: normal;
      word-break: break-word;
      overflow-wrap: anywhere;
    }
    .footer-column a:hover { color: var(--color-gold); }
    .footer-bottom {
      width: min(1200px, calc(100% - 32px));
      margin: 32px auto 0;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.12);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      color: #A8A29E;
      font-size: 13px;
    }
    .footer-bottom p { margin: 0; min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
    .footer-bottom a { color: #D6D3C8; text-decoration: none; word-break: break-word; overflow-wrap: anywhere; }
    .footer-bottom a:hover { color: var(--color-gold); }

    
    .download-wrap {
      width: min(1200px, calc(100% - 32px));
      margin: 40px auto 80px;
    }
    .download-header { text-align: center; margin-bottom: 48px; }
    .download-header h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 12px; }
    .download-header p { font-size: 16px; color: var(--text-muted); max-width: 680px; margin: 0 auto; }
    
    .download-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-bottom: 56px;
    }
    .download-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 32px 24px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(22, 21, 18, 0.04);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .download-card h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 800; }
    .download-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
    
    .setup-guide {
      background: var(--bg-alt);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 40px;
    }
    .setup-guide h2 { font-size: 24px; font-weight: 800; margin-top: 0; margin-bottom: 24px; border-bottom: 2px solid var(--color-red); padding-bottom: 8px; width: fit-content; }
    .steps-list { display: flex; flex-direction: column; gap: 20px; }
    .step-item { display: flex; gap: 16px; align-items: start; }
    .step-num {
      background: var(--color-red);
      color: #FFFDF7;
      font-size: 16px;
      font-weight: 900;
      width: 32px;
      height: 32px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .step-detail h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
    .step-detail p { margin: 0; font-size: 14px; color: var(--text-muted); }

    @media (max-width: 900px) {
      .header-inner { width: min(100% - 24px, 1200px); min-height: 64px; gap: 12px; }
      .desktop-nav-wrap, .desktop-nav { display: none !important; }
      .mobile-menu-btn { display: inline-flex !important; }
      .logo img { height: 34px; max-width: 118px; }
      .logo span { font-size: 16px; max-width: 145px; }
      .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
      .footer-brand { grid-column: 1 / -1; }
      .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
      .download-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 640px) {
      .footer-inner { grid-template-columns: 1fr; }
    }

    @media (max-width: 420px) {
      .mobile-drawer { width: 88vw; }
      .logo span { max-width: 112px; }
      .drawer-logo span { max-width: 118px; }
      .footer-inner, .footer-bottom { width: min(100% - 24px, 1200px); }
    }