/* ==========================================================================
   Works-styles.css — 実績ページ専用スタイル
   前提：base.css、components.css、animations.cssが読み込まれている
   ========================================================================== */

/* ========== ページヒーロー（実績ページ専用） ========== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6, #f97316);
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* 中央の光る効果 */
.page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  border-radius: 50%;
  animation: centralGlow 8s ease-in-out infinite;
  z-index: 1;
}

/* SVGドットパターンアニメーション */
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.4"/><circle cx="80" cy="80" r="2.5" fill="%23ffffff" opacity="0.3"/><circle cx="40" cy="60" r="1.5" fill="%23ffffff" opacity="0.5"/><circle cx="70" cy="30" r="2" fill="%23ffffff" opacity="0.4"/><circle cx="15" cy="75" r="1.8" fill="%23ffffff" opacity="0.3"/></svg>')
    repeat;
  animation: ideasToLight 12s ease-in-out infinite;
  z-index: 1;
}

/* フローティングアイコン */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid rgba(29, 78, 216, 0.1);
  opacity: 0;
  animation: floatCircleEnhanced 12s infinite ease-in-out;
}

.circle1 {
  width: 35px;
  height: 35px;
  top: 15%;
  left: 25%;
  animation-delay: 0s;
}

.circle2 {
  width: 20px;
  height: 20px;
  bottom: 20%;
  right: 35%;
  animation-delay: 2s;
}

.circle3 {
  width: 28px;
  height: 28px;
  top: 55%;
  left: 75%;
  animation-delay: 4s;
}

.circle4 {
  width: 32px;
  height: 32px;
  top: 35%;
  right: 20%;
  animation-delay: 6s;
}

.circle5 {
  width: 18px;
  height: 18px;
  bottom: 45%;
  left: 15%;
  animation-delay: 8s;
}

@keyframes floatCircleEnhanced {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-25px) rotate(180deg) scale(1.2);
    opacity: 0.8;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(0) rotate(360deg) scale(1);
    opacity: 0;
  }
}

.page-hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.page-subtitle {
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 0;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* ========== 実績セクション ========== */
.works {
  padding: 5rem 0;
  background: var(--background-gray-50);
}

.works-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: 3rem;
  font-weight: 400;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ========== 実績カード ========== */
.work-card {
  background: var(--background-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.work-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-card:hover .work-image {
  transform: scale(1.05);
}

.work-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(29, 78, 216, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.work-content {
  padding: 1.5rem;
}

.work-content h3 {
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.work-client {
  color: var(--primary-blue);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.work-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: var(--font-size-base);
}

.work-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-item {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: var(--primary-blue);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 1px solid rgba(29, 78, 216, 0.1);
}

/* ========== レスポンシブ（実績ページ専用） ========== */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

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

  .work-card {
    margin: 0 1rem;
  }

  .works-subtitle {
    font-size: var(--font-size-base);
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .page-hero-content {
    padding: 2rem 1rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .works-grid {
    gap: 1rem;
  }
}