/* ============================================
   CTA & Footer - シンプル版（バグ修正済み）
   
   既存デザインを維持しながら、シンプルで確実な構成に
   ============================================ */

/* ============================================
   ① CTA セクション
   ============================================ */

.cta-section {
  background: linear-gradient(180deg, #171b22 0%, #050607 100%);
  padding: 80px 20px;
  width: 100%;
}

.cta-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 24px 0;
  padding: 0;
}

.cta-lead {
  color: #e5e7eb;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 40px auto;
  padding: 0;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  padding: 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 200px;
}

.btn-primary {
  background: #ff6b1a;
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background: #e85d15;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 32px auto 0 auto;
  padding: 0;
}

.cta-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4cad8;
}

.cta-meta-text {
  text-align: left;
}

.cta-meta-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.cta-meta-sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.3;
}

/* ============================================
   ② お問い合わせ CTA セクション
   ============================================ */

.contact-section {
  background: #0c1320;
  padding: 80px 20px;
  width: 100%;
}

.contact-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px 0;
  padding: 0;
}

.contact-lead {
  color: #e0e4f0;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 40px auto;
  padding: 0;
}

.contact-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 0 auto 48px auto;
  padding: 0;
}

.contact-feature {
  flex: 0 0 auto;
  width: 160px;
  text-align: center;
}

.contact-feature-icon {
  width: 56px;
  height: 56px;
  background: #2a3140;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: #ffffff;
}

.contact-feature-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.contact-feature-sub {
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.3;
}

.contact-cta-box {
  background: #1b2230;
  border-radius: 20px;
  padding: 28px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-contact:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ③ フッターセクション
   ============================================ */

.site-footer {
  background: #050608;
  padding: 40px 20px 32px 20px;
  width: 100%;
  color: #e5e7eb;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #272b35;
}

.footer-brand {
  flex: 0 0 auto;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand-symbol,
.footer-logo-circle {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-name {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.footer-brand-sub {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

.footer-brand-tagline {
  color: #9ca3af;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  padding-left: 52px;
}

.footer-columns,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.footer-column {
  flex: 0 0 auto;
  min-width: 120px;
}

.footer-heading {
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-nav-link {
  color: #d1d5db;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.footer-links a:hover,
.footer-nav-link:hover {
  opacity: 0.7;
  color: #ffffff;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #272b35;
}

.footer-copy,
.footer-copyright {
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   レスポンシブ：タブレット
   ============================================ */
@media (max-width: 1023px) and (min-width: 768px) {
  .cta-section,
  .contact-section {
    padding: 64px 20px;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-columns,
  .footer-nav {
    justify-content: flex-start;
    width: 100%;
  }
}

/* ============================================
   レスポンシブ：スマホ
   ============================================ */
@media (max-width: 767px) {
  .cta-section,
  .contact-section {
    padding: 56px 16px;
  }
  
  .cta-title {
    margin-bottom: 20px;
  }
  
  .cta-lead {
    margin-bottom: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
    max-width: 340px;
    margin: 0 auto;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-width: auto;
  }
  
  .cta-meta {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  
  .cta-meta-item {
    justify-content: center;
  }
  
  .contact-features {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  .contact-feature {
    width: 100%;
    max-width: 200px;
  }
  
  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
  
  .footer-brand-tagline {
    padding-left: 0;
    margin-top: 8px;
  }
  
  .footer-columns,
  .footer-nav {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  
  .footer-column {
    width: 100%;
  }
}

/* ============================================
   アクセシビリティ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus,
button:focus {
  outline: 2px solid #ff6b1a;
  outline-offset: 2px;
}

/* SVGアイコンのサイズ固定 */
.btn-primary svg,
.btn-secondary svg,
.btn-contact svg,
.cta-meta-item svg,
.contact-feature-icon svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.contact-feature-icon svg {
  width: 28px;
  height: 28px;
}
