/* Responsive Styles */

/* Desktop - Mobile menu button hidden by default */
.mobile-menu-btn {
  display: none;
}

/* Tablet (1023px and below) */
@media screen and (max-width: 1023px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  .hero-title {
    font-size: 4.8rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 60px auto 0;
  }
  
  /* Override inline styles for mobile */
  .pricing-cards-mobile-responsive {
    grid-template-columns: 1fr !important;
  }

  .pricing-card.featured {
    transform: none;
  }
}

/* Mobile (767px and below) */
@media screen and (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  h3 {
    font-size: 2rem;
  }

  /* Header */
  .header {
    height: 60px;
  }

  .nav {
    display: none;
  }
  
  /* Hero adjustments for mobile */
  .hero {
    min-height: 400px;
    height: calc(100vh - 60px);
  }
  
  .hero-slideshow img {
    object-position: center center;
  }

  .mobile-menu-btn {
    display: block;
    font-size: 2.4rem;
    color: var(--text-color);
  }

  /* Mobile Navigation */
  .mobile-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .mobile-nav.active {
    transform: translateX(0);
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
  }

  .mobile-nav-link {
    padding: 16px 0;
    font-size: 1.8rem;
    border-bottom: 1px solid #E5E7EB;
  }

  /* Hero */
  .hero {
    margin-top: 60px;
    height: calc(100vh - 60px);
    min-height: 450px;
    max-height: 700px;
  }

  .hero-title {
    font-size: 3.6rem;
  }

  .hero-subtitle {
    font-size: 1.8rem;
  }

  /* Hero Slideshow Mobile Optimization */
  .hero-slideshow img {
    object-position: center center;
    /* モバイルでは中央寄せの方が見やすい */
  }

  .slideshow-indicators {
    bottom: 20px;
  }

  .slideshow-indicators .indicator {
    width: 10px;
    height: 10px;
  }

  /* Section */
  .section {
    padding: 60px 0;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Buttons */
  .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero CTA Button - override width: 100% */
  .hero .btn,
  .hero .btn-animated {
    width: auto;
    display: inline-flex;
  }

  /* Pricing */
  .pricing-price {
    font-size: 3.6rem;
  }

  /* Utility */
  .container {
    padding: 0 16px;
  }
  
  /* Campaign Banner Mobile */
  .campaign-banner {
    padding: 20px;
  }
  
  .campaign-content h3 {
    font-size: 2rem;
  }
  
  .campaign-price {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .campaign-original-price {
    font-size: 2rem;
  }
  
  .campaign-sale-price {
    font-size: 3.2rem;
  }
  
  /* Hero Badges Mobile */
  .hero-badges {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .hero-badge {
    font-size: 1.2rem;
    padding: 4px 12px;
  }
  
  /* Tech Icons Mobile */
  .tech-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .tech-icon {
    font-size: 1.4rem;
  }
  
  /* AI Section Mobile */
  .ai-development {
    flex-direction: column;
    gap: 30px;
  }
  
  .ai-development-content,
  .ai-development-image {
    width: 100%;
  }
  
  /* Before After Mobile */
  .before-after-container {
    flex-direction: column;
    gap: 30px;
  }
  
  .before-item,
  .after-item {
    width: 100%;
  }
  
  /* Pricing Campaign Price Mobile */
  .pricing-campaign-price {
    flex-direction: column;
    gap: 5px;
  }
  
  .pricing-original-price {
    font-size: 1.8rem;
  }
  
  .pricing-sale-price {
    font-size: 2.8rem;
  }
  
  /* Pricing Card Title Mobile */
  .pricing-card h3 {
    font-size: 2.2rem !important;
  }
  
  /* Pricing Features Mobile */
  .pricing-features {
    font-size: 1.4rem !important;
  }
  
  /* Mobile Font Size Adjustments */
  .section-title {
    font-size: 2.4rem;
  }
  
  .section-subtitle {
    font-size: 1.6rem;
  }
}

/* Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 2.4rem;
  }
  
  /* Campaign Banner Small Mobile */
  .campaign-banner {
    padding: 15px;
  }
  
  .campaign-content h3 {
    font-size: 1.8rem;
  }
  
  .campaign-sale-price {
    font-size: 2.8rem;
  }
  
  /* Pricing Cards Small Mobile */
  .pricing-card {
    padding: 24px 16px;
  }
  
  .pricing-card h3 {
    font-size: 2rem !important;
  }
  
  .pricing-sale-price {
    font-size: 2.4rem;
  }
  
  /* Tech Icons Small Mobile */
  .tech-icons {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* Hero Badges Small Mobile */
  .hero-badge {
    font-size: 1.1rem;
    padding: 3px 10px;
  }
  
  /* Section Title Small Mobile */
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Button Small Mobile */
  .btn {
    font-size: 1.4rem;
    padding: 12px 20px;
  }
  
  /* Logo Text Small Mobile */
  .logo span:first-child {
    font-size: 2.2rem !important;
  }
  
  .logo span:last-child {
    display: none;
  }
}

/* Desktop Menu Toggle - moved to top of file */

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap targets for touch devices */
  .btn {
    min-height: 44px;
  }
  
  .mobile-nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  /* Remove hover effects on touch devices */
  .portfolio-item:hover {
    transform: none;
  }
  
  .feature-card:hover {
    transform: none;
  }
}

/* Landscape Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 350px;
    height: auto;
  }
  
  .hero-content {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* iPad Specific */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .pricing-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .tech-icons {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn,
  .mobile-nav {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .section {
    page-break-inside: avoid;
  }
}