/* Story ハブページ専用CSS */

/* ページヘッダー */
.page-header {
  height: 50vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: linear-gradient(135deg, #2c5f7d 0%, #4a7c9e 30%, #6b9ab8 60%, #5a8aa8 100%);
  z-index: 1;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
}

.page-header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  animation: fadeInUp 1.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-title {
  font-size: 4.5rem;
  font-weight: 200;
  letter-spacing: 0.4em;
  margin: 0;
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.title-line {
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, white, transparent);
  margin: 0 auto;
  animation: expandLine 1.5s ease;
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 150px; opacity: 1; }
}

.header-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  animation: fadeInUp 1.4s ease;
}

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

/* メインコンテンツセクション */
.story-content-section {
  padding: 80px 50px;
  position: relative;
  background: linear-gradient(180deg, #000 0%, #0a1929 50%, #000 100%);
  min-height: 60vh;
}

.story-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ハブページ説明 */
.story-intro {
  text-align: center;
  margin-bottom: 70px;
  animation: fadeInUp 1s ease;
}

.story-intro-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* カテゴリーグリッド */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

/* カテゴリーカード */
.story-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: cardSlideIn 0.6s ease forwards;
}

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

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; }
.story-card:nth-child(4) { animation-delay: 0.4s; }

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(107, 154, 184, 0.3), transparent);
  transition: left 0.6s ease;
}

.story-card:hover::before {
  left: 100%;
}

.story-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(107, 154, 184, 0.5);
  box-shadow: 0 12px 40px rgba(74, 124, 158, 0.3);
}

/* カード内容 */
.story-card-content {
  position: relative;
  z-index: 1;
}

.story-card-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
}

.story-card-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: white;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.story-card-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  line-height: 1.6;
}

.story-card-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* カードリンク */
.story-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b9ab8;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.story-card-link:hover {
  color: white;
  border-bottom-color: #6b9ab8;
  gap: 12px;
}

.story-card-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.story-card-link:hover .story-card-arrow {
  transform: translateX(4px);
}

/* フッター */
.back-link {
  text-align: center;
  margin-top: 70px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  padding: 16px 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  transition: all 0.4s ease;
  font-weight: 300;
  background: rgba(255, 255, 255, 0.05);
}

.back-button:hover {
  background: rgba(107, 154, 184, 0.25);
  border-color: rgba(107, 154, 184, 0.6);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 154, 184, 0.35);
}

.back-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.back-button:hover .back-arrow {
  transform: translateX(-5px);
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 3rem;
    letter-spacing: 0.3em;
  }
  
  .header-intro {
    font-size: 1rem;
  }
  
  .story-content-section {
    padding: 70px 20px;
  }
  
  .story-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .story-card {
    padding: 30px 24px;
  }
  
  .story-card-icon {
    font-size: 3rem;
  }
  
  .story-card-title {
    font-size: 1.4rem;
  }
  
  .story-intro-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    height: 40vh;
    min-height: 300px;
  }
  
  .page-title {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
  }
  
  .story-card {
    padding: 24px 18px;
  }
  
  .story-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .story-card-title {
    font-size: 1.2rem;
  }
  
  .story-card-subtitle {
    font-size: 0.9rem;
  }
  
  .story-card-description {
    font-size: 0.8rem;
  }
}