/* Base Styles */
:root {
  --primary: #ff7c36;
  --primary-hover: hsl(37, 91%, 57%);
  --primary-light: rgba(217, 119, 6, 0.1);
  --primary-foreground: #ffffff;
  --background: #fefcf9;
  --foreground: #3d3121;
  --card: #ffffff;
  --card-foreground: #3d3121;
  --muted: #f5f0e8;
  --muted-foreground: #6b5f4d;
  --border: #e8e0d5;
  --secondary: #f5f0e8;
  --secondary-foreground: #3d3121;
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}

.text-primary {
  color: var(--primary);
}

.hidden-mobile {
  display: none;
}

@media (min-width: 640px) {
  .hidden-mobile {
    display: inline;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: var(--border);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

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

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

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

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

.btn-full {
  width: 100%;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
}

.badge-secondary {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(254, 252, 249, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--primary-foreground);
  border-radius: 50%;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  width: 1.5rem;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.2s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.2s ease;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle.active .menu-icon {
  background-color: transparent;
}

.menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  padding: 1rem;
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.nav-mobile.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  
  .header-cta {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav-mobile {
    display: none !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-bg-circle-1 {
  width: 800px;
  height: 800px;
  background-color: var(--primary-light);
  top: -400px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-bg-circle-2 {
  width: 600px;
  height: 600px;
  background-color: rgba(251, 191, 36, 0.1);
  bottom: -300px;
  right: -200px;
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  margin-top: 1.5rem;
  text-wrap: balance;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 3rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-feature svg {
  color: var(--primary);
}

@media (min-width: 640px) {
  .hero {
    padding: 8rem 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* Section Base */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--card);
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-title {
  font-size: 1.875rem;
  margin-top: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .section {
    padding: 7rem 0;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

/* Features Section */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-light);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.feature-icon svg {
  color: var(--primary);
}

.feature-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  gap: 2rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 60px rgba(217, 119, 6, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1rem;
}

.pricing-name {
  font-size: 1.25rem;
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.pricing-price {
  text-align: center;
  margin: 1.5rem 0;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 700;
}

.price-period {
  color: var(--muted-foreground);
}

.pricing-target {
  margin-bottom: 1.5rem;
}

.target-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.target-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.target-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--muted-foreground);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-features svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.125rem;
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  
  .pricing-card-featured {
    transform: scale(1.05);
  }
}

/* Flow Section */
.flow-list {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.flow-list::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
  display: none;
}

.flow-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.flow-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.25);
}

.flow-content {
  flex: 1;
  padding-bottom: 1rem;
}

.flow-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.flow-step {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.flow-title {
  font-size: 1.25rem;
}

.flow-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .flow-list::before {
    display: block;
  }
  
  .flow-item {
    gap: 2rem;
  }
}

/* FAQ Section */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background-color: var(--primary);
}

.cta-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 1.875rem;
  color: var(--primary-foreground);
}

.cta-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.cta-price {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
  }
  
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Footer */
.footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  line-height: 1.7;
}

.footer-links {
  
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: auto;
  }
}
