/* ========================================
   CHARACTER 角色介紹區
======================================== */
.character-section {
  position: relative;
  width: 100%;
  margin-top:4%;
}

.character_box{
  width: 100%;        /* 寬度跟著外層 */
  max-width: 1600px;   /* 最大寬度不超過 1600px */
  height:1200px;       /* 高度設為 800px，可自行調整 */
  margin: 0 auto;
	
  position: relative;
	
}

.character_box::before{
    width: 100%;
    height: 1500px;
    background-image: url(../images/character-background02.webp), url(../images/character-background.png);
    background-position: center 0px, center 560px;
    background-size: 1200px auto, 1200px auto;
    background-repeat: no-repeat;
    content: "";
    position: absolute;
    top: -100px;
}


/* 疊在背景圖片上的所有內容 */
.character-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

/* 角色主要區域
   左按鈕 + 角色大圖 + 右按鈕 */

.character-main {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 60px;
}


/* 角色大圖區 */
.character-frame {
    position: relative;
    width: 100%;
    max-width: 690px;
    height: auto;
    display: flex;
    padding: 35px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: url(../images/character-frame.webp) no-repeat;
    background-size: contain;
}


/* 角色大圖 */
.character-main-image {

    width: 100%;
    margin: 0 auto ;
    position: relative;
    z-index: 1;
}

/* 裝飾邊框 */
.character-frame-decoration {
  position: relative;

  top: 50%;

  margin: 0 auto ;

  object-fit: contain;

  pointer-events: none;

  z-index: 2;
}


/* 左右切換按鈕 */
.character-button {
  margin: 0 35px;

  border: none;
  background: transparent;

  cursor: pointer;
}


/* 左右按鈕圖片 */
.character-button img {
  display: block;

  width: 70px;
  height: auto;

  transition: filter 0.2s ease;
}


/* 滑鼠碰到按鈕 → 變深咖啡色 */
.character-button:hover img {
  filter: brightness(0.65);
}


/*  角色文字介紹 */
.character-info {
width: 100%;
    max-width: 650px;
    position: relative;
    top: 25px;
    max-width: 650px;

  margin: 0 auto;

  text-align: left;

  color: #403b38;
}


/* 英文名字 */
.character-name-en {
  margin: 0 auto;

  font-size: 16px;
  font-weight: bold;

  color: #8b694d;
}


/* 角色名字 */
.character-name {
  margin: 0 auto;

  font-family: "Noto Serif TC", serif;
  font-size: 38px;
  font-weight: 700;
}


/* CV */
.character-cv {
  margin: 0;

  font-family: "Noto Serif TC", serif;
  font-size: 24px;
  font-weight: 500;
}


/* 分隔線 */
.character-line {
  width: 100%;
  height: 1px;

  margin: 25px 0;

  background: #c7aa78;
}


/* 角色介紹文字 */
.character-text {
  margin: 0;

  font-family: "Noto Serif TC", serif;
  font-size: 16px;
  font-weight: 500;
	
  letter-spacing: 0.11em;
  min-height: 3lh; /* 至少預留三行文字的高度 */
	
  white-space: pre-line
}


/* 下方角色縮圖
   注意：這一區在 character section 外面 */

.character-thumbnails {
position: relative;
  display: flex; 
  justify-content: center;
  align-items: center;
  top: 16%;
  gap: 12px;
  width: 100%;
  margin:0 auto;
}


/* 每一個角色縮圖按鈕 */
.character-thumb {
  width: 100px;

  padding: 0;

  border: none;
  background: transparent;

  cursor: pointer;
}


/* 未選中的角色 */
.character-thumb img {
  display: block;

  width: 100%;
  height: auto;

  filter:
    grayscale(100%)
    contrast(1.35);

  opacity: 0.8;

  transition:
    filter 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}


/* 目前選中的角色 */
.character-thumb.active img {
  filter: grayscale(0%);
  opacity: 1;

  transform: scale(1.05);
}
/* ========================================
   ipad
======================================== */
@media (max-width: 1050px) {

.character_box::before{
    background-size: 960px auto, 960px 700px;
}
	
.character-thumbnails {
  top: 14%;
  width: 88%;
}
	
	/* 左右切換按鈕 */

  .character-main {
    position: relative;
  }

  .character-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    margin: 0;

    z-index: 5;
  }

  /* 左按鈕 */
  .character-prev {
    left: 50px;
  }

  /* 右按鈕 */
  .character-next {
    right: 50px;
  }

  .character-button img {
    width: 55px;
  }
}
/* ========================================
   mini
======================================== */
@media (max-width: 780px) {

.character_box{
  height:1000px;   
}

.character_box::before{
    height: 1200px;
    background-position: center 45px, center 440px;
    background-size: 650px auto, 698px 550px;
}

/* 角色主要區域
   左按鈕 + 角色大圖 + 右按鈕 */

.character-main {
  margin-top: 30px;
}


/* 角色大圖區 */
.character-frame {
    max-width: 500px;
}

/* 下方角色縮圖
   注意：這一區在 character section 外面 */

.character-thumbnails {
  top: 120px;
  gap: 8px;
}
}

/* ========================================
   手機版
======================================== */
@media (max-width: 500px) {	
	
	.character-section {
    padding: 5% 5%;
}
	
	.character_box{
	  height:700px;       /* 高度設為 800px，可自行調整 */
	max-width:360px;
}
	
	.character_box::before{
	height: 900px;
    background-image: url(../images/p-character-background02.png), url(../images/p-character-background.png);
    background-position: center 20px, center 330px;
    background-size: 200px auto, 100% auto;
}
	.character-main {
  margin-top: 30px;
}
	
	.character-frame {
    max-width: 290px;
    padding: 15px;
}
	
	.character-title {
	font-size: 35px;
}
	
	.character-info {
    max-width: 300px;
		top: 30px;
}
	
	/* 角色介紹文字 */
.character-text {
  font-size: 14px;
  letter-spacing: 0.2em;
  min-height: 5lh; /* 至少預留三行文字的高度 */
}
	
	/* 角色名字 */
.character-name {
  font-size: 30px;
   min-height: 2lh;
	letter-spacing: 0.1em;
}
	/* 縮圖 */
	.character-thumbnails {
    top:80px;   
	justify-content: flex-start;
    max-width: calc(100vw - 30px);
    overflow-y: hidden;
}
	
  .character-thumb {
    flex: 0 0 81px;
  }

  .character-thumbnails::-webkit-scrollbar {
    display: none;
  }

	/* 左右按鈕圖片 */
	.character-button img {
	  width: 40px;
	}
	
	.character-prev {
     left: 10px;
    }
	
    .character-next {
      right: 10px;
    }
	
  } 
/*手機板範圍 */


