@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2/dist/tailwind.min.css';

/* ベース設定 */
html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  color: #1f2937;
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background-color: #a5b4fc;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #818cf8;
}

/* コンポーネント */
.section-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: #312e81;
  display: inline-block;
  position: relative;
}

.nav-link {
  color: #1f2937;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #4338ca;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4338ca;
  transition: all 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  color: #1f2937;
  transition: all 0.3s;
  border-radius: 0.375rem;
}

.mobile-nav-link:hover {
  color: #4338ca;
  background-color: #f9fafb;
}

.btn-primary {
  background-color: #4338ca;
  color: white;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: #3730a3;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

/* カード */
.feature-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border-bottom: 4px solid #4338ca;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.achievement-card {
  background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.industry-tag {
  background-color: #eef2ff;
  color: #4338ca;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s;
}

.industry-tag:hover {
  background-color: #e0e7ff;
  transform: translateY(-2px);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.contact-info-card:hover {
  background-color: #f9fafb;
}

/* アニメーション */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}

.animate-scale {
  animation: scale 0.3s ease-in-out;
}

.animate-bounce-in {
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scale {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  70% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ユーティリティ */
.glass-effect {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.8);
}

.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #4338ca, #3b82f6);
}

.hover-lift {
  transition: transform 0.3s;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: box-shadow 0.3s;
}

.hover-glow:hover {
  box-shadow: 0 10px 15px -3px rgba(67, 56, 202, 0.1);
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.5);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .feature-card,
  .achievement-card {
    padding: 1.25rem;
  }
}

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