/* ==========================================
   Variables & Reset (Minimal Artist Theme)
========================================= */
:root {
  --primary: #ffffff;
  --primary-dark: #e0e0e0;
  --accent: #d4af37; /* Subtle gold/champagne accent */
  --text: #e8e8e8;
  --text-muted: #888888;
  --bg: #050505;
  --bg-card: #0a0a0a;
  --bg-light: #111111;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.12);
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html { 
  scroll-behavior: smooth; 
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6, .serif-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  letter-spacing: 0.08em;
}

/* ==========================================
   Animations (Breathing)
========================================= */
@keyframes text-breathe {
  0% { 
    opacity: 0.7; 
    text-shadow: 0 0 10px rgba(255,255,255,0.0); 
    transform: translateY(0px) scale(0.99); 
  }
  50% { 
    opacity: 1; 
    text-shadow: 0 0 30px rgba(255,255,255,0.5), 0 0 60px rgba(255,255,255,0.2); 
    transform: translateY(-2px) scale(1.02); 
  }
  100% { 
    opacity: 0.7; 
    text-shadow: 0 0 10px rgba(255,255,255,0.0); 
    transform: translateY(0px) scale(0.99); 
  }
}

@keyframes slowFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Layout
========================================= */
.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; }

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 64px;
  line-height: 1.4;
  color: var(--white);
}

.section-title .label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==========================================
   Buttons
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 2px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  text-align: center;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--white);
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
  border: 1px solid var(--white);
}
.btn-primary:hover { 
  background: transparent; 
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
}
.btn-outline:hover { 
  background: rgba(255,255,255,0.05); 
}

.btn-sm { padding: 12px 24px; font-size: 0.85rem; }

.btn-hero {
  width: 100%;
  padding: 20px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.btn-cta {
  width: 100%;
  padding: 20px;
  font-size: 1.05rem;
  margin: 32px 0 20px;
}

.pulse {
  position: relative;
  overflow: hidden;
}
.pulse::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.pulse:hover::after {
  opacity: 1;
}

/* ==========================================
   Header
========================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.logo-mark {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
}

.logo-mark-sm {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--white);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ==========================================
   Hero
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 60%);
}

.hero-tag {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  animation: slowFadeIn 2s ease forwards;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.5;
  margin-bottom: 40px;
  animation: text-breathe 8s ease-in-out infinite;
  color: var(--text-hero, rgba(255,255,255,0.95));
  position: relative;
  z-index: 2;
}

.hero-title .accent {
  color: var(--white);
  display: block;
  margin-top: 8px;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 56px;
  line-height: 2;
  animation: slowFadeIn 2.5s ease forwards;
}

.hero-price-box {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
  margin-bottom: 48px;
  animation: slowFadeIn 3s ease forwards;
}

.price-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.price-main {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.price-tax {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0.5;
}

.hero-scroll span {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

/* ==========================================
   Problem
========================================= */
.problem-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.problem-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.problem-icon {
  font-size: 1.2rem;
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: 4px;
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

/* ==========================================
   Solution / Deliverables
========================================= */
.solution-lead-box {
  text-align: center;
  margin-bottom: 80px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 2;
  font-family: 'Noto Serif JP', serif;
}

.solution-lead-box strong {
  color: var(--white);
  font-weight: 300;
  display: block;
  margin-top: 16px;
}

.deliver-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-align: center;
}

.deliver-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.deliver-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.deliver-content h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 16px;
}

.deliver-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.url-example {
  display: inline-block;
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

/* ==========================================
   Flow
========================================= */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--border);
  margin-left: 12px;
  padding-left: 32px;
}

.flow-step {
  position: relative;
  padding-bottom: 48px;
}

.flow-step::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 9px;
  height: 9px;
  background: var(--bg);
  border: 1px solid var(--text-muted);
  border-radius: 50%;
}

.flow-arrow { display: none; }

.step-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.step-body h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 12px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================
   Rules
========================================= */
.rules-box {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rule-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-icon { display: none; }

.rule-alert strong { color: #ffb347; }

.rule-item strong {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 300;
}

.rule-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================
   Works
========================================= */
.works-coming {
  text-align: center;
  padding: 80px 24px;
  border: 1px solid rgba(255,255,255,0.05);
}

.coming-icon {
  font-size: 1.5rem;
  opacity: 0.3;
  margin-bottom: 24px;
}

.works-coming p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ==========================================
   FAQ
========================================= */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.faq-item:first-child { border-top: 1px solid rgba(255,255,255,0.05); }

.faq-q {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.6;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* ==========================================
   CTA
========================================= */
.cta-section {
  text-align: center;
  padding: 160px 0;
}

.cta-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.cta-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--white);
}

.cta-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.cta-price-old {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.cta-price-new {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
}

.cta-price-new small {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.cta-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 48px;
}

.cta-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
}

/* ==========================================
   Footer
========================================= */
.footer {
  padding: 80px 0 40px;
  text-align: center;
}

.footer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  font-family: 'Inter', sans-serif;
}

/* ==========================================
   Breathing Creature (Amoeba Orb)
========================================= */
.glass-orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.03);
  margin: 0 auto;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.02);
  animation: 
    davinci-orb-master 10s infinite,
    amoeba-spin 40s linear infinite;
  backdrop-filter: blur(8px);
  position: absolute;
  top: 15%;
  left: 50%;
  margin-left: -150px;
  z-index: 0;
  pointer-events: none;
}

@keyframes davinci-orb-master {
  /* ゆっくり浮遊（静寂） */
  0%, 30% { 
    transform: translateY(0px) scale(0.9);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.02);
  }
  /* 思い出したように激しく歪んで跳ねる */
  32% { 
    transform: translateY(-20px) scale(1.1); 
    border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
    box-shadow: inset 0 0 40px rgba(255,255,255,0.05); 
  }
  35% { 
    transform: translateY(5px) scale(0.85); 
    border-radius: 80% 20% 40% 60% / 60% 80% 20% 40%;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.02); 
  }
  38% { 
    transform: translateY(-5px) scale(1.05); 
    border-radius: 30% 70% 20% 80% / 80% 30% 70% 20%;
    box-shadow: inset 0 0 25px rgba(255,255,255,0.03); 
  }
  /* 再び静寂の浮遊 */
  45%, 75% { 
    transform: translateY(0px) scale(0.95); 
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.01); 
  }
  /* 短い動き（小刻みな震え） */
  77% { 
    transform: translateY(-10px) scale(1.05); 
    border-radius: 70% 30% 60% 40% / 30% 70% 40% 60%;
  }
  80% { 
    transform: translateY(2px) scale(0.9); 
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  85%, 100% { 
    transform: translateY(0px) scale(0.9); 
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.02); 
  }
}

@keyframes amoeba-spin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ==========================================
   Theme B: Museum Light
========================================= */
body[data-theme="light"] {
  --bg: #fdfdfd;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --white: #050505;
  --text-muted: #888888;
  --border: rgba(0,0,0,0.06);
  --border-light: rgba(0,0,0,0.12);
  --text-hero: rgba(5,5,5,0.95);
}

body[data-theme="light"] .glass-orb {
  display: none;
}

body[data-theme="light"] .hero {
  background: radial-gradient(circle at center, rgba(0,0,0,0.02) 0%, transparent 60%);
}

.light-only-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

body[data-theme="light"] .light-only-canvas {
  opacity: 1;
}

body[data-theme="light"] .header {
  background: rgba(253,253,253,0.8);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* ==========================================
   Smooth Theme Transitions
========================================= */
body, .hero, .glass-orb, .header, .btn, .problem-card, .deliver-card, .flow-step::before, .rule-item, .works-coming, .faq-item, .cta-box, .footer {
  transition: background-color 1.2s ease, color 1.2s ease, border-color 1.2s ease, box-shadow 1.2s ease;
}

/* ==========================================
   Showcase Switcher (Floating Pill)
========================================= */
.showcase-controller {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  padding: 6px;
  display: flex;
  gap: 4px;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  animation: slowFadeIn 2s ease forwards;
  opacity: 0;
  animation-delay: 1s;
}

body[data-theme="light"] .showcase-controller {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.theme-btn:hover {
  color: var(--white);
}

.theme-btn.active {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================================
   Theme C: Organic Warm
========================================= */
body[data-theme="warm"] {
  --bg: #f5f2eb;
  --bg-card: #ece8df;
  --text: #4a3f35;
  --white: #2c251e;
  --text-muted: #8a7b6a;
  --border: rgba(74,63,53,0.1);
  --border-light: rgba(74,63,53,0.15);
  --text-hero: #2c251e;
}

body[data-theme="warm"] .glass-orb { display: none; }

body[data-theme="warm"] .hero {
  background: none;
}

body[data-theme="warm"] .header {
  background: rgba(245,242,235,0.8);
  border-bottom: 1px solid rgba(74,63,53,0.05);
}

body[data-theme="warm"] .showcase-controller {
  background: rgba(236,232,223,0.7);
  border: 1px solid rgba(74,63,53,0.1);
  box-shadow: 0 20px 40px rgba(74,63,53,0.1);
}

/* Warm specific elements */
.warm-only-texture {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
}
body[data-theme="warm"] .warm-only-texture {
  opacity: 1;
}

.warm-only-light-leak {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
  mix-blend-mode: multiply;
}

.warm-light-1 {
  width: 600px;
  height: 600px;
  background: rgba(220, 160, 120, 0.15);
  top: -100px;
  left: -200px;
  animation: float-warm-1 20s ease-in-out infinite alternate;
}

.warm-light-2 {
  width: 500px;
  height: 500px;
  background: rgba(180, 140, 100, 0.1);
  bottom: -50px;
  right: -100px;
  animation: float-warm-2 25s ease-in-out infinite alternate;
}

body[data-theme="warm"] .warm-only-light-leak {
  opacity: 1;
}

@keyframes float-warm-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

@keyframes float-warm-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, -60px) scale(1.1); }
}

/* Update text-breathe to use variable */
@keyframes text-breathe {
  0% { 
    opacity: 0.8; 
    transform: translateY(0px) scale(0.99); 
  }
  50% { 
    opacity: 1; 
    transform: translateY(-2px) scale(1.01); 
  }
  100% { 
    opacity: 0.8; 
    transform: translateY(0px) scale(0.99); 
  }
}

@media (max-width: 480px) {
  .showcase-controller {
    width: 90%;
    max-width: 320px;
    justify-content: center;
    bottom: 20px;
    padding: 4px;
  }
  .theme-btn {
    padding: 10px 12px;
    font-size: 0.65rem;
    flex: 1;
    letter-spacing: 0.05em;
  }
}
