.asthenosphere .section-style .styles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 91.40625%;
  margin: 0 auto;
  align-items:stretch;
}
.asthenosphere .section-style .style:nth-of-type(4n) {
  margin-right: 0;
}
.asthenosphere .section-style .style {
  display: flex;
  flex-direction: column;
  width: 23.50427%;
  margin: 0 1.9943066% 60px 0;
}
.styles img {
  /* height: 100%; */
  flex-grow: 1;
}
@media (max-width: 767px) {
  .asthenosphere .section-style {
    margin-bottom: 90px;
  }
  .asthenosphere .section-style .styles {
    margin-bottom: 20px;
  }
  .asthenosphere .section-style .style {
    width: 100%;
    margin: 0;
  }
  .asthenosphere .section-style .style img {
    display: block;
    height: auto;
    object-fit: cover;
  }
}
.asthenosphere .section-flow {
  max-width: 1280px;
  margin: 0 auto min(9.375vw, 120px);
}
.asthenosphere .section-flow .flows {
  width: 90.625%;
  margin: 0 auto;
}
.asthenosphere .section-flow .flow {
  display: flex;
  justify-content: center;
}
.asthenosphere .section-flow .flow:nth-child(even) {
  flex-direction: row-reverse;
}
.asthenosphere .section-flow .flow:not(:last-child) {
  margin-bottom: min(6.25vw, 80px);
}
.asthenosphere .section-flow .flow__image {
  flex: 0 0 37.93103%;
}
.asthenosphere .section-flow .flow__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.asthenosphere .section-flow .flow__text {
  display: flex;
  align-items: center;
  line-height: 1.2222222;
  padding: 0 8.62068%;
}
.asthenosphere .section-style .style {
    height: 366px;
}

.styles video {
  height: 366.5px;
  object-fit: cover;
  width: 100%;
}

#playButton {
  background: transparent!important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  width: 100px;
  height: 100px;
  cursor: pointer;
}

#playButton img {
  width: 100%;
}

@media (max-width: 767px) {

  #playButton {
    background: transparent!important;
    position: absolute;
    top: 50%!important;
    left: 50%!important;
    transform: translate(-50%, -50%)!important;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
  }

  .asthenosphere .section-style .style {
    height: auto!important;
  }

  .styles video {
      width: 100%;
      height: 100%;
      object-fit: cover; /* 画像や動画を縮小して枠内に収める */
  }

  .asthenosphere .section-flow {
    max-width: unset;
    width: 90%;
    margin: 0 auto 90px;
  }
  .asthenosphere .section-flow .flows {
    width: 100%;
    margin: unset;
  }
  .asthenosphere .section-flow .flow {
    display: flex;
    flex-flow: column;
    justify-content: unset;
    flex-direction: column-reverse;
  }
  .asthenosphere .section-flow .flow:nth-child(even) {
    flex-direction: column-reverse;
  }
  .asthenosphere .section-flow .flow:not(:last-child) {
    margin-bottom: 50px;
  }
  .asthenosphere .section-flow .flow__image {
    flex: unset;
    width: 100%;
  }
  .asthenosphere .section-flow .flow__image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
  }
  .asthenosphere .section-flow .flow__text {
    display: unset;
    align-items: unset;
    line-height: 1.5;
    padding: unset;
    margin-bottom: 16px;
  }

  .asthenosphere .section-style .styles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3列に均等配置 */
    gap: 0px; /* アイテム間の余白 */
    width: 91.40625%; /* コンテナを親要素の幅いっぱいにする */
    max-width: 1200px; /* 必要なら最大幅を指定 */
    margin: 0 auto; /* 中央配置 */
    overflow: hidden; /* はみ出し防止 */
    align-items: stretch;  /* これを追加 */
  }
  .style.mutation {
      width: 100%; /* gridレイアウト内では width:100% にする */
      aspect-ratio: 16 / 9; /* 高さを統一 */
      display: flex;
      justify-content: center;
      align-items: center;
  }
  .style.mutation {
      display: flex;
      flex-direction: column; /* 画像や動画を縦に並べる */
      justify-content: center;
      align-items: center;
      width: 100%;
      aspect-ratio: 16 / 9; /* 16:9の比率を維持 */
  }

  .style.mutation video {
    height: auto!important;
  }

  .asthenosphere .section-style .style {
    background: #000;
  }

}

.atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* 背景を暗くする */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.atmosphere video,
.atmosphere img {
    max-width: 90%;
    max-height: 90%;
}


.atmosphere {
  display: flex;
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.64);
  background-image: url(../images/load.gif);
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}
.atmosphere img {
  max-width: 80%;
  max-height: 80%;
}
.atmosphere .troposphere {
  max-width: 90%;
  max-height: 90%;
}
