:root {
  --bg-main: #ffffff;
  --bg-sub: #f8fafc;
  --bg-accent: #f0fdf4; /* mint tint */
  
  --primary: #10b981; /* mint green */
  --primary-dark: #059669;
  --secondary: #f97316; /* soft orange */
  
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border: #e2e8f0;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Navigation */
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.nav__links { display: flex; gap: 2rem; }

@media (max-width: 768px) {
  .nav__links { display: none; }
}

.nav__link {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--outline {
  border: 2px solid var(--border);
  color: var(--text-main);
}

.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Hero V2 */
.hero-v2 {
  padding: 80px 0;
  background: radial-gradient(circle at 90% 10%, var(--bg-accent) 0%, transparent 40%);
}

.hero-v2__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

@media (max-width: 768px) {
  .hero-v2__grid { grid-template-columns: 1fr; text-align: center; }
  .hero-v2__visual { order: -1; }
}

.hero-v2__badge {
  display: inline-block;
  background: var(--bg-accent);
  color: var(--primary-dark);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-v2__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary);
  background: linear-gradient(transparent 70%, #d1fae5 70%);
}

.hero-v2__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.floating-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* Chat Modern UI (Tailwind-like Vanilla) */
.chat-section {
  padding: 100px 0;
  background: var(--bg-sub);
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.chat-container-modern {
  max-width: 672px;
  margin: 64px auto 0;
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 60px -12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.chat-window-header {
  background: #f8fafc;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff7ed;
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-title { font-size: 0.875rem; font-weight: 700; color: #334155; margin: 0; }
.chat-header-sub { font-size: 0.75rem; color: #64748b; margin: 0; }

.chat-messages-area {
  padding: 24px;
  background: rgba(248, 250, 252, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bubble {
  max-width: 80%;
  padding: 10px 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.bubble--user {
  align-self: flex-end;
  background: #0f172a;
  color: white;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bubble--ai {
  align-self: flex-start;
  background: white;
  border: 1px solid #e2e8f0;
  color: #334155;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bubble--success {
  border-color: #d1fae5;
}

.success-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-weight: 700;
  margin-bottom: 8px;
}

.chat-link {
  color: #3b82f6;
  word-break: break-all;
  font-weight: 500;
}

/* Features V2 */
.features-v2 { padding: 100px 0; }
.features-v2__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) { .features-v2__grid { grid-template-columns: 1fr; } }

.feature-card-v2 {
  padding: 40px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.feature-card-v2:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature-card-v2__icon { font-size: 3rem; margin-bottom: 1.5rem; }
.feature-card-v2 h3 { margin-bottom: 1rem; }

/* Pricing V2 & Toggle */
.pricing-v2 { padding: 100px 0; background: var(--bg-sub); }
.pricing-v2 .container { max-width: 1300px; }

.toggle-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 3rem; }
.toggle-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.toggle-label.active { color: var(--primary); font-weight: 700; }
.toggle { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 99px; transition: .3s; }
.slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s; }
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }
.save-badge { background: #d1fae5; color: #065f46; font-size: 0.75rem; padding: 4px 12px; border-radius: 99px; font-weight: 700; margin-left: 8px; }

.pricing-v2__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .pricing-v2__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .pricing-v2__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.pricing-card-v2 {
  background: white;
  padding: 32px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.pricing-card-v2.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
  position: relative;
  transform: scale(1.02);
  z-index: 1;
}

@media (max-width: 1200px) {
  .pricing-card-v2.featured { transform: none; }
}

.pricing-card-v2.featured .badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.price { font-size: 2.25rem; font-weight: 800; margin: 0; line-height: 1; color: var(--text-main); }
.price strong { font-weight: 800; }
.price span.unit { font-size: 1rem; color: var(--text-muted); font-weight: 400; margin-left: 2px; }

.price-area { 
  min-height: 110px; 
  display: block;
  margin: 1.5rem 0;
  padding: 10px 0;
}

.price-note { font-size: 0.8125rem; color: var(--primary); font-weight: 600; margin-top: 12px; line-height: 1.2; display: block; }
.price-desc { font-size: 0.875rem; color: var(--text-muted); margin-top: 8px; }

.pricing-card-v2 ul { text-align: left; margin-bottom: 2rem; color: var(--text-muted); flex-grow: 1; }
.pricing-card-v2 li { margin-bottom: 0.75rem; font-size: 0.9375rem; display: flex; gap: 8px; }
.pricing-card-v2 .btn { margin-top: auto; }

/* Footer V2 */
.footer-v2 { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-v2__grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

@media (max-width: 768px) { .footer-v2__grid { flex-direction: column; gap: 40px; } }

.footer-v2__brand p { margin-top: 1rem; color: var(--text-muted); }

.footer-v2__links { display: flex; gap: 80px; }
.link-group { display: flex; flex-direction: column; gap: 12px; }
.link-group h4 { font-size: 0.875rem; color: var(--text-light); margin-bottom: 8px; }
.link-group a { font-size: 0.9375rem; color: var(--text-main); }
.link-group a:hover { color: var(--primary); }

.footer-v2__bottom { text-align: center; font-size: 0.875rem; color: var(--text-light); }

/* Animation Utils */
.chat-anim { opacity: 0; transform: translateY(10px); transition: all 0.5s ease-out; }
.chat-anim.visible { opacity: 1; transform: translateY(0); }

/* Legal Styles */
.legal-page { padding: 120px 0; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 2rem; border-bottom: 4px solid var(--primary); display: inline-block; padding-bottom: 8px; }
.legal-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.legal-content p { margin-bottom: 1.25rem; color: var(--text-main); }
.legal-content section { margin-bottom: 3rem; }
