:root {
  --background-color: #000;
  --text-color: #efc182;
  --link-color: #9f6a3a;
  --link-hover-color: #fbc600;
  --header-color: #fcc404;
  --table-header-bg: #232421;
  --table-header-color: #ddbf97;
  --section-bg: #1d1f1e;
  --border-color: #670000;
  --button-bg: #2c2c2c;
  --button-border: #9e683a;
  --button-text: #e9e9e9;
}

body {
  background-color: var(--background-color);
  background-image: url(https://img.wiki3.jp/limbus_company/MainUI_BattleSelection_14.png);
  background-size: contain;
  color: var(--text-color);
}

body > div.uk-container.uk-container-center > div.uk-grid.uk-grid-small {
  width: 1100px;
}

body > div.uk-container.uk-container-center > div.uk-grid > div[class*=uk-width-].sidebar {
  width: 300px;
}

body > div:nth-child(3) > div > div.uk-width-2-3.main_content > div.uk-text-small.uk-text-right {
  display: none;
}

a {
  color: var(--link-color);
  font-weight: bold;
}

a:hover {
  color: var(--link-hover-color);
}

#site_header {
  background-image: url(https://img.wiki3.jp/limbus_company/4b9335036943ad7ef67149c49965743a.png);
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: right;
  h1 {
    font-size: 30px;
    line-height: 130px;
  }
  h1 a {
    color: var(--header-color);
  }
}

#wiki_menu h1, 
body > div.uk-container.uk-container-center > div.uk-grid > div[class*=uk-width-].main_content h1 {
  display: none;
}

table.uk-table {
  table-layout: fixed;
}

table.uk-table th {
  text-align: center;
  background-color: var(--table-header-bg);
  color: var(--table-header-color);
}

h2.battle_title, h2.scenario_title, h2.dungeon_title {
  background-color: var(--border-color);
  color: var(--header-color);
  padding-left: 5px;
  font-weight: bold;
  line-height: 26px;
  display: flex;
  align-items: center;
}

h2.battle_title::before,
h2.scenario_title::before,
h2.dungeon_title::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 8px;
  background-repeat: no-repeat;
  background-size: contain;
}

h2.battle_title::before {
  background-image: url(https://img.wiki3.jp/limbus_company/MainUI_MainStage_1_0.png);
}

h2.scenario_title::before {
  background-image: url(https://img.wiki3.jp/limbus_company/MainUI_MainStage_1_1.png);
  width: 35px;
}

h2.dungeon_title::before {
  background-image: url(https://img.wiki3.jp/limbus_company/MainUI_MainStage_1_7.png);
  width: 30px;
}

h3 {
  padding: 2px 5px;
  color: var(--header-color);
  border-left: solid 5px var(--border-color);
  border-bottom: solid 1px var(--border-color);
}

#comment-form,
section#comment-form {
  background-color: var(--section-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  color: var(--button-text);
  border: 1px double #262827;
  background-image: url(https://img.wiki3.jp/backpackbattles/section_bg01.png);
  background-repeat: no-repeat;
  background-position: 100% 0;
}

/* -------------------------------------------------------- */
/* menu
/* -------------------------------------------------------- */
#wiki_menu, body>div.uk-container.uk-container-center>div.uk-grid>div[class*=uk-width-].main_content{
    background-color:rgb(0 0 0 /0%);
    color: #efc182;
}
#wiki_menu table.uk-table td {
    width: 100%;
    height: 100%;
  a {
    width: 100%;
    height: 100%;
    display: block;
  }
}

#wiki_menu h1:before{
  content: "";
  vertical-align: middle;
  display: inline-block;
  width: 25px;
  height: 30px;
  margin-left: 3px;
  background: url(https://img.wiki3.jp/limbus_company/StoryUI_Frame_1_18.png) no-repeat;
  background-size: contain;
}

.wikiinfo_container, .dairy_container, .enemy_container, .story_container,.system_container,.community_container {
    font-family: 'Arial', sans-serif;
    margin: 0 auto;
    padding: 20px 0;
}
.wiki_infomation, .prisoner_info,.dairy_list, .enemy_list, .story_list,.system_list,.community_list {
  padding: 15px 10px;
  background-color: #1d1f1e;
  border-radius: 10px;

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-left:10px;
      border: none;
  }
}

.prisoner_info {
  .tabs {
    display: flex;
    justify-content: space-around;
  }
  .tab-link {    
    display: inline-block;
    text-decoration: none;
	background-color: #2c2c2c;
    border: 2px solid #9e683a;
    border-radius: 20px;
    color: #e9e9e9;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
  }

  .tab-link.selected {
    background-color: #9e683a;
  }

  .menu_tab-content {
    display: none;
    width: 90%;
    margin: auto;
    padding-top: 10px;
  }

  .menu_tab-content.active {
    display: block;
  }
}


/* -------------------------------------------------------- */
/* TOPページ 
/* -------------------------------------------------------- */
.top_container {
    font-family: 'Arial', sans-serif;
    margin: 0 auto;
    max-width: 1200px;
}

.about-site {
  background-color: #1d1f1e;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
	border: 4px double #9e683a;
  background-image: url("https://img.wiki3.jp/backpackbattles/section_bg01.png");
  background-repeat: no-repeat;
  background-position: 100% 0;
  h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  p {
    font-size: 12px;
    line-height: 1.5;
    color: #898986;
  }
}

.team-button {
    background-color: #ffcc00;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.characters {
  padding: 15px 0;
  background-color: #1d1f1e;
  border-radius: 10px;
  background-image: url("https://img.wiki3.jp/backpackbattles/section_bg01.png");
  background-repeat: no-repeat;
  background-position: 100% 0;

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-left:10px
  }
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  background-color: #0a0a0a;
  margin: 15px;
  padding: 5px;
  border-radius: 5px;
}

.character-item {
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  color: #fff;
}

.strategy {
  padding: 15px 0;
  background-color: #1d1f1e;
  border-radius: 10px;
  background-image: url("https://img.wiki3.jp/backpackbattles/section_bg01.png");
  background-repeat: no-repeat;
  background-position: 100% 0;

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-left:10px
  }
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 15px;
}

.story, .event, .enemy_data, .dairy {
  background-color: #0a0a0a;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
}

.video_list {
  margin-bottom: 30px;
  padding: 15px 0;
  background-color: #1d1f1e;
  border-radius: 10px;
  background-image: url("https://img.wiki3.jp/backpackbattles/section_bg01.png");
  background-repeat: no-repeat;
  background-position: 100% 0;

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-left:10px
  }
}

.button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 10px;
}

.video-link {
  background-color: #2c2c2c;
  border: 2px solid #9e683a;
  color: #e9e9e9;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 20px;
  cursor: pointer;
}

.video-link:hover {
  color: #e9e9e9;
  background-color: #9e683a;
}

.video-container {
  background-color: #2e2e2e;
  padding: 20px;
  border-radius: 8px;
  margin: 0px 15px;
}

.video-content {
  position: relative; /* 子要素の絶対配置を相対的に扱う */
  display: none; /* 初期状態で非表示 */
	background-color: #0a0a0a;
  padding: 15px;
  border-radius: 8px;
  color: white;
  margin: 0 15px;
  img {
    max-width: 100%;
    border-radius: 8px;
  }
}

.active {
    display: block; /* アクティブな動画コンテンツだけ表示 */
}

.more-link {
    position: absolute; /* 右下に固定 */
    right: 15px;
    bottom: 15px;
}
.more-link:hover {
    background-color: #ffaa00;
}

/* -------------------------------------------------------- */
/* ステータス一覧 */
/* -------------------------------------------------------- */
#status_list td.uk-width-1-4 {
  border-right:none;
  img {
    height:20px;
  }
}

.chara_menu_list {
	margin-bottom:2px;
  img{
    width:24px;
  }
}

.chara_menu_list td,.chara_menu_list p{
  margin:0px;
}

div.float_list{
    padding: initial;
    box-sizing: initial;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.character_divlist {
    width: 110px;
    margin: 4px;
    padding: 0 0 4px;
    color: #5d627b;
    background: #FFF;
    box-shadow: 0 3px 5px rgb(0 0 0 / 22%);
    p {
      text-align:center;
    }
}
/* -------------------------------------------------------- */
/*　囚人ページ*/
/* -------------------------------------------------------- */
.personality_conteiner {
  font-family: 'Arial', sans-serif;
  margin: 0 auto;
  max-width: 1200px;
}
/* 各囚人ページの背景画像指定 */
/* イサン */
.prisoner_container  {
  &.yi_sang {
  	background-image: url("https://img.wiki3.jp/limbus_company/01_bg.png");
  }
  &.faust {
  	background-image: url("https://img.wiki3.jp/limbus_company/02_bg.png");
  }
  &.don_quixote {
  	background-image: url("https://img.wiki3.jp/limbus_company/03_bg.png");
  }
  &.ryoshu {
  	background-image: url("https://img.wiki3.jp/limbus_company/04_bg.png");
  }
  &.meursault {
  	background-image: url("https://img.wiki3.jp/limbus_company/05_bg.png");
  }
  &.hong_lu {
  	background-image: url("https://img.wiki3.jp/limbus_company/06_bg.png");
  }
  &.heathcliff {
  	background-image: url("https://img.wiki3.jp/limbus_company/07_bg.png");
  }
  &.ishmael {
  	background-image: url("https://img.wiki3.jp/limbus_company/08_bg.png");
  }
  &.rodia {
  	background-image: url("https://img.wiki3.jp/limbus_company/09_bg.png");
  }
  &.sinclair {
  	background-image: url("https://img.wiki3.jp/limbus_company/11_bg.png");
  }
  &.outis {
  	background-image: url("https://img.wiki3.jp/limbus_company/12_bg.png");
  }
  &.gregor {
  	background-image: url("https://img.wiki3.jp/limbus_company/13_bg.png");
  }

  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 85%);
  background-blend-mode: overlay;
  background-size: contain;
}

.prisoner-content-container {
    display: flex; /* 子要素を横並びにする */
    gap: 20px; /* 要素の間にスペースを空ける */
}

.prisoner-header {
    width: 100%; /* 必要に応じて幅を調整 */
    h2.prisoner-name  {
        font-size: xx-large;
        color: #e9e9e9;
        background-color: transparent;
        display: inline-flex;
        align-items: center;
    }
    .description {
        flex: 1; /* 左側のコンテンツが残りのスペースを取るようにする */
    }

    image {
        flex-shrink: 0; /* 画像のサイズを固定する */
        width: 285px; /* 画像の幅に合わせる */
        img {
            max-width: 100%; /* 画像が親要素の幅に収まるようにする */
            height: auto; /* 画像の縦横比を保つ */
          }
    }

  .description {
        padding-left: 10px;
  }
    .description p:first-of-type{
        font-size: 25px;
        color:#8f1b14;
        padding-bottom: 30px;
  }
}
@media screen and (max-width: 768px) {
    /* スマートフォン表示時のスタイル */
    .prisoner-content-container {
        display: block; /* 縦並びに変更 */
        text-align: center;
    }

    .image {
        margin: 0px auto; /* 画像を中央揃え */
        width: 100%; /* 画像を幅100%に変更 */
    }

    .image img {
        width: 100%; /* 画像が画面幅に合わせて縮小されるようにする */
        height: auto; /* 縦横比を維持 */
    }

    .description {
        margin-top: 20px; /* 説明文を画像の下に配置 */
    }

    .prisoner-header {
        text-align: center;
    }

    h2.prisoner-name {
        font-size: x-large;
        text-align: center; /* 見出しも中央揃え */
    }

    p.uk-text-large {
        font-size: 18px; /* テキストを少し小さく */
    }
}

.prisoner_section {
  background-color: #1d1f1e;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  color: #fff;
  border: 1px double #262827;
  background-image: url("https://img.wiki3.jp/backpackbattles/section_bg01.png");
  background-repeat: no-repeat;
  background-position: 100% 0;
  h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  p {
    font-size: 12px;
    line-height: 1.5;
    color: #898986;
  }
}

/* -------------------------------------------------------- */
/*　旧　人格ページ　*/
/* -------------------------------------------------------- */
.personality_dev, .ego_dev {
    width: 110px;
    margin: 4px;
    padding: 0 0 4px;
   position: relative;
  
}
.personality_name{

  position: absolute;
    top: 70%;
	text-align: center;
    width: 110px;
}
.ego_name {
  	text-align: center;
}

.personality_name a, .ego_name a{ 
  color: #fcc404;
}


/* -------------------------------------------------------- */
/*　人格リスト（カード）　*/
/* -------------------------------------------------------- */
.personality_list_conteiner {
    padding: 15px 20px;
    background-color: #1d1f1e;
    border-radius: 10px;
    border: solid 1px #2c2c2c;
  background-image: url(https://img.wiki3.jp/backpackbattles/section_bg01.png);
    background-repeat: no-repeat;
    background-position: 100% 0;
}

.personality_card {
  position: relative;
  display: flex;
  padding: 1rem;
  border-radius: 1.25rem;
  background-color: #1c1c1c;
  border: 1px solid #131313;
}

.profile-card-image {
  position: relative;
  height: 148px;
  width: 102px;
  background-color: #333333;
  border-radius: 0.5rem;
  border: 2px solid #1c1c1c;
  overflow: hidden;
  text-align: center;
}

.profile-card-image img {
  object-fit: cover;
}

.rarity-icon {
  position: absolute;
  top: -0.25rem;
  left: -0.25rem;
  height: 1.75rem;
  width: 1.75rem;
  background-color: #1c1c1c;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rarity-icon img {
  height: 1.5rem;
  width: 1.5rem;
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  height: 2.5rem;
  width: 2.5rem;
  opacity: 0.1;
  filter: grayscale(100%);
}

.status-info {
  margin-left: 0.625rem;
  flex: 1;
}

.name {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.375rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.stats {
  font-size: 0.625rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 0.5rem;
  display: flex;
}

.stat-item {
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

.stat-item img {
  margin-right: 0.25rem;
  height: 1.25rem;
  width: 1.25rem;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.125rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.375rem;
  border-radius: 1.5rem;
  background-color: #333;
  font-size: 0.6875rem;
  color: #ccc;
}

.status-item img {
  margin-right: 0.25rem;
    height: 0.95rem;
    width: 0.95rem;
  border-radius: 50%;
  background-color: #333;
  opacity: 0.6;
}


/* -------------------------------------------------------- */
/* 新　人格ページデザイン */
/* -------------------------------------------------------- */
.personality_container {
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  background-color: #2b2b2b;
  border-radius: 10px;
  display: flex;
  overflow: hidden;
  border: 1px solid #9b6938;
}
.profile-image {
  flex: 1;
  position: relative;
   img {
      width: 100%;
      height: 275px;
      object-fit: cover;
	}
}
.profile-label {
  width:100%;
  background-color: #161616;
  padding: 5px 0;
  margin: 5px 0;
  border-radius:5px;
  h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    padding-left: 15px;
  }
  img {
    margin-right: 10px;
  }
}
.profile-info {
  flex: 1;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.status-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #131313;
  border-radius:5px;
  div {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    background-color: #131313;
  }
  div:nth-child(even) {
    background-color: #2c2c2c;
    border: 2px solid #131313;
    border-radius: 5px;
  }
  span {
    font-size: 1.1em;
    color:#babbb4;
  }
  span:first-child {
    font-weight: bold;
    color:#898986;
  }
}
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  h2 {
    background-color: #161616;
    margin-top: 10px;
  }
}
/* スマートフォン用のレイアウト変更 */
@media screen and (max-width: 768px) {
  .personality_container {
    display: block; /* 横並びから縦並びに変更 */
  }

  .profile-header {
    text-align: center;
    margin-bottom: 20px;
  }

  .profile-image {
    margin: 0 auto; /* 画像を中央揃え */
    width: 100%; /* 画像の幅を100%に設定 */
  }

  .profile-info {
    padding-left: 0; /* スペースをなくす */
    margin-top: 20px; /* 上にマージンを追加 */
  }

  .status-list {
    width: 100%; /* 幅を100%に */
    margin-top: 20px; /* 上にマージンを追加 */
  }

  .status-list div {
    justify-content: space-between;
  }
}

/* 人格ページ下部デザイン */
.skill_container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  background-color: #2b2b2b;
  border-radius: 10px;
}
.skill-section {
  margin-top: 20px;
  padding-top: 10px;
  h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
  }
}
.skill-icons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.skill {
  text-align: center;
  flex: 1;
  p {
    margin-top: 5px;
    font-size: 1em;
  }
  img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 5px;
    border: 2px solid #555;
    padding:10px;
  }
}
.table-section {
  margin-top: 30px;
  padding-bottom: 30px;
  display: none; /* デフォルトで非表示 */
   h2 {
    margin-bottom: 15px;
     background-color: #2c2c2c;
  }
  p {
        margin: 0;
        display: inline;
  }
}
.table-section.active {
  display: block; /* アクティブなスキル情報のみ表示 */
}
.table-section {
  width: 100%;
  border-collapse: collapse;
  background-color: #2c2c2c;
  th,td {
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
  }
  th {
    background-color: #444;
    color: #fff;
  }
  td {
    color: #fff;
    p {
      margin: 0;
        display: inline;
    }
  }
  td:nth-child(even) {
    background-color: #131313;
  }
}
.skill.selected img {
   border: 3px solid #efc182;
    background-color: #9f6a3a; /* 選択時の枠の色 (ゴールド) */
}

/*　人格一覧検索　*/
.search-menu {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: auto;
    padding: 15px 20px;
}

.category {
    margin-bottom: 20px;
}

.category span {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: block;
}

.icons {
    display: flex;
    gap: 10px;
}

.icon {
    width: 30px;
    height: 30px;
    border-radius: 20%;
    border: 1px solid #d2691e;
    background-color: #3b2f2f;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}
.icon.active {
  background-color: rgba(255, 165, 0, 0.5); /* オレンジの背景色に設定 (透明度あり) */
  border: 2px solid rgba(255, 255, 255, 0.7); /* 境界線を変更（オプション） */
}
@media (max-width: 600px) {
    .search-menu {
        max-width: 100%;
        padding: 10px;
    }

    .icon {
        width: 18px;
        height: 18px;
    }
}

/*編集者申請アイコン*/
.custom-link-parent-element {
  position: relative; /* 子要素を絶対位置で配置できるように */
}

.custom-link {
  display: inline-flex; /* アイコンとテキストを横並びに */
  align-items: center;  /* アイコンとテキストを中央揃え */
  padding: 10px 20px; /* 内側の余白 */
  background-color: #3e3e3e; /* 背景色 */
  color: white; /* 文字色 */
  border-radius: 30px; /* 角を丸く */
  border: 2px solid #888; /* 枠線 */
  text-decoration: none; /* リンクの下線を消す */
  font-size: 16px;
  cursor: pointer;
  position: absolute; /* 親要素内で絶対位置に配置 */
  right: 15px; /* 親要素の右下に固定 */
  bottom: 15px;
}

.custom-link:hover {
    background-color: #555; /* ホバー時の背景色変更 */
    border-color: #aaa; /* ホバー時の枠線色変更 */
}

.link-icon {
    position: absolute; /* アイコンを絶対位置にする */
    left: -15px; /* ボタンからアイコンを外に配置する */
    top: 43%; /* ボタンの中央に垂直配置 */
    transform: translateY(-50%); /* 垂直方向の中央揃え */
    width: 40px; /* アイコンの幅 */
}

/*アイコンサイズ調整*/
.icon_resize img{
  height:15px;
}

/*テスト*/
.passive_skill_name {
  margin: 0 auto;
  padding: 5px 0;
  font-family: sans-serif;
  font-size: 16px;
  color:#efc182;
  font-weight: bold;
}
.passive_skill_name .heading {
  position: relative;
  padding-left: 30px;
}
.passive_skill_name .heading:before,
.passive_skill_name .heading:after{
  content: "□";
  position: absolute;
  width:4px;
  height: 4px;
}
.passive_skill_name .heading:before {
  left:0;
  top:-3px;
}
.passive_skill_name .heading:after {
  left: 5.5px;
  top: 3.5px;
}

/* 敵出現一覧の整形 */
.th_01,.td_01 {
	width:60px;
}
.th_02,.td_02 {
	width:30px;
}
.th_03,.td_03 {
	width:20px;
}

.th-50,.td-50 {
  	width:50px;
}
.th-55, .td-55 {
  	width:55px;
}
.th-70,.td-70 {
  	width:70px;
}
.th-80,.td-80 {
  	width:70px;
}

/*上に戻るボタン*/
#page-top {
    position: fixed;
    bottom: 160px;
    right: 20px;
}

/*tabデザイン*/
.tab-group{
  padding: 20px 10px;
  display: flex;
  justify-content: center;
}
.tab{
  flex-grow: 1;
  padding:5px;
  list-style:none;
  border:solid 1px #CCC;
  text-align:center;
  cursor:pointer;
}
.panel{
  display:none;
}
.tab.is-active{
  background: #670000;
  color: #fcc404;
  font-weight: bold;
}
.panel.is-show{
  display:block;
}

/* ---------------------------- */
/*　スマホ用　*/
/* ---------------------------- */
body div.uk-container.uk-container-center.sp {
  background-color: #000;
  color: #efc182;
  border-top-left-radius:0px;
  border-top-right-radius:0px;
  border: thick double #efc182;
  background-color: rgba(0,0,0,0.8);
}
body>div.uk-container.sp>section#wiki_menu {
  background-color: #000;
  color: #efc182;
  background-color: rgba(0,0,0,0.8);
  border: none;
}


/* スマートフォン向け (最大600px) */
@media (max-width: 600px) {
  .character-grid {
    grid-template-columns: repeat(3, 1fr); /* 2カラムに変更 */
  }
  .strategy-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* タブレット向け (601px〜900px) */
@media (min-width: 601px) and (max-width: 900px) {
  .character-grid {
    grid-template-columns: repeat(6, 1fr); /* 3カラムに変更 */
  }
  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* 大きな画面向け (901px以上) */
@media (min-width: 901px) {
  .character-grid {
    grid-template-columns: repeat(6, 1fr); /* 6カラムに戻す */
  }
  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-container {
  display: grid;
  gap: 1rem; /* カード間のスペース */
  grid-template-columns: 1fr; /* デフォルトは1列 */
}

/* PCでの表示 */
@media (min-width: 768px) {
  .card-container {
    grid-template-columns: 1fr 1fr; /* 画面幅が768px以上では2列 */
  }
}

.prisoner-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #000;
    padding: 10px 0;
    position: relative;
}

.arrow {
    font-size: 2rem;
    color: #c09b67;
    cursor: pointer;
    user-select: none;
    z-index: 1;
}

.prisoner-container {
    display: flex;
    overflow: hidden;
    width: 90%;
    scroll-behavior: smooth;
}

.prisoner {
    min-width: 100px;
    margin: 0 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
 img {
    width: 100%;
    height: auto;
 }
}

.prisoner:hover {
    transform: scale(1.1);
}

#prisoner1 { background-color: #d4e1e8; }
#prisoner2 { background-color: #ffb1b4; }
#prisoner3 { background-color: #ffef23; }
#prisoner4 { background-color: #cf0000; }
#prisoner5 { background-color: #293b95; }
#prisoner6 { background-color: #5bffde; }
#prisoner7 { background-color: #4e3076; }
#prisoner8 { background-color: #ff9500; }
#prisoner9 { background-color: #820000; }
#prisoner11 { background-color: #8b9c15; }
#prisoner12 { background-color: #325339; }
#prisoner13 { background-color: #69350b; }


.character-container {
  margin: 0 auto;
  background-color: #1e1e1e;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #9b6938;
  .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    img {
      width: 200px;
      height: 200px;
      object-fit: cover;
      border-radius: 50%;
    }
  }
}
.character-info {
  flex: 1;
}

.traits {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;

  .trait {
    display: flex;
    flex-direction: column;
    align-items: center;
    img {
      width: 60px;
      height: 60px;
    }
    p {
      margin-top: 10px;
      font-size: 14px;
      color: #babbb4;
    }
  }

}

.skills-section {
  margin-top: 20px;
}

.skills-section h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.skill {
  margin-bottom: 20px;
}

.skill h4 {
  font-size: 20px;
}

ego_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  th {
    background-color: #2c2c2c;
  }

  td {
    background-color: #1e1e1e;
  }
}

ego_table, th, td {
  border: 1px solid #9b6938;
  padding: 10px;
  text-align: center;
}



/* スマホ対応 */
@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .traits {
    flex-wrap: wrap;
  }

  .trait {
    margin-bottom: 20px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  th, td {
    white-space: nowrap;
  }
}