/* FFレゾナンス攻略 固有スタイル（表示崩れ対策 + FF風の青い窓・クリスタル意匠） */

/* K1: 属性アイコン等がチップ地色に溶けないよう白丸の下地を敷く */
.ffr-site .chip-img {
  background: #fff;
  border-radius: 50%;
  padding: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25);
}

/* K2: スマホ・トップのキービジュアルでロゴが切れないよう contain にする */
.ffr-site .hero-img {
  object-fit: contain !important;
  background: #0e1f4d;
}

/* J1: 対応バージョン帯・記事メタがスマホ幅で右端に切れないように折り返す */
.ffr-site .article-meta,
.ffr-site .article-meta span {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* J4: 目次・リンク・タブ・カードで語の途中の不自然な折り返しを抑える */
.ffr-site .toc-grid a,
.ffr-site .link-grid a,
.ffr-site .tabs button,
.ffr-site .p-card,
.ffr-site .menu-tiles a {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* J2: スマホで表内のチップが隣の列に重ならないようにする */
@media (max-width: 700px) {
  .ffr-site table.data td .chip {
    white-space: normal;
    font-size: 11px;
    line-height: 1.4;
    max-width: 100%;
  }
  .ffr-site table.data td .chips {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* L7: 検索欄の案内文字のコントラストを 4.5:1 以上に確保 */
.ffr-site .search-box input::placeholder {
  color: #596068;
  opacity: 1;
}

/* J11 / R12: 文章ページのアイキャッチでロゴにページ名が重ならないようFFの青い窓にする */
.ffr-site .eyecatch {
  background-image: linear-gradient(180deg, #1E3F86 0%, #0E1F4D 100%) !important;
  border: 2px solid #C9D6F2;
  box-shadow: inset 0 0 0 1px #5F7BC2;
}

/* 世界観の具体案: H2の金の線 */
.ffr-site .prose h2,
.ffr-site main > section > h2 {
  border-bottom: 2px solid #D8B45A;
}

/* R15: 一覧カードの見た目を整える */
.ffr-site .p-cards3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
