* {
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --font-main: 'Outfit', 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Base Styles */
body {
  font-family: var(--font-main);
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

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

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 16px 0;
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

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

.logo img {
  height: 48px;
  width: auto;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.header-cta .h-cta-button {
  background: var(--primary-gradient);
  color: white;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.header-cta .h-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* FV Section */
.fv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: #f0f4ff;
  overflow: hidden;
}

.fv::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.fv-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.fv-content-left h1 {
  font-size: 4rem;
  margin-bottom: 24px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  /* Standard property */
  -webkit-text-fill-color: transparent;
}

.fv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.fv-content-left p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.8;
}

.fv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fv-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-xl));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Sections */
section {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-title .accent {
  color: var(--primary-color);
}

/* Cards & Components */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.premium-card {
  background: white;
  padding: 48px 40px;
  padding-top: 56px;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.premium-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.1);
}

.premium-card:hover::before {
  opacity: 1;
}

.premium-card .icon {
  width: 72px;
  height: 72px;
  background: #f0f7ff;
  color: var(--primary-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 32px;
  transition: all 0.3s;
}

.premium-card:hover .icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.premium-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.premium-card p {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.8;
  margin: 0;
}

/* AEO Section */
.aeo-section {
  background: var(--dark-color);
  color: white;
  border-radius: 40px;
  padding: 80px 64px;
  margin: 64px 0;
}

.aeo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.question-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 20px;
  border-left: 4px solid var(--primary-color);
}

.question-box h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s;
}

.faq-question:hover {
  background: #f1f5f9;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  padding: 0 24px;
}

.faq-answer.open {
  max-height: 500px;
  padding: 12px 24px 24px;
}

/* CTA */
.final-cta {
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  border-radius: 40px;
  padding: 80px 48px;
  margin-bottom: 80px;
}

.final-cta h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 16px 48px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles - Refined for Premium Feel */
@media (max-width: 968px) {
  section {
    padding: 80px 0;
  }

  .site-header {
    padding: 12px 0;
  }

  /* FV Section SP Fix */
  .fv {
    min-height: auto;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
    /* Double ensure containment */
    width: 100%;
  }

  .fv-content {
    display: block;
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
    margin: 0;
    padding: 0 20px;
  }

  .fv-content-left h1 {
    font-size: 1.7rem;
    line-height: 1.5;
    margin-bottom: 20px;
    overflow-wrap: break-word;
  }

  .fv-content-left p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 32px;
    padding: 0 4px;
  }

  .fv-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .fv-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 40px;
  }

  /* Prevent any global horizontal overflow */
  html,
  body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }

  .fv-actions {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .fv-actions .cta-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
  }

  /* Hide long text-label on mobile or simplify */
  .fv-text-label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }

  /* Card Grid SP */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .premium-card {
    padding: 30px 24px;
  }

  /* Final CTA & Form SP */
  .final-cta {
    padding: 60px 24px;
    border-radius: 24px;
    margin-bottom: 40px;
  }

  .final-cta h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }

  #form {
    padding: 32px 20px !important;
    border-radius: 16px;
    margin: 0 -10px;
    /* Slight escape for better look if needed, or keep 0 */
  }

  .smf-form-control {
    width: 100% !important;
  }

  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }

  /* Utility */
  .nav-menu {
    display: none;
  }
}

/* Small Device Optimization */
@media (max-width: 480px) {
  .fv-content-left h1 {
    font-size: 1.5rem;
    line-height: 1.55;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }
}