.character-page {
  min-height: 100vh;
  overflow-y: auto;
}

.character-wrap {
  display: flex;
  justify-content: center;
  gap: 8%;
  padding: 0 10%;
}

.character-box {
  width: 40%;
  text-align: center;
}

.chara-image {
  padding-top: 50px;
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.chara-image:hover {
  transform: translateY(-4px);
  filter: brightness(1.05);
}

.chara-image img {
  max-height: 60vh;
}

.chara-name {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: normal;
  color: #222;
}

.chara-profile {
  margin-top: 6px;
  font-size: 13px;
  color: #444;
}

.voice-list {
  margin-top: 24px;
  list-style: none;
}

.voice-list li {
  margin-bottom: 10px;
}

.voice-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.15em;
  cursor: pointer;
  text-shadow: -1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000;
}

.voice-btn.playing {
  opacity: 0.6;
  text-decoration: underline;
}

.voice-actor {
  font-size: 0.8em;
  letter-spacing: 0.1em;
  color: #555;
}

.voice-actor a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.3);
}

.voice-actor a:hover {
  border-bottom-color: rgba(0,0,0,0.7);
}

/* モーダル */
.profile-modal {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

.profile-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.profile-content {
  background: rgba(255,255,255,0.9);
  color: #222;
  width: 80%;
  max-width: 720px;
  padding: 80px 20px 40px;
  border-radius: 4px;
  display: flex;
  gap: 40px;
  position: relative;
  max-height: 100vh;
  overflow-y: auto;
}

.profile-image img {
  width: 200px;
  height: auto;
}

.profile-name {
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.profile-list dt {
  font-size: 12px;
  color: #666;
}

.profile-list dd {
  margin-bottom: 8px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .character-wrap {
    flex-direction: column;
    gap: 60px;
    padding: 0 8%;
  }

  .character-box {
    width: 100%;
  }

  .character-page {
    padding-top: 20%;
  }

  .chara-name {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .voice-actor {
    font-size: 0.8em;
  }

  .voice-list {
    margin-bottom: 80px;
  }

  .profile-content {
    flex-direction: column;
    align-items: center;
    padding: 24px;
  }

  .profile-image img {
    width: 160px;
  }
}
