/* Schedule Manager Landing — Design tokens + components (based on Mang1up Platform) */

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-card: #ffffff;
  --fg: #0a0a0a;
  --fg-muted: #525252;
  --fg-subtle: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  /* Schedule brand: teal/emerald */
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Pretendard Variable', 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-subtle: #111111;
  --bg-card: #171717;
  --fg: #fafafa;
  --fg-muted: #a3a3a3;
  --fg-subtle: #737373;
  --border: #262626;
  --border-strong: #404040;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.6);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  visibility: hidden;
}
html[data-i18n-ready] body { visibility: visible; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

.ldg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.ldg-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.ldg-nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 32px; }
.ldg-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.ldg-logo-mark { color: var(--accent); font-size: 22px; }
.ldg-nav-links { display: flex; gap: 24px; flex: 1; }
.ldg-nav-links a { color: var(--fg-muted); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.ldg-nav-links a:hover { color: var(--fg); }
.ldg-nav-actions { display: flex; align-items: center; gap: 8px; position: relative; }
.ldg-icon-btn {
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer; color: var(--fg);
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.ldg-icon-btn:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.ldg-icon-sun { display: none; }
[data-theme="dark"] .ldg-icon-sun { display: block; }
[data-theme="dark"] .ldg-icon-moon { display: none; }
.ldg-lang-menu {
  position: absolute; top: 110%; right: 120px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow-lg); min-width: 140px;
}
.ldg-lang-menu button {
  display: block; width: 100%; text-align: left; padding: 8px 12px;
  background: transparent; border: none; color: var(--fg);
  font-size: 14px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.ldg-lang-menu button:hover { background: var(--bg-subtle); }

/* Buttons */
.ldg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  min-height: 44px; transition: all 0.15s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.ldg-btn-primary { background: var(--accent); color: white; }
.ldg-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ldg-btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.ldg-btn-ghost:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.ldg-btn-lg { padding: 14px 28px; font-size: 16px; min-height: 52px; }

.ldg-hamburger {
  display: none; background: transparent; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.ldg-hamburger span { display: block; width: 22px; height: 2px; background: var(--fg); margin: 0 auto; transition: 0.2s; }

/* Hero */
.ldg-hero { padding: 80px 0 60px; }
.ldg-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ldg-badge {
  display: inline-block; padding: 6px 14px; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.ldg-hero-text h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 20px; letter-spacing: -0.03em; }
.ldg-lead { font-size: clamp(16px, 1.5vw, 20px); color: var(--fg-muted); margin-bottom: 32px; max-width: 520px; }
.ldg-hero-cta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ldg-hero-note { font-size: 13px; color: var(--fg-subtle); }

/* Hero mock */
.ldg-hero-visual { position: relative; }
.ldg-mock-window {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; aspect-ratio: 4/3;
}
.ldg-mock-bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.ldg-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.ldg-mock-body { display: flex; height: calc(100% - 40px); }
.ldg-mock-sidebar { width: 30%; background: var(--bg-subtle); border-right: 1px solid var(--border); }
.ldg-mock-content { flex: 1; padding: 20px; display: grid; gap: 12px; align-content: start; }
.ldg-mock-card { height: 40px; background: var(--bg-subtle); border-radius: 8px; }
.ldg-mock-card:nth-child(1) { background: var(--accent-soft); }

/* Sections shared */
.ldg-problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ldg-problem-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.ldg-problem-icon { font-size: 32px; margin-bottom: 16px; }
.ldg-problem-card h3 { font-size: 20px; margin-bottom: 12px; }
.ldg-problem-card p { color: var(--fg-muted); font-size: 15px; }

.ldg-section-head { text-align: center; margin-bottom: 56px; max-width: 700px; margin-left: auto; margin-right: auto; }
.ldg-eyebrow {
  display: inline-block; font-size: 13px; color: var(--accent);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.ldg-section-head h2 { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 12px; }
.ldg-section-head p { color: var(--fg-muted); font-size: 17px; }

.ldg-services { padding: 100px 0; }
.ldg-why { padding: 100px 0; background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.ldg-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ldg-service-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-decoration: none; color: inherit; transition: all 0.2s var(--ease);
}
.ldg-service-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ldg-service-icon { font-size: 36px; margin-bottom: 16px; }
.ldg-service-card h3 { font-size: 20px; margin-bottom: 8px; }
.ldg-service-card p { color: var(--fg-muted); font-size: 15px; flex: 1; margin-bottom: 20px; }
.ldg-service-link { color: var(--accent); font-size: 14px; font-weight: 600; }

/* Pricing */
.ldg-pricing { padding: 100px 0; background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ldg-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.ldg-price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 32px; position: relative; display: flex; flex-direction: column;
}
.ldg-price-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ldg-price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white; padding: 4px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.ldg-price-card h3 { font-size: 22px; margin-bottom: 16px; }
.ldg-price { font-size: 40px; font-weight: 700; margin-bottom: 32px; letter-spacing: -0.02em; }
.ldg-price-currency { font-size: 20px; vertical-align: top; margin-right: 2px; }
.ldg-price-period { font-size: 16px; color: var(--fg-muted); font-weight: 500; }
.ldg-price-card ul { margin-bottom: 32px; flex: 1; }
.ldg-price-card li { padding: 8px 0; color: var(--fg-muted); font-size: 15px; border-bottom: 1px solid var(--border); }
.ldg-price-card li:last-child { border-bottom: none; }
.ldg-price-card .ldg-btn { width: 100%; }

/* FAQ */
.ldg-faq { padding: 100px 0; }
.ldg-faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ldg-faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.ldg-faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; position: relative; padding-right: 30px;
}
.ldg-faq-item summary::-webkit-details-marker { display: none; }
.ldg-faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-size: 22px; color: var(--fg-muted); transition: transform 0.2s;
}
.ldg-faq-item[open] summary::after { content: '−'; }
.ldg-faq-item p { margin-top: 16px; color: var(--fg-muted); font-size: 15px; }

/* Final CTA */
.ldg-cta-final { padding: 100px 0; text-align: center; background: var(--bg-subtle); border-top: 1px solid var(--border); }
.ldg-cta-final h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.ldg-cta-final p { font-size: 18px; color: var(--fg-muted); margin-bottom: 32px; }

/* Footer */
.ldg-footer { background: var(--bg-subtle); border-top: 1px solid var(--border); padding: 60px 0 32px; }
.ldg-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.ldg-footer-brand p { color: var(--fg-muted); font-size: 14px; margin-top: 12px; }
.ldg-footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.ldg-footer-col a { display: block; color: var(--fg-muted); font-size: 14px; padding: 4px 0; }
.ldg-footer-col a:hover { color: var(--fg); }
.ldg-footer-biz { padding-top: 32px; border-top: 1px solid var(--border); color: var(--fg-subtle); font-size: 13px; }
.ldg-footer-biz p { margin-bottom: 8px; }
.ldg-copyright { color: var(--fg-subtle); }

/* Preview Modal */
.ldg-preview-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ldg-preview-modal[hidden] { display: none; }
.ldg-preview-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ldg-preview-dialog {
  position: relative;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 720px; max-height: calc(100vh - 48px);
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.ldg-preview-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--fg-muted);
  border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.ldg-preview-close:hover { color: var(--fg); border-color: var(--border-strong); }
.ldg-preview-body { padding: 48px 40px 40px; text-align: center; }
.ldg-preview-badge { display: inline-block; margin-bottom: 16px; }
.ldg-preview-body h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.ldg-preview-desc { color: var(--fg-muted); font-size: 16px; margin-bottom: 32px; }
.ldg-preview-stage { margin-bottom: 32px; }
.ldg-preview-frame {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #000;
  display: flex; flex-direction: column;
  aspect-ratio: 16 / 9;
}
.ldg-preview-media {
  flex: 1; display: flex; align-items: stretch; justify-content: stretch;
  min-height: 0;
}
.ldg-preview-media > img,
.ldg-preview-media > video,
.ldg-preview-media > iframe {
  width: 100%; height: 100%; object-fit: contain; border: 0; display: block;
}
.ldg-preview-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--fg-muted); padding: 24px;
}
.ldg-preview-empty-icon { font-size: 40px; line-height: 1; }
.ldg-preview-empty p { font-size: 14px; margin: 0; }
.ldg-preview-cta-row { display: flex; justify-content: center; }

/* Responsive */
@media (max-width: 768px) {
  .ldg-nav-links, .ldg-nav-actions .ldg-btn, .ldg-nav-actions .ldg-icon-btn:not(#ldg-theme-btn):not(#ldg-lang-btn) {
    display: none;
  }
  .ldg-hamburger { display: flex; }
  .ldg-nav-inner { gap: 12px; }
  .ldg-nav-actions { margin-left: auto; }
  .ldg-nav-links.ldg-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 20px 24px; gap: 16px;
  }
  .ldg-nav-links.ldg-open a { font-size: 16px; padding: 8px 0; }

  .ldg-hero { padding: 40px 0; }
  .ldg-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ldg-hero-cta { flex-direction: column; align-items: stretch; }
  .ldg-hero-cta .ldg-btn { width: 100%; }

  .ldg-problem-grid, .ldg-service-grid, .ldg-pricing-grid { grid-template-columns: 1fr; }
  .ldg-services, .ldg-why, .ldg-pricing, .ldg-faq, .ldg-cta-final { padding: 60px 0; }

  .ldg-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ldg-footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .ldg-container { padding: 0 16px; }
  .ldg-nav-inner { padding: 12px 16px; }
  .ldg-footer-grid { grid-template-columns: 1fr; }
  .ldg-footer-brand { grid-column: span 1; }
}
