.overlay-text {
  position: absolute;
  top: 40%;
  left: 15%;
  text-align: center;
  color: white;
  z-index: 10;
}

.overlay-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: bold;
  border: 2px solid;
  /* 枠の色 */
  border-radius: 5px;
  /* 角を丸く */
  /* 背景色を半透明の黒に */
  padding: 10px 20px;

}

.overlay-text p {
  color: black;
  font-weight: bold;
  width: 90%;
  font-size: 3rem;
  padding: 5px 15px;
  /* 横のpaddingを少し増やして横幅を広げる */
  border: 2px solid;
  /* 枠の色 */
  border-radius: 5px;
  /* 角を丸く */
  /* 背景色を半透明の黒に */
}

/* ボーダーと背景色のfadeInアニメーション */


.overlay-text h1,
.overlay-text p {
  /* ボーダーと背景色の初期状態を透明に設定 */
  border-color: transparent;
  background-color: transparent;
}

.overlay-text h1 {
  /* h1のアニメーション開始時間を2秒後に設定 */
  animation: borderAndBackgroundFadeIn 0.5s forwards 2s;
}

.overlay-text p {
  /* pのアニメーション開始時間を3.5秒後に設定（h1のアニメーション後に開始） */
  animation: borderAndBackgroundFadeIn 0.5s forwards 3.5s;
}

@keyframes borderAndBackgroundFadeIn {
  0% {
    border-color: transparent;
    background-color: transparent;
  }

  100% {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.5);
  }

}

/* 以下のスタイルは先ほど提供したものと同じです。 */
.works-slider {
  display: flex;
}

.slider-item {
  padding-left: 30px;
}

.project-link {
  color: #505050;
}

.slick-list {
  height: 30vh;
  /* ビューポートの高さの50% */
}

.main-slider img {
  object-fit: cover;
  /* 画像が親要素のサイズに合わせて表示されるように調整 */
}


.swiper {
  position: relative;
  overflow: hidden;
  margin-bottom: 70px !important;
}

.company-container {
  margin-bottom: 50px;
}

.slick-initialized .slick-slide {
  transition-timing-function: linear;
  display: flex !important;
}

.slick-slide img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 3%;

}


/* 以下、新しいレスポンシブスタイル */
@media screen and (min-width: 768px) {
  .slick-slide img {
    width: calc(100% - 50px);

  }
}

.animated-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em);
  animation: fadeInUp 0.1s forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(1em);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}





.business_service {
  display: flex;
  margin-top: 100px;
}

.service {
  margin-bottom: 50px;
}

.business_service_contact_box02 a {
  display: block;
  margin-top: 10px;
  /* 各リンクの間に余白を追加 */
  font-weight: bold;
  /* リンクのテキストを太字に */
}


.business_service_box02 {
  margin-left: 30px;
}

.button_container {
  display: flex;
  align-items: center;
  height: 10vh;
  /* Viewportの高さを100%に設定して中央配置 */
  margin: 0;
  padding: 0;
	justify-content:center;
}

.button_view-more {
  font-size: 18px;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background-color: #007BFF;
  /* モダンな青 */
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.button_view-more:hover {
  background-color: #0056b3;
  /* ホバー時の色を少し暗く */
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  /* ホバー時の影を少し強く */
}

.button_view-more:focus {
  outline: none;
  /* ボタンをフォーカスしても外部の点線が表示されないようにする */
}



/* 全体のスタイル */
.business-container {
  display: flex;
  /* フレックスボックスを使用して子要素を横並びにする */
  justify-content: space-between;
  /* 子要素の間隔を均等にする */
  padding: 20px 0;
  /* 上下のパディングを追加 */
}

.business-item {
  flex: 1;
  /* 各要素が均等な幅を持つようにする */

  padding: 20px;
  /* 内部のパディングを追加 */
  background-color: #fff;
  /* 背景色 */
  border-radius: 8px;
  /* 角を丸くする */
}

.business-item img {
  width: 100%;
  /* 画像の幅を100%にする */
  border-radius: 8px;
  /* 画像の角を丸くする */
  margin-bottom: 35px;
  /* 画像とタイトルの間にマージンを追加 */
  box-shadow: 15px 15px 0 gray;

}

.business-item h3 {
  margin-bottom: 10px;
  /* h3とpの間のマージン */
  color: #333;
  /* タイトルの色 */
  font-size: 20px;
  /* フォントサイズ */
}

.business-item p {
  color: #666;
  /* テキストの色 */
  font-size: 16px;
  /* フォントサイズ */
  line-height: 1.5;
  /* 行間 */
}




.company-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.company-box01,
.company-box02 {
  flex: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.company-box02 {
  height: 350px;
}

.company-box01 iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.top_companyprofile {
  padding: 20px;
	padding-left:40px;
  font-size: 18px;
  padding-bottom: 0px;
}

.top_companyprofile dt {
  font-weight: bold;
  margin-bottom: 10px;
}

.top_companyprofile dd {
  margin-bottom: 20px;
}

dl {
  display: flex;
  flex-wrap: wrap;
}

dl dt {
  width: 30%;
}

dl dd {
  width: 60%;
}

.company-box02 .button_container {
  height: 7vh;
}



.center {
  display: flex;
  /* 画像を横並びにする */
  overflow-x: scroll;
  /* 横方向のスクロールを有効にする */
  white-space: nowrap;
  /* 画像を横に並べるための設定 */
}

.center>div {
  display: inline-block;
  /* 画像を横に並べるための設定 */
}


.works-slider {
  margin: 0 auto;
  max-width: 100vw;
}



.top_works_box .works-slider .slider-item img {
  width: 320px;
  height: 240px;
  object-fit: cover;
  /* イメージのアスペクト比を維持しつつ、定義された領域に合わせる */
  border-radius: 15px;
  /* 角を丸くする */
}



.works-slider .slider-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.works-slider .slider-item p {
  font-size: 14px;
  margin-bottom: 10px;
}

.works-slider .slider-item span {
  padding: 5px 15px;
  border-radius: 20px;
  border: 2px solid #aaa;
}



.section.top_works {
  background-image: url(../img/texturetastic_gray.png);
  background-repeat: repeat;
  padding: 70px 0 120px 0;
  margin: 0 calc(50% - 50vw);
}

.top_works_box {
  width: 1280px;
  margin: 0 auto;
}

.top_works_box .button_view-more {
  margin: auto;
}

.top_recruit img {
  width: 100%;
}

.top_recruit01 p {
  text-align: center;
  padding-top: 15px;
  padding-bottom: 15px;
  font-weight: bold;
  font-size: 20px;
}

.top_recruit02 {
  display: flex;
  border: thin solid #505050;
  width: 280px;
  padding-top: 15px;
  padding-bottom: 15px;
  margin: 0 auto;
  padding-left: 30px;
}

.recruit_job {
  text-align: center;
  padding-bottom: 15px;
  font-weight: bold;
  font-size: 22px;

}

.top_recruit02 .job::after {
  content: "/";
}

.top_recruit02 .job,
.jobs {
  font-weight: bold;
}

.recruit .button_view-more {
  margin: auto;
}

.recruit {
  margin-top: 50px;
  margin-bottom: 50px;
}

.top_area {
  display: flex;
  padding: 0 20px 20px 20px;
  margin-top: 20px;
}

.area_box01 {
  border: 1px solid #5f5c5c;
  display: inline-block;
  padding: 10px;

}

.meinarea {
  text-align: center;
  font-size: 18px !important;
  font-weight: bold;

}

.area_box02 p {
  padding-left: 15px;
}

.area_box02 p {
  padding-left: 15px;
  padding-top: 17px;

}



@media screen and (max-width: 767px) {
  .business-container {
    display: block;
  }

  .top_companyprofile {
    font-size: 14px;
  }

  .slick-slide img {
    width: 100%;
    /* 画像の幅を画面幅に合わせる */
    height: auto;
    /* 画像の高さを自動調整 */
    border-radius: 15px;
    /* 画像の角を丸くする */
    /* 上下左右に隙間を設定 */
  }

  .swiper-slide {
    margin: 0 3vw;
  }

  .overlay-text {
	  top: 95vw;
    left: 2%;
    right: 2%;
    text-align: center;
    /*
  position: static;
  absoluteを解除し、デフォルトの位置決めに戻す */

  }




  .business_service_box01 {
    display: none;
  }

  .overlay-text h1 {
    font-size: 1.2rem;
    padding: 10px 10px;
  }

  .overlay-text p {
    font-size: 1.2rem;
  }

  .area_box02 p {
    padding:

      10px;
  }

  .top_recruit01 p {
    font-size: 16px;
  }

  .business_service_box02 p {
    padding: 10px;
  }


  .top_works_box .works-slider .slider-item img {
    padding: 10px;
  }

  /* スマホ用のスタイル */
  .main-slider .slick-slide {
    margin-left: 10px;
    /* 左のパディング */
    margin-right: 10px;
    /* 右のパディング */
  }

  @keyframes borderAndBackgroundFadeIn {
    0% {
      border-color: transparent;
      background-color: transparent;
    }

    100% {
      border-color: rgb(174, 174, 174, 1);
      background-color: rgba(255, 255, 255, 0.5);
    }

  }


}


@media screen and (max-width: 1024px) {
  .company-container {
    display: block;
  }

  .top_companyprofile {
    padding-left: 10%;
  }

  .top_works_box {
    width: auto;
  }
}