/* レスポンシブ対応の修正 */

/* Campaign Grid Layout */
.campaign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Campaign VTuber Styling */
.campaign-vtuber {
  position: relative;
  background: linear-gradient(135deg, rgba(255,20,147,0.1) 0%, rgba(148,0,211,0.1) 100%);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #FF1493 0%, #9400D3 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.campaign-badge-vtuber {
  background: linear-gradient(135deg, #FF1493 0%, #9400D3 100%);
}

.campaign-title-vtuber {
  background: linear-gradient(135deg, #FF1493 0%, #9400D3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.campaign-vtuber-price {
  text-align: center;
  margin: 30px 0;
}

.campaign-vtuber-price-main {
  font-size: 3.5rem;
  font-weight: 900;
  color: #FF1493;
  margin-bottom: 10px;
}

.campaign-vtuber-price-tax {
  font-size: 1.4rem;
  color: #666;
}

.campaign-vtuber-feature {
  font-size: 1.6rem;
  color: #9400D3;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

.campaign-cta-vtuber {
  background: linear-gradient(135deg, #FF1493 0%, #9400D3 100%);
}

.campaign-price-tax {
  font-size: 1.4rem;
  color: #666;
  margin-top: 5px;
}

/* Pricing Cards Responsive */
.pricing-cards-responsive {
  max-width: 1000px;
  margin: 0 auto;
}

/* Pricing Card Styles */
.pricing-card-standard {
  position: relative;
}

.pricing-card-rich {
  border: 3px solid #FFD700;
  position: relative;
}

.pricing-card-title {
  font-size: 2.8rem;
  margin-bottom: 24px;
}

.pricing-card-title-gradient {
  background: linear-gradient(135deg, #D4A574 0%, #E8B4B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-tax-label {
  font-size: 2.4rem;
  margin: -10px 0 20px;
  color: #666;
}

.pricing-description {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  font-size: 1.6rem;
  margin-bottom: 40px;
}

.pricing-btn {
  width: 100%;
  font-size: 1.8rem;
  padding: 16px;
}

.pricing-btn-gradient {
  background: linear-gradient(135deg, #D4A574 0%, #E8B4B8 100%);
  border: none;
}

.pricing-note {
  text-align: center;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-top: 40px;
}

/* Mobile Menu Button - Larger Tap Area */
.mobile-menu-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo Subtitle Responsive */
@media screen and (max-width: 480px) {
  .logo-subtitle {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
}

/* Campaign Responsive */
@media screen and (max-width: 768px) {
  .campaign-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .campaign-vtuber {
    padding: 20px;
  }
  
  .campaign-vtuber-price-main {
    font-size: 2.8rem;
  }
}

/* Pricing Table Responsive */
@media screen and (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
  
  .pricing-card-title {
    font-size: 2.2rem !important;
  }
  
  .pricing-tax-label {
    font-size: 1.8rem;
  }
  
  .pricing-description {
    font-size: 1.4rem;
  }
  
  .pricing-features {
    font-size: 1.4rem !important;
  }
  
  .pricing-btn {
    font-size: 1.6rem;
  }
}

/* FAQ Categories Scroll Indicator */
.faq-categories {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #666 #f1f1f1;
}

.faq-categories::-webkit-scrollbar {
  height: 6px;
}

.faq-categories::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.faq-categories::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 3px;
}

/* Step Cards Mobile Layout */
@media screen and (max-width: 768px) {
  .steps-container {
    flex-direction: column;
  }
  
  .step-card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
  }
}

/* Hero Image Object Position Mobile */
@media screen and (max-width: 768px) {
  .hero-image {
    object-position: center center;
  }
}

/* Portfolio Images Mobile Height */
@media screen and (max-width: 768px) {
  .portfolio-image {
    height: 180px;
  }
}

/* Improve Text Readability Mobile */
@media screen and (max-width: 768px) {
  p {
    line-height: 1.8;
  }
  
  .section {
    padding: 40px 20px;
  }
  
  .container {
    padding: 0 20px;
  }
}

/* Price Comparison Table Mobile */
@media screen and (max-width: 768px) {
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
  }
  
  .comparison-table {
    min-width: 600px;
  }
  
  .comparison-table-wrapper::after {
    content: '← スクロールできます →';
    display: block;
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: 10px;
  }
}

/* Header Scroll Behavior Fix */
.header-scrolled {
  transition: all 0.3s ease;
}

/* Touch-friendly Button Sizes */
@media screen and (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: 12px 24px;
  }
  
  .accordion-header {
    min-height: 56px;
    padding: 16px 20px;
  }
  
  .category-btn {
    min-height: 44px;
    padding: 10px 20px;
  }
}

/* Fix Horizontal Scroll Issues */
@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .section {
    overflow-x: hidden;
  }
}

/* Header Logo Responsive Fixes */
@media screen and (max-width: 768px) {
  .header-container {
    padding: 0 16px;
    gap: 16px;
  }
  
  .logo {
    flex: 1;
    min-width: 0;
  }
  
  .logo > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  
  .logo span:first-child {
    font-size: 2.4rem !important;
  }
  
  .logo span:last-child {
    font-size: 0.9rem !important;
    line-height: 1.2;
    white-space: normal;
    word-break: keep-all;
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .logo span:first-child {
    font-size: 2rem !important;
  }
  
  .logo span:last-child {
    font-size: 0.8rem !important;
    display: none; /* 極小画面では非表示 */
  }
}

/* Campaign Banner Mobile Fixes */
@media screen and (max-width: 768px) {
  .campaign-banner {
    padding: 20px 16px;
  }
  
  .campaign-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .campaign-left,
  .campaign-right {
    width: 100% !important;
  }
  
  .campaign-prices {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .campaign-price-item {
    text-align: center;
  }
  
  .campaign-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
}

/* AI Section Mobile Fixes */
@media screen and (max-width: 768px) {
  .ai-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .ai-text {
    order: 1;
  }
  
  .ai-image {
    order: 2;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .ai-text h2 {
    font-size: 2.4rem;
    line-height: 1.3;
  }
  
  .ai-text p {
    font-size: 1.6rem !important;
    line-height: 1.7 !important;
  }
  
  .ai-features {
    margin-top: 20px;
  }
  
  .ai-feature {
    font-size: 1.4rem;
    padding: 8px 0;
  }
}

/* Before After Section Mobile Fixes */
@media screen and (max-width: 768px) {
  .before-after-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .before-box,
  .after-box {
    width: 100%;
    padding: 24px;
  }
  
  .before-box h3,
  .after-box h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
  }
  
  .before-box ul,
  .after-box ul {
    font-size: 1.4rem;
  }
}

/* Pricing Cards Enhanced Mobile Fixes */
@media screen and (max-width: 768px) {
  .pricing-cards-responsive {
    padding: 0;
  }
  
  .pricing-card {
    margin-bottom: 20px;
    padding: 24px 20px;
  }
  
  .pricing-campaign-badge {
    font-size: 1.2rem;
    padding: 4px 12px;
    right: 16px;
    top: 16px;
  }
  
  .pricing-card-title {
    font-size: 2rem !important;
    margin-bottom: 16px;
  }
  
  .pricing-campaign-price {
    margin-bottom: 8px;
  }
  
  .pricing-original-price {
    font-size: 1.6rem;
  }
  
  .pricing-sale-price {
    font-size: 2.4rem;
  }
  
  .pricing-tax-label {
    font-size: 1.2rem;
  }
  
  .pricing-description {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  .pricing-features {
    font-size: 1.3rem !important;
    margin-bottom: 24px;
  }
  
  .pricing-features li {
    padding: 6px 0;
  }
}

/* Hero Section Mobile Fixes */
@media screen and (max-width: 768px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-content {
    padding: 40px 20px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  
  .hero-title br {
    display: none;
  }
  
  .text-gradient {
    display: block;
    margin-top: 8px;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  
  .hero-subtitle br {
    display: none;
  }
  
  .hero-note {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .hero-badges {
    margin-bottom: 24px;
  }
  
  .badge {
    font-size: 1.1rem;
    padding: 4px 10px;
  }

  /* Hero Content Mobile - Ensure visibility even if GSAP fails */
  .hero-title,
  .hero-subtitle,
  .hero-note,
  .hero-badges,
  .hero-badges .badge {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* Hero CTA Button Mobile */
  .hero .btn-animated {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1.5rem;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .hero .btn-animated .btn-text {
    font-size: 1.5rem;
  }

  .hero .btn-animated .btn-arrow {
    font-size: 1.5rem;
    margin-left: 6px;
  }
}

/* Section Padding Mobile Fixes */
@media screen and (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  
  .section-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
  }
}

/* Portfolio Grid Mobile Fixes */
@media screen and (max-width: 768px) {
  .portfolio-grid {
    gap: 20px;
  }
  
  .portfolio-item {
    margin-bottom: 0;
  }
  
  .portfolio-content {
    padding: 16px;
  }
  
  .portfolio-content h3 {
    font-size: 1.6rem;
  }
  
  .portfolio-content p {
    font-size: 1.3rem;
  }
}

/* Footer Mobile Fixes */
@media screen and (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-content {
    gap: 30px;
  }
  
  .footer-section h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  
  .footer-section p,
  .footer-link {
    font-size: 1.3rem;
  }
  
  .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
  }
  
  .footer-bottom p {
    font-size: 1.2rem;
  }
}

/* Tech Icons Mobile Layout Fix */
@media screen and (max-width: 480px) {
  .tech-icons {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .tech-icon {
    font-size: 1.2rem;
    padding: 16px 8px;
    min-height: 80px;
  }
}