/* Novel ページ専用CSS */

/* ページヘッダー */
.page-header {
  height: 40vh;
  min-height: 350px;
  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);
  }
}

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

.novel-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  max-width: 1400px;
  margin: 0 auto;
  height: 60vh;
  gap: 0;
}

/* 左側：小説タイトルリスト */
.novel-list {
  background: rgba(0, 0, 0, 0.6);
  border-right: 2px solid rgba(107, 154, 184, 0.3);
  padding: 40px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.novel-list::-webkit-scrollbar {
  width: 8px;
}

.novel-list::-webkit-scrollbar-track {
  background: rgba(107, 154, 184, 0.1);
}

.novel-list::-webkit-scrollbar-thumb {
  background: rgba(107, 154, 184, 0.5);
  border-radius: 4px;
}

.novel-list::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 154, 184, 0.7);
}

/* 小説タイトルアイテム */
.novel-item {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-left: 3px solid transparent;
  display: block;
  line-height: 1.6;
}

.novel-item:hover {
  background: rgba(107, 154, 184, 0.2);
  color: white;
  border-left-color: rgba(107, 154, 184, 0.6);
  padding-left: 20px;
}

.novel-item.active {
  background: rgba(107, 154, 184, 0.35);
  color: white;
  border-left-color: #6b9ab8;
  font-weight: 500;
}

/* シリーズラベル */
.novel-series-label {
  padding: 16px 12px;
  color: #6b9ab8;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(107, 154, 184, 0.2);
  display: block;
}

.novel-series-label:first-child {
  margin-top: 0;
}

/* シリーズ終了ライン */
.novel-series-end {
  height: 0;
  border-bottom: 1px solid rgba(107, 154, 184, 0.2);
  margin: 20px 0;
  display: block;
}

/* シリーズ内アイテム（インデント） */
.novel-series-item {
  padding-left: 32px;
}

/* 右側：小説の内容表示エリア */
.novel-content {
  background: linear-gradient(135deg, #0a1929 0%, #000 100%);
  padding: 60px 50px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.novel-content::-webkit-scrollbar {
  width: 10px;
}

.novel-content::-webkit-scrollbar-track {
  background: rgba(107, 154, 184, 0.1);
}

.novel-content::-webkit-scrollbar-thumb {
  background: rgba(107, 154, 184, 0.5);
  border-radius: 5px;
}

.novel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 154, 184, 0.7);
}

/* 小説コンテンツ */
.novel-display {
  text-align: center;
  color: white;
  max-width: 700px;
  animation: fadeIn 0.4s ease;
}

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

.novel-display-title {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  color: #6b9ab8;
}

.novel-display-content {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.03em;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.novel-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

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

.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) {
  .novel-container {
    grid-template-columns: 250px 1fr;
  }
  
  .novel-list {
    padding: 30px 15px;
  }
  
  .novel-content {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 3rem;
    letter-spacing: 0.3em;
  }
  
  .header-intro {
    font-size: 1rem;
  }
  
  .page-header {
    height: 45vh;
    min-height: 350px;
    margin-top: 100px;
  }
  
  .novel-container {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  
  .novel-list {
    border-right: none;
    border-bottom: 2px solid rgba(107, 154, 184, 0.3);
    padding: 20px;
    max-height: 250px;
    margin-bottom: 20px;
  }
  
  .novel-content {
    padding: 30px 20px;
    min-height: 400px;
  }
  
  .novel-display-title {
    font-size: 1.5rem;
  }
  
  .novel-display-content {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .page-header {
    height: 30vh;
    min-height: 240px;
  }
  
  .page-title {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
  }
  
  .novel-list {
    max-height: 200px;
  }
  
  .novel-item {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  
  .novel-content {
    padding: 20px 15px;
  }
  
  .novel-display-content {
    font-size: 0.9rem;
  }
}