
body {
  background: #000000;
  color: #fff;
  font-family: "DotGothic16", sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

header {
  background: #900;
  color: #fff;
  padding: 10px 0;
  font-size: 20px;
  letter-spacing: 2px;
}

/* ロゴ＋矢印 */
#tf-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

#tf-logo-wrap button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: "DotGothic16", sans-serif;
  font-size: 22px;
  font-weight: bold;
  padding: 0;
  line-height: 1;
}

#tf-site-logo {
  max-width: 260px;
  height: auto;
}

/* キャラ紹介 */
.character { display: none; padding: 20px 0; }
.character.active { display: block; }

.char-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 10px;
}

/* 修正1: icon画像がプロフィールよりも大きくならないようにする */
.char-img {
  width: 70%;
  max-width: 650px; /* 追加：プロフィール幅を上限にする */
  height: auto;
  background: #620000;
  cursor: pointer;
  margin-top: 10px;
  transition: none; /* 修正2: ビュー表示時などのアニメーション除去 */
}
.char-img:hover {
  transform: none;
  filter: none;
}

.profile {
  max-width: 650px;
  width: 90%;
  text-align: left;
  background: #000000;
  padding: 20px 25px;
  line-height: 1.8;
  font-size: 16px;
}
.profile h2 {
  border-bottom: 1px solid #900;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 18px;
}
.info-title {
  color: rgb(240, 49, 49);
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
  border-left: 4px solid #900;
  padding-left: 6px;
}
.info-box { background: #620000; padding: 10px 15px; }

/* ギャラリー */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 25px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #fff;
  cursor: pointer;
}

/* キャラクター一覧 */
.tf-charlist { margin-top: 18px; }
.tf-charlist h3 {
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 5px;
  border-left: 4px solid #900;
  padding-left: 6px;
}
.tf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
  justify-items: center;
}
.tf-grid a {
  display: block;
  width: 100%;
  max-width: 160px;
}
.tf-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #fff;
  cursor: pointer;
}

/* 拡大ビュー */
#viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.814);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
#viewer img {
  max-width: 90%;
  max-height: 90%;
  transition: none; /* 修正2: 拡大時のアニメーション無効 */
}

/* 下部エリア配置 */
#bottomArea {
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;
  width: 90%;
  max-width: 800px;
  margin: 60px auto 40px;
}

/* TOPに戻る（文字リンク） */
#bottomTextLink {
  color: #d80000;
  font-size: 20px;
  text-decoration: underline;
  cursor: pointer;
}

/* 上に戻るボタン（右側画像） */
#scrollTopBtn {
  width: 60px;
  height: auto;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s;
}
#scrollTopBtn:hover {
  opacity: 1;
}

/* ボイスプレーヤー */
.voice-player {
  width: 100%;
  margin-top: 6px;
  background: #000000;
  border-radius: 6px;
}

.info-box div:first-child {
  margin-bottom: 5px;
}


/* タブ */
#tab-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tab-btn {
  background: rgb(82, 0, 0);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: "DotGothic16";
  font-size: 18px;
  cursor: pointer;

  /* ✅ 幅を統一して可変しないようにする */
  width: 150px;
  text-align: center; /* 文字を中央揃え */
  box-sizing: border-box;
}

.tab-btn.active {
  background: #900;
}

/* ストーリー枠 */
#story-box {
  max-width: 700px;
  margin: 30px auto;
  background: #000;
  padding: 25px 30px;
  text-align: left;
  line-height: 1.8;
  font-size: 18px;
}
#story-box h2 {
  border-bottom: 1px solid #900;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-family: "DotGothic16", sans-serif;
  font-size: 20px;
  font-weight: bold;
}

/* キャラ画像の左右矢印配置 */
.char-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.char-nav button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: "DotGothic16", sans-serif;
  font-size: 22px;
  font-weight: bold;
  padding: 0;
  line-height: 1;
}
.char-nav button:hover {
  opacity: 0.7;
}
.char-img {
  max-width: 260px;
  height: auto;
}