/* ==============================
   story.css
   作品トップ・世界観・キャラ・敵データ用
============================== */

/* ===== プロフィール表 ===== */
table.profile-table {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

/* ===== キャラクター紹介レイアウト ===== */
.wide-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.char-side-image {
  width: 240px;
  height: auto;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 8px;
  flex-shrink: 0;
}

.char-text {
  flex: 1;
  min-width: 200px;
}

/* ===== 敵紹介レイアウト ===== */
.enemy-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.intro-image img {
  width: 200px;
  height: auto;
  border: 2px solid #fff;
  border-radius: 8px;
}

.intro-text {
  flex: 1;
  min-width: 250px;
}

/* ===== 敵プロフィール ===== */
.enemy-profile .section {
  margin-bottom: 1.5rem;
}

.enemy-profile h4 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 600px) {
  .wide-layout {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .char-side-image {
    width: 100%;
    max-width: 300px;
  }

  .char-text {
    width: 100%;
  }

  .enemy-intro {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .intro-image img {
    width: 80%;
    max-width: 300px;
  }
}