@charset "UTF-8";

/* CSSアニメーションの定義 */
@keyframes fadeInAndSlide {
  from {
    opacity: 0;
    transform: translateX(-50px);
    /* 左から50pxの位置から */
  }
  to {
    opacity: 1;
    transform: translateX(0);
    /* 本来の位置へ */
  }
}
/* フェードイン＆スライドアニメーションクラス */
.fade-in-slide {
  animation: fadeInAndSlide 1s ease-in-out forwards;
  /* アニメーションのeasingやdurationを調整可能 */
}
#mv .mv-img {
  height: 530px;
  width: 100%;
  object-position: left;
}

#mv .image-container img {
  height: auto;
  opacity: 0;
  transform: translateX(-50px);
  object-fit: cover;
  height: 85vh;
}
#mv #imageB {
  position: absolute;
  left: 22%;
}
#mv #imageC {
  position: absolute;
  left: 44%;
}
#mv .title {
  bottom: 42%;
  left: 0;
  z-index: 9999;
  right: 0;
  margin: auto;
}
.pink-left-line {
  border-left: solid #e66f9b 3px;
}
.blue-left-line {
  border-left: solid #106cb9 3px;
}
.image-container {
  display: flex;
}
#emergency {
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 9999;
}
#emergency-under {
  z-index: 9999;
}
#emergency .button {
  position: relative;
  padding: 10px 25px;
  color: white;
  text-decoration: none;
  line-height: 1.8;
  transition: 0.3s ease-in-out;
  border-radius: 9999px;
  border-bottom: 2px solid #9e3535;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
}
#emergency .button:hover {
  border-bottom: 2px solid #9e3535;
  transform: translateY(3px);
}
#emergency .rounded-3 {
  border-radius: 10px 10px 0 0 !important;
}
#emergency-under .rounded-3 {
  border-radius: 0 0 10px 10px !important;
  box-shadow: #cce1f1 0 4px 4px !important;
}

#bg-map {
  background-image: url("/assets/images/top/bg-map.jpg");
  background-position: center;
  background-size: cover;
}

#highlight .object-fit {
  object-fit: contain;
  height: 200px !important;
  width: 100%;
}
#highlight .title {
  bottom: -10px;
  left: 0;
  right: 0;
}

#company .title {
  border-bottom: solid #0e6cb9 2px;
}
#company .google-map {
  width: 95% !important;
  height: 300px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
#company .google-map iframe {
  height: 660px;
  margin-top: -170px;
  width: 100%;
}
#staff {
  background-image: url(/assets/images/top/bg-staff.jpg);
  background-position: bottom;
  background-size: cover;
}
#staff .name {
  display: inline-block;
  bottom: 0;
  right: 10%;
  border-radius: 10px 0 10px 0;
}
#staff .nami {
  width: 40px;
  height: 20%;
  position: absolute;
  right: -15%;
  bottom: -8%;
}

#service .bg-light-blue.message {
  border-radius: 20px;
}
#service .message .bg-white {
  border-radius: 20px;
  border: solid #0275c1 3px;
}
#service .marker {
  background: linear-gradient(transparent 60%, #f5f29a 60%);
}

#service .balloon1 p {
  position: relative;
  display: block;
  margin: 1.5em 0;
  padding: 7px 10px;
  min-width: 120px;
  max-width: 100%;
  color: #555;
  font-size: 16px;
  background: #5ebde0;
  border-radius: 70px;
  color: white !important;
}

#service .balloon1 p:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -15px;
  border: 15px solid transparent;
  border-top: 15px solid #5ebde0;
}
#service .service-img1 {
  bottom: -75px;
  right: 0px;
  max-width: 65px;
}
#service .service-img2 {
  bottom: -65px;
  left: -26px;
  max-width: 70px;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 200, "opsz" 48;
}

/* アニメーション */
.title-img1,
.title-img2,
.title-img3,
.title-img4,
.title-img5 {
  z-index: 99991;
}

.title-img1 {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 300px;
  bottom: 300px;
  margin: auto;
}
.title-img2 {
  left: 2%;
  width: 10% !important;
  bottom: 390px;
}
.title-img3 {
  left: 6%;
  bottom: 390px;
  width: 8% !important;
  display: none;
}
.title-img4 {
  bottom: 200px;
  right: 0%;
  width: 63px !important;
}
.title-img5 {
  right: 2%;
  width: 12% !important;
  bottom: 230px;
  display: none;
}

/* 画像の初期状態（非表示で少し下に配置） */
.title-img-container img {
  width: 100%; /* 親要素の幅いっぱいに広げる */
  opacity: 0; /* 最初は非表示 */
  transform: translateY(50px); /* 少し下に移動 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* アニメーションのトランジションを設定 */
}

/* アニメーション後の状態（表示され、元の位置に弾むように移動） */
.title-img-container img.is-visible {
  opacity: 1; /* 表示 */
  animation: bounceInUp 0.8s forwards; /* bounceInUpアニメーションを適用 */
}

/* 弾むような動きのキーフレームアニメーション */
@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(50px); /* 開始位置：下から */
  }
  60% {
    opacity: 1;
    transform: translateY(-10px); /* 弾む動き：少し上に */
  }
  80% {
    transform: translateY(5px); /* 少し戻る */
  }
  100% {
    transform: translateY(0); /* 最終位置：元の場所 */
  }
}

btn:hover {
  opacity: 0.5 !important;
  background: #ddd !important;
}
.souki-baibai-illust {
  position: absolute;
  right: 0%;
  bottom: -34px;
  width: 12%;
}

#contact .btn:hover {
  background-color: #0e6cb9;
  color: white;
  opacity: 0.6 !important;
}

@media screen and (min-width: 769px) {
  #company .google-map {
    width: 100% !important;
    height: 500px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
  }
  #company .google-map iframe {
    height: 860px;
    margin-top: -170px;
  }
  #service .service-img1 {
    bottom: 0;
    right: 35px;
    max-width: 84px;
  }
  #service .service-img2 {
    bottom: 0;
    left: 35px;
    max-width: 100px;
  }
  #service .balloon1 p {
    margin: 3em 0 1.5em;
  }
  #staff .name {
    bottom: 18%;
  }
  #highlight .item:nth-child(2) {
    margin-top: -50px;
  }
  #highlight .item:nth-child(3) {
    margin-top: -100px;
  }
  #mv .mv-img {
    height: 75vh;
  }
  #mv .title {
    bottom: 10%;
    left: 0;
    z-index: 9999;
    right: 0;
    margin: auto;
  }
  .title-img1 {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    bottom: 150px;
    margin: auto;
  }
  .title-img2 {
    left: 22%;
    width: 70px !important;
    bottom: 110px;
    display: inline;
  }
  .title-img3 {
    left: 30%;
    bottom: 265px;
    width: 50px !important;
    display: inline;
  }
  .title-img4 {
    bottom: 230px;
    right: 26%;
    width: 100px !important;
  }
  .title-img5 {
    right: 22%;
    width: 70px !important;
    bottom: 140px;
    display: inline;
  }
  .souki-baibai-illust {
    position: absolute;
    right: 4%;
    bottom: -34px;
    width: 10%;
  }
}
