/* ===============================
   Character Selector
   =============================== */
.character-selector {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.character-selector button {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.6em 1em;
  margin: 0 0.5em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.character-selector button:hover {
  background: rgba(0, 0, 0, 0.7);
}
/* ===============================
   Card Layout
   =============================== */
.cards {
  width: 100vw;
  height: 100vh;
  position: relative;
}
.card {
  display: none;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Yu Mincho", "Hiragino Mincho Pro", serif;
}
.card.active {
  display: flex;
}
/* --- Card Image Area --- */
.card__image_area {
  position: relative;
  flex: 1;
}
.card__image {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FCFCFC;
	overflow: hidden;
}
.card__image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
/* --- Card Body --- */
.card__body {
  flex: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  background-image: url("../img/chara/chara_bg.jpg");
  background-position: bottom right;
  background-size: contain;
  background-repeat: no-repeat;
}
.card__tagline {
  font-size: 1.2rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 1.5rem;
  height: 2.5em;
}
.card__title {
  font-size: 3rem;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}
.card__furigana {
  font-size: 1.2rem;
  color: #888;
  margin-left: 0.5em;
}
.card__stats {
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
  margin: 1.5em 0;
  height: 3em;
}
.card__stats dt {
  font-weight: bold;
  margin-right: 0.5em;
}
.card__stats dd {
  margin-right: 4%;
}
.card__profile {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.card__cta {
  align-self: flex-start;
}
.card__button {
  display: inline-block;
  background: #8a2be2;
  color: #fff;
  text-decoration: none;
  padding: 0.8em 2em;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 1.1rem;
}
.card__button:hover {
  background: #7000b0;
}
/* ===============================
   Tabs Navigation
   =============================== */
.content {
  position: relative;
}
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tab-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
.tab-btn:hover {
  transform: scale(1.05);
}
.tab-btn img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
}
.tab-btn.active img {
  /* 強調色を適用する場合はここに */
}
/* ===============================
   Voice Buttons (モダン和風)
   =============================== */
.chara_sample_voice {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chara_sample_voice .voice-button {
  width: 56px;
  height: 44px;
  background: #fafaf8;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
.chara_sample_voice .voice-button:hover {
  transform: scale(1.05);
  background: #ffffff;
}
.chara_sample_voice .voice-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #828282;
}
.chara_sample_voice .voice-button.playing::before {
  border: none;
  width: 6px;
  height: 20px;
  background: #828282;
  top: 50%;
  left: 42%;
  transform: translate(-50%, -50%);
}
.chara_sample_voice .voice-button.playing::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 20px;
  background: #828282;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%);
}
.chara_sample_voice .voice-button.h_voice {
  border-color: #E06F9C;
}
.chara_sample_voice .voice-button.h_voice::before {
  border-left-color: #E06F9C;
}
/* ===============================
   Expression Thumbnails
   =============================== */
.exp-thumbnails {
  position: absolute;
  top: 0;
  right: 3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 100%;
}
.exp-thumb {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  width: 48px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.exp-thumb.active {
  border-color: #9F7DBF;
}
.exp-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* カード群を重ねるために親を relative に */
.cards {
  position: relative;
}
/* カード要素を重ね配置し、不透明度で切り替え */
.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; /* 常にレイアウト上は存在する */
  opacity: 0; /* 初期は見えない */
  transition: opacity 0.5s ease-in-out;
  pointer-events: none; /* 非アクティブ時はクリックなど無効 */
}
/* アクティブなカードだけ不透明にする */
.card.active {
  opacity: 1;
  pointer-events: auto; /* クリックなどを受け付ける */
  /* z-index を上げたい場合はここで指定 */
}
/* ===============================
   Responsive Adjustments
   =============================== */
@media (max-width: 800px) {
  #section3 {
    height: 130vh;
  }
  .card {
    flex-direction: column;
    height: 100%;
  }
  .cards {
    height: 100%;
  }
  .card__body {
    padding: 2rem;
    justify-content: flex-start;
  }
  .card__stats {
    font-size: 0.8rem;
  }
  .card__title {
    font-size: 2.2rem;
  }
  .card__profile {
    font-size: 1rem;
  }
  .card__tagline {
    font-size: 1rem;
    margin-bottom: 0;
  }
  .exp-thumbnails {
    flex-direction: row;
    top: auto;
    right: auto;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    top: auto;
    right: auto;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    height: auto;
  }
  .exp-thumb {
    width: 40px;
  }
  .exp-thumb img {
    width: 100%;
    height: auto;
  }
  .card__image_area {
    position: relative;
    flex: none;
    height: 50vh;
  }
}
.exp-thumbnails.hidden {
  display: none;
}
.style-switch {
	position: absolute;
	top: 0;
	right: 0;
  margin-top: 10px;
  text-align: center;
	font-family: "Yu Mincho", "Hiragino Mincho Pro", serif;
		margin-right: 1%;


}
.style-switch button {
  margin: 0 2px;
  padding: 5px 10px;
  cursor: pointer;
	border-radius: 50%;border: none; outline: none;
}

.style-switch button.active {
  background: #444;
  color: #fff;
}