@charset "UTF-8";

html{
    font-size: 100%;
}

body{
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}



/* ベースの本体 */
#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: #2765AE;
    transition: all 1s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
  }
  #loading.loaded {
    opacity: 0;
    visibility: hidden;
  }

  .loader005 {
    margin: 100px auto;
    font-size: 25px;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    -webkit-animation: load5 1.1s infinite ease;
    animation: load5 1.1s infinite ease;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
  }
  @-webkit-keyframes load5 {
    0%,
    100% {
      box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
    }
    12.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
    }
    25% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    37.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    50% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    62.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    75% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    87.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
    }
  }
  @keyframes load5 {
    0%,
    100% {
      box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
    }
    12.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
    }
    25% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    37.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    50% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    62.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    75% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
    }
    87.5% {
      box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff;
    }
  }

img{
    max-width: 100%;
    vertical-align: bottom;
}

li{
    list-style: none;
}

a{
    color: #707070;
}
/* 店舗ボタンのホバー時の透明化を無効にする */
.shop_btn a:hover {
  opacity: 1;
}

/* ホバー時に画像が少し拡大するアニメーションを追加 */
.shop_btn a img {
  transition: transform 0.3s ease; /* アニメーションを滑らかにする */
}

.shop_btn a:hover img {
  transform: scale(1.05); /* 1.05倍に拡大 */
}

.container{
  background-image:url(../img/header_sky.jpg);
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat; 
  height: 50%;
  position: relative;

}

.container .logo{
margin: 0 auto;
    width: 80%;
    position: sticky;
    padding-top: 5%;
    z-index: 1;
}

.kamome{
position:relative;
width: 80%;
margin: 0 auto;
animation: swing 3s ease infinite;
z-index: 0;
margin-top: -30%;
margin-bottom: 4%;
}

@keyframes swing {
    0%{
        transform: rotate(0);
    }
    25%{
        transform: rotate(2deg);
    }
    50%{
        transform: rotate(0);
    }
    75%{
        transform: rotate(2deg);
    }
    100%{
        transform: rotate(0);
    }
}

.header_car{
margin-top: -28%;
}

.header_wave{
margin-top: -29%;
}

.scroll {
    /* コンテナ（入れ物）自体に幅を指定します。
       画像の幅に合わせると良いでしょう。 */
    width: 3.0vw;

    /* margin-topで縦の位置を調整し、左右のmarginをautoにすることで
       コンテナが中央に配置されます。 */
    margin: -10% auto 0;

    /* position: relative; は他の要素との兼ね合いで必要であれば残してください */
    position: relative;
}

.scroll img {
    /* 画像が親要素(.scroll)の幅いっぱいに広がるようにします */
    width: 100%;
}

.zaiko{
    background-image: url(../img/zaiko_background.png);
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat; 
}
.zaiko_logo{
    width: 50%;
    margin: 0 auto;
    padding-top: 10%;
}

.shop_btn{
    display: flex; /* 中の要素を横並びにする */
    justify-content: space-around; /* 横方向の配置を「均等な間隔」にする */
    align-items: center; /* 縦方向の位置を中央に揃える */
    gap: 30px; /* ボタン間の最小の隙間を指定 */
    padding: 5% 0; /* 上下の余白（見た目の調整用） */
    margin-left: 10%;
    margin-right: 10%;
}

.shop_btn a img {
    width: 100%;
    height: auto;
}

.goseiyaku{
    background: -moz-linear-gradient(top right, #1175ED, #67CDF4, #ADDEF8); 
    background: -webkit-linear-gradient(top right, #1175ED, #67CDF4, #ADDEF8); 
    background: linear-gradient(to bottom left, #1175ED, #67CDF4, #ADDEF8);
    position: relative; /* 子要素を絶対位置で配置するための基準点にする */
    overflow: hidden;   /* セクションからはみ出した泡を隠す */
}

.bubble {
    position: absolute;
    bottom: -20px; /* 親要素の下側からスタートする */
    background: rgba(255, 255, 255, 0.833); /* 半透明の白い円 */
    border-radius: 50%;
    z-index: 1; /* コンテンツより後ろに配置（必要に応じて調整）*/
  }

          /* コンテンツを囲むラッパーのスタイル */
          .content-wrapper {
            position: relative;
            /* ラッパーをz-index: 2に設定し、泡(z-index:1)より手前に表示 */
            z-index: 2; 
        }
        /* --- 修正ここまで --- */

.seiyaku_logo{
    width: 80%;
    margin: 0 auto;
    margin-top: 10%;
}

.seiyaku_text{
    width: 70%;
    margin: 0 auto;
    margin-top: -6%;
    margin-bottom: 15%;
}

.present-option{
    width: 100%;
}

.present-A{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20%;
}

.seiyaku_name{
    width: 50%;
    height: 40%;
}

.seiyaku_img{
    width: 50%;
}

.present-A.seiyaku_text{
    position: relative;
}

.present-A .seiyaku_img{
    position: absolute;
    left: 40%;
}


/* style.css を修正・追記 */

/* present-A と present-B の共通の親要素のスタイル */
.present-options {
    position: relative; /* 子要素を重ねる際の基準になる */
    padding-bottom: 50px; /* Bの下にはみ出す画像の分、余白を確保 */
}

/* present-B のコンテナを、重ね合わせの基準点にする */
.present-B {
    position: relative; /* ★重要：この要素を基準に画像を動かす */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 右寄せにする */
    margin-top: 10%; /* Aとの間隔 */
    margin-bottom: 10%;
}

/* present-B の中の seiyaku_name (文字の画像) */
.present-B .seiyaku_name {
    width: 50%; /* 文字の幅を広めに取る */
    z-index: 1; /* 画像より手前に来るように念のため指定 */
}

/* present-B の中の seiyaku_img (商品の画像) */
.present-B .seiyaku_img {
    position: absolute; /* ★重要：通常配置から切り離し、自由に動かせるようにする */
    width: 58%; /* 画像の幅 */
    /* ↓位置の調整↓ */
    top: 50%;
    left: 10%;
    transform: translateY(-50%); /* 上下中央に配置するためのテクニック */
    z-index: 2; /* 文字より手前に来るように指定 */
}

.goraiten_present{
    width: 70%;
    margin: 0 auto;
    margin-bottom: 10%;
    padding-top: 5%;
}

.dorareko_sale{
    background: linear-gradient(to bottom, #00B5EE, #0053A0);
background: -webkit-linear-gradient(top, #00B5EE, #0053A0);
background: -moz-linear-gradient(top, #00B5EE, #0053A0);
position: relative; /* 子要素を絶対位置で配置するための基準点にする */
overflow: hidden;   /* セクションからはみ出した泡を隠す */
margin-top: -10%;
}


.top_wave{
margin-bottom:0 ;
}

.dorareko_logo{
    width: 70%;
    margin: 0 auto;
    padding-bottom: 5%;
    margin-bottom: 0;
}

.dorareko_item{
    width: 80%;
    margin: 0 auto;
    padding-bottom: 10%;
}

.dorareko_t:not(:first-child){
    margin-top:-5% ;
}

.under_wave{
    margin-top: -10%;
}

.dealer_logo{
    width: 70%;
    margin: 0 auto;
    padding-bottom: 5%;
    
}

/* style.css に追記 */

/* アニメーションの定義 */
@keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px); /* 少し下からスタート */
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* アニメーションの適用を待っている要素の初期状態 */
  .fade-in-target {
    opacity: 0; /* まずは透明にしておく */
  }
  
  /* JavaScriptによって付与される、アニメーションを開始させるクラス */
  .is-visible {
    animation: fadeInUp 1s ease-out forwards;
  }

.dealer_text{
    width: 70%;
    margin: 0 auto;
}

.dealer_text img{
    padding-bottom: 4%;
    padding-top: 4%;
}

.melit_car{
    width: 50%;
    margin-left: -20%;
}

.nintei_logo{
    margin-top: -1%;
}

.toyota_nintei{
    background-color: #E50020;
}

.nintei_text{
    width: 70%;
    margin: 0 auto;
    padding-top: 5%;
    padding-bottom: 8%;
}

.longrun_hosyou{
    background-color: #004EA2;
    padding-bottom: 13%;
    overflow: hidden; 
}

.longrun_mini_logo{
    width: 80%;
    margin: 0 auto;
    padding-top: 3%;
    padding-bottom: 3%;
}
.dealer_hosyou{
    display: flex;
    width: 100%;
    justify-content: space-around;
}

.dealer_item{
 width: 28%;
}

.hosyou_longrun_text{
    width: 80%;
    margin: 0 auto;
 margin-top: 10%;
 margin-bottom: 10%;
}


.dealer_text_box{
    width: 80%;
    margin: 0 auto;

}

.long_run_car{
    width: 50%;
margin-left: 65%;

}

.shiromaru{
    margin-top: -23%;

}

.sougaku_logo{
width: 80%;
margin: 0 auto;
margin-top:-28% ;
margin-bottom: 8%;
}

.sougaku_text{
    width: 70%;
    margin: 0 auto;
    margin-bottom: 5%;
}

.sougaku_img{
    width: 70%;
    margin: 0 auto;
}


.sitadori_car{
    width: 40%;
    margin-left: -5%;
}
.sitadori_logo_m{
width: 60%;
}

.sitadori_logo{
    display: flex;
    padding-top: 10%;
    padding-bottom: 5%;
}

.dealer_sitadori {
    /* 親要素自体は四角いままにする。切り抜かない */
    background-color: transparent; /* 背景色は疑似要素に任せるので透明にする */
    position: relative; /* ★重要：疑似要素を配置する基準点にする */
    z-index: 0; /* 重なり順の基準にする */
}

/* 背景用のレイヤーを疑似要素として作成 */
.dealer_sitadori::before {
    content: ''; /* 疑似要素には必須 */
    position: absolute; /* 親要素を基準に絶対配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* ↓ 背景色と切り抜きの指定をこちらに移動させる */
    background-color: #DCEDC9;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);

    z-index: -1; /* ★重要：コンテンツ（中身）より後ろ（背面）に配置する */
}

.sitadori-container {
    display: grid;
    /* 均等な幅の列を2つ作成する */
    grid-template-columns: repeat(2, 1fr);
    /* アイテム間の隙間（縦・横）を指定する */
    gap: 20px;
    /* コンテナの内側に余白を持たせ、見栄えを調整する */
    padding: 20px;
    width: 80%;
    margin: 0 auto;
    padding-bottom: 10%;
  }
  
  /* アイテム内の画像が親のdivに収まるようにする */
  .sitadori-item img {
    width: 100%;
    height: auto;
    display: block; /* 画像の下にできる余分な隙間を防ぐ */
  }

  .zaiko_logo_u{
    width: 50%;
    margin: 0 auto;
    padding-top: 10%;
  }

  .under_car{
    width: 60%;
    margin-left: 50%;
  }

  .last_zaiko{
    overflow: hidden;
    padding-bottom: 5%;
  }

  footer{
    background-color: #2765AE;
    padding-top: 3%;
    display: flex;
    padding-bottom: 10%;
    justify-content: space-evenly;
  }

.netz_logo{
    width: 35%;
    padding: 0 3%;
}

  .shop_list{
    display: flex;
    width: 50%;
    justify-content: space-between;
  }

  .shop_list img{
width: 30%;
  }



/*--------------------------------------------
スマホ
--------------------------------*/

@media screen and (max-width: 767px){
    
.zaiko_logo{
  width: 70%;
}

    .shop_btn{
        flex-direction: column;
        width: 65%;
        margin: 0 auto;
        padding-bottom: 5%;
    }

    @keyframes pulse-animation {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05); /* 1.05倍に少しだけ大きくする */
      }
      100% {
        transform: scale(1);
      }
    }
    
    /* 店舗ボタンの画像に、上で定義したアニメーションを適用します */
    .shop_btn a img {
        animation: pulse-animation 2.5s infinite ease-in-out; /* 2.5秒かけて無限に繰り返す */
        margin-bottom: 7%;
    }

    .scroll{
      width: 6%;
    }

    .zaiko{
        width: 100%;
        background-image: url(../img/zaiko_background_mb.png);
        background-repeat:  no-repeat;                         /* 画像の繰り返しを指定  */              
        background-position:center;    
        background-size: cover;                  /* 画像の表示位置を指定  */                       
    }

    .dealer_text{
      width: 80%;
    }

    .dealer_text img{
      margin-bottom: 10%;
    }

    .hosyou_longrun_text{
        width: 95%;
    }

.dealer_hosyou{
    flex-direction: column;
    align-items: center;
}

    .dealer_item {
        width: 40%;
        padding: 3%;
    }

    .sitadori-container{
        grid-template-columns: 1fr;
    }

    .zaiko_logo_u{
      width: 70%;
    }

    .under_car{
      width: 80%;
      margin-left: 40%;
    }

    footer{
    flex-direction: column;
    margin: 0 auto;
    align-items: center;
    padding-top: 10%;
    }

    .shop_list{
        flex-direction: column;
        align-items: center;
    }

    .shop_list img{
   width: 70%;
   padding-bottom: 15%;
    }

    .netz_logo{
        width: 70%;
        padding-bottom: 15%;
    }

}