@charset "utf-8";

/* =====================================================
   Media Components
===================================================== */

/* 画像フィット用（コンテナ中央寄せ） */
.fit_img {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* 旧コメントの“IE用”は不要だが互換のため残してもOK */
}

.fit_img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* レガシー版：記述ミス修正（display: relative → position: relative） */
.regacy_fit_img {
  position: relative;
  overflow: hidden;
}

.regacy_fit_img img {
  position: absolute;
  left: -50%;
  right: -50%;
  top: -50%;
  bottom: -50%;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* object-fit を使う場合の補助（polyfill運用をするなら） */
.ofi {
  object-fit: cover;
  font-family: 'object-fit: cover;'; /* polyfill系の名残。使わないなら削除 */
}
