/* Refined color palette with only 4 colors total */
:root {
  --primary-color: #1ca2e8;
  --text-dark: #2a3b4c;
  --text-light: #6b7280;
  --background-light: #ffffff;
  --accent-light: #f8fafc;
}

/* Enhanced typography with better font weights and spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background: linear-gradient(135deg, var(--background-light) 0%, var(--accent-light) 100%);
  color: var(--text-dark);
  line-height: 1.7;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

a.anchor{
    display: block;
    padding-top: 100px;
    margin-top: -100px;
}

br {
  display: inline; 
}

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

/* Enhanced hero section with better visual hierarchy */
.hero-section {
  padding: 8rem 0 6rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

.content-center {
  max-width: 800px;
  margin: 0 auto;
}

.title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 4rem;
}

/* Sophisticated hero cards with enhanced hover effects */
.hero-card-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.hero-card {
  background: var(--background-light);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.6s;
}

.hero-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
  color: var(--primary-color);
}

.hero-card:hover::before {
  left: 100%;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  color: var(--primary-color);
}

.hero-icon i {
  font-size: 2rem !important;
  color: inherit;
  line-height: 1;
}

.hero-icon i::before {
  font-size: 2rem !important;
  color: var(--primary-color) !important;
  font-weight: 900; /* Font Awesomeのsolid weightを確保 */
}

.hero-card:hover .hero-icon i::before {
  color: var(--primary-color) !important;
}


/* Refined section styling with better spacing */
.section {
  padding: 6rem 0;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  font-size: clamp(2rem, 1.818rem + 0.91vw, 2.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
  text-align: center;
  line-height: 1.3;
}

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

.body-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: center;
}

.text-justify {
    text-align: justify;
}

.body-text.bold {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.highlight-text {
  font-weight: 600;
  color: var(--primary-color);
}

.mb-12 {
  margin-bottom: 4rem;
}

/* Enhanced case cards with sophisticated design */
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.case-card {
  background: var(--background-light);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), #49b5ed);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.12);
}

.case-card:hover::before {
  transform: scaleX(1);
}

/*case01-04のバッジ*/
.case-badge {
  background: linear-gradient(135deg, var(--primary-color), #49b5ed);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
}

.case-card-title {
  font-size: clamp(1rem, 0.932rem + 0.34vw, 1.188rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

.case-card-subtitle {
  font-size: clamp(1.5rem, 1.409rem + 0.45vw, 1.75rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.scenario-list {
  background: var(--accent-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.scenario-list h5 {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.scenario-list ul {
  list-style: none;
  padding: 0;
}

.scenario-list li {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.scenario-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Enhanced feature grid with icons and better layout */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--background-light);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.08);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

.feature-card-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-card-text {
  color: var(--text-light);
  line-height: 1.7;
  text-align: justify;
}

/* Refined CTA section with better button design */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--background-light) 100%);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.cta-button {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

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

.cta-button.primary:hover {
  transform: translateY(-2px);
  opacity:0.8;
}

.cta-button.secondary {
  background: var(--background-light);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.cta-button.secondary:hover {
  transform: translateY(-2px);
  opacity:0.8;
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

br {
    display: none;
}

  .hero-section {
    padding: 4rem 0 3rem;
  }

  .section {
    padding: 4rem 0;
  }

  .case-card-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    padding: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
