﻿@charset 'UTF-8';
/* ============================================================
   top-mv.css
   トップページメインビジュアル用 CSS
============================================================ */   

/* ==========================================
   美園ベース メインビジュアル
   共通設定
========================================== */

.misono-mv {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background-image: url("/cms/wp-content/themes/misono_base/assets/img/mv-bg-pc.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* 画像の基本設定 */
.misono-mv img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================
   PC版レイアウト
========================================== */

@media screen and (min-width: 1024px) {

  /* メインビジュアル全体 */
  .misono-mv {
    height: 560px;
  }

  /* コンテンツ基準エリア */
  .misono-mv__inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
  }

  /* 左側コンテンツ */
  .misono-mv__content {
    position: relative;
    z-index: 3;
    width: 66%;
    height: 100%;
  }

  /* 対応エリア */
  .misono-mv__area {
    position: absolute;
    top: 140px;
    left: 15px;
    width: 280px;
  }

  /* 美園ベースロゴ */
  .misono-mv__logo {
    position: absolute;
    top: 95px;
    left: 480px;
    width: 300px;
  }

  /* メインキャッチ */
  .misono-mv__catch {
    position: absolute;
    top: 215px;
    left: 10px;
    width: 720px;
    margin: 0;
    padding: 0;
    line-height: 1;
  }

  /* サブキャッチ */
  .misono-mv__subcatch {
    position: absolute;
    top: 420px;
    left: 30px;
    width: 560px;
  }

  /* サービスアイコン */
  .misono-mv__services {
    position: absolute;
    top: 420px;
    left: 0;
    display: flex;
    width: 600px;
    gap: 5px;
  }

  .misono-mv__services img {
    width: calc((100% - 25px) / 6);
    flex-shrink: 0;
  }

  /* お問い合わせボタン */
  .misono-mv__cta {
    position: absolute;
    top: 520px;
    left: 15px;
    width: 600px;
  }

  .misono-mv__cta a {
    display: block;
    transition: transform 0.2s ease;
  }

  .misono-mv__cta a:hover {
    transform: scale(1.03);
  }

  /* 人物写真 */
  .misono-mv__person {
    position: absolute;
    right: 0;
    bottom: -50px;
    z-index: 2;
    width: 420px;
  }

  /* 吹き出し */
  .misono-mv__balloon {
    position: absolute;
    top: 130px;
    right: -80px;
    z-index: 4;
    width: 220px;
  }

}


/* ==========================================
   PC版メインビジュアル 位置調整
========================================== */

@media screen and (min-width: 1024px) {

  /* 全体の高さ */
  .misono-mv {
    height: 800px;
  }

  /* サービスアイコンを下へ */
  .misono-mv__services {
    top: 530px;
  }

  /* お問い合わせボタンを下へ */
  .misono-mv__cta {
    top: 635px;
  }

  /* 人物を少し小さくする */
  .misono-mv__person {
    width: 450px;
  }

  /* 吹き出しの位置 */
  .misono-mv__balloon {
    top: 225px;
  }

}





/* ==========================================
   スマホ版メインビジュアル
   画面幅767px以下
========================================== */
/* ==========================================
   スマホ版メインビジュアル
   画面幅767px以下
========================================== */

@media screen and (max-width: 767px) {

  /* 全体：スマホ用背景画像 */
  .misono-mv {
    width: 100%;
    height: auto;
    min-height: 0;
    background-image: url("/cms/wp-content/themes/misono_base/assets/img/mv-bg-sp.jpg");
    background-position: center top;
    background-size: cover;
  }

  /* コンテンツの配置基準 */
  .misono-mv__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 75px 15px 20px;
    box-sizing: border-box;
  }

  /* HTMLの各要素をGridで並べ替える */
  .misono-mv__content {
    display: contents;
  }

  /* ① 美園ベースロゴ：最上部 */
  .misono-mv__logo {
    position: static;
    grid-row: 1;
    width: min(45%, 200px);
    margin: 0 auto 12px;
  }

  /* ② 対応エリア：ロゴの下 */
  .misono-mv__area {
    position: static;
    grid-row: 2;
    width: min(75%, 300px);
    margin: 0 auto 15px;
  }

  /* ③ メインキャッチ */
  .misono-mv__catch {
    position: static;
    grid-row: 3;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    line-height: 1;
  }

  /* ④ 人物：メインキャッチの下 */
  .misono-mv__person {
    position: relative;
    grid-row: 4;
    grid-column: 1;
    z-index: 2;
    width: min(76%, 320px);
    margin: 15px auto 0;
    align-self: end;
  }

  /* 人物画像 */
  .misono-mv__person img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* ⑤ 吹き出し：人物の右上 */
  .misono-mv__balloon {
    position: relative;
    grid-row: 4;
    grid-column: 1;
    z-index: 3;
    width: min(34%, 145px);
    margin: 35px 0 0 auto;
    align-self: start;
    justify-self: end;
  }

  /* ⑥ サブキャッチ：人物のお腹付近に重ねる */
  .misono-mv__subcatch {
    position: relative;
    grid-row: 4;
    grid-column: 1;
    z-index: 4;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    align-self: end;
    transform: translateY(-26px);
  }

  /* ⑦ サービスアイコン：3列×2段 */
  .misono-mv__services {
    position: relative;
    grid-row: 5;
    grid-column: 1;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 340px);
    margin: -35px auto 0;
    justify-items: center;
  }

  /* 各サービスアイコン */
  .misono-mv__services img {
    width: 100%;
    max-width: 100px;
    height: auto;
  }

  /* ⑧ お問い合わせボタン */
  .misono-mv__cta {
    position: static;
    grid-row: 6;
    width: 100%;
    max-width: 400px;
    margin: 15px auto 0;
  }

  /* ボタンのタップ領域 */
  .misono-mv__cta a {
    display: block;
    width: 100%;
  }

}

/* ==========================================
   SWELL トップページの余白調整
========================================== */

/* メインコンテンツ上部の余白を削除 */
.top #content {
    padding-top: 0 !important;
}


/* ==========================================
   おすすめの住まいサポート
   画像ホバーエフェクト
========================================== */

/* サービス画像のアニメーション */
.index_pickup_service .swell-block-columns img,
.index_pickup_service .swell-block-columns a img {
  transition: transform 0.25s ease;
}

/* マウスオーバー時に少し拡大 */
@media (hover: hover) {
  .index_pickup_service .swell-block-columns a:hover img {
    transform: scale(1.03);
  }
}


/* ==========================================
   おすすめの住まいサポート
   見出し・説明文
========================================== */

/* 見出し：SWELL標準の装飾を解除 */
.index_pickup_service .pickup-service-heading {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  line-height: 1;
}

/* SWELLの見出し装飾を非表示 */
.index_pickup_service .pickup-service-heading::before,
.index_pickup_service .pickup-service-heading::after {
  content: none;
}

/* 見出し画像：PCでは最大620px */
.index_pickup_service .pickup-service-heading img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
}

/* 右側の説明文 */
.index_pickup_service .pickup-service-description {
  margin: 0;
  color: #003b73;
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================
   スマホ版：見出し・説明文
========================================== */

@media screen and (max-width: 767px) {

  /* 見出し画像のサイズ */
  .index_pickup_service .pickup-service-heading img {
    width: 100%;
    max-width: 380px;
  }

  /* 説明文を中央揃え */
  .index_pickup_service .pickup-service-description {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
  }

}