[class*='swiper']:focus {
  outline: none;
}

/* Swiperのコンテナ */
.mainimage .swiper {
  width: 100%;
  height: auto; /* 画像のアスペクト比を保持 */
  position: relative; /* 全メディアで相対配置 */
  z-index: 0;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
}

/* スライドのスタイル */
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* スライド内の画像コンテナ */
.slide {
  width: 100%;
  height: auto; /* 全メディアでアスペクト比を保持 */
  display: flex;
  justify-content: center;
}

.slide-media {
  width: 100%;
  max-width: 100%;
  height: auto; /* 全メディアでアスペクト比を保持 */
  margin: 0 auto;
}
.slide-media img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.slide-media {
  position: relative;
  /* overflow: hidden; */
}
/* .slide-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
} */

.swiper-button-prev,
.swiper-button-next {
  display: grid;
  place-content: center;
  width: 6.4rem;
  height: 6.4rem;
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}

@media only screen and (max-width: 599px) {
  .swiper-button-prev,
  .swiper-button-next {
    width: 4rem;
    height: 4rem;
  }
}

/* .swiper-button-prev::before,
.swiper-button-next::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: '';
}
.swiper-button-prev::after,
.swiper-button-next::after {
  width: 1.2rem;
  height: 1.2rem;
  content: '';
  border: solid var(--color-gray);
  border-width: 3px 3px 0 0;
}
.swiper-button-prev::after {
  margin-left: 0.4rem;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}
.swiper-button-next::after {
  margin-right: 0.4rem;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
} */
.swiper-button-disabled {
  pointer-events: none;
  opacity: 0;
}

.mainimage .l-inner {
  padding-bottom: 0;
}
.mainimage .swiper-fade .swiper-slide {
  -webkit-transition-property:
    opacity,
    -webkit-transform !important;
  transition-property:
    opacity,
    -webkit-transform !important;
  transition-property: opacity, transform !important;
  transition-property:
    opacity,
    transform,
    -webkit-transform !important;
  pointer-events: none;
}
.mainimage .swiper-fade .swiper-slide-active {
  pointer-events: auto;
}
.mainimage .swiper-pagination {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 3.2rem;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
  margin: auto;
}
.mainimage .swiper-pagination-bullet {
  display: block;
  width: 3px;
  height: 4rem;
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.4);
}
.mainimage .swiper-pagination-bullet:not(:first-child) {
  margin-top: 0.8rem;
}
.mainimage .swiper-pagination-bullet-active {
  background-color: var(--color-theme);
}
/* .mainimage .slide-media {
  height: 100vh;
}*/

.mainimage .slide-media img {
  width: 100%;
  height: auto;
  object-fit: contain; /* 全メディアでアスペクト比を保持 */
  object-position: center;
}

/* @media only screen and (max-width: 1024px) {
  .mainimage {
    margin-bottom: 2rem;
    height: 80vh;
  }
} */

/* @media only screen and (min-width: 769px) and (max-width: 1024px) {
  .mainimage,
  .mainimage .slide-media {
    height: 80vh;
  }
} */

/* @media only screen and (max-width: 768px) {
  .mainimage {
    margin-top: 60px;
    height: 60vh;
  }
} */

/* @media only screen and (max-width: 599px) {
  .mainimage,
  .mainimage .slide-media {
    height: 70vh;
  }
}

@media only screen and (max-width: 360px) {
  .mainimage,
  .mainimage .slide-media {
    height: 80vh;
  }
} */

/* iPad Pro 12.9インチ向けの設定 */
/* @media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
  .mainimage {
    margin-bottom: 2rem;
    height: max(50vh, 50vw);
  }
} */

.mainimage .slide-media img {
  -webkit-transition: 7s 1s ease-out;
  transition: 7s 1s ease-out;
}
.mainimage .slide-title {
  font-size: 4rem;
  font-weight: normal;
  line-height: 1.6;
  position: absolute;
  right: 8rem;
  bottom: 15%;
  margin-left: 16rem;
  text-align: right;
  color: #fff;
}
.mainimage .swiper-slide[class*='-active'] .slide-media img {
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
  -webkit-transform: scale(1);
  transform: scale(1);
}
.mainimage .swiper-slide[class*='-active'] .slide-title {
  -webkit-animation: mv01-fadeIn 2s 0.5s var(--easing) both;
  animation: mv01-fadeIn 2s 0.5s var(--easing) both;
}

@-webkit-keyframes mv01-fadeIn {
  0% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0;
    -webkit-filter: blur(300px);
    filter: blur(300px);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
  }
}

@keyframes mv01-fadeIn {
  0% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0;
    -webkit-filter: blur(300px);
    filter: blur(300px);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
    -webkit-filter: blur(0);
    filter: blur(0);
  }
}
/* @media only screen and (min-width: 768px) and (max-width: 1024px) {
  .mainimage .slide-media {
    height: max(50vh, 50vw);
  }
} */
@media only screen and (max-width: 599px) {
  .mainimage .slide-title {
    font-size: 2.8rem;
    right: 4rem;
    margin-left: 6rem;
  }
}
@media only screen and (min-width: 1025px) {
  .swiper-button-prev::before,
  .swiper-button-next::before {
    -webkit-transition: var(--transition);
    transition: var(--transition);
  }
  .swiper-button-prev:hover::before,
  .swiper-button-next:hover::before {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}

/* 当院の実績スライダー用スタイル */
.jisseki-swiper-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.jisseki-swiper {
  width: 100%;
  position: relative;
}

.jisseki-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.jisseki-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.jisseki-swiper .swiper-pagination {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

.jisseki-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  margin: 0 5px;
  cursor: pointer;
  border-radius: 50%;
}

.jisseki-swiper .swiper-pagination-bullet-active {
  background-color: var(--color-theme);
}

.jisseki-swiper .swiper-button-next,
.jisseki-swiper .swiper-button-prev {
  color: var(--color-theme);
  background: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.jisseki-swiper .swiper-button-next::after,
.jisseki-swiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

.jisseki-swiper .swiper-button-next {
  right: 10px;
}

.jisseki-swiper .swiper-button-prev {
  left: 10px;
}

@media only screen and (max-width: 599px) {
  .jisseki-swiper-container {
    padding: 10px;
  }

  .jisseki-swiper .swiper-button-next,
  .jisseki-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  .jisseki-swiper .swiper-button-next::after,
  .jisseki-swiper .swiper-button-prev::after {
    font-size: 16px;
  }

  .jisseki-swiper .swiper-button-next {
    right: 5px;
  }

  .jisseki-swiper .swiper-button-prev {
    left: 5px;
  }
}
