/* 中のセクション写真横 */
.split-section {
  display: flex;
  flex-direction: row;
  height: 50vh; /* 高さを設定 */
  width: 100%;
}
.split-image, .split-text {
  flex: 1;
  min-width: 0; /* 追加: フレックスアイテムの収縮を許可 */
  max-width: 50%; /* 追加: 最大幅を50%に設定 */
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* 初期状態で透明に */
  transform: scale(0.8); /* 初期状態で少し縮小 */
  transition: opacity 1s, transform 1s; /* トランジション */
}
.split-image img.visible {
  opacity: 1;
  transform: scale(1);
}
.split-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background-color: #DCF0FF;
}
.split-text h3 {
  margin: 0 0 10px 0; /* 下にマージンを追加 */
  font-size: 1.5rem;
}
.split-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
/* タブレット用のメディアクエリ */
@media (max-width: 1024px) {
  .split-section {
    flex-direction: column;
    height: auto; /* 高さを自動調整 */
  }
  .split-image, .split-text {
    max-width: 100%; /* タブレットでは100%幅を占める */
  }
  .split-image {
    order: 2; /* 画像を下部に移動 */
  }
  .split-text {
    order: 1; /* テキストを上部に移動 */
    background-color: #fff; /* 背景色を白に変更 */
  }
  .split-section {
    flex-direction: column;
    height: 50vh;
  }
  .split-image {
    position: absolute;
    width: 100%;
    height: 50vh;
    z-index: -1;
  }
  .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* モバイルでのトランジションを無効化 */
  }
  .split-text {
    position: relative;
    width: 100%;
    height: 50vh;
    background-color: rgba(0, 153, 255, 0.3); /* 背景を半透明に設定 */
    color: white;
    z-index: 1;
    padding: 20px;
  }
  .split-text h3, .split-text p {
    color: white;
  }
}
/* レスポンシブデザインのためのメディアクエリ */
@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
    height: 50vh;
  }
  .split-image {
    position: absolute;
    width: 100%;
    height: 50vh;
    z-index: -1;
  }
  .split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* モバイルでのトランジションを無効化 */
  }
  .split-text {
    position: relative;
    width: 100%;
    height: 50vh;
    background-color: rgba(0, 153, 255, 0.3); /* 背景を半透明に設定 */
    color: white;
    z-index: 1;
    padding: 20px;
  }
  .split-text h3, .split-text p {
    color: white;
  }
}
/* ボタン */
.detail-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px; /* ボタンの上にマージンを追加 */
  font-size: 1rem;
  font-weight: bold;
  color: white;
  background-color: #007BFF; /* 青色の背景 */
  border: none;
  border-radius: 5px; /* 角を丸くする */
  text-decoration: none;
  transition: background-color 0.3s ease; /* 背景色のトランジション */
}
.detail-button:hover {
  background-color: #0056b3; /* ホバー時の背景色 */
}
/* TOPメイン固定の位置に画像を設定 */
.fixed-image {
  position: absolute;
  top: 0; /* 上端に固定 */
  left: 0; /* 左端に固定 */
  width: 100%; /* 幅を100%に設定 */
  height: 100%; /* 高さを100%に設定 */
  z-index: 0; /* 背景より手前に */
}
.fixed-image img {
  width: 100%; /* 画像の幅 */
  height: 100%; /* 画像の高さを100%に設定 */
  object-fit: cover; /* 画像をコンテナにフィットさせる */
  border-radius: 0; /* 画像の角を丸めない */
  box-shadow: 0 0 0px rgba(0, 0, 0, 0); /* 影の設定 */
  animation: moveUpDown 1.5s infinite alternate ease-in-out; /* 上下にアニメーション */
}
/* TOPメイン固定の位置に画像を設定 */
.fixed-image2 {
  position: absolute;
  top: 0; /* 上端に固定 */
  left: 0; /* 左端に固定 */
  width: 100%; /* 幅を100%に設定 */
  height: 100%; /* 高さを100%に設定 */
  z-index: 0; /* 背景より手前に */
}
.fixed-image2 img {
  width: 100%; /* 画像の幅 */
  height: 100%; /* 画像の高さを100%に設定 */
  object-fit: cover; /* 画像をコンテナにフィットさせる */
  border-radius: 0; /* 画像の角を丸めない */
  box-shadow: 0 0 0px rgba(0, 0, 0, 0); /* 影の設定 */
  animation: moveUpDown 3s infinite alternate ease-in-out; /* 上下にアニメーション */
}
/* TOPメイン固定の位置にスクロールボタンを設定 */
.scroll-down {
  position: absolute;
  bottom: 20px; /* 下部からの距離 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2; /* メインビジュアルの上に配置 */
}
.scroll-btn {
  display: inline-block;
  /* ボタンのスタイルを設定 */
  padding: 0; /* パディングを削除 */
  background: none; /* 背景を無し */
  border: none; /* ボーダーを無し */
  animation: moveUpDown 1s infinite alternate ease-in-out; /* 上下にアニメーション */
}
.scroll-btn img {
  width: 70px; /* 画像の幅 */
  height: auto; /* 高さは自動調整 */
  transition: opacity 0.3s ease; /* ホバーエフェクト */
}
.scroll-btn:hover img {
  opacity: 0.7; /* ホバー時の透明度 */
}
@keyframes moveUpDown {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}
.scroll-target-section {
  padding: 100px 0;
  text-align: center;
}
.scroll-target-section .content {
  max-width: 800px;
  margin: 0 auto;
}
.scroll-target-section h2 {
  font-size: 2em;
  margin-bottom: 1em;
}
.scroll-target-section p {
  font-size: 1.2em;
  margin-bottom: 1em;
}
.company-overview, .company-overview2 {
  position: relative;
  display: inline-block;
}
.company-overview h3 {
  position: relative;
  z-index: 2;
  margin: 0;
}
.company-overview .overlay-text {
  position: absolute;
  top: -20%; /* 上下位置を調整 */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem; /* 好みで調整 */
  font-style: italic; /* 斜体 */
  font-family: "Times New Roman", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif; /* 明朝体 */
  z-index: 1;
  pointer-events: none; /* 背景文字がクリック対象にならないようにする */
  color: rgba(0, 0, 0, 0.1); /* 通常時は薄い黒 */
}
/* スマホ画面（幅768px以下）の場合 */
@media (max-width: 1024px) {
  .company-overview .overlay-text {
    color: rgba(255, 255, 255, 0.2); /* スマホ時は白で透過 */
  }
}
.company-overview2 .overlay-text {
  position: absolute;
  top: -20%; /* 上下位置を調整 */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem; /* 好みで調整 */
  font-style: italic; /* 斜体 */
  font-family: "Times New Roman", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif; /* 明朝体 */
  z-index: 1;
  pointer-events: none; /* 背景文字がクリック対象にならないようにする */
  color: rgba(0, 0, 0, 0.1); /* 通常時は薄い黒 */
}