@charset "utf-8";

/* ==========================================
   にゃん版（＝正式版）の上書き
   2026-08-25 にゃん版が正式採用になり index.html から直接読み込む。
   （旧: index_nyan.html 専用 ／ 旧A案の武将立ち絵版は _old/ に退避）
========================================== */

/* ---- セリフの話し手をにゃんに ---- */
.serif-chara-nyan {
  width: auto !important;
  height: 118px;            /* 武将の立ち絵より小さくてよい */
}

/* 向きの調整 ────────────────────────────────
   セリフ枠は「左=にゃん / 右=文章」なので、にゃんは右を向いていてほしい。
   ★ 猿飛・霧隠は面覆いに「IXA」の文字があるので絶対に反転しないこと（鏡文字になる）
   ------------------------------------------------ */
/* 竹林院にゃんは元絵が左向き → 反転して文章側を向かせる */
.serif-chara-nyan[alt="竹林にゃん"] { transform: scaleX(-1); }

/* 締めのバンドは両端が内側を向くように（文字のある忍者2体は触らない） */
.nyan-closing img[alt="竹林にゃん"],
.nyan-closing img[alt="幸村にゃん"] { transform: scaleX(-1); }

/* にゃんが喋る枠は明るく、丸っこく */
.sub-part .serif-box {
  border-radius: 14px;
  background: rgba(255, 252, 240, .82);
}

/* ---- 合戦クエストの各マスに添えるにゃん ---- */
.quest-cell {
  position: relative;
}

/* カードを隠さないよう、マスの左下から小さく覗かせる */
.quest-nyan {
  position: absolute;
  left: -6px;
  bottom: 64px;
  width: auto !important;
  height: 46px;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(60, 40, 8, .55));
  pointer-events: none;
}

/* 左下に置くので、カード側の余白調整は不要 */

/* ---- 締めのにゃんバンド ---- */
.nyan-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 10px 0 26px;
  background-color: var(--bg-sec);
  background-image: url('../img/gold_tex.jpg');
  background-size: 400px 400px;
}

.nyan-closing img {
  height: 150px;            /* ▼ にゃんの大きさ（調整用）※FB「最後のキャラを大きく」で104→150 */
  width: auto;
  margin: 0 !important;
  padding: 0 !important;
  filter: drop-shadow(0 4px 6px rgba(90, 60, 10, .45));
}

.nyan-closing img:nth-child(3) { height: 190px; }

.nyan-closing-text {
  flex: 0 0 100%;
  margin-top: 16px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 900;
  color: #4a2e08;
  padding: 0 !important;
}
