.page-title {
    margin-top: 20px;
    padding-left: 40px;
    background-color: #118ACB;
    color: #fff;
}

.title-en {
    font-family: "Orbitron", sans-serif;
    font-style: bold;
    font-size: 2.5rem;
    margin: 0;
}

.title-jp {
    font-family: "M PLUS U", sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.characters-list {
    padding: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 20px;
}

.item {
    border-radius: 40px 10px 20px 20px;
    border-style: none;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    text-align: left;

    cursor: pointer;
}

.item img {
    border-radius: 40px 10px 0 0;
    max-width: 100%;
    height: auto;
}

.item p {
    padding: 0 0 10px 10px;
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.25);

    transition: transform 0.3s, box-shadow 0.3s;
}

.ja-name {
    font-size: 2rem;
    font-family: "M PLUS U", sans-serif;
}

.en-name {
    font-size: 1.5rem;
    font-family: "Orbitron", sans-serif;
}

/* 最初は非表示にするクラス */
.hidden {
  display: none !important; /* 他のスタイルに負けないように一応！ */
}

/* ポップアップの背景（IDを修正） */
#profile-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* ポップアップの中身の白い箱（クラス名に修正） */
.popup-content {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 40px; /* 画像とテキストの間のスキマ */
    height: 100% !important;
    box-sizing: border-box !important;
}

.images {
    display: flex !important;
    align-items: center !important;    /* 枠内でもしっかり縦中央揃えに */
    justify-content: center !important; /* 画像は左側にピタッと固定 */
    width: calc(100% * 2 / 3) !important;  /* エリア自体の横幅を3分の2に固定 */
    height: 100% !important;           /* 縦幅をいっぱいまで持たせます */
}

/* 🖼️ 左側：画像自体を「全体の3分の2」の幅に固定する */
#full-img {
    width: calc(auto * 2 / 3) !important; /* 100%を3で割って2をかける（3分の2） */
    height: 95vh !important;
}

/* 📝 右側：テキストエリアを「全体の3分の1」の幅に固定する */
.popup-text-area {
    width: calc(100% * 1 / 3) !important; /* */
    padding-right: 40px !important;       /* ✨【追加】これで右端から文字が綺麗に離れます！ */
    box-sizing: border-box !important;    /* ✨【追加】余白を入れても全体の横幅（3分の1）がズレないようにするお守り */
}

/* ポップアップ内の名前全体のスタイル */
#popup-name {
  line-height: 1.3;
  margin-top: 10px;
  margin-bottom: 15px;
}

.popup-ja {
  font-family: "M PLUS U", sans-serif;
  font-size: 3rem;
  color: #fff;
}

.popup-en {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  color: #fff;
}

#popup-profile {
    font-size: 1.25rem;
    color: #fff;
    white-space: pre-wrap;
}

/* 🎯 【追加】PC版の閉じるボタンを右上にピン留めするスタイル */
#close-btn {
    position: absolute;       /* 独立させてピン留めする魔法 */
    top: 30px;                /* 上からのすきま */
    right: 40px;              /* 右からのすきま（テキストエリアの右端に合わせやすい位置） */
    
    /* 🎨 ボタンのデザイン（お好みで調整してね！） */
    padding: 10px 24px;
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 30px;
    font-family: "M PLUS U", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    
    transition: background-color 0.2s;
}

/* マウスを乗せたときにちょっと色を変える演出 */
#close-btn:hover {
    background-color: #e0e0e0;
}