/* ===== storyview.css - Responsive ===== */

*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: #121212;
  color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0 0 60px;
}

h1 {
  text-align: center;
  margin: 0 0 20px;
  padding: 20px 10px 0;
  font-size: clamp(1.6em, 6vw, 2.5em);
  color: #f05454;
}

#prol {
  text-align: center;
}

/* --- ナビゲーション --- */
.navber {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  background: #1a0000;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dropmenu {
  list-style-type: none;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 0;
}

.dropmenu li {
  background: #923232;
  text-align: center;
  box-shadow: 1px 1px 1px rgba(53,6,6,0.7) inset,
              -1px -1px 1px rgba(143,22,22,0.7) inset;
  width: 25%;
  margin: 0;
  padding: 0;
  position: relative;
}

.dropmenu li a {
  margin: 0;
  padding: 10px 4px;
  display: block;
  color: #000;
  font-weight: bold;
  font-size: clamp(0.7em, 2.5vw, 1.05em);
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.dropmenu li a:hover {
  background: #e01414;
}

/* --- ストーリーリスト（season hub用・横並びカード） --- */
.story-container {
  display: flex;
  flex-direction: column;
  width: min(80%, 900px);
  gap: 24px;
  margin: 24px auto;
  padding: 0 16px;
}

.story-card {
  display: flex;
  flex-direction: row;
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255,0,0,0.2);
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255,0,0,0.4);
}

.story-card img {
  width: 220px;
  flex-shrink: 0;
  object-fit: cover;
}

.story-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-content h2 {
  margin: 0 0 10px;
  font-size: clamp(1.1em, 3.5vw, 1.6em);
  color: #f05454;
}

.story-content p {
  font-size: clamp(0.85em, 2.3vw, 1em);
  line-height: 1.7;
  color: #ccc;
  text-align: left;
}

.story-content .read-more {
  margin-top: 14px;
  display: inline-block;
  background-color: #f05454;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
  width: fit-content;
  font-size: 0.9em;
}

.story-content .read-more:hover {
  background-color: #ff7676;
}

/* --- 本文ページ用 --- */
.chapter-title {
  font-size: clamp(1.3em, 5vw, 2em);
  color: #f05454;
  text-align: center;
  margin: 0 0 8px;
  padding: 0;
}

.story-body {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 32px 40px;
  line-height: 2.2;
  font-size: clamp(0.95em, 2.5vw, 1.1em);
  color: #ddd;
}

.story-body p {
  text-align: left;
  margin: 0 0 1.4em;
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* 前後ナビ */
.story-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.story-nav a {
  color: #f05454;
  text-decoration: none;
  font-size: clamp(0.85em, 2.5vw, 1em);
  font-weight: bold;
  padding: 8px 14px;
  border: 1px solid #923232;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.story-nav a:hover {
  background: #923232;
  color: #fff;
}

/* ===== タブレット (≤768px) ===== */
@media (max-width: 768px) {
  .story-container {
    width: 95%;
    padding: 0 10px;
    gap: 16px;
  }

  .story-card {
    flex-direction: column;
  }

  .story-card img {
    width: 100%;
    height: 200px;
  }

  .story-content {
    padding: 14px;
  }

  .story-body {
    padding: 20px 22px;
  }
}

/* ===== 極小 (≤380px) ===== */
@media (max-width: 380px) {
  .story-card img {
    height: 150px;
  }

  .story-content {
    padding: 10px;
  }

  .story-body {
    padding: 16px;
  }

  .story-nav a {
    padding: 6px 10px;
    font-size: 0.8em;
  }
}