/* モンスター詳細ページ専用。monsters/monster.html の表示用スタイルを移植。 */

.monster-detail-page .detail-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-bottom: 16px;
}

.monster-detail-page .page-title {
  margin-bottom: 36px;
  font-size: 22px;
}

.monster-detail-page .detail-img-wrap {
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  position: relative;
}

.monster-detail-page .detail-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.monster-detail-page .detail-body {
  padding: 20px 24px 24px;
}

.monster-detail-page .detail-name {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
}

.monster-detail-page .bloodline-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.monster-detail-page .bloodline-item {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.monster-detail-page .bloodline-label {
  color: #bbb;
  font-size: 11px;
}

.monster-detail-page .bloodline-value {
  font-weight: bold;
  color: #555;
}

.monster-detail-page .section-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  padding: 22px 24px;
  margin-bottom: 16px;
}

/* 見出し下の余白は見出し自身に持たせる（直後にどの要素が来ても同じ間隔になる） */
.monster-detail-page .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monster-detail-page .section-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: bold;
  color: #1a1a2e;
  border-left: 5px solid #f0a500;
  padding-left: 12px;
}

.monster-detail-page .expl-body {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  word-break: break-word;
}

.monster-detail-page .byline {
  margin: 16px 0 0;
  color: #888;
  font-size: 12px;
  text-align: right;
}

.monster-detail-page .byline a {
  color: inherit;
}

.monster-detail-page .formation-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.monster-detail-page .formation-item-name {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

.monster-detail-page .formation-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-wrap: wrap;
}

.monster-detail-page .formation-deck-cards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.monster-detail-page .f-card {
  text-align: center;
  width: 74px;
}

.monster-detail-page .f-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.2s;
}

.monster-detail-page .f-card-placeholder {
  width: 74px;
  height: 74px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 22px;
}

.monster-detail-page .f-card-name {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
  line-height: 1.3;
}

.monster-detail-page .rental-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  align-self: center;
  gap: 3px;
}

.monster-detail-page .rental-sep-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, #f0a500, #ff6b35);
  border-radius: 2px;
}

.monster-detail-page .rental-sep-label {
  font-size: 9px;
  font-weight: bold;
  color: #f0a500;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .monster-detail-page .page-title {
    margin-bottom: 30px;
    font-size: 18px;
  }
}

/* 技セクション（固有技・レア度上昇で解放できる技）。
   血統共通技の全量は血統ページに置き、ここには出さない。 */
.monster-detail-page .skill-section-lead {
  margin: 0 0 10px;
  color: #7a6a4f;
  font-size: 13px;
}

.monster-detail-page .skill-line-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.monster-detail-page .skill-line {
  margin-bottom: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #eadfca;
  border-left: 4px solid #c9bda6;
  border-radius: 6px;
}

.monster-detail-page .skill-line:last-child { margin-bottom: 0; }

/* 技種の色分けは血統ページの技表と揃える */
.monster-detail-page .skill-line--power { background: #fdf6e6; border-left-color: #dcb861; }
.monster-detail-page .skill-line--wits  { background: #e9f3ec; border-left-color: #5f9f79; }

.monster-detail-page .skill-line-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}

.monster-detail-page .skill-line-name:hover { text-decoration: underline; }

.monster-detail-page .skill-line .skill-aura {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  flex: none;
}

.monster-detail-page .skill-line .skill-aura-赤 { background: #e53e3e; }
.monster-detail-page .skill-line .skill-aura-青 { background: #3182ce; }
.monster-detail-page .skill-line .skill-aura-黄 { background: #d69e2e; }
.monster-detail-page .skill-line .skill-aura-黒 { background: #4a4a4a; }
.monster-detail-page .skill-line .skill-aura-白 { background: #f7f5f0; }
.monster-detail-page .skill-line .skill-aura-緑 { background: #38a169; }
.monster-detail-page .skill-line .skill-aura-無 { background: transparent; border-style: dashed; }

.monster-detail-page .skill-line-req {
  margin-left: 8px;
  color: #9c4221;
  font-size: 12px;
  font-weight: bold;
}

.monster-detail-page .skill-line-meta,
.monster-detail-page .skill-line-abilities {
  display: block;
  margin-top: 3px;
  color: #7a6a4f;
  font-size: 12px;
  line-height: 1.6;
}
