@charset "UTF-8";

#mv .title {
  bottom: 40%;
  left: 0;
  z-index: 9999;
  right: 0;
  margin: auto;
}
#mv h1 {
  bottom: 0;
  left: 10%;
  z-index: 9999;
}

#concept .message-box {
  background: #ddd;
  background: linear-gradient(90deg, rgb(235 235 228 / 60%) 30%, rgb(175 174 174));

  top: 0;
  left: 10%;
  border-radius: 10px;
}

#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%;
}

#information {
  background-image: url(/assets/images/top/bg-news.png);
  background-size: cover;
  background-position: left;
}
#information h3 {
  max-width: 100px;
}
#information li {
  width: 95% !important;
}
#information .slider-img {
  margin: 0 10px !important;
}
#information .object-fit {
  object-fit: contain;
  height: 230px;
  width: 100%;
  background: #ddd;
}
.slide-arrow.prev-arrow,
.slide-arrow.next-arrow {
  background: #133262;
  color: white;
  border: #dddd 1px solid;
  opacity: 1;
  border-radius: 50%;
  height: 50px;
  width: 50px;
  position: absolute;
  top: 40%;
  z-index: 10;
  text-align: center;
}
.slide-arrow.prev-arrow {
  left: 2% !important;
}
.slide-arrow.next-arrow {
  right: 2% !important;
}
.slick-arrow.prev-arrow i,
.slick-arrow.next-arrow i {
  position: absolute;
  top: 8%;
  left: 50%;
  color: white;
  width: 40%;
  font-size: 35px;
  line-height: 2.6rem;
  transform: translateX(-50%);
}
.baibai .slide-arrow.prev-arrow,
.baibai .slide-arrow.next-arrow {
  background: #ebebe4;
}
.baibai .slick-arrow.prev-arrow i,
.baibai .slick-arrow.next-arrow i {
  color: #133262;
}

.slick-track {
  display: flex;
}
.slick-slide {
  height: auto !important;
}
#information .slick-slide > div {
  height: 100% !important;
}

#staff {
  background-image: url(/assets/images/top/bg-staff.jpg);
  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: #133262;
  color: #fff;
  opacity: 0.6;
}

@media screen and (min-width: 769px) {
  #mv h1 {
    bottom: 28%;
  }

  #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%;
  }
}

/* ポップアップのスタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  /* Slickスライダーより手前に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  position: relative;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
  color: #333;
}

#information button {
  cursor: pointer;
  background: #133262;
  border: none;
  color: white;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
