﻿
@charset "UTF-8";

/* ============================================================
   service-mv.css
   美園ベース サービスページ共通MV

   対象：
   shiroari / pipe-cleaning / tree-cutting

   PC : 1024px以上
   TAB: 768～1023px
   SP : 767px以下
============================================================ */


/* ==========================================
   共通設定
========================================== */

.misono-service-mv {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.misono-service-mv,
.misono-service-mv * {
  box-sizing: border-box;
}

.misono-service-mv img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.misono-service-mv__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.misono-service-mv__content {
  position: relative;
  z-index: 3;
}

.misono-service-mv__catch {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  line-height: 1;
}

.misono-service-mv__catch::before,
.misono-service-mv__catch::after {
  content: none;
}

/* CTA */

.misono-service-mv__cta a {
  display: block;
  width: 100%;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .misono-service-mv__cta a:hover {
    transform: scale(1.03);
  }
}


/* ==========================================
   サービス別：背景画像
========================================== */

/* シロアリ駆除 */
.misono-service-mv--shiroari {
  background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-shiroari-bg-pc.jpg");
}

/* 配管クリーニング：画像準備後に使用 */
/*
.misono-service-mv--pipe-cleaning {
  background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-pipe-cleaning-bg-pc.jpg");
}
*/

/* 庭木の伐採・草刈り：画像準備後に使用 */
/*
.misono-service-mv--tree-cutting {
  background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-tree-cutting-bg-pc.jpg");
}
*/


/* ==========================================
   PC版：1024px以上
========================================== */

@media screen and (min-width: 1024px) {

  .misono-service-mv {
    height: 800px;
  }

  .misono-service-mv__inner {
    height: 100%;
  }

  /* 左側 */
  .misono-service-mv__content {
    width: 65%;
    height: 100%;
  }

  /* 対応エリア */
  .misono-service-mv__area {
    position: absolute;
    top: 40px;
    left: 15px;
    width: 280px;
  }

  /* キャッチ＋タイトル */
  .misono-service-mv__catch {
    position: absolute;
    top: 115px;
    left: 0;
    width: 740px;
  }

  /* サブキャッチ */
  .misono-service-mv__subcatch {
    position: absolute;
    top: 335px;
    left: 10px;
    width: 700px;
  }

  /* アイコン3個 */
  .misono-service-mv__icons {
    position: absolute;
    top: 460px;
    left: 35px;

    display: flex;
    align-items: center;
    gap: 12px;
    width: 540px;
  }

  .misono-service-mv__icons img {
    width: calc((100% - 24px) / 3);
    flex-shrink: 0;
  }

  /* CTA */
  .misono-service-mv__cta {
    position: absolute;
    top: 645px;
    left: 15px;
    width: 600px;
  }

  /* 右側作業画像 */
  .misono-service-mv__main {
    position: absolute;
    top: 100px;
    right: -50px;
    z-index: 2;
    width: 800px;
  }

}


/* ==========================================
   タブレット版：768～1023px
========================================== */

@media screen and (min-width: 768px) and (max-width: 1023px) {

  .misono-service-mv {
    height: 700px;
  }

  .misono-service-mv__inner {
    height: 100%;
  }

  .misono-service-mv__content {
    width: 100%;
    height: 100%;
  }

  .misono-service-mv__area {
    position: absolute;
    top: 115px;
    left: 3%;
    width: 25%;
  }

  .misono-service-mv__catch {
    position: absolute;
    top: 205px;
    left: 2%;
    width: 62%;
  }

  .misono-service-mv__subcatch {
    position: absolute;
    top: 370px;
    left: 3%;
    width: 59%;
  }

  .misono-service-mv__icons {
    position: absolute;
    top: 445px;
    left: 4%;

    display: flex;
    gap: 8px;
    width: 48%;
  }

  .misono-service-mv__icons img {
    width: calc((100% - 16px) / 3);
  }

  .misono-service-mv__cta {
    position: absolute;
    top: 580px;
    left: 3%;
    width: 54%;
  }

  .misono-service-mv__main {
    position: absolute;
    top: 170px;
    right: -12%;
    z-index: 2;
    width: 65%;
  }

}


/* ==========================================
   スマホ版：767px以下
========================================== */

@media screen and (max-width: 767px) {

  .misono-service-mv {
    height: auto;
    min-height: 0;

    background-position: center center;
    background-size: cover;
  }

  /* スマホ用背景 */
  .misono-service-mv--shiroari {
    background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-shiroari-bg-sp.jpg");
  }

  /*
  .misono-service-mv--pipe-cleaning {
    background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-pipe-cleaning-bg-sp.jpg");
  }

  .misono-service-mv--tree-cutting {
    background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-tree-cutting-bg-sp.jpg");
  }
  */

  /* スマホの配置基準 */
  .misono-service-mv__inner {
    position: relative;
    width: 100%;
    height: max(650px, 160vw);
    margin: 0 auto;
  }

  /* 全パーツを同じ基準で配置 */
  .misono-service-mv__content {
    display: contents;
  }

  .misono-service-mv__area,
  .misono-service-mv__catch,
  .misono-service-mv__subcatch,
  .misono-service-mv__icons,
  .misono-service-mv__cta,
  .misono-service-mv__main {
    position: absolute;
    margin: 0;
    padding: 0;
  }

  /* 作業画像 */
  .misono-service-mv__main {
    top: 5%;
    right: -12%;
    width: 100%;
    z-index: 2;
  }

  /* 対応エリア */
  .misono-service-mv__area {
    top: 5%;
    left: 5%;
    width: 43%;
    z-index: 3;
  }

  /* キャッチ＋タイトル */
  .misono-service-mv__catch {
    top: 38%;
    left: 3%;
    width: 94%;
    z-index: 5;
  }

  /* サブキャッチ */
  .misono-service-mv__subcatch {
    top: 55%;
    left: 4%;
    width: 92%;
    z-index: 5;
  }

  /* アイコン3個 */
  .misono-service-mv__icons {
    top: 65%;
    left: 7%;
    width: 86%;
    z-index: 6;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5vw;
  }

  .misono-service-mv__icons img {
    width: 100%;
    min-width: 0;
  }

  /* CTA */
  .misono-service-mv__cta {
    bottom: 7%;
    left: 5%;
    width: 90%;
    z-index: 7;
  }

}


/* ==========================================
   アニメーション軽減設定
========================================== */

@media (prefers-reduced-motion: reduce) {
  .misono-service-mv__cta a {
    transition: none;
  }
}



/* ============================================================
   配管クリーニングMV
   背景画像設定
============================================================ */

/* PC・タブレット */
.misono-service-mv--pipe-cleaning {
  background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-pipe-cleaning-bg-pc.jpg");
}

/* スマホ */
@media screen and (max-width: 767px) {

  .misono-service-mv--pipe-cleaning {
    background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-pipe-cleaning-bg-sp.jpg");
  }

}


/* ============================================================
   配管クリーニングMV
   作業画像位置調整
============================================================ */
@media screen and (min-width: 1024px) {

  .misono-service-mv--pipe-cleaning
  .misono-service-mv__main {
    top: 180px;
    right: -50px;
    width: 800px;
  }

}


/* ============================================================
   庭木の伐採・草刈り MV
   tree-cutting 専用背景画像
============================================================ */

/* PC・タブレット用背景 */
.misono-service-mv--tree-cutting {
  background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-tree-cutting-bg-pc.jpg");
}

/* スマホ用背景 */
@media screen and (max-width: 767px) {

  .misono-service-mv--tree-cutting {
    background-image: url("/cms/wp-content/themes/misono_base/assets/img/service-mv-tree-cutting-bg-sp.jpg");
  }

}

/* ============================================================
   庭木の伐採・草刈り MV
   tree-cutting 作業画像位置調整
============================================================ */
@media screen and (min-width: 1024px) {

  .misono-service-mv--tree-cutting
  .misono-service-mv__main {
    top:auto;
    bottom: 0px;
    right: -50px;
    width: 800px;
  }

}