/* レスポンシブデザイン */
@media (max-width: 1200px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  /* 5列から3列への遷移をスムーズに */
  .process-category {
    min-height: 260px;
  }
  /* レスポンシブ改行用のクラス */
  .br-mobile {
    display: none;
  }

  .br-desktop {
    display: block;
  }
}

@media (max-width: 900px) {
  .br-mobile {
    display: block;
  }

  .br-desktop {
    display: none;
  }

  .process-grid {
    /* 3列レイアウトを維持して中画面での崩れを防ぐ */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }

  /* フォントサイズの段階的調整 */
  .hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
    min-height: 70vh;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

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

  .hero-logo img {
    max-width: 210px;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .service-overview{
    padding: 0 1rem 4rem;
  }
  .ai-process,
  .benefits,
  .faq,
  .cta-section {
    padding: 4rem 1rem;
  }

  .service-features,
  .use-case-grid,
  .differentiation-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info {
    padding-left: 0;
  }

  .contact-section {
    padding: 4rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .footer-copyright {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .cta-button.large {
    width: 100%;
    max-width: 300px;
  }

  .footer-contact-button{
    text-align: center;
  }
}

@media (max-width: 480px) {
  .br-mobile {
    display: none;
  }

  .br-desktop {
    display: block;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
  }

  .hero-subtitle {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* モバイルでのプロセスカード最適化 */
  .process-category {
    min-height: auto;
    padding: 1.2rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .ai-tools-section,
  .feature-card,
  .use-cases,
  .differentiation {
    padding: 1.5rem;
  }
}
