@font-face {
  font-family: "Senobi-Gothic-Bold";
  src: url("/assets/fonts/Senobi-Gothic-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Senobi-Gothic-Medium";
  src: url("/assets/fonts/Senobi-Gothic-Medium.ttf") format("truetype");
}

.tab-nav {
  width: 100%;
  max-width: 2500px; /* ここで好きな表示サイズに制限 */
  margin: 0 auto;
}

.nav-container {
  width: 100%;
  /* 2500x200の比率を維持。これで画像が歪みません */
  aspect-ratio: 2500 / 200; 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  height: 100%; /* 画像の高さ一杯をリンクエリアにする */
}

.nav-item {
  flex: 1; /* 100%を5等分（1枠20% = 500px相当） */
}

.nav-item a {
  display: block;
  width: 100%;
  height: 100%;
  /* 姿は見えないけどクリックできる状態にする */
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0); /* 完全透明 */
}

/* どこをクリックできるか確認したい時は、一時的に色をつけると便利です */
/* .nav-item a:hover { background-color: rgba(255, 255, 255, 0.2); } */

html, body {
  height: 100%;
  margin: 0;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

input[name="chara-select"] {
  display: none;
}

.btn-group {
  display: flex;
  justify-content: center;
  font-family: "Audiowide", cursive;
  font-size: 30px;
}

.content {
  display: none;
  align-items: center;
}

#tab1:checked ~ .contents #content1 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
}

.chara-image img {
  width: 1000px;
  height: auto;
  align-items: left;
}

.chara-info {
  vertical-align: top;
  width: 650px;
  align-items: right;
  text-align: left;
}

.description {
  font-family: "Senobi-Gothic-Medium";
  font-size: 50px;
}

.name {
  font-family: "Audiowide", cursive;
  font-size: 85px;
}

.profile {
  font-family: "Senobi-Gothic-Medium";
  font-size: 30px;
}

#tab1:checked ~ .btn-group label[for="tab1"] { background: #EC838E; }

.btn {
  padding: 10px 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  display: inline-block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer {
  background: linear-gradient(135deg, #5F7280, #3A454D);
  padding: 50px 0;
  font-family: "Senobi-Gothic-Medium";
  color: #fff;
  font-size: 35px;
  text-align: center;
}