*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Noto Serif JP', serif;
  background: #0a0a0c;
  color: #eee;
  font-size: 18px;
  line-height: 1.9;
}
body {
  /* フェードイン効果 */
  opacity: 0;
  animation: bodyFadeIn 2s ease 0.2s forwards;
}
@keyframes bodyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero {
  position: relative;
  height: 120vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20,18,24,0.5) 55%, rgba(80,10,20,0.6) 60%);
  z-index: 1;
}
.hero__title {
  position: relative;
  z-index: 2;
  font-family: 'Kaisei Tokumin', cursive;
  font-size: clamp(2.0rem, 4vw, 5.2rem);
  letter-spacing: .14em;
  text-shadow: 2px 2px 14px rgba(150,120,120,1);
  color: #fff;
  text-align: center;
  margin-bottom: 0.5em;
  animation: heroTextFadeIn 1.6s cubic-bezier(.6,0,.3,1) 0.7s both;
}
@keyframes heroTextFadeIn {
  from { opacity: 0; transform: translateY(60px) scale(.95);}
  to   { opacity: 1; transform: none; }
}
.hero__catch {
  position: relative;
  z-index: 2;
  font-size: 1.35rem;
  letter-spacing: .08em;
  color: #e9d2b0;
  margin-top: 1em;
  text-align: center;
  opacity: 0.85;
  animation: heroTextFadeIn 1.8s cubic-bezier(.6,0,.3,1) 1.2s both;
}

.section {
  padding: 6vh 7vw;
  max-width: 56rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.1s cubic-bezier(.6,0,.3,1), transform 1.1s cubic-bezier(.6,0,.3,1);
  background: rgba(20, 17, 24, 0.97);
  border-radius: 2rem;
  box-shadow: 0 6px 40px 0 rgba(60,15,30,.10);
  margin-top: 4vh;
  margin-bottom: 6vh;
  position: relative;
  z-index: 1;
}
.section.visible { opacity: 1; transform: none; }

.story-divider {
  display: block;
  margin: 2.5rem auto 1.8rem auto;
  max-width: 200px;
  height: auto;
  opacity: 0.8;
}
.lead {
  font-size: 1.2em;
  color: #ffd8ad;
  line-height: 2.3;
  margin-bottom: 2.5em;
  letter-spacing: .02em;
  font-weight: 600;
  text-shadow: 0 2px 7px #16060844;
}
.accent { color: #e34e68; font-weight: bold; }

/* Story Navigation */
.story-nav {
  margin-top: 2rem;
}

.story-link {
  display: block;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(35,13,16,0.4) 0%, rgba(60,25,30,0.6) 100%);
  border: 1px solid rgba(198,38,46,0.3);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(.6,0,.3,1);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.story-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(198,38,46,0.1), transparent);
  transition: left 0.5s ease;
}

.story-link:hover::before {
  left: 100%;
}

.story-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(198,38,46,0.2);
  border-color: rgba(198,38,46,0.5);
}

.story-link__title {
  font-size: 1.2em;
  font-weight: 700;
  color: #ffd8ad;
  margin-bottom: 0.5rem;
  font-family: 'Kaisei Tokumin', cursive;
}

.story-link__desc {
  font-size: 0.9em;
  color: #e6a780;
  opacity: 0.8;
}

/* Character content styling */
#character-content h1 {
  font-family: 'Kaisei Tokumin', cursive;
  font-size: 2.5rem;
  color: #ffd8ad;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(150,120,120,0.8);
}

#character-content h2 {
  font-family: 'Kaisei Tokumin', cursive;
  font-size: 1.8rem;
  color: #e6a780;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

#character-content h3 {
  font-size: 1.3rem;
  color: #e34e68;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#character-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

#character-content li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #eee;
}

#character-content li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #c6262e;
  font-weight: bold;
}

#character-content p {
  margin: 1rem 0;
  line-height: 1.8;
}

.quote {
  display: inline-block;
  font-size: 1.15em;
  color: #e6a780;
  background: rgba(35,13,16,0.2);
  border-left: 4px solid #c6262e;
  padding: 0.3em 1em;
  margin: 1.6em 0 1em 0;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: .05em;
  box-shadow: 0 2px 6px #1b030699;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  animation: fadeInUp 1.5s cubic-bezier(.7,0,.3,1) 1.2s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px);}
  to   { opacity: 1; transform: none;}
}

/* モバイル対応 */
@media (max-width: 700px) {
  .hero {
    height: 50vh;
    background: url('story_0.png') top center / contain no-repeat;
    background-attachment: fixed;
    position: relative;
  }
  .hero::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('story_0.png') top center / contain no-repeat;
    background-attachment: fixed;
    z-index: 0;
  }
}
