@charset "utf-8";
/* CSSで背景に動画を設定して自動再生させる */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  color: #fff;
}

main>* {
  position: relative;
}

.videoWrap {
  .bgMv {
    position: fixed;
    inset: 0;
    /* top,bottom,left,rigthtすべて0 */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*  上下左右切り取られちゃうけどサイズ内に覆うよう隙間無くに表示される */
    /*　background-size:  cover;　は背景しか指定できないけど
  object-fit: cover;　どんな要素でも指定できる
  */
    object-position: 50% 50%;
  }
}

.fv {
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  font-size: 70px;
  line-height: 1.4;
  font-weight: bold;
  height: 100vh;
  mix-blend-mode: difference;
}

section {
  background-color: #000;
  padding: 50px;

  h2 {
    font-size: 30px;
    margin-bottom: .5em;
  }

  p {
    line-height: 1.4;
  }

  &.bgWhite {
    background-color: #fff;
    color: #000;
  }
}
