/* ===== character-page.css ===== */
/* jojojo.css（Cinzel・Rajdhani・Noto Serif JP）を前提とする */

/* ===== キャラアイコンカルーセル ===== */
.char-icon-carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 56px 20px;
  border-bottom: 1px solid #2a2a2a;
}

/* スクロールエリア */
.char-icon-track-wrap {
  overflow: hidden;
}

.char-icon-track {
  display: flex;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* アイコン1個 */
.char-icon-track a {
  display: block;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #333;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.char-icon-track a:hover {
  border-color: #f05454;
  box-shadow: 0 0 14px rgba(240, 84, 84, 0.4);
  transform: translateY(-3px);
}

.char-icon-track a.active {
  border-color: #f05454;
  box-shadow: 0 0 14px rgba(240, 84, 84, 0.5);
}

.char-icon-track a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 左右ボタン */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 50%;
  color: #eee;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 10;
  padding: 0;
}

.carousel-btn:hover {
  background: #923232;
  border-color: #f05454;
  color: #fff;
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* ===== メインコンテンツ ===== */
.char-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px;
}

/* 縦長メインビジュアル */
.char-visual {
  flex-shrink: 0;
  width: 200px;
}

.char-visual img {
  width: 100%;
  aspect-ratio: 1 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  display: block;
}

/* テキストエリア */
.char-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.char-names {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.char-name-en {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.75em, 2vw, 1em);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #923232;
  text-transform: uppercase;
  margin: 0;
}

.char-name-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8em, 6vw, 3em);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #f05454;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 0 40px rgba(240, 84, 84, 0.2);
}

.char-divider {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 0;
}

.char-ability-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #555;
  text-transform: uppercase;
  margin: 0;
}

.char-ability {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.88em, 2.2vw, 1em);
  color: #f05454;
  line-height: 1.7;
  margin: 0;
}

.char-desc {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(0.82em, 2vw, 0.95em);
  color: #bbb;
  line-height: 2;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ===== PREV / NEXT ===== */
.char-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 860px;
  margin: 0 auto 60px;
  padding: 24px 24px 0;
  border-top: 1px solid #2a2a2a;
}

.char-pagination a {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.85em, 2.5vw, 1em);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

/* ===== 能力名（名前と同系デザイン） ===== */
.char-ability-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.char-ability-en {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7em, 1.8vw, 0.9em);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #555;
  text-transform: uppercase;
  margin: 0;
}

.char-ability-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.2em, 4vw, 1.8em);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #f05454;
  margin: 0;
  text-shadow: 0 0 20px rgba(240, 84, 84, 0.15);
}

.char-pagination a:hover { color: #f05454; }
.char-pagination .prev::before { content: '← '; }
.char-pagination .next::after  { content: ' →'; }

/* ===== タブレット (≤700px) ===== */
@media (max-width: 700px) {
  .char-icon-carousel {
    padding: 16px 48px 16px;
  }

  .char-icon-track a {
    width: 50px;
    height: 50px;
  }

  .char-detail {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin: 28px auto;
    padding: 0 16px;
  }

  .char-visual {
    width: 46vw;
    max-width: 180px;
  }

  .char-info {
    width: 100%;
    padding-top: 0;
    align-items: center;
    text-align: center;
  }

  .char-names { align-items: center; }
}

/* ===== スマホ (≤390px) ===== */
@media (max-width: 390px) {
  .char-icon-carousel {
    padding: 14px 44px 14px;
  }

  .char-icon-track {
    gap: 10px;
  }

  .char-icon-track a {
    width: 44px;
    height: 44px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 0.85em;
  }

  .char-visual {
    width: 42vw;
  }

  .char-pagination {
    padding: 16px 16px 0;
  }
}