/* -----------------------------------------------
 = 追加
----------------------------------------------- */
/* -----------------------------------------------
メインビジュアル　ムービー
------------------------------------------------ */
/* ▼ メインビジュアル背景 */
.video-overlay-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.fv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ▼ 暗くする半透明黒オーバーレイ */
.video-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* ★ここで暗さ調整 */
  z-index: 1;
  pointer-events: none;
}

/* ▼ オーバーレイ中央配置 */
.overlay-content {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  padding: 0 1rem;
  text-align: center;
  z-index: 2;
  pointer-events: auto;
}

/* ▼ テキスト画像 */
.overlay-textbox {
  margin-bottom: 30px;
}
.overlay-textbox img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width:100%;
}

/* ▼ アイコンラップ */
.overlay-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ▼ 丸型アイコン画像 */
.icon-item img {
  width: 250px;
  height: 250px;
}
/* PC/SP画像の切り替え */
.only-pc {
  display: block !important;
}
.only-sp {
  display: none !important;
}
.catch-main {
  text-align: center;
}
/*.catch-main img {
  display: inline-block;
}*/
.catch-main img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 75vh;  /* 縦の見切れ防止 */
  height: auto;
}

/* ▼ レスポンシブ */
@media screen and (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  /* Nest Hub 第1世代に近いデバイス */
  .only-pc {
    display: inline-block !important;
    max-width:60% !important;
  }
}
@media screen and (max-width: 768px) {
  .only-pc {
    display: none !important;
  }
  .only-sp {
    width: 90%;
    height: auto;
    margin: 0 auto;
    display: block !important;
  }

  .video-overlay-container {
    height: 90vh;
  }

  .icon-item img {
    width: 180px;
    height: 180px;
  }
}

/* ▼ ノートPC向け：縦が狭い画面だけに適用 */
@media screen and (min-width: 769px) and (max-height: 800px) {
  .overlay-textbox img {
    /* padding-top: 90px;*/
    max-width: 65%;
    height: auto;
  }
}

@media screen and (max-width: 480px) {
  .video-overlay-container {
    height: 70vh;
  }
	.overlay-content {
    top: 50%;
  }

  .icon-item img {
    width: 130px;
    height: 130px;
  }
}
/* Chrome・Edge用（Safari以外） */
@supports (-webkit-appearance: none) {
.overlay-content {
  top: 57%;
  }
.overlay-textbox img {
  padding-top: 50px;
  max-width: 100vh;
  height: auto;
  }
.catch-main img {
  max-height: 80vh !important;
  }
}

/* Firefox用 */
@-moz-document url-prefix() {
.overlay-content {
  top: 55%;
  transform: translate(-50%, -50%);
  }
.catch-main img.only-pc {
  max-height: 75vh;
  width: auto;
  margin: 0 auto;
  }
}

@media screen and (width: 1280px) and (height: 800px) {
  .overlay-content {
  top: 55% !important;
  }
  .only-pc {
  display: block !important;
  max-width: 85% !important;
  height: auto !important;
  margin: 0 auto !important;
  }
}

@media screen and (max-height: 800px) {
  /*.overlay-content {
  top: 45% !important;
  }
  .overlay-textbox img {
  padding-top:90px;
  height: auto;
  max-width:65%;
  }*/
}

/* スマホ横向きやPC横長ウィンドウ時に画像を縮小 */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .catch-main img {
    max-height: 50vh;
  }
}
/* スマホ横向きや画面が低い場合のみ潰れ防止で比率固定 
@media screen and (orientation: landscape), screen and (max-height: 600px) {
  .catch-main img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    max-height: 65vh;
  }
}
@media screen and (orientation: landscape), screen and (max-height: 500px) {
  .catch-main img {
    padding-top:20px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
}
@media screen and (orientation: landscape), screen and (max-height: 350px) {
  .catch-main img {
    padding-top:20px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    max-height: 55vh;
  }
}*/
@media screen and (max-width: 768px) and (orientation: landscape) {
  .catch-main img {
    padding-top: 20px;
    max-height: 55vh;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
}
